Hands holding a tablet beside an open laptop at a round table, banner image on the Docs site page

Template - App starter - About 30 minutes

Docs site

App starter: markdown docs with sidebar navigation and search

What ships inside

1

Markdown docs with sidebar navigation and search

2

Versioned pages so v1 docs survive v2 launches

3

Code blocks with copy buttons and syntax highlighting

4

Edit-this-page links into your repo

Install

Step 1

Write the quickstart page first and test it by following it yourself on a clean machine.

Step 2

Structure navigation around tasks, not your code's module layout.

Step 3

Turn on search and check it finds your own quickstart by a keyword, not its title.

A worked example

A developer ships docs for a small API. Quickstart written first, tested on a clean machine. Sample structure (example).

SectionOrganized byCheck
QuickstartTask: 'Make your first call'Follow it on a clean machine
GuidesTask: 'Handle errors', 'Paginate'Each ends with a working snippet
ReferenceEndpointsCode blocks have copy buttons
v1 / v2Version switcherv1 pages still reachable after v2 launch

The numbers shown are examples. Swap in your own.

Done looks like

  • Search finds the quickstart by a keyword, not its title
  • Edit-this-page links open the right file in the repo
  • Old version pages still load

Mistakes to avoid

  • Organizing navigation by code modules
  • Never running your own quickstart
  • Skipping version folders until v2 breaks v1

What it connects

Github · Vercel

Each connector page describes what it does.

Get this template

Download the starter (zip) - a real, dependency-free Node app (v0.2.0): boots with npm start, passes npm test (boot, health check, sign-in, per-account data separation, CSRF, session expiry, login throttle and, for the billing starter, signed-webhook checks). External services run in clearly labeled mock mode until you add keys from the annotated .env.example.

Security upgrade notice. Earlier downloads of this starter had an open data API, shared data between accounts and a default or printed login. Check your ZIP's SHA-256 (first 16 characters): v0.1.0 (first release) f3349534ae92df47; v0.1.1 (interim fix, Nov 28 00:19-00:3x HST) ad53ad0db60a1ee3. If yours matches, replace it with this version and follow SECURITY-UPGRADE.md inside the new ZIP; your data is not touched by this site.

Related playbook: Add an API to your product

All templates

Questions about this template

How long does Docs site take to set up?

Plan for about 30 minutes for the first run. The install steps above are in order, and the worked example shows what a finished setup looks like with example data.

How does it work?

The starter is built to be followed step by step. Every step is readable on this page and in the linked playbook, and the Github, Vercel connector pages cover the services involved.

What should I do first?

Write the quickstart page first and test it by following it yourself on a clean machine.

Other templates that use the same services: SaaS starter · Landing + waitlist · Directory site

The playbook behind this template

This template follows Add an API to your product. The same steps, with the free tool that does each one.

Step 1 of 5

Survey support tickets for 'can I export/sync/automate' requests - that is your endpoint list, ranked.

Step 2 of 5

Design the resources and verbs with api-endpoint-designer; keep it boringly RESTful unless you have a specific reason.

Use API Endpoint Designer. Name a resource and get a REST endpoint plan - routes, methods, status codes, example payloads - plus an OpenAPI 3 YAML export.

Step 3 of 5

Stand the routes up against mock data first with mock-api-runner and let one friendly integrator bang on it before real data is exposed.

Use Mock API Runner. Define routes - method, path, status, JSON body - and dry-run requests against them in the browser.

Step 4 of 5

Add token auth with per-token scopes and rate limits from day one; retrofitting limits angers everyone.

Step 5 of 5

Publish the docs page with working copy-paste examples you have personally run through http-request-builder.

Use HTTP Request Builder. Build an HTTP request, check it for mistakes, and copy it as curl, fetch, Python requests or Node code.

Free tools you can use with it

These run in your browser with no account.

API Endpoint Designer

Describe a resource - its fields and their types - and get a full REST surface: collection and item routes, status codes, validation errors, example JSON, and an OpenAPI 3 YAML export ready for docs tooling.

  • Full CRUD surface. List with pagination, create, read, update, delete - with the right status codes for each.
  • Typed fields. string, number, boolean, date, enum - they drive the example payloads and schema.
  • OpenAPI 3 export. The YAML drops into Swagger UI, Postman or your docs pipeline.
  • Conventions stated. Naming, filtering and error-shape decisions are explicit, so a team can argue with them.

Real output from the tool

YOU ENTER:
Resource name (singular)
invoice
Fields (name | type | required)
number | string | required
customer_email | string | required
amount_cents | number | required
currency | string | required
due_date | date
paid | boolean

THE TOOL RETURNS:
GET /invoices  ->  200 - List, paginated with limit + cursor
POST /invoices  ->  201 / 422 - Create; 422 returns field-level errors
GET /invoices/{id}  ->  200 / 404 - Read one
PATCH /invoices/{id}  ->  200 / 422 - Partial update
DELETE /invoices/{id}  ->  204 - Delete
Example invoice

Mock API Runner

Define the API you are about to build - one route per block: method, path, status, JSON body - then fire requests at it in the page and see exactly what your front end will receive, before the backend exists.

  • Block route definitions. Method, path, status and JSON body per block; path params with :id syntax.
  • Real request matching. Method + path matching with params extracted and shown.
  • Latency simulation. A configurable delay makes loading states testable.
  • Fetch snippets. Each route generates the exact fetch() call for your front end.

Real output from the tool

YOU ENTER:
Input
GET /users 200
{"users":[{"id":1,"name":"Priya"},{"id":2,"name":"Dan"}]}
GET /users/:id 200
{"id":1,"name":"Priya","plan":"pro"}
POST /users 201
{"id":3,"created":true}
GET /health 200
{"ok":true}
Simulated latency (ms)
120
Input
GET Input  ->  /users/2

THE TOOL RETURNS:
fetch('/users', {method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify({/* request body */})})
.then(r => r.text().then(t => t ? JSON.parse(t) : null));

HTTP Request Builder

Pick a method, enter the URL, add query parameters, headers, auth and a body. The tool flags problems, then writes the same request in four languages. Sending is a separate button, off by default, and it tells you what leaves your browser.

    Services this template touches

    Each connector page shows whether it is available yet.

    GitHub

    Uses:

    • New PRs get a first-pass review comment from code-explainer output.
    • Issues labeled 'docs' queue a readme or changelog update.
    • Release tags trigger the changelog-digest and a status post.

    Until it ships, set this part up by hand in GitHub.

    Vercel

    Uses:

    • Failed deployments message the team channel with the error excerpt.
    • Playbook-built sites deploy to a named project on approval.
    • Deployment events log to the run sheet with preview URLs.

    Until it ships, set this part up by hand in Vercel.

    More questions

    API Endpoint Designer: Auth?

    The export declares a bearer token scheme; implement it in your server.

    API Endpoint Designer: Nested resources?

    Design each resource separately, then reference them.

    Mock API Runner: Path params?

    Use :name in the route path; the tester extracts actual values.

    Mock API Runner: Persistent?

    Definitions live in the page; copy them out to keep them.

    A wooden desk with glasses, a coffee cup, a plant and the edge of a laptop, banner image on the Docs site page

    Start from working, not from blank.

    Each template lists what ships inside and the install steps.