Kyrin Framework
import { Kyrin } from "kyrin";
const app = new Kyrin({
docs: { enabled: true }
});
// Define a route
app.get("/", (ctx) => {
return ctx.json({
message: "Hello, Kyrin! 🔥"
});
});
// Start the server
app.listen(3000);Blazing Fast Benchmarks
Outperforming traditional Node.js frameworks with Bun's native speed
JSON Response
Simple JSON endpoint
Static Files
Serving static content
Mixed Workload
Real-world simulation
Large Payload
50KB JSON response
📊 Benchmarked on Intel I3-12100F, 32GB RAM using autocannon. Higher is better.
Everything You Need
Production-ready features out of the box
Blazing Fast Performance
Built on Bun runtime with RadixTree-based routing achieving microsecond response times. Optimized for maximum throughput and minimal latency.
Intelligent Routing
Advanced router with parameter matching, wildcards, route groups, and prefix matching. Supports RESTful patterns and flexible URL structures.
Flexible Middleware
Onion-model middleware system with async/await support. Easily compose, chain, and reuse middleware for request processing pipelines.
Database Adapters
Database-agnostic architecture with native support for SQLite, PostgreSQL, Prisma ORM, Drizzle ORM, and Knex.js query builder.
Authentication Suite
Complete authentication system including JWT tokens, sessions, OAuth 2.0 (Google, GitHub, Discord), RBAC, and API key management.
Security Hardened
Production-ready security with CORS, rate limiting, secure headers (CSP, HSTS), input validation, and protection against common attacks.
WebSocket Support
Native WebSocket server with room management, broadcasting, client authentication, and custom message protocols for real-time apps.
API Documentation
Automatic OpenAPI 3.0 and Swagger UI generation from your routes. Interactive API testing with schema validation included.
File Management
Complete file handling with multipart parsing, validation, and cloud storage integration (S3, R2, GCS, Azure) plus image processing.
Smart Caching
Multi-tier caching strategies with memory, Redis, and hybrid approaches. Includes cache invalidation and stale-while-revalidate patterns.
Production Logging
Structured logging system with multiple transports (console, file, HTTP), log levels, custom formatters, and request tracking.
Type-Safe RPC
End-to-end type safety with automatically generated RPC clients. Full TypeScript support for compile-time type checking.
