BuilderJS - Visual HTML Email and Page Builder Plugin for Web

Bluehost Shared Hosting

BuilderJS: Drag and Drop HTML Email and Page Builder

BuilderJS is a JavaScript editor for building HTML emails and web pages inside your own application. Embed it in a SaaS product, CRM, newsletter tool or marketing platform. The package includes a prebuilt JavaScript bundle, CSS, templates and full source code. You can run the demo without npm, Composer or a build step.

Your users can drag elements onto a canvas, edit text, change styles and export HTML. Documents are saved as JSON, so your application can store them and reopen them for further editing.

Try the live demo to edit a template and export HTML in your browser. No signup required.

Run the Demo

The included demo requires PHP 8.1 or later. Extract the package and start PHP’s built-in server:

unzip builderjs-*.zip -d ~/my-builder cd ~/my-builder/builderjs php -S localhost:8000 -t demo/

Open http://localhost:8000 in your browser. From the showcase home, open the builder, browse 36 integration examples or read the included developer documentation. Saving and uploads are disabled by default; enable the reference handlers in demo/backend/config.php to try them locally.

ZIP operations require PHP’s zip extension. Individual backend examples list their additional requirements.

Connect Your Backend

The demo’s configuration is in demo/builder.php. To use your own save and upload handlers and start from a blank sample, add these assignments after the existing $builderConfig array:

$builderConfig['endpoints']['save'] = '/your-app/save'; $builderConfig['endpoints']['assetUpload'] = '/your-app/upload'; $builderConfig['defaultTheme'] = 'default'; $builderConfig['defaultSample'] = 'master/sample/email/Blank';

Reload the page to use the new settings. The Save button will POST to your endpoint. Follow the documented request and JSON response formats, and use your application’s authentication and access controls for your handlers.

The last two lines pin the starter design. Keep the existing query-based theme and sample settings if you want gallery and theme-picker links to select designs.

What’s New in 2.2.0

  • Redesigned demo home and features tour. Updated layouts, setup examples and illustrations, with fuller coverage of existing elements and editing tools.
  • Complete gallery. The Simple category now appears alongside Standard, Rich content and Page templates, showing all 65 themes and samples.
  • Document loading fixes. Repeated load() calls leave one canvas and start fresh undo history. Loading also works after the canvas element is moved or replaced.
  • Correct change events. Loading a design no longer fires document:changed, so opening it does not trigger edit-based autosave or dirty flags.
  • Save-event fixes. builder.save() emits document:saved after successful 2xx responses, including empty and plain-text answers.
  • Theme settings in templates. Templates receive the theme’s index.json as configData.
  • Widget palette after reload. Re-adding widgets replaces that editor’s old palette. After load(), add your widgets again before calling widgetsBox.render().
  • Rewritten docs and examples. Instructions were checked against the code, correcting methods, events and counts. Inline-code rendering was fixed in four example introductions.

Also in 2.1: saved signatures, a readable bundle without eval() wrappers, and updated documentation and third-party credits.

Drag and Drop Editing

Build with 50+ element types and 50 widgets, including headings, paragraphs, images, buttons, dividers, columns, social icons, YouTube content, feature lists, spacers and signup forms. Add your own widgets through widgetsBox.addWidget().

  • Charts and Mermaid diagrams. Create charts from spreadsheet-style data and diagrams from Mermaid source. Load ECharts and Mermaid in your host application when using these elements.
  • QR codes and barcodes. Style QR codes with shapes, colors and an optional logo. Barcode formats include Code 128, EAN-13, EAN-8, UPC-A and ITF-14.
  • Ratings and reviews. Choose four layouts: stars, aggregate scores, badges and review cards. Email uses Outlook-safe text stars; page exports can include optional Schema.org markup.
  • Sliders. Add slide navigation for web pages. Email export uses the first slide or stacks all slides as static content.
  • KPI cards and progress bars. Display headline values, changes, optional sparklines and progress toward a goal.
  • Data tables and image collages. Edit styled tables and arrange images in a grid. Email tables remain HTML; collages use a generated image.
  • Social proof and testimonials. Build logo walls, stat bands and quote cards with names, roles and avatars.
  • Bullet lists. Edit items on the canvas, split or merge them with the keyboard, and reorder them with shortcuts.
  • Saved signatures. Your app supplies signatures through onListSignatures. Selecting one copies its HTML into the document. Edit that copy in the settings panel or connect your own editor through onMountHtmlEditor.

