GitHunt
MO

morinokami/starlight-dot-md

A Starlight plugin that serves your docs (.md, .mdx, .mdoc) as raw markdown for AI agents.

starlight-dot-md

A Starlight plugin that serves your docs (.md, .mdx, .mdoc) as raw markdown for AI agents.

Usage

Install the package:

npm install starlight-dot-md@latest

Add the plugin to your Astro config:

import starlight from "@astrojs/starlight";
import { defineConfig } from "astro/config";
import starlightDotMd from "starlight-dot-md";

export default defineConfig({
  integrations: [
    starlight({
      // ...
      plugins: [starlightDotMd()],
    }),
  ],
});

That's it! You can now access any page's source by appending .md to its URL (e.g., for a page at /guides/example, access /guides/example.md).

For more details, see the documentation.

Languages

TypeScript100.0%

Contributors

MIT License
Created July 23, 2025
Updated February 21, 2026
morinokami/starlight-dot-md | GitHunt