Skip to content

Installing Plugins

EmDash plugins can be installed in two ways: from the marketplace via the admin dashboard, or added directly in your Astro configuration. Marketplace plugins always run sandboxed; config-based plugins run sandboxed or in-process depending on which array they’re declared in (sandboxed: [] vs plugins: []).

The admin dashboard includes a marketplace browser where you can search, install, and manage plugins.

To install marketplace plugins, your site needs:

  1. Sandbox runner configured — Marketplace plugins run in an isolated runtime, which requires the sandbox runner. The following configuration enables it:

    astro.config.mjs
    import { defineConfig } from "astro/config";
    import emdash from "emdash/astro";
    export default defineConfig({
    integrations: [
    emdash({
    marketplace: "https://marketplace.emdashcms.com",
    sandboxRunner: "@emdash-cms/sandbox-cloudflare",
    }),
    ],
    });
  2. Admin access — Only administrators can install or remove plugins.

  1. Open the admin panel and navigate to Plugins > Marketplace
  2. Browse or search for a plugin
  3. Click the plugin card to see its detail page — README, screenshots, capabilities, and security audit results
  4. Click Install
  5. Review the capability consent dialog — this shows what the plugin will be able to access
  6. Confirm the installation

The plugin will be downloaded, stored in your site’s R2 bucket, and loaded into the sandbox runner. It’s active immediately.

Before installation, you’ll see a dialog listing what the plugin needs access to:

CapabilityWhat it means
content:readRead your content
content:writeCreate, update, and delete content
media:readAccess your media library
media:writeUpload and manage media
network:requestMake network requests to specific hosts

Every plugin version in the marketplace has been through an automated security audit. The audit verdict appears on the plugin card:

  • Pass — No issues found
  • Warn — Minor concerns flagged (review the findings)
  • Fail — Significant security issues detected

You can view the full audit report on the plugin’s detail page, including individual findings and their severity.

When a newer version of an installed plugin is available:

  1. Go to Plugins in the admin panel
  2. Marketplace plugins show an Update available badge
  3. Click Update to see the changelog and any capability changes
  4. If the new version requires additional capabilities, you’ll see a diff and need to approve
  5. Confirm to update
  1. Go to Plugins in the admin panel
  2. Click the marketplace plugin you want to remove
  3. Click Uninstall
  4. Choose whether to keep or delete the plugin’s stored data
  5. Confirm

The plugin’s sandbox code is removed from your R2 bucket and it stops running immediately.

Native plugins — your own code, or packages installed via npm — are added directly to the Astro config. The following example registers the SEO plugin:

astro.config.mjs
import { defineConfig } from "astro/config";
import emdash from "emdash/astro";
import seoPlugin from "@emdash-cms/plugin-seo";
export default defineConfig({
integrations: [
emdash({
plugins: [
seoPlugin({ generateSitemap: true }),
],
}),
],
});

Native plugins:

  • Run in-process (not sandboxed)
  • Have full access to Node.js APIs
  • Are loaded at build time and on every server start
  • Cannot be installed or removed from the admin UI

Marketplace vs. config — when to use which

Section titled “Marketplace vs. config — when to use which”
Marketplace (sandboxed)Config (native or in-process sandboxed)
Install methodOne-click in admin UICode change + npm install + deploy
ExecutionSandbox runtime via the configured runnerIn-process (or sandboxed if listed under sandboxed: [] and a runner is available)
CapabilitiesEnforced by the sandbox bridge — ctx.* gating plus runtime isolationctx.* gating only (in-process plugins can bypass via direct fetch(), env, imports)
Node.js APIsNot availableFull access (in-process only)
React admin pagesNo (Block Kit instead)Yes (native plugins)
PT rendering componentsNoYes (native plugins)
UpdatesOne-click in adminVersion bump + deploy
Best forMost pluginsPlugins needing build-time integration