Introduction
Welcome to Easyblocks - an open-source visual builder framework.
Last updated
Welcome to Easyblocks - an open-source visual builder framework.
Last updated
Easyblocks is an open-source React toolkit (white-label editor + framework) for building completely customised visual page builders.
It can help you build intuitive visual editors like those in Shopify (for e-commerce), Mailchimp (landing pages), Splash (event pages) or Carrd (one pagers). It can handle any visual building experience that outputs HTML/CSS or a React component tree - from landing pages to dashboards.
Easyblocks can handle such a wide range of seemingly different visual experiences thanks to a very clear separation between what's common for all visual builders and what's custom and project-specific. The Easyblocks editor knows how to handle common visual builder logic (drag&drop, nested selections, inline rich text, responsive styling fields, etc), but at the same time doesn't know anything about project-specific things like your components, data sources or templates. Project-specific stuff can be defined with code using Easyblocks framework, which is based on a novel concept called No-Code Components.
Visit https://easyblocks-demo.vercel.app/ to try the editor demo.
Easyblocks explained in less than 10 minutes:
Out-of-the-box visual building logic: drag&drop, nested selections, inline rich text, multi-selection, styling fields (responsive), design tokens, history management, localisation, templates, dynamic data.
Simple for end-users. Not based on HTML/CSS but on No-Code Components.
Bring your own components and templates. You decide what components are available, their variants, styling options, simplicity levels, children components, constraints, etc.
Bring your own data. Connect any data source, fully control data fetching and data picker widget. The data can be dynamic. For example, you can connect texts or images from data sources in the editor.
Server-side rendering. Fully compatible with modern frameworks like next.js or Remix, but can also render to pure HTML/CSS. All the heavy lifting happens on the server - no browser rendering and layout shifts.
If you need a custom text editor there are so many solutions available: Slate, Lexical, TinyMCE, CKEditor, etc. But if you need a custom page builder there's a huge chance you must build one from scratch. And it’s an awfully expensive and tedious process.
The goal behind Easyblocks is to make it possible to create truly state-of-the-art visual page building experiences in weeks instead of years, without compromising flexibility.
Off-the-shelf OSS builders like Grape or Webstudio are based on HTML/CSS (they have a panel with HTML nodes on the left and CSS properties on the right). HTML/CSS is very powerful indeed but for many use cases it's too unconstrained and too hard to use for non-technical users. At Easyblocks we dropped HTML/CSS in favour of No-Code Components.
Each selectable element added to an Easyblocks editor canvas must be a No-Code Component. No-Code Component is a standard React component but extended with a so called "No-Code Component Definition", a special object that makes this component visually editable. In a No-Code Component Definition you can set data properties, styling properties or children components slots available in the visual editor when the component is selected. Such architecture allows developers to build visually editable components while keeping full control over what should and should not be customisable for end-users.
Below we're showing a code of a very simple No-Code Component: SimpleBanner
:
To learn more, continue with No-Code Components guide.
When you build a custom visual builder you usually want to connect it to the data that is specific to your product. Easyblocks allows for a full control over external data:
connect any external data sources, create custom widgets and fetching functions
connect dynamic data to text fields, images, videos, etc
Please read External Data section to learn more.
We'd love to hear your questions, issues or feedback! You can contact us by email, on X/Twitter, or on Github.
In case AGPL3.0 license is too strict we can offer you a custom license. We can also help you with custom services. Let us know via email.
Under the hood it's a spin-off from Shopstory - a visual builder for headless CMSes that drives millions of page views for e-commerce brands like Ace&Tate or Tekla Fabrics. Here's a quick video of Shopstory working inside of Sanity CMS: