Skip to content



turbo-start-brain

Our open-source docs and knowledge base template. Next.js and Sanity in one monorepo, with search, an Ask AI assistant, and every page served as Markdown.

entry 04 of 17 · starter · updated 2026-10-19



What it is

turbo-start-brain is the template we use for documentation and internal knowledge bases. It pairs a Next.js 16 docs site with Sanity Studio 6 in a single pnpm and Turborepo monorepo, on React 19 and Tailwind CSS v4. Every page, the navigation, and the site branding live in Sanity, so the people who write the docs can publish them without opening a pull request. You can see it running at turbo-start-brain.vercel.app (opens in new tab).

Pages nest by slug, so /engineering/stack sits under /engineering, and the sidebar tree, breadcrumbs, and previous and next links are all built from that one structure. Move a page in Studio and the navigation follows. Change a slug and a redirect is created for the old URL.

It's also built to be read by AI tools, not just people. Any page can be fetched as Markdown by adding .md to the URL or sending Accept: text/markdown, and /llms.txt lists every page. That makes it a good source for coding agents and chat assistants that need your team's docs as context.

What you get

  • A docs layout with a collapsible sidebar, a table of contents that tracks the section on screen, and light, dark, and system themes.
  • ⌘K search across titles, descriptions, and body text, running locally over your published docs with no external search service.
  • An optional Ask AI dialog that answers only from a Sanity Context Knowledge Base and links each answer back to the page it came from.
  • Markdown versions of every page, a "Copy as markdown" button, and a generated llms.txt.
  • Page builder blocks for rich text and FAQ accordions, each with its own schema, query, component, Markdown serializer, and tests.
  • Visual editing and Presentation, live preview, and redirects managed in Studio.

How to use it

Clone the repo and install with pnpm. You'll need Node 22.12 or later and a Sanity account.

bash
git clone https://github.com/robotostudio/turbo-start-brain.git
cd turbo-start-brain
corepack enable
pnpm install

Create a Sanity project, add a Viewer token as SANITY_API_READ_TOKEN, and add http://localhost:3000 and http://localhost:3333 as CORS origins with credentials allowed. Then copy the .env.example files in apps/web and apps/studio and run pnpm dev. The web app checks its environment on startup, so it won't run until the Sanity values are set.

How we use it

We moved our own internal docs onto it, and it's where we start when a client needs a docs site or a knowledge base their team can edit. It shares its structure with turbo-start-sanity, so anyone who has worked on one of our Sanity builds will recognise the layout.



Common questions

FAQs

What people ask before picking up turbo-start-brain

What is this for, docs or an internal knowledge base?
Both. It is a Next.js 16 docs site paired with Sanity Studio 6 in one pnpm and Turborepo monorepo, and we moved our own internal docs onto it. There is a live instance at turbo-start-brain.vercel.app.
Do writers need a pull request to publish?
No. Every page, the navigation and the site branding live in Sanity, so the people writing the docs publish without opening a pull request.
How does the navigation stay in order as the docs grow?
Pages nest by slug, so /engineering/stack sits under /engineering, and the sidebar tree, breadcrumbs and previous and next links all build from that one structure. Move a page in Studio and the navigation follows; change a slug and a redirect is created for the old URL.
Can AI tools and coding agents read the docs?
That is a design goal. Any page can be fetched as Markdown by adding .md to the URL or sending an Accept: text/markdown header, and /llms.txt lists every page, which makes it a usable context source for coding agents and chat assistants.
Is the search hosted somewhere I have to pay for?
No. Command-K search runs locally over your published docs, across titles, descriptions and body text, with no external search service. The Ask AI dialog is separate and optional, and answers only from a Sanity Context Knowledge Base, linking each answer back to its page.


Get in touch

Tell us what you're building. We reply within one working day. Jono or someone on the team picks up every message personally.

By sending this you agree to our privacy policy. We only use your details to reply.