Frameworks
Learn about the supported HTTP frameworks in kodkod.
Frameworks
kodkod supports multiple HTTP frameworks, each with its own strengths. Choose the one that best fits your team's preferences and project requirements.
Express
Express is the classic Node.js framework—battle-tested, flexible, and widely adopted.
Best for:
- Teams familiar with the Express ecosystem
- Projects requiring extensive middleware options
- Legacy system integration
npx kodkod-stack@latest my-app --framework expressSample Route (Express)
import { Router } from 'express';
import { UserController } from '../controllers/user.controller';
const router = Router();
const userController = new UserController();
router.get('/users/:id', userController.getUser);
export default router;Hono
Hono is an ultrafast, lightweight framework built for the edge. It's modern, TypeScript-first, and incredibly fast.
Best for:
- Edge deployments (Cloudflare Workers, Vercel Edge)
- High-performance APIs
- Teams who prefer modern, minimal APIs
npx kodkod-stack@latest my-app --framework honoSample Route (Hono)
import { Hono } from 'hono';
import { UserController } from '../controllers/user.controller';
const app = new Hono();
const userController = new UserController();
app.get('/users/:id', userController.getUser);
export default app;Fastify
Fastify is a performance-focused framework with built-in schema validation and plugin architecture.
Best for:
- High-throughput applications
- Teams who value built-in validation
- Plugin-based architectures
npx kodkod-stack@latest my-app --framework fastifyFastify support is coming soon. Currently, Express and Hono are fully supported.
Comparison
| Feature | Express | Hono | Fastify |
|---|---|---|---|
| Performance | Good | Excellent | Excellent |
| Ecosystem | Largest | Growing | Large |
| Edge Support | Limited | Excellent | Limited |
| TypeScript | Partial | Native | Native |
