Get started

Four steps. An afternoon.

Clone the repo. Write your MDX. Run ingest. Ship.

Step 01

Clone the repo

One Next.js project. Components, ingest script, search route, and chat panel all included.

Step 02

Write your docs in MDX

Add files to content/docs/. Wrap retrievable units in <Chunk id>. 50–500 chunks is the sweet spot.

Step 03

Run ingest

npm run ingest builds data/docs.db with embeddings and metadata. Re-run any time MDX changes; it's idempotent.

Step 04

Ship

npm run build && npm start. Push to your existing static host plus a serverless runtime.

terminal · minimum viable adoption
# 1. Clone the reference
git clone https://github.com/getdoks/doks
cd doks && npm install

# 2. Edit MDX under content/docs/
$EDITOR content/docs/index.mdx

# 3. Build the index
VOYAGE_API_KEY=… npm run ingest

# 4. Ship
npm run build && npm start
What's in the box

Built end-to-end.

Everything below is wired and shipping in v0.1.

MIT · OPEN SOURCE

Read the source. Fork it. Ship it.

doks is a public pattern, released under MIT. There is no company behind it, no email list to join, and nothing to install beyond a Next.js project. Take it and make your docs answer questions.