{"id":13494791,"url":"https://github.com/measuredco/puck","last_synced_at":"2025-05-06T01:15:08.902Z","repository":{"id":188705374,"uuid":"648629873","full_name":"measuredco/puck","owner":"measuredco","description":"The visual editor for React","archived":false,"fork":false,"pushed_at":"2025-05-05T10:15:21.000Z","size":4327,"stargazers_count":6600,"open_issues_count":162,"forks_count":421,"subscribers_count":41,"default_branch":"main","last_synced_at":"2025-05-06T01:15:01.228Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://puckeditor.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/measuredco.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-06-02T12:23:41.000Z","updated_at":"2025-05-05T22:03:14.000Z","dependencies_parsed_at":"2023-12-30T01:21:50.634Z","dependency_job_id":"6a8bd4fa-1dd6-421a-8044-5dda71558cc5","html_url":"https://github.com/measuredco/puck","commit_stats":{"total_commits":1045,"total_committers":36,"mean_commits":29.02777777777778,"dds":"0.12822966507177036","last_synced_commit":"18657a484bf6a9ced061103579a056462896181a"},"previous_names":["measuredco/puck"],"tags_count":46,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/measuredco%2Fpuck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/measuredco%2Fpuck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/measuredco%2Fpuck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/measuredco%2Fpuck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/measuredco","download_url":"https://codeload.github.com/measuredco/puck/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252601893,"owners_count":21774665,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T19:01:28.307Z","updated_at":"2025-05-06T01:15:08.889Z","avatar_url":"https://github.com/measuredco.png","language":"TypeScript","readme":"# Puck\n\nThe visual editor for React.\n\n\u003cp align=\"left\"\u003e\n  \u003ca aria-label=\"Measured logo\" href=\"https://measured.co\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/MADE%20BY%20Measured-000000.svg?style=for-the-badge\u0026labelColor=000\"\u003e\n  \u003c/a\u003e\n  \u003ca aria-label=\"NPM version\" href=\"https://www.npmjs.com/package/@measured/puck\"\u003e\n    \u003cimg alt=\"\" src=\"https://img.shields.io/npm/v/@measured/puck.svg?style=for-the-badge\u0026labelColor=000000\"\u003e\n  \u003c/a\u003e\n  \u003ca aria-label=\"License\" href=\"https://github.com/measuredco/puck/blob/main/LICENSE\"\u003e\n    \u003cimg alt=\"\" src=\"https://img.shields.io/npm/l/@measured/puck.svg?style=for-the-badge\u0026labelColor=000000\"\u003e\n  \u003c/a\u003e\n  \u003ca aria-label=\"Join the community on Discord\" href=\"https://discord.gg/D9e4E3MQVZ\"\u003e\n    \u003cimg alt=\"\" src=\"https://img.shields.io/badge/Join%20the%20Discord-blueviolet.svg?style=for-the-badge\u0026logo=Discord\u0026labelColor=000000\u0026logoWidth=20\"\u003e\n  \u003c/a\u003e\n \u003ca aria-label=\"Browse the awesome-puck community repo\" href=\"https://github.com/measuredco/awesome-puck\"\u003e\n    \u003cimg alt=\"\" src=\"https://img.shields.io/badge/repo-awesome--puck-fc60a8.svg?style=for-the-badge\u0026labelColor=000000\u0026logoWidth=20\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Demo\n\nVisit https://demo.puckeditor.com/edit to try the demo.\n\n## Documentation\n\nVisit https://puckeditor.com to view the full documentation.\n\n## Quick start\n\nInstall the package:\n\n```sh\nnpm i @measured/puck --save # or npx create-puck-app my-app\n```\n\nRender the editor:\n\n```jsx\n// Editor.jsx\nimport { Puck } from \"@measured/puck\";\nimport \"@measured/puck/puck.css\";\n\n// Create Puck component config\nconst config = {\n  components: {\n    HeadingBlock: {\n      fields: {\n        children: {\n          type: \"text\",\n        },\n      },\n      render: ({ children }) =\u003e {\n        return \u003ch1\u003e{children}\u003c/h1\u003e;\n      },\n    },\n  },\n};\n\n// Describe the initial data\nconst initialData = {};\n\n// Save the data to your database\nconst save = (data) =\u003e {};\n\n// Render Puck editor\nexport function Editor() {\n  return \u003cPuck config={config} data={initialData} onPublish={save} /\u003e;\n}\n```\n\nRender the page:\n\n```jsx\n// Page.jsx\nimport { Render } from \"@measured/puck\";\nimport \"@measured/puck/puck.css\";\n\nexport function Page() {\n  return \u003cRender config={config} data={data} /\u003e;\n}\n```\n\n## Recipes\n\nUse `create-puck-app` to quickly spin up a a pre-configured app based on our provided [recipes](https://github.com/measuredco/puck/tree/main/recipes):\n\n```sh\nnpx create-puck-app my-app\n```\n\nAvailable recipes include:\n\n- [**next**](https://github.com/measuredco/puck/tree/main/recipes/next): Next.js example, using App Router and static page generation\n- [**remix**](https://github.com/measuredco/puck/tree/main/recipes/remix): Remix Run v2 example, using dynamic routes at root-level\n- [**react-router**](https://github.com/measuredco/puck/tree/main/recipes/react-router): React Router v7 app example, using dynamic routes to create pages at any level\n\n## Community\n\n- [Discord server](https://discord.gg/D9e4E3MQVZ) for discussions\n- [awesome-puck](https://github.com/measuredco/awesome-puck) community repo for plugins, custom fields \u0026 more\n\n## Get support\n\nIf you have any questions about Puck, please open a [GitHub issue](https://github.com/measuredco/puck/issues) or join us on [Discord](https://discord.gg/D9e4E3MQVZ).\n\nOr [book a discovery call](https://app.cal.com/chrisvxd/puck-enquiry/) for hands-on support and consultancy.\n\n## License\n\nMIT © [Measured Corporation Ltd](https://measured.co)\n","funding_links":[],"categories":["TypeScript","Uncategorized","UI Components","Selfhosted","Resources","Web Development and Tools"],"sub_categories":["Uncategorized","Miscellaneous","Sevelt Libraries"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeasuredco%2Fpuck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeasuredco%2Fpuck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeasuredco%2Fpuck/lists"}