Skip to content

feat: multi-framework adapters (Fastify, Hono, Next.js App Router, Express) - #5

Merged
codebygarv merged 4 commits into
mainfrom
EL-multi-framework-adapters
Jul 31, 2026
Merged

feat: multi-framework adapters (Fastify, Hono, Next.js App Router, Express)#5
codebygarv merged 4 commits into
mainfrom
EL-multi-framework-adapters

Conversation

@codebygarv

Copy link
Copy Markdown
Owner

Phase 1: Multi-Framework Adapters

This Pull Request expands @codebygarv/express-lens with dedicated adapters and package subpath exports for Fastify, Hono & Edge, Next.js App Router, and Express.

Resolves #4

Changes Included

  • Fastify Adapter (@codebygarv/express-lens/fastify): Fastify plugin with onRequest and onResponse hooks.
  • Hono & Edge Adapter (@codebygarv/express-lens/hono): WinterCG Web API adapter for Bun, Deno, and Cloudflare Workers.
  • Next.js App Router Adapter (@codebygarv/express-lens/next): withExpressLens HOF and dashboardRoute catch-all handler.
  • Express Subpath Export (@codebygarv/express-lens/express): Dedicated Express subpath export.
  • Multi-Entry Build: Updated tsup.config.ts to build CJS, ESM, and .d.ts for all subpath entry points.

Verification

  • npm run typecheck (0 errors)
  • npm test (32/32 tests passing)
  • npm run build (Multi-entry CJS, ESM, and .d.ts bundles built)

@codebygarv
codebygarv merged commit b5332c9 into main Jul 31, 2026
3 checks passed
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.

feat: multi-framework adapters (Fastify, Hono, Next.js App Router, Express)

1 participant