GrapesJS
GrapesJS is a free and open source Web Builder Framework which helps building HTML templates, faster and easily, to be delivered in sites, newsletters or mobile apps. Mainly, GrapesJS was designed to be used inside a [CMS] to speed up the creation of dynamic templates. To better understand this concept check the image below
Generally any ‘template system’, that you’d find in various applications like CMS, is composed by the structure (HTML), style (CSS) and variables, which are then replaced with other templates and contents on server-side and rendered on client.
This demos show examples of what is possible to achieve:
Webpage Demo - http://grapesjs.com/demo.html
Newsletter Demo - http://grapesjs.com/demo-newsletter-editor.html
Features
Blocks | Style Manager | Layer Manager |
---|---|---|
![]() |
![]() |
![]() |
Code Viewer | Asset Manager |
---|---|
![]() |
![]() |
Local and remote storage
Default built-in commands (basically for creating and managing different components)
Download
- CDNs
- UNPKG (resolves to the latest version)
https://unpkg.com/grapesjs
https://unpkg.com/grapesjs/dist/css/grapes.min.css
- CDNJS (replace
X.X.X
with the current version)https://cdnjs.cloudflare.com/ajax/libs/grapesjs/X.X.X/grapes.min.js
https://cdnjs.cloudflare.com/ajax/libs/grapesjs/X.X.X/css/grapes.min.css
- UNPKG (resolves to the latest version)
- NPM
npm i grapesjs
- GIT
git clone https://github.com/GrapesJS/grapesjs.git
For the development purpose you should follow instructions below.
Development
Clone the repository and install all the necessary dependencies (yarn
is highly recommended)
$ git clone https://github.com/GrapesJS/grapesjs.git
$ cd grapesjs
$ yarn
Start the dev server
$ yarn start
Once the development server is started you should be able to reach the demo page (eg. http://localhost:8080
)
Documentation
Check the getting started guide here: [Documentation]
API
API References could be found here: [API-Reference]
Testing
$ yarn test
Plugins
Presets
- grapesjs-preset-webpage - Webpage Builder
- grapesjs-preset-newsletter - Newsletter Builder
- grapesjs-mjml - Newsletter Builder with MJML components
Find out more about plugins here: Creating plugins