On the canvas:

  • Edit text with a floating formatting toolbar and keyboard shortcuts. Reorder, duplicate or delete elements, with undo and redo.
  • Crop and resize images with an aspect-ratio lock. Adjust spacing through the padding overlay.
  • Build UTM parameters in the link popover. Links accept merge tags; your application supplies their values.
  • Connect your own AI endpoint for text rewrites. Users preview suggestions before applying them, with undo support.
  • Hold Alt to inspect element outlines and names.

Visual Style Settings

Give users 60+ controls for content and styling:

  • Typography: a font browser with typeface previews and included self-hosted web fonts.
  • Color: palette swatches, recent colors, opacity, gradients and your application’s brand palette.
  • Layout: spacing, alignment, dimensions, borders, corner radii, shadows and backgrounds.
  • Visibility: hide a block on mobile or on desktop.
  • Details: button presets, hover effects and searchable icons.

Developers can customize the editor with CSS variables and style authored content through theme templates.

Responsive Layouts

Switch the preview width to check desktop, tablet and mobile layouts. Email templates use table-based layouts and responsive styles. The email export pipeline includes adjustments for clients with limited CSS support.

Email HTML Export

Set outputMode: 'email' to apply the email export pipeline when calling getHtml(), or call getHtmlForEmail() explicitly. The pipeline inlines supported CSS and adapts layout markup for email.

  • Email-safety warnings flag styles and features with limited email-client support.
  • YouTube email thumbnails can include a baked play button through your thumbnail endpoint and onGenerateYoutubeThumb callback.
  • Social icons use the supplied PNG assets in email exports.
  • Generated image fallbacks cover charts, diagrams, QR codes, barcodes, collages and KPI sparklines. Supply onStoreImageAsset and generate or regenerate these images before export. Chart exports also include an HTML data table.

The package includes a PHP CSS inliner and a working example. Export examples cover single HTML, inline-CSS email HTML, ZIP and theme bundles. Test final templates in the email clients your audience uses; CSS and web-font support vary.

JSON Documents

Use getData() to read the editable document as JSON and load() to reopen it. Store that JSON alongside exported HTML in your own database. Your application can use it for saved drafts, document versions, A/B variants or generated content.

Use Your Existing Backend

The editor is plain JavaScript and does not require a particular backend framework. PHP is needed for the bundled demo, not for embedding the editor in your own application. Implement save and upload handlers with Node.js, Laravel, Django, Rails, ASP.NET, Java, Go or another backend.

Self-Hosted and Customizable

Host the editor in your application and choose where documents and assets are stored. Add your logo, change colors and adapt the interface to your product. No attribution badge is required. The one-time license has no BuilderJS per-seat or usage fees.

The default setup loads UI icons and some libraries from CDNs. You can host these dependencies yourself; loadAssets: false disables the engine’s automatic asset downloads. Dependencies and credits are listed in LICENSE.md.

Multiple Editors on One Page

Mount multiple BuilderJS instances with separate containers, themes and document data. The examples show how to copy a document between editors and configure separate editors for different tenants. Your application handles tenant authentication, authorization and storage separation.

Developer API

Initialize the editor with new Builder({...}) and load a document with builder.load(data, templates, configData, mediaUrl, callback). Subscribe to events, register elements through Builder.registerElement(), add widgets or extend controls. The included developer portal covers the API, JSON structure, themes and backend integration.

Events include document:changed, document:saved, mode:changed, element:added and element:removed. If your application saves through its own request instead of builder.save(), emit document:saved after that request succeeds.

What’s in the Package

  • dist/: the compiled builder.js, builder.css and self-hosted fonts.
  • demo/: the showcase home, live builder, features tour, gallery and design system reference.
  • demo/examples/: 36 examples covering basic setup, backend integration, 8 editor layouts, events, API methods, extensions and export/import flows.
  • demo/docs/: 15 developer guides with keyboard search.
  • demo/backend/: reference PHP handlers for saving, image uploads, HTML export, ZIP export and bundle export.
  • demo/themes/: 65 themes and samples for emails and web pages, plus theme templates and assets.
  • src/: full engine source, included with both Regular and Extended License purchases. To rebuild the bundle, run npm install && npm run build.
  • README.md, CHANGELOG.md and LICENSE.md: setup instructions, release history, license information and third-party credits.

65 Included Themes and Samples

Browse four categories: Standard, Rich content, Simple and Page templates. Start with a newsletter, welcome email, product promotion, event invitation, services layout or web page, then edit the content and styling to match your brand. Blank layouts are included.

Use Cases

  • Email marketing: add a visual email composer to your application.
  • Newsletters: let authors create and revise their own layouts.
  • CRM and customer communication: design messages inside your existing workflow.
  • CMS and landing pages: provide a visual editor for page content.
  • Marketing automation: include email design in your campaign tools.
  • Transactional emails: edit receipts, invoices and notifications.
  • Internal tools: create branded messages for sales, support and HR teams.
  • Generated content: load JSON documents created by your application for users to review and edit.

Browser Compatibility

The editor supports current Chrome, Firefox, Safari and Edge. Exported email appearance depends on the template and the receiving email client; use the preview tools and check the final HTML in your target clients.

Included Documentation

Serve the demo/ folder to browse the developer portal at /docs/. Guides cover the JSON schema, Builder API, custom elements, controls, themes, backend integration and localization. Each integration example also includes a walkthrough accessible from the examples hub.

License and Third-Party Libraries

BuilderJS is available under Envato’s Regular and Extended Licenses. Both include the full source code. Check the Envato license terms for your intended use.

LICENSE.md lists licenses and credits for EJS, JsBarcode, QR Code Styling, Parsedown, Prism, Google Fonts, Material Symbols, Bootstrap, ECharts and Mermaid. Some are bundled and others are loaded at runtime; each retains its own license. Keep the source copyright and third-party license notices.

Optional AI, storage, email-delivery and other external-service charges are paid to the provider and are not included in your BuilderJS purchase.

Support

Your purchase includes future item updates and 6 months of author support, extendable to 12 months through Envato. For bug reports and questions about included features, use the support form on this CodeCanyon item page. See Envato’s item support policy for scope.

Release Notes

2.2.0 / 2026-11-14 ==================   * Added: Simple category in the template gallery, which now lists all 65 themes and samples.  * Changed: Redesigned demo home page and chapter-based features tour, with new illustrations.  * Changed: Re-adding widgets after load() replaces that editor's previous palette. Add your widgets again before calling widgetsBox.render().  * Changed: Documentation and examples rewritten and checked against the current API.  * Fixed: Repeated load() calls no longer add extra canvases, history widgets or timers.  * Fixed: Each load() starts a fresh undo history and no longer fires document:changed.  * Fixed: Blank or unclickable canvas after moving or replacing the canvas element.  * Fixed: builder.save() emits document:saved after a successful 2xx response, including empty and plain-text responses.  * Fixed: Theme templates receive the theme's index.json as configData.  * Fixed: Inline code shown as text in four example introductions.  2.1.0 / 2026-10-28 ==================   * Note: BuilderJS 2026 uses the 2.x version line. This release follows 7.0.1.  * Added: Signature element. Your app lists saved signatures through onListSignatures. The selected HTML is copied into the document and can be edited as HTML or through onMountHtmlEditor.  * Security: Demo write endpoints return HTTP 403 until enabled in demo/backend/config.php. This covers saving, image uploads, theme imports, thumbnails, QR images and backend examples.  * Security: Theme import requires a signed-in session and validates every ZIP entry before writing. Image upload accepts JPEG, PNG, WebP and GIF, with types detected from file contents.  * Security: save.php no longer creates theme directories. Cross-origin write requests are rejected. Script execution is disabled in uploads/ and themes/ on Apache.  * Changed: dist/builder.js is built without webpack's eval() wrappers.  * Changed: The package.json in the download lists only the build script.  * Fixed: README quick start path and documentation references to files outside the package.  * Fixed: Third-party library, font and icon credits in LICENSE.md.  7.0.1 / 2026-06-20 ==================   * Added: YouTube element with web and email modes, a thumbnail play button for email and size presets.  * Added: Social Icons widget with 11 styles, SVG in the editor, PNG on email export and per-platform backgrounds.  * Added: Signup form templates and generator, with 8 templates, 5 layouts and popup background images.  * Added: Feature-list and Spacer widgets with icon size, per-item color and typography controls.  * Added: Inline-CSS email export v5 pipeline and email compatibility warnings.  * Added: Upsell and Thank-You funnel templates in Simple and Extended variants.  * Added: Optional SEO configuration in demo/, disabled by default. The buyer package contains no telemetry.  * Changed: Consistent link URL validation, including merge tags, and updated control panels.  * Changed: assetUploadHandler replaced with onBrowse.  * Changed: Internal artefact_type renamed to outputMode. Existing JSON documents still load.  * Fixed: Button box-sizing in exported email, including full-width buttons.  * Fixed: Rounded cell clipping and empty placeholders in exports.  * Fixed: Selection of YouTube and video elements.  * Fixed: Bare URLs and email addresses wrapped in <a style="color:inherit"> on export. ZIP and bundle exports include only assets referenced by the active sample.  7.0.0 / 2026-05-11 ==================   * Added: Rebuilt buyer portal with showcase home, live builder, gallery, design reference and examples hub.  * Added: 35+ integration examples across basic, backend, cookbook, events, API and extensions.  * Added: Developer documentation at demo/docs/, with 15 guides across 4 tracks and Cmd-K search.  * Added: 8 editor layout variants, including minimal, two-column, three-column, sidebar-only, mobile, card, rich header and canvas-only.  * Added: Backend examples for MySQL saving, S3 storage, authentication and realtime sync.  * Added: English, French and Vietnamese locale packs, with support for custom translations.  * Added: Events including document:saved, element:added, element:removed and mode:changed.  * Added: API examples for document data, loading, modes, selection, clearing and undo/redo.  * Added: Custom elements through Builder.registerElement() and widgets through widgetsBox.addWidget().  * Added: Custom control subclassing guide.  * Added: Multiple editor instances on one page.  * Added: Light and dark modes in the demo, plus a theme picker with category filters.  * Added: Bundle and ZIP export handlers alongside HTML export.  * Added: Playwright regression coverage for Chromium and Firefox.  * Added: Accessibility improvements across the builder and showcase.  * Added: PHP 8.x compatibility for backend examples.  * Fixed: Drag-and-drop issues in Safari and Firefox.  * Fixed: Initial template loading performance.  * Fixed: Dark-mode contrast in control panels.  * Fixed: Duplicate CSS after repeated saves.  * Fixed: Image uploads with large files.  * Fixed: Inline editing across supported browsers.  6.0.6 / 2026-03-03 ==================   * Added: Pure HTML widgets without a Bootstrap requirement.  * Added: More base templates.  * Added: X icon for the former Twitter service.  * Added: More translations and language support.  * Fixed: Drag-and-drop issues in Safari.  * Fixed: Drag-and-drop usability.  * Fixed: Reduced nested HTML in widgets.  * Fixed: Compatibility with older Outlook versions.  * Fixed: Reduced template file sizes.  * Fixed: PHP 7.3 compatibility in sample code.  * Fixed: CSS inlining examples for PHP.  * Fixed: Translation typos.  * Fixed: Image previews in certain browsers.

4.5 average based on 23 ratings.

SorrentoCorp

SorrentoCorp

Visit Author's Portfolio

View Portfolio
Last Update 2026-11-18
Created 2020-06-13
Sales 999
Discussion Comments
Compatible Browsers IE11 Firefox Safari Opera Chrome Edge
Software Version
High Resolution Yes
Files Included JavaScript JS JavaScript JSON HTML CSS PHP
Video Preview Resolution