OpenAPI

EmDash CMS plugin that generates a collection-aware OpenAPI 3.1 document and serves Swagger UI and Scalar API references.

Plugin

OpenAPI

EmDash CMS plugin that generates a collection-aware OpenAPI 3.1 document and serves Swagger UI and Scalar API references.

  • Category: Integrations
  • Status: available
  • Version: 0.1.1
  • Price: Unknown
  • Source: npm package
  • Install method: Native npm integration
  • Verified: 2026-11-01
  • Compatibility: EmDash >=1.0.0
  • Maintainer: yaamin

EmDash CMS plugin that generates a collection-aware OpenAPI 3.1 document and serves Swagger UI and Scalar API references.

Installation

Install the package from npm:

npm install emdash-plugin-openapi

Register the plugin in your Astro config:

// astro.config.mjs
import { defineConfig } from "astro/config";
import emdash from "emdash/astro";
import { openapiPlugin } from "emdash-plugin-openapi";
import { openapiDocs } from "emdash-plugin-openapi/docs";

export default defineConfig({
  integrations: [
    emdash({
      // ...database, storage, etc.
      plugins: [openapiPlugin()],
    }),
    openapiDocs(), // optional: Scalar + Swagger UI at /api-docs
  ],
});

Details