High-performance, minimalist web framework for Deno
Fastro is a blazing-fast, type-safe, and zero-dependency web framework meticulously engineered for Deno. It is built for developers who demand peak performance without sacrificing a clean and intuitive developer experience.
⚡ Engineered for Speed
Achieve near-native Deno throughput. Powered by our latest pre-built middleware chains and unified cache fast-path, Fastro eliminates dispatch overhead, ensuring your application remains responsive under extreme load. (Benchmarks)
✨ Zero-Friction DX
Write clean, declarative code. Return JSON objects, strings, or native Responses directly from your handlers. No boilerplate, no complex abstractions—just pure productivity.
🍱 Zero Dependency Core
A minimalist, rock-solid engine with absolutely no external dependencies. Keep your stack light, secure, and easy to maintain.
🏙️ Built to Scale
Easily manage complex architectures with automatic module loading and a modular design that grows with your application.
🛡️ Rock Solid Reliability
Deploy with absolute confidence. Fastro guarantees industrial-grade stability with 100% branch and line coverage across the entire project core.
🚀 Quick Start
import Fastro from "https://deno.land/x/fastro/mod.ts";
const app = new Fastro();
app.get("/user/:id", (req, ctx) => {
return { id: ctx.params.id, status: "active" };
});
app.serve({ port: 8000 });🛠️ Convenience tasks (via deno.json):
- Start the app:
deno task start
- Run the local benchmark script (requires
k6):deno task bench
- Run the test suite:
deno task test - Produce LCOV coverage:
deno task cov
📚 Resources
- Docs: https://fastro.deno.dev/DOCS.md
- Middlewares: https://fastro.deno.dev/MIDDLEWARES.md
- Benchmarks: https://fastro.deno.dev/BENCHMARK.md
- Contributing: https://fastro.deno.dev/CONTRIBUTING.md