Skip to content

feat(routing): discover static routes across HTTP frameworks - #2

Open
bompus wants to merge 2 commits into
fork/consolidatedfrom
codex/framework-routing
Open

feat(routing): discover static routes across HTTP frameworks#2
bompus wants to merge 2 commits into
fork/consolidatedfrom
codex/framework-routing

Conversation

@bompus

@bompus bompus commented Sep 7, 2026

Copy link
Copy Markdown
Owner

CodeGraph now discovers literal HTTP routes in Hono, Elysia, Fastify, Hyper-Express, Koa router, H3, Bun, Effect v4 and option-free Vixeny builders. An imported handler in new Hono().get('/users', handler) becomes GET /users linked to that handler; inline handlers contribute their direct calls, and static responses get endpoints without invented handler links.

Nuxt's default file routes now handle root index pages, Nuxt 4 route groups, server/routes/, server method suffixes and catch-all paths. Server default exports and standard event-handler wrappers link to their handlers. Existing Next Pages/App Router and Vue navigation behavior is retained.

The reader uses the existing tree-sitter parser and follows package imports, immutable local router bindings and supported same-file prefixes/mounts. Computed paths, spread configuration, cross-file mounts, runtime mutation and plugin factories are outside coverage. Vixeny options, Nuxt custom configuration and member-handler resolution remain unsupported. Re-index existing projects after upgrading; no new dependencies or application execution.

Validation:

  • Full build, including the viewer and packaged grammar checks.
  • Full test suite with the matching native kernel: 4,342 passed, 46 skipped (242 suites passed, 5 skipped).
  • 116 focused routing tests passed with a freshly built matching native kernel loaded.
  • 36 declarations matched across six pinned official-source fixtures; Hono, Fastify, Elysia and H3 were also checked through full indexing. Bun and Effect checks cover the documented source ranges. Hyper-Express, Koa and Vixeny have synthetic indexing tests only.
  • Independent review findings were fixed and rechecked; final bounded review found no blocker or obvious complexity to remove.

Start review with src/resolution/frameworks/http-routing.ts and its tests. The route guide documents supported shapes; docs/design/framework-coverage.md links the exact official fixtures and records their limits.

@bompus
bompus marked this pull request as ready for review September 7, 2026 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant