Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more

โšก Fastro Framework

The Ultra-Fast, Minimalist Web Framework for Deno.

Fastro bridges the gap between raw Deno performance and elite developer experience. Built for speed, security, and simplicity, it features a robust middleware engine, intelligent LRU caching, and a zero-boilerplate API.


๐Ÿš€ Why Fastro?

  • ๐ŸŽ๏ธ Maximum Throughput: Benchmark-proven to maintain >95% of raw Deno performance. Stop choosing between DX and speed.
  • โœจ Intuitive API: Return string, JSON, or Response directly. No more .send() or .json() boilerplate.
  • ๐Ÿ“ฆ Lean & Secure: Zero external dependencies. Built strictly on top-tier Deno standards.
  • ๐Ÿ—๏ธ Organized Scaling: Advanced directory-based module loading keeps your project clean as you grow.
  • ๐Ÿ›ก๏ธ Rock-Solid Core: 100% test coverage and first-class TypeScript support ensure your app stays stable.

๐Ÿ“– Documentation

Master Fastro in minutes with our comprehensive guide, covering everything from routing to deep-level middleware.


โœจ Features

  • โšก Blazing Fast Routing: Optimized pattern matching with intelligent LRU caching for high-traffic apps.
  • ๐Ÿงฉ Flexible Middleware: Seamless global, router, and route-level middleware with an async/await flow you already know.
  • ๐Ÿ“‚ Auto-Loading Modules: Register entire directories of functionality with a single command.
  • ๐Ÿ”’ Type-Safe by Default: Enjoy deep IDE integration and compile-time safety.
  • ๐Ÿ“Š Benchmark-First: Built-in verification tools to ensure your app stays as fast as native Deno.

๐Ÿ Quick Start

Build and serve your first app in seconds:

import app from "./mod.ts";

// Simple string response
app.get("/", () => "Welcome to Fastro!");

// Automatic JSON serialization
app.get("/user/:id", async (req, ctx) => {
  return { id: ctx.params.id, status: "active" };
});

// Powerful, predictable middleware
app.use((req, ctx, next) => {
  ctx.startTime = Date.now();
  return next();
});

await app.serve({ port: 8000 });

๐Ÿ“Š Performance That Matters

Donโ€™t take our word for it. Benchmarks conducted using Grafana k6 (100 VUs, 10s):

Metric Native Deno Fastro Framework
Requests per Second ~76,000 req/s ~72,800 req/s
Average Latency 1.23 ms 1.29 ms
95th Percentile 2.37 ms 2.29 ms

โ€œFastro provides a complete developer-friendly abstraction without sacrificing the performance advantages of Deno.โ€

Check the detailed benchmark report.


๐Ÿ› ๏ธ Development

Get involved or test it yourself:

# Run the test suite
deno task test

# Generate a 100% coverage report
deno task cov

# Run local performance benchmark
deno task bench

๐Ÿค Community & Contributing

Fastro thrives on your ideas! Whether youโ€™re fixing a bug, suggesting a feature, or writing a custom middleware, we welcome your contributions.