MyGit

puckeditor/puck

Fork: 838 Star: 12130 (更新于 2026-02-14 09:15:34)

license: MIT

Language: TypeScript .

Create your own AI page builder

最后发布版本: v0.21.1 ( 2026-01-23 20:50:41)

官方网址 GitHub网址




Create your own AI page builder

DocumentationDemoDiscordContributing

⭐️ Enjoying Puck? Please leave a star!


GIF showing a page being created in the Puck Editor, with components being added, arranged, and customized in real time

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:

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

Render the editor:

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

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

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

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:

npx create-puck-app my-app

Available recipes include:

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

Community

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

最近版本更新:(数据更新于 2026-02-08 08:36:05)

2026-01-23 20:50:41 v0.21.1

2026-01-14 18:58:05 v0.21.0

2025-09-05 17:21:49 v0.20.2

2025-08-19 21:47:16 v0.20.1

2025-08-14 20:34:02 v0.20.0

2025-07-15 17:40:50 v0.19.3

2025-07-11 18:33:04 v0.19.2

2025-06-09 19:33:56 v0.19.1

2025-06-05 18:38:25 v0.19.0

2025-04-05 15:42:12 v0.18.3

主题(topics):

react ai no-code nocode drag-and-drop page-builder builder visual-editor pagebuilder draganddrop

puckeditor/puck同语言 TypeScript最近更新仓库

2026-02-18 10:43:05 QwenLM/qwen-code

2026-02-18 08:58:45 virattt/dexter

2026-02-18 08:26:18 lfnovo/open-notebook

2026-02-18 07:25:38 vercel/vercel

2026-02-18 01:17:33 code-yeongyu/oh-my-opencode

2026-02-18 00:26:00 nestjs/nest