# Puck Visual Editor

> The Puck visual editor as an EmDash field widget: edit any JSON field as a page layout, render it on the public site, pick images from the media library and optionally use Puck AI.

Source: https://emdashcmseverything.com/plugins/puck/

- Category: Editor Experience
- Status: available
- Version: 0.3.0
- Price: Unknown
- Compatibility: EmDash >=0.35.0 <2.0.0
- License: MIT
- Maintainer: Marko Stankovic
- Download: https://www.npmjs.com/package/emdash-plugin-puck
- Repository: https://github.com/markoinla/emdash-plugin-puck
- Published: 2026-11-01

The Puck visual editor as an EmDash field widget: edit any JSON field as a page layout, render it on the public site, pick images from the media library and optionally use Puck AI.

## Installation

Install the package from npm:

```bash
npm install emdash-plugin-puck
```

Register the plugin in your Astro config:

```js
import emdash from "emdash/astro";
import puck from "emdash-plugin-puck";

export default defineConfig({
  integrations: [
    emdash({
      plugins: [
        puck({ adminEntry: new URL("./src/puck/admin.tsx", import.meta.url).href }),
      ],
    }),
  ],
  vite: {
    optimizeDeps: {
      // Required. Add "@puckeditor/plugin-ai" if used, and every bare
      // dependency your blocks import. See "optimizeDeps" below.
      include: ["@puckeditor/core"],
    },
  },
});
```

## Details

- **Latest version:** 0.3.0
- **License:** MIT
- **Publisher:** Marko Stankovic
- **Requires:** EmDash `>=0.35.0 <2.0.0`
- **Source repository:** [https://github.com/markoinla/emdash-plugin-puck](https://github.com/markoinla/emdash-plugin-puck)
- **npm package:** [emdash-plugin-puck](https://www.npmjs.com/package/emdash-plugin-puck)
