EmDash glossaryA native plugin is an EmDash plugin that runs inside the site with full access. It is installed from npm and needs a redeploy.
A native plugin is an EmDash plugin that runs in the same process as the Astro site. It is an npm package: you install it, add it to astro.config.mjs, and redeploy.
When native is needed
- Custom React pages or widgets in the admin panel.
- Custom Portable Text block types with their own rendering components.
- Injecting scripts, styles, or raw HTML into public pages.
The trade-off
There is no isolation and there are no per-plugin limits: a native plugin has the same access as the site, so a bug can crash it and a malicious one can read its secrets. Treat it like code you add to the site yourself, and prefer a sandboxed plugin when one will do.