# @puckeditor/core

> The open-source visual editor for React

Latest version **0.23.0** (published 2026-08-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @puckeditor/core
pnpm add @puckeditor/core
yarn add @puckeditor/core
bun add @puckeditor/core
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score; popular repo.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.23.0 |
| Published | 2026-08-07 |
| First published | 2026-01-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=20.0.0 |
| Dependencies | 36 |
| Unpacked size | 2.5 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13502 |
| Author | Chris Villa |
| Maintainers | chrisvxd |
| Keywords | puck, visual, editor, react, drag and drop, dnd, page, website, builder, headless, cms, low-code, no-code, javascript, typescript, WYSIWYG |

## Links

- npm: https://www.npmjs.com/package/@puckeditor/core
- Repository: https://github.com/puckeditor/puck
- Homepage: https://puckeditor.com
- Issues: https://github.com/puckeditor/puck/issues
- npm.io page: https://npm.io/package/@puckeditor/core

## Dependencies (36)

- [flat](https://npm.io/package/flat.md) ^5.0.2
- [zustand](https://npm.io/package/zustand.md) ^5.0.3
- [deep-diff](https://npm.io/package/deep-diff.md) ^1.0.2
- [happy-dom](https://npm.io/package/happy-dom.md) ^20.0.10
- [@tiptap/pm](https://npm.io/package/@tiptap/pm.md) ^3.11.1
- [fast-equals](https://npm.io/package/fast-equals.md) 5.2.2
- [object-hash](https://npm.io/package/object-hash.md) ^3.0.0
- [@dnd-kit/dom](https://npm.io/package/@dnd-kit/dom.md) 0.4.0
- [@tiptap/core](https://npm.io/package/@tiptap/core.md) ^3.11.1
- [@tiptap/html](https://npm.io/package/@tiptap/html.md) ^3.11.1
- [use-debounce](https://npm.io/package/use-debounce.md) ^9.0.4
- [@tiptap/react](https://npm.io/package/@tiptap/react.md) ^3.11.1
- [@dnd-kit/react](https://npm.io/package/@dnd-kit/react.md) 0.4.0
- [@dnd-kit/state](https://npm.io/package/@dnd-kit/state.md) 0.4.0
- [@dnd-kit/helpers](https://npm.io/package/@dnd-kit/helpers.md) 0.4.0
- [@dnd-kit/abstract](https://npm.io/package/@dnd-kit/abstract.md) 0.4.0
- [@dnd-kit/geometry](https://npm.io/package/@dnd-kit/geometry.md) 0.4.0
- [react-hotkeys-hook](https://npm.io/package/react-hotkeys-hook.md) ^4.6.1
- [@tiptap/extension-bold](https://npm.io/package/@tiptap/extension-bold.md) ^3.11.1
- [@tiptap/extension-code](https://npm.io/package/@tiptap/extension-code.md) ^3.11.1
- [@tiptap/extension-link](https://npm.io/package/@tiptap/extension-link.md) ^3.11.1
- [@tiptap/extension-list](https://npm.io/package/@tiptap/extension-list.md) ^3.11.1
- [@tiptap/extension-text](https://npm.io/package/@tiptap/extension-text.md) ^3.11.1
- [@radix-ui/react-popover](https://npm.io/package/@radix-ui/react-popover.md) ^1.1.15
- [@tanstack/react-virtual](https://npm.io/package/@tanstack/react-virtual.md) ^3.13.9
- [@tiptap/extension-italic](https://npm.io/package/@tiptap/extension-italic.md) ^3.11.1
- [@tiptap/extension-strike](https://npm.io/package/@tiptap/extension-strike.md) ^3.11.1
- [@tiptap/extension-heading](https://npm.io/package/@tiptap/extension-heading.md) ^3.11.1
- [@tiptap/extension-document](https://npm.io/package/@tiptap/extension-document.md) ^3.11.1
- [@tiptap/extension-paragraph](https://npm.io/package/@tiptap/extension-paragraph.md) ^3.11.1
- [@tiptap/extension-underline](https://npm.io/package/@tiptap/extension-underline.md) ^3.11.1
- [@tiptap/extension-blockquote](https://npm.io/package/@tiptap/extension-blockquote.md) ^3.11.1
- [@tiptap/extension-code-block](https://npm.io/package/@tiptap/extension-code-block.md) ^3.11.1
- [@tiptap/extension-hard-break](https://npm.io/package/@tiptap/extension-hard-break.md) ^3.11.1
- [@tiptap/extension-text-align](https://npm.io/package/@tiptap/extension-text-align.md) ^3.11.1
- [@tiptap/extension-horizontal-rule](https://npm.io/package/@tiptap/extension-horizontal-rule.md) ^3.11.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.23.0 (latest) — 2026-08-07
- 0.24.0-canary.7e5dc3e8 (canary) — 2026-10-22
- 0.24.0-canary.a949a025 — 2026-10-22
- 0.24.0-canary.1839d14a — 2026-10-21
- 0.24.0-canary.c1e183e7 — 2026-10-21
- 0.24.0-canary.88f0052e — 2026-10-15
- 0.24.0-canary.dc29b7d9 — 2026-10-15
- 0.24.0-canary.c842cd0b — 2026-10-14
- 0.24.0-canary.574471f5 — 2026-10-13
- 0.24.0-canary.adfed6c4 — 2026-10-12
- 0.24.0-canary.148f3cdd — 2026-10-12
- 0.24.0-canary.10b39dc7 — 2026-10-12
- 0.24.0-canary.924c1e20 — 2026-10-09
- 0.24.0-canary.333a9ed8 — 2026-10-09
- 0.24.0-canary.b43f36c1 — 2026-10-07
- … 155 more at https://npm.io/package/@puckeditor/core/versions

## README

<br /><br /><br />

<div align="center">

<a href="https://puckeditor.com?utm_source=readme&utm_medium=code&utm_campaign=repo&utm_contents=logo">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://res.cloudinary.com/die3nptcg/image/upload/Puck_Logo_White_RGB_j2rwgg.svg" height="100px" aria-label="Puck logo">
    <img src="https://res.cloudinary.com/die3nptcg/image/upload/Puck_Logo_Black_RGB_dqsjag.svg" height="100px" aria-label="Puck logo">
  </picture>
</a>

_The visual editor for React_

[Documentation](https://puckeditor.com/docs?utm_source=readme&utm_medium=code&utm_campaign=repo&utm_contents=docs_link) • [Demo](https://demo.puckeditor.com/edit?utm_source=readme&utm_medium=code&utm_campaign=repo&utm_contents=demo_link) • [Discord](https://discord.gg/V9mDAhuxyZ) • [Contributing](https://github.com/puckeditor/puck/blob/main/CONTRIBUTING.md)

⭐️ Enjoying Puck? Please [leave a star](https://github.com/puckeditor/puck)!

<br />

[![GIF showing a page being created in the Puck Editor, with components being added, arranged, and customized in real time](https://github.com/user-attachments/assets/25e1ae25-ca5e-450f-afa0-01816830b731)](https://demo.puckeditor.com/edit)

</div>

## What is Puck?

Puck is a modular, open-source visual editor for React.js. You can use Puck to build custom drag-and-drop experiences with your own application and React components.

Because Puck is just a React component, it plays well with all React.js environments, including Next.js. You own your data and there’s no vendor lock-in.

Puck is also [licensed under MIT](https://github.com/puckeditor/puck?tab=MIT-1-ov-file#readme), making it suitable for both internal systems and commercial applications.

## Quick start

Install the package:

```sh
npm i @puckeditor/core --save # or npx create-puck-app my-app
```

Render the editor:

```jsx
// Editor.jsx
import { Puck } from "@puckeditor/core";

// Create Puck component config
const config = {
  components: {
    HeadingBlock: {
      fields: {
        children: {
          type: "text",
        },
      },
      render: ({ children }) => {
        return <h1>{children}</h1>;
      },
    },
  },
};

// Describe the initial data
const initialData = {};

// Save the data to your database
const save = (data) => {};

// Render Puck editor
export function Editor() {
  return <Puck config={config} data={initialData} onPublish={save} />;
}
```

Render the page:

```jsx
// Page.jsx
import { Render } from "@puckeditor/core";

export function Page() {
  return <Render config={config} data={data} />;
}
```

## Recipes

Use `create-puck-app` to quickly spin up a a pre-configured app based on our provided [recipes](https://github.com/puckeditor/puck/tree/main/recipes):

```sh
npx create-puck-app my-app
```

Available recipes include:

- [**next**](https://github.com/puckeditor/puck/tree/main/recipes/next): Next.js example, using App Router and static page generation
- [**react-router**](https://github.com/puckeditor/puck/tree/main/recipes/react-router): React Router v7 app example, using dynamic routes to create pages at any level

## Community

- [Discord server](https://discord.gg/D9e4E3MQVZ) for discussions
- [awesome-puck](https://github.com/puckeditor/awesome-puck) community repo for plugins, custom fields & more

## Get support

If you have any questions about Puck, please open a [GitHub issue](https://github.com/puckeditor/puck/issues) or join us on [Discord](https://discord.gg/D9e4E3MQVZ).

Or [book a discovery call](https://app.cal.com/chrisvxd/puck-enquiry/) for hands-on support and consultancy.

## License

MIT © [The Puck Contributors](https://github.com/puckeditor/puck/graphs/contributors)

---
_Source: https://npm.io/package/@puckeditor/core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
