Create FasterCreate Faster

Hono

Hono is an ultra-fast, edge-first web framework for building APIs and web services with TypeScript.

→ Hono Documentation

What create-faster adds

Beyond the official setup, we include:

Pre-configured Middleware:

  • Logger middleware for request logging
  • Timeout middleware (15s default)
  • CORS middleware with wildcard origin and standard headers

API Structure:

  • Health check endpoint (/health/:id) with JSON response
  • Global error handler with dev/prod stack trace control
  • 404 not found handler with JSON response
  • Separation of concerns: app.ts (routes) and index.ts (entry point)

Development Scripts:

  • dev - Hot reload development server (bun run --hot)
  • start - Production server (bun run src/index.ts)

Error Handling:

  • Global error handler with stack traces in development
  • Structured JSON error responses
  • Console logging for debugging

Files created:

src/
├── app.ts                  # Hono app with routes and middleware
├── index.ts                # Entry point (AWS Lambda or Node.js)
└── ...

package.json                # Dependencies and scripts
tsconfig.json               # TypeScript configuration

Integration notes:

  • ORM integration: When Drizzle or Prisma is selected, database packages are included
  • Turborepo: Uses @repo/db package for shared database logic
  • Single repo: Includes database dependencies directly

Compatible Modules

On this page