Skip to content

feat(web): add the hono management api (@sidequest/web/api) - #200

Open
merencia wants to merge 1 commit into
chore/dashboard-v2-cleanupfrom
feat/web-api
Open

feat(web): add the hono management api (@sidequest/web/api)#200
merencia wants to merge 1 commit into
chore/dashboard-v2-cleanupfrom
feat/web-api

Conversation

@merencia

@merencia merencia commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

stacked on #199. adds @sidequest/web/api, the json management api on hono.

  • services (job/queue/overview) over the backend + engine JobTransitioner, subclassable
  • route factories + createApiApp assembler + error handler, exports the ApiApp type
  • mirrors the current dashboard endpoints as json, no new features
  • node build via rollup into dist/api; ./api subpath export
@merencia
merencia requested a review from GiovaniGuizzo as a code owner July 4, 2026 02:34
@merencia
merencia marked this pull request as draft July 4, 2026 02:45
@merencia
merencia marked this pull request as ready for review July 4, 2026 14:11
@merencia
merencia force-pushed the chore/dashboard-v2-cleanup branch 2 times, most recently from f8a0bf8 to e88cd40 Compare July 5, 2026 01:48
the json api layer the react dashboard and the pro will consume. hono is the committed
framework, for the typed rpc client (hc<ApiApp>).

services (job/queue/overview) sit over the backend + engine's JobTransitioner, are
framework neutral and subclassable (the pro override seam). route factories are built by
chaining so hc can infer types, and are reused as-is by the pro to compose a superset
tree. createApiApp assembles them and maps NotFoundError to 404 via apiErrorHandler.

mirrors the old dashboard endpoints as json, no new features: GET /jobs (pagination,
filters, /meta, /:id), POST /jobs/:id/{run,cancel,rerun}, GET /queues, POST
/queues/:name/toggle, GET /overview and /overview/timeseries.

node build via rollup into dist/api next to the vite ui build; ./api subpath export.
29 api tests (services + full app through app.request). react app and boot façade next.
@merencia
merencia force-pushed the chore/dashboard-v2-cleanup branch from e88cd40 to 4841b48 Compare July 8, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants