Vibecode GitBook

track this build5 phases, 10 steps, beginner friendly
KINDA · weekend project
price $65/moyou'd save $780/yrbuild time weekendcategory 📄 documents & pdfsreplaced by 0 people

A docs site from Markdown with search, versioning and a custom domain is a weekend with Docusaurus or Starlight, and many teams already do it for free. The visual editor for non-engineers and the AI assistant over your docs are what $65 buys, and the editor is the part a weekend does not produce.

the project pack5 files · written for this build, step by step
README.md
# GitBook · indie build

A documentation site from Markdown in a repo: Starlight for the site, Pagefind for search, versions and redirects from your old URLs, an edit-in-browser path that opens a pull request with a preview deploy, and a feedback widget. The visual editor and AI assistant stay with GitBook; the docs come home.

Estimated effort: **weekend**. Work `BUILD_PLAN.md` top to bottom · every phase ends in a check that has to pass before the next one starts.

## Stack

| Part | Choice | Why |
| --- | --- | --- |
| Framework | Astro with Starlight | documentation-shaped out of the box |
| Search | Pagefind at build time | static, no service |
| Hosting | A static host with preview deploys | the PR flow depends on previews |

## Before you start

Have every one of these ready. The plan assumes them from step one.

- [ ] **Node.js 22 or newer** · free
  - Why: Everything in this build runs on it: the server, the scripts, the tests.
  - Get it: Download the LTS installer from nodejs.org, or install with your package manager (brew install node, or nvm install 22). Restart the terminal afterwards.
  - Verify: node --version prints v22 or higher
- [ ] **A terminal and a code editor** · free
  - Why: Every step below is a command you type or a file you edit.
  - Get it: VS Code (code.visualstudio.com), Cursor or Zed. Open a folder for the project and use the editor's built-in terminal.
  - Verify: You can open a folder and run a command in its terminal
- [ ] **Git** · free
  - Why: History for your code, and the way most hosts deploy.
  - Get it: Install from git-scm.com or with your package manager, then run git init in the project folder once it exists.
  - Verify: git --version prints a version
- [ ] **Your existing docs as Markdown** · free
  - Why: Phase 1 migrates real pages.
  - Get it: GitBook: enable Git Sync to a repo, or export pages one by one. Note every current URL for the redirect map.
- [ ] **A static host with preview deployments** · free
  - Why: Phase 4's edit flow shows a preview per pull request.
  - Get it: Cloudflare Pages or Netlify connected to the repository.
- [ ] **A domain or subdomain** (optional) · roughly $10 a year, or free on an existing domain
  - Why: docs.yourdomain.com
  - Get it: Register at Cloudflare Registrar, Porkbun or Namecheap, or use a subdomain of one you already own. You add one DNS record in the deploy phase.
- [ ] **Where feedback goes** · free
  - Why: Phase 5 adds a widget; it needs a destination.
  - Get it: A tiny endpoint (see the Formspree entry on this site) or a hosted form.

## Quick start

```sh
npm create astro@latest docs -- --template starlight --install --git
cd docs
```

Then copy `.env.example` to `.env` and fill in the values it documents.

## Honest limits

This build deliberately does not replace:

- The block editor, the AI assistant, in-browser review workflow.
- the block-based visual editor for non-developers
- the AI assistant over your docs
- change requests and review workflow in the browser
- analytics and feedback built in

If one of those is essential to you, that is the reason to keep paying for GitBook, and the README should say so rather than pretend.

$ choose a build depth, inspect the files, then open the complete pack in your agent

why people still pay

Because the people who should write docs do not open pull requests, and $65 a month is cheaper than making them.

what you lose

xthe block-based visual editor for non-developers

xthe AI assistant over your docs

xchange requests and review workflow in the browser

xanalytics and feedback built in

prior art · use these instead of building, if you'd ratherStarlightdocumentation framework on AstroDocusaurusdocumentation site generator
share on X ↗"I just replaced GitBook ($65/mo) with one prompt"
the numbers

GitBook pricing

premium$65/mo · monthly per site · $780/yr

free tierThe free plan publishes a docs site with Git sync but no custom domain or AI search.

verified 2026-09-04 · source ↗

questions
Is GitBook free?

The free plan publishes a docs site with Git sync but no custom domain or AI search. Paid is Premium at $65/mo (checked 2026-09-04).

Vibecode GitBook

Kinda. The core of GitBook is buildable in a weekend with the prompt on this page, but there are real gaps: the block-based visual editor for non-developers, the AI assistant over your docs. Read the honest list above before committing.

How much does GitBook cost?

GitBook costs about $65/month (Premium, checked 2026-09-04), which is $780 per year.

What do I lose by replacing GitBook?

Honestly: the block-based visual editor for non-developers; the AI assistant over your docs; change requests and review workflow in the browser; analytics and feedback built in. If any of those are load-bearing for you, keep paying.

Is there an open-source alternative to GitBook?

Yes: Starlight (documentation framework on Astro), Docusaurus (documentation site generator). Using prior art is also vibecoding; the prompt is for when you want it exactly your way.