🚀 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 interface
  • package.json — Bun / Workers ready
  • tsconfig.json — Minimal, strict

⚡️ 2. Performance Benchmarks

FeatureTirneHonoNext.js
Cold Start0.02 ms300 ms500 ms+
First Request0.79 ms20–30 ms50 ms+
Requests/sec90,000+ rps8,000–10,000 rps5,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.

👉 What’s Next?