The open-source documentation site for Scalekit — the enterprise auth platform for B2B SaaS teams.
Built with Astro + Starlight. Deployed on Netlify. Contributions very welcome.
This repository is the source for docs.scalekit.com — the official developer documentation for Scalekit, a complete auth stack for AI apps; be it SSO, SCIM, MCP, Agents or full-stack authentication.
Everything here — pages, guides, API references, SDK code examples, architecture concepts — lives as MDX files, rendered by the Astro + Starlight framework, and deployed continuously on Netlify. If you spot something wrong, incomplete, or missing, a pull request is always welcome.
- Multi-language SDK examples — every code sample covers Node.js, Python, Go, and Java
- Interactive API Reference — powered by Scalar, rendered live from the OpenAPI spec
- Full-text search + AI Ask — via Algolia DocSearch with conversational AI mode
- Diagram-as-code — architecture diagrams authored in D2 and rendered at build time
- LLMs.txt support — machine-readable docs index for AI assistants and agents
- Edit on GitHub — every published page links directly back to its source MDX file
- Dark / Light mode — with per-session persistence across page navigations
developer-docs/
├── src/
│ ├── content/ # All MDX documentation pages
│ ├── components/ # Astro, React, and Vue UI components
│ ├── configs/ # Sidebar, redirects, and LLMs.txt config
│ └── styles/ # Global CSS and theme overrides
├── public/ # Static assets — images, favicons, JS widgets
├── netlify/ # Netlify serverless edge functions
├── scripts/ # Build-time utilities (search indexing, git hooks)
├── docs/ # Internal contributor reference documentation
├── astro.config.mjs # Astro + Starlight site configuration
└── package.json
- Node.js ≥ 18
- pnpm ≥ 10
npm install -g pnpm# 1. Clone the repository
git clone https://github.com/scalekit-inc/developer-docs.git
cd developer-docs
# 2. Install dependencies
pnpm install
# 3. Start the dev server
pnpm devOpen http://localhost:4321. Changes to MDX files hot-reload instantly.
| Command | Description |
|---|---|
pnpm dev |
Start the site with Netlify Dev (matches deploy env) |
pnpm start |
Run Astro dev only — use when previewing D2 diagram changes |
pnpm build |
Build the production site to ./dist |
pnpm preview |
Preview the production build locally |
pnpm format |
Auto-format all .md, .mdx, .astro, .ts files |
pnpm format:check |
Check formatting without writing changes |
pnpm generate-search-index |
Regenerate the Algolia API search index |
We welcome contributions from everyone — whether it's fixing a typo, improving a code example, clarifying a concept, or adding a missing guide.
- Fork this repository and clone it locally
- Create a branch —
git checkout -b fix/my-improvement - Edit the relevant MDX files inside
src/content/ - Format your changes —
pnpm format - Open a Pull Request — every page has an "Edit this page" link that takes you directly to the right file
Before writing or editing, check:
CLAUDE.md— the single source of truth for voice, structure, document types, and all documentation standards
Key conventions at a glance:
- Write in second person — "you", "your application"
- Use present tense for descriptions, imperative for instructions
- Every page needs
title,description,sidebar.label, andtagsin its frontmatter - Code examples must cover all 4 SDK languages using
<Tabs syncKey="tech-stack">
| Layer | Technology |
|---|---|
| Framework | Astro v5 |
| Docs theme | Starlight |
| UI components | React 19, Vue 3 |
| Styling | Tailwind CSS v4 |
| API Reference | Scalar |
| Search | Algolia DocSearch + AI Ask |
| Diagrams | D2 via astro-d2 |
| Deployment | Netlify (SSR, Edge Functions) |
| Package manager | pnpm v10 |
| Formatting | Prettier + simple-git-hooks |
The site runs in SSR mode on Netlify with Edge Functions. Every push to main triggers a production deploy. Pull requests automatically generate isolated preview deployments.
Netlify runs pnpm run build (see netlify.toml). D2 is not installed on Netlify: diagram SVGs are committed under public/d2/, and the astro-d2 integration is configured with skipGeneration when the NETLIFY environment variable is set, so CI does not run the D2 CLI.
Install the D2 CLI locally (pnpm install:d2) only when you regenerate diagrams from .d2 sources or when you run a full local production build that is not using Netlify’s skip path. See CONTRIBUTING.md for how pnpm dev and pnpm start relate to diagram generation.
Environment variables required for local development are documented in .env.example.
This project is licensed under the MIT License. See LICENSE for the full text.
Have a question, idea, or just want to talk developer tooling? Come find us:
- 💬 Slack community — Join the Scalekit Community
- 🐛 Bug reports & feature requests — GitHub Issues
- 🌐 Live docs — docs.scalekit.com
- 🏠 Scalekit website — scalekit.com