Skip to content

[Website] Repoint the TypeScript and Python guides to the template repositories #1184

Description

@SnowboardTechie

Summary

website/src/content/docs/guides/using-typescript.mdx scaffolds with cg init --template express-js and using-python.mdx with cg init --template fast-api. ADR 0029 (#1089) retires cg init and replaces the monorepo templates with maintained standalone repositories.

Rewrite both guides to start from the maintained template repositories under the common-grants org (common-grants/cg-api-template-express, common-grants/cg-api-template-hono, common-grants/cg-api-template-fastapi) and explain how the SDK and plugin boundaries connect existing data to CommonGrants. The TypeScript guide must help a reader choose between Express (#332) and Hono (#1152); the ADR lists that guidance as a consequence of keeping two TypeScript paths.

Depends on the Express, Hono, and FastAPI repositories having usable content. cg-api-template-hono exists but is README-only until #1152 is implemented. Must land before the CLI retirement release so the guides never point at a removed command.

Acceptance criteria

  • Neither guide runs cg init; each starts from its maintained template repository and works end to end
  • The TypeScript guide explains when to choose Express versus Hono
  • Both guides explain the SDK and plugin boundary for connecting existing data to CommonGrants
  • Commands for published JavaScript tools that are independent of an API template are shown in synchronized <Tabs> for pnpm, npm, and bun, with pnpm first and selected by default; every documented path is verified
  • Template setup and run instructions use the toolchain committed by the selected GitHub template. The guides do not advertise npm create, pnpm create, or bun create; a package-manager-neutral create experience is tracked separately in [Template] SPIKE: Evaluate a create package for API templates #1211
  • pnpm --filter website run build passes with valid internal links

Activity

  1. laurabelinfante commented on Sep 23, 2026

    @laurabelinfante
    Collaborator

    Placement for the Hono.js content was settled on the 9/17 huddle and noted on #1202: it should replace the existing Building a TypeScript API content directly, renamed to "Using TypeScript" to match the URL, rather than sitting as a sub-page. Replacing that page also helps unblock removing the Express.js template (#1186). The longer-term restructure of the guides by task and language is out of scope here.

  2. 8 remaining items

  3. moved this from In Review to In Progress in Simpler Grants Product & Deliveryon Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

documentationImprovements or additions to documentationwebsiteIssues related to the website

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions