Skip to content

docs(frontlit): api reference, plans and a v0 migration note - #884

Merged
clbotdev merged 2 commits into
platform-based-rewritefrom
docs/api-reference-and-plans
Nov 15, 2026
Merged

clbotdev merged 2 commits into
platform-based-rewritefrom
docs/api-reference-and-plans

Conversation

@clbotdev

Copy link
Copy Markdown
Contributor

Phase 1 docs for the closed beta: an API reference, plan docs, and a placeholder for moving from v0. Merging publishes to the hidden QA beta.

API reference

The spec is already committed (apps/api/openapi.json), and CI's check:drift keeps it in sync with the code. It just had no operationIds, so FrontLit would have made page URLs from operation summaries.

  • apps/api/src/openapi.ts: sets each operation's operationId to its contract key (listSections, createProduct and so on). These match the MCP tool names.
  • apps/api/openapi.json: regenerated. 281 operations, all with unique ids, about 3 MB (FrontLit's limits are 5 MiB and 500 operations).
  • apps/api/src/openapi.test.ts: checks that every operation's id is unique and equal to its contract key.

After merging, one dashboard step turns it on, because the QA MCP has no API-reference tools. Set it in FrontLit QA under Settings → Integrations → GitHub → API reference:

Setting Value
Spec path apps/api/openapi.json
URL path api

The reference then appears at /docs/api, one page per operation (/docs/api/listSections). The whole spec becomes public there. The API already serves the same document at /openapi.json. "Try it" calls https://api.courselit.app from the docs origin, so it needs a CORS change on the API. That's left for a separate PR.

Docs

Page What
/docs/getting-started/cloud-vs-self-hosted Side-by-side comparison, who each option suits, and the pre-release warning for self-hosting
/docs/getting-started/plans-and-limits Pro and Business features and limits, the free trial, and what happens when a trial or plan ends (from the plan-limits decisions)
/docs/migrate/from-courselit-v0 New Migrate to CourseLit section. A placeholder saying 1.0 moves from MongoDB to PostgreSQL and the migration guide is on the way
getting-started/index, developers/index Cards for the two new pages, and a link to /docs/api

The checker passes: check.mjs frontlit/docs --api-mount=api reports 163 routes. Moving legacy screenshots off docs.courselit.app is deferred.

Every operation in /openapi.json and the committed apps/api/openapi.json
now has an operationId equal to its contract key (listSections and so
on), matching the MCP tool names. The docs API reference uses it for
stable page URLs.
Adds Plans and limits and Cloud or self-hosted to Getting started, a
Migrate to CourseLit section with a placeholder for moving from v0, and
links the developer docs to the API reference at /docs/api.
@clbotdev
clbotdev merged commit fc94412 into platform-based-rewrite Nov 15, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants