kyush-llm-router/server/benchmarks
JellyBrick 66261474d2
feat: migrate Express to Hono with OpenAPI/Swagger and add root ESLint
Server changes:
- Migrate from Express 5 to Hono with @hono/node-server adapter
- Convert server package to ESM (NodeNext) with explicit .js import extensions
- Split entry points: index.ts exports createApp(), main.ts starts the server
- Add @hono/zod-openapi for /v1/* routes with zod-validated request/response
- Add @hono/swagger-ui at /admin/docs (admin-auth gated) and OpenAPI 3.1 spec
  at /admin/openapi.json
- Rewrite SSE streaming using hono/streaming with onAbort cancellation
- Replace AuthenticatedRequest/AdminRequest with Hono Variables generics
- Switch cookie handling to hono/cookie helpers
- Drop express, cors, supertest and their type packages

Test infrastructure:
- New tests/utils/httpClient.ts: supertest-compatible chainable API on top of
  Hono's app.request(), with cookie-jar agent for session-based admin auth
- Rewrite testApp/mockBackend/adminClient on Hono + @hono/node-server
- Update vitest config with extensionAlias for .js -> .ts NodeNext resolution

Root ESLint:
- Add flat config (eslint.config.mjs) using youtube-music as the base reference
- typescript-eslint recommendedTypeChecked + prettier + @stylistic + import +
  solid plugins, with separate overrides for client (Solid/JSX) and server (Node)
- Add server/tsconfig.eslint.json so the parser can resolve tests/benchmarks
- Wire lint and lint:fix scripts at the workspace root

Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-08 01:08:23 +09:00
..
index.ts feat: migrate Express to Hono with OpenAPI/Swagger and add root ESLint 2026-04-08 01:08:23 +09:00
report.ts feat: migrate Express to Hono with OpenAPI/Swagger and add root ESLint 2026-04-08 01:08:23 +09:00
runner.ts feat: migrate Express to Hono with OpenAPI/Swagger and add root ESLint 2026-04-08 01:08:23 +09:00
scenarios.ts feat: migrate Express to Hono with OpenAPI/Swagger and add root ESLint 2026-04-08 01:08:23 +09:00
stats.ts feat: migrate Express to Hono with OpenAPI/Swagger and add root ESLint 2026-04-08 01:08:23 +09:00