Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

puck

> 前端框架
Open source

The visual editor for React.

13.0K stars0 likes1 views
WebsiteGitHub

About

The visual editor for React.




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, making it suitable for both internal systems and commercial applications.

Quick start

Install the package:

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

Render the editor:

javascript
// 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:

javascript
// 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:

bash
npx create-puck-app my-app

Available recipes include:

  • next: Next.js example, using App Router and static page generation
  • react-router: React Router v7 app example, using dynamic routes to create pages at any level

Community

  • Discord server for discussions
  • awesome-puck community repo for plugins, custom fields & more

Get support

If you have any questions about Puck, please open a GitHub issue or join us on Discord.

Or book a discovery call for hands-on support and consultancy.

License

MIT © The Puck Contributors

Issues· 198 open

View all issuesOpen on GitHub
  • #64

    Add fieldsets and tabs to fields API

    readytype: featureUpdated Sep 28, 2026
  • #1846

    Backspace and Delete do not edit text inputs in interactive mode

    readytype: bug 🐛Updated Sep 28, 2026
  • #1829

    0.23: canvas per-item overlay (Duplicate/Delete, overrides.actionBar) never mounts, though selection state updates correctly

    type: bug 🐛in triageUpdated Sep 17, 2026
  • #1830

    0.21.0: sidebar text field renders its <input> twice with the same id (duplicate DOM ids, breaks label association)

    readytype: bug 🐛Updated Sep 17, 2026
  • #1836

    Dropping a Drawer item into a nested slot inserts into the parent zone while the pointer moves (onDragOver cancels the area-change debounce)

    type: bug 🐛in triageUpdated Sep 17, 2026
  • #1834

    AutoField unconditionally overrides custom id prop instead of falling back like AutoFieldInternal

    type: bug 🐛in triageUpdated Sep 17, 2026
  • #996

    Support CSS positioning for draggable components

    type: featurein triageUpdated Sep 8, 2026
  • #1817

    Support partial slot overrides for array field UI

    type: featurein triageUpdated Aug 28, 2026
  • #1816

    Allow multiple array items open simultaneously

    type: featurein triageUpdated Aug 28, 2026
  • #1285

    Support setting permissions programmatically

    type: featurein triageUpdated Aug 27, 2026

> Tags

TypeScriptaibuilderdrag-and-dropdraganddrop

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架