🚀 Hello, Tirne!
Tirne is a zero‑boilerplate, edge‑native framework for Bun, Workers, and Deno — built for speed, structure, and simplicity.
✨ Sub‑millisecond APIs, typed routes, no magic. Just code.
🛠️ 1. Quick Start
npx create-tirne-app
✔ Choose your target environment › Bun / Workers
✔ Project folder … my‑tirne‑app
cd my‑tirne‑app
bun install
npm run dev or wrangler dev
Your API will be available at
http://localhost:3000
.📁 Project Structure
index.ts
— Entry point using fetch interfacepackage.json
— Bun / Workers readytsconfig.json
— Minimal, strict
⚡️ 2. Performance Benchmarks
Feature | Tirne | Hono | Next.js |
---|---|---|---|
Cold Start | 0.02 ms | 300 ms | 500 ms+ |
First Request | 0.79 ms | 20–30 ms | 50 ms+ |
Requests/sec | 90,000+ rps | 8,000–10,000 rps | 5,000 rps |
Avg Latency | <1 ms | ~15 ms+ | ~30 ms |
Tirne is 10× faster than Next.js API Routes — and that’s before tuning.
📀 3. Hello Tirne (Hello World)
import { Server } from "tirne";
const server = new Server([
{
method: "GET",
path: "/health",
handler: () => new Response("✅ OK")
}
]);
export default {
fetch: (req: Request) => server.fetch(req),
};
In Next.js, this would be a full folder in
/pages/api/health.ts
plus config and global middleware. With Tirne, it’s one file — typed and fast.