@AtharvaMoves on An AI-Ready Documentation Template for Humans and AI Systems
I built Setu, an open-source documentation template for creating sites that work well for both human readers and AI systems.
Setu is built with Astro and Starlight. It supports Markdown and MDX documentation, clean navigation, searchable docs, AI-readable plain-text routes, a machine-readable document index, built-in code playgrounds, quizzes, and npm create support. The hardest part was turning the project from a content-heavy learning site into a reusable documentation template. I had to separate what belonged to the template from what was only sample content.
Another challenge was making the same source content useful in two different ways: polished pages for people, and clean plain-text output for AI tools. I also had to package the project properly so it works both as a GitHub Template and as an npm create command. I am proud that Setu is not just a visual template. It includes real developer workflow support: validation scripts, GitHub Actions, npm publishing, AI-readable output, interactive learning components, and clear open-source structure.
I am also proud that it is practical. A developer can install it, change the content, and quickly get a professional documentation or learning site online.
The easiest way to test Setu is:
npm create @rookduel/setu@latest my-site
cd my-site
npm install
npm run dev
Then open the local URL shown by Astro, usually:
http://localhost:4321
Important pages to check:
/docs/
/docs/guides/interactive-demo/
/ai/index.json
/ai/docs.txt
The normal documentation pages show the human-facing experience. The /ai/ routes show how Setu exposes cleaner text output for AI systems and retrieval workflows.
- 1 devlog
- 5h