npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@gbielbarbosa/react-email-builder

v0.1.0

Published

A React component library for building responsive email templates with a drag-and-drop editor

Readme

react-email-builder

A React component library for building responsive email templates with a drag-and-drop editor, powered by React Email and Tiptap.

Demo page - https://gbielbarbosa.github.io/react-email-builder/

Features

  • Drag-and-drop editor - drag blocks from the sidebar directly onto the canvas
  • Structure panel - hierarchical document tree with click-to-select and block deletion

Requirements

| Peer dependency | Version | |---|---| | react | >= 18.0.0 | | react-dom | >= 18.0.0 | | @tiptap/core | >= 3.0.0 | | @tiptap/react | >= 3.0.0 | | @tiptap/starter-kit | >= 3.0.0 | | @react-email/components | >= 1.0.0 | | @react-email/editor | >= 1.0.0 | | @react-email/render | >= 2.0.0 |

Installation

npm install @gbielbarbosa/react-email-builder

Install peer dependencies if they are not already present in your project:

npm install react react-dom \
  @tiptap/core @tiptap/react @tiptap/starter-kit \
  @react-email/components @react-email/editor @react-email/render

Quick Start

Import the <EmailBuilder /> anywhere in your app:

import { EmailBuilder } from '@gbielbarbosa/react-email-builder';

export default function App() {
  return <EmailBuilder />;
}

That's it. The component renders a full-featured email editor with sidebar, canvas, and inspector panel.

API

<EmailBuilder />

The top-level, batteries-included component. Renders the complete editor UI: sidebar, canvas, inspector panel, and header with preview buttons.

import { EmailBuilder } from '@gbielbarbosa/react-email-builder';

<EmailBuilder />

<EditorCanvas />

The editor canvas in isolation, useful when you want to compose your own layout around the editor.

import { EditorCanvas } from '@gbielbarbosa/react-email-builder';
import { Inspector } from '@react-email/editor/ui';
import { type EmailEditorRef } from '@react-email/editor';

function MyEditor() {
  const [editorRef, setEditorRef] = useState<EmailEditorRef | null>(null);

  return (
    <EditorCanvas onReady={setEditorRef}>
      {/* Optional: render inspector, column controls, or any children */}
      <Inspector.Root>
        <Inspector.Breadcrumb />
        <Inspector.Document />
        <Inspector.Node />
        <Inspector.Text />
      </Inspector.Root>
    </EditorCanvas>
  );
}

Props

| Prop | Type | Description | |---|---|---| | onReady | (ref: EmailEditorRef) => void | Called when the editor is mounted. Provides the EmailEditorRef for programmatic control (e.g. getJSON(), getEmailHTML()). | | children | React.ReactNode | Optional content rendered inside the editor wrapper (e.g. inspector panels). | | ref | React.Ref<EmailEditorRef> | Forward ref support - exposes the same EmailEditorRef. |


<Sidebar />

The block palette and structure panel. Can be used independently if you want to build a custom layout.

import { Sidebar } from '@gbielbarbosa/react-email-builder';
import { type EmailEditorRef } from '@react-email/editor';

<Sidebar editor={editorRef?.editor} />

The stylesheet uses the reb- prefix for all class names to avoid conflicts with your application's styles.

License

The MIT License (MIT). Please see License File for more information.