Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion specs/epics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ folder is the adoption; the merge creates the epic in the workspace.

| Epic | Cluster | Status | What it is |
|------|---------|--------|------------|
| [`hono-api/`](./hono-api/) | **HA** | Draft | Vercel's Hono boilerplate, equivalent in code and function, as a Cloudflare Worker |
| [`hono-api/`](./hono-api/) | **HA** | βœ… Shipped | Vercel's Hono boilerplate, equivalent in code and function, as a Cloudflare Worker |

As-built β‰  intent: what shipped lives in each epic's `IMPLEMENTATION-STATUS.md`.
28 changes: 25 additions & 3 deletions specs/epics/hono-api/IMPLEMENTATION-STATUS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ the code departed from `design.md` or from the upstream template.

| Milestone | State | PR |
|---|---|---|
| HA0 β€” the spec | | |
| HA1 β€” the API on Workers | | |
| HA2 β€” ready to instantiate | | |
| HA0 β€” the spec | βœ… Shipped | [#1](https://github.com/sourceplane/hono-api/pull/1) |
| HA1 β€” the API on Workers | βœ… Shipped | [#2](https://github.com/sourceplane/hono-api/pull/2) |
| HA2 β€” ready to instantiate | βœ… Shipped | [#3](https://github.com/sourceplane/hono-api/pull/3) |

## Departures from the upstream template

Expand All @@ -30,3 +30,25 @@ is not a dependency of the app.

The brief's floor was `^4.20250508.0`; wrangler 4.151.0's peer range is
`^5.20261006.1`, so the port takes 5.x to install without a peer warning.

## Verified

- Local: `pnpm typecheck`, `pnpm lint`, `pnpm test` (2 tests), `pnpm build`
(`wrangler deploy --dry-run --outdir dist`, 58 KiB / 15 KiB gzipped) green;
`wrangler deploy --dry-run --env prod` (the Orun verify lane's command)
resolves `ENVIRONMENT=prod`; `wrangler dev --port 8791`: `/` 200
`text/plain` starting `Hello Hono!` with the Cloudflare docs line, `/nope`
404.
- CI: `Checks` green on #2 (install, wire, typecheck, lint, test, build).
- Not verified: a live deploy. `ci.yml` is gated until the product is linked
to an Orun workspace with a Cloudflare connection.

## Versions

| Package | Version | Why |
|---|---|---|
| hono | ^4.13.0 (4.13.13) | newest 4.x; upstream asks for `^4.8.9` and 4.13 is the same major |
| wrangler | ^4.151.0 | compatibility_date 2026-10-01; the baseline's pin |
| @cloudflare/workers-types | ^5.20261006.1 | wrangler 4.151.0's peer range (4.x installs with an unmet-peer warning) |
| typescript | ^5.8.3 (5.9.3) | upstream's floor |
| vitest | ^3.2.4 (3.2.7) | the factory's tests-vitest template |
4 changes: 2 additions & 2 deletions specs/epics/hono-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ The upstream code stays the code. The port adds the Worker's config (`wrangler.j

| Field | Value |
|-------|-------|
| Status | Draft |
| Status | βœ… Shipped β€” HA0–HA2 landed (#1, #2, #3) |
| Cluster | **HA** (HA0–HA2) |
| Owner(s) | `apps/api` (the Worker) Β· `tests/api` (the in-process request tests) |
| Builds on | `cirrus-baseline` conventions (intent, components, `checks.yml` gate, gated `ci.yml`) and the `cloudflare-worker-turbo` composition its workers deploy with β€” no bounded context of the fleet is needed |
| Upstream | [vercel/examples `framework-boilerplates/hono`](https://github.com/vercel/examples/tree/main/framework-boilerplates/hono) |
| Changes | Adds the Worker config, the monorepo wrapper, tests and the deploy contract; the template's app code is untouched but for the welcome line's link |
| Decisions locked | (1) A plain Worker (`cloudflare-worker-turbo`), not Pages Functions and not an adapter: Hono's default export is already a Workers module handler. (2) `wrangler.jsonc` is committed, not rendered: the Worker binds nothing, so there is nothing to wire. (3) Per-environment deploys through wrangler `env` sections (`--env stage` / `--env prod`), naming `hono-api-api-{stage,prod}`. (4) No infra root. |
| Gate | HA1 is the first user-visible rung (the API serves from a Worker). |
| Shipped as | |
| Shipped as | `main` after [#3](https://github.com/sourceplane/hono-api/pull/3); verified locally under `wrangler dev` and the `--env prod` dry run, deploy gated until a workspace is linked |

## Read order

Expand Down
2 changes: 1 addition & 1 deletion specs/epics/hono-api/epic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
spec:
title: "Vercel's Hono boilerplate as a Cloudflare Worker"
summary: "The Vercel Hono framework boilerplate β€” one Hono app answering `/` with a welcome text β€” runs natively as a Cloudflare Worker (the app's default export is the Worker's module handler), inside the Cirrus baseline's repository conventions (Orun intent and components, credential-free checks, a gated Orun CI, one epic per repository). It is the Cloudflare-only API port with the shortest path: no adapter and no build beyond wrangler's bundle."
state: backlog
state: completed
milestones:
- name: "HA0 β€” the spec"
exitCriteria:
Expand Down
6 changes: 3 additions & 3 deletions specs/epics/hono-api/implementation-plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
Milestones land in order; each task is one pull request on an
`orun/HA-n-<slug>` branch with an `Orun-Task: HA-n` trailer.

## HA0 β€” the spec
## HA0 β€” the spec βœ…

This doc set, `epic.yaml` and the task contracts, merged to `main`.

**Done when**
- the five documents and `epic.yaml` are on `main`
- `tasks/HA-1.TaskContract.yaml`, `HA-2`, `HA-3` exist

## HA1 β€” the API on Workers
## HA1 β€” the API on Workers βœ…

`apps/api` is the upstream `src/index.ts` with the Worker config around it;
`tests/api` drives the app in-process with `app.request()`.
Expand All @@ -22,7 +22,7 @@ This doc set, `epic.yaml` and the task contracts, merged to `main`.
- `wrangler dev` (via `pnpm --filter @app/api dev`) answers `/` with `Hello Hono!` and an unknown path with 404
- `wrangler deploy --dry-run --env prod` (what the Orun verify lane runs) resolves `ENVIRONMENT=prod`

## HA2 β€” ready to instantiate
## HA2 β€” ready to instantiate βœ…

The README explains the port and how to run, test, preview and deploy it;
`IMPLEMENTATION-STATUS.md` records what shipped and every departure.
Expand Down
Loading