mirror of
https://github.com/tiennm99/claude-central-gateway.git
synced 2026-04-17 15:20:33 +00:00
- Replace Vercel-specific handler with Hono framework - Add Cloudflare Workers support via wrangler.toml - Restructure project: src/index.js, src/routes/messages.js - Update README with Cloudflare deployment instructions - Save framework decision to memory Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
844 B
844 B
name, description, type
| name | description | type |
|---|---|---|
| Framework Decision - Hono | Why Hono was chosen over alternatives for the gateway | project |
Framework Choice: Hono
Decision: Use Hono as the web framework for Claude Central Gateway.
Why Hono over alternatives:
| Alternative | Why not |
|---|---|
| Nitro | Overkill for simple proxy, 200KB+ bundle vs 14KB |
| itty-router | Cloudflare-focused, Vercel needs adapter |
| Native | Duplicate code per platform, manual streaming |
Why Hono:
- Single codebase for Vercel + Cloudflare + Deno + Bun
- Ultra-lightweight (~14KB)
- First-class streaming support (critical for SSE)
- Zero-config multi-platform
- Aligns with project philosophy: "Minimal, simple, deploy anywhere"
How to apply: All API routes should use Hono's app.route() pattern. Keep handlers simple and stateless.