Skip to content

[Dev tool] Create a Hono.js API template #1152

Closed

Description

@laurabelinfante

Summary

Create a Hono.js CommonGrants API template so a developer can stand up a working CommonGrants API from it. It ships in common-grants/cg-api-template-hono as a standalone GitHub template repository. ADR 0029 (#1143, merged) retires cg init, so the template does not go through the CLI.

The template keeps CI comparable to the existing Express and FastAPI templates: one job installs the committed dependencies, runs static checks, builds, tests with coverage, and performs the high/critical dependency audit. Dependency updates are deliberate and manual. The generated application does not embed the CommonGrants CLI or run cg check spec; checker discrepancies discovered during verification remain tracked in their owning upstream issues. These checks do not certify Express/FastAPI replacement readiness or authorize their removal in #1186.

This template is a prerequisite for the language-guide update (#1184) and, through that issue, CLI retirement (#1185), but does not gate the Express/FastAPI deletion ticket.

Acceptance criteria

  • A Hono.js template repo exists and generates a running CommonGrants API
  • Template integrates the TypeScript SDK for request and response validation
  • Template auto-generates an OpenAPI spec and serves it at /openapi.json
  • Ordinary CI installs locked dependencies and runs static checks, build, tests with coverage, and the high/critical dependency audit

Activity

  1. changed the title [-][Dev Tool] Create a Hono.js API template[/-] [+][Dev tool] Create a Hono.js API template[/+] on Sep 2, 2026
  2. added
    templateIssue or PR related to CommonGrants templates
    typescriptIssue or PR related to TypeScript tooling
    on Sep 10, 2026
  3. moved this from In Progress to Blocked in Simpler Grants Product & Deliveryon Sep 11, 2026
  4. moved this from Blocked to In Progress in Simpler Grants Product & Deliveryon Sep 16, 2026
  5. moved this from In Progress to In Review in Simpler Grants Product & Deliveryon Sep 17, 2026
  6. SnowboardTechie commented on Sep 17, 2026

    @SnowboardTechie
    Collaborator

    common-grants/cg-api-template-hono#1 implementing this work is no open for review

  7. SnowboardTechie commented on Sep 23, 2026

    @SnowboardTechie
    Collaborator

    Done. The template lives at common-grants/cg-api-template-hono; PR 1 merged today.

    • Running API: Node 24 and Hono, list/detail/search plus health, bundled sample data behind a three-method repository interface. PORTING.md walks the swap to real data.
    • SDK validation: requests validated with the SDK's Zod schemas, every success envelope parsed with its SDK schema before it's sent, protocol-shaped 400/404/500.
    • OpenAPI: generated from the same schemas and served at /openapi.json.
    • CI: one job with a frozen install, static checks, build, tests with coverage, and the high/critical audit. Green on the merged head (run).

    The Core/SDK opportunity-nullability mismatch found during verification stays tracked in #1192. This unblocks #1184.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

templateIssue or PR related to CommonGrants templatestypescriptIssue or PR related to TypeScript tooling

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions