Skip to content
项目

关于

The Fast, Simple, and Scalable Web Framework for Deno

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

High-performance, minimalist web framework for Deno

Fastro

Deno License Release Coverage Status Performance

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 — and exceed — native Deno throughput. Powered by pre-built middleware chains, unified cache fast-path, and serve-time handler selection, Fastro eliminates per-request dispatch overhead entirely. Lifecycle hooks (onRequest, onResponse, onError) are zero-cost when not registered. (Benchmarks)

💎 Zero-Friction DX

Write clean, declarative code. Return JSON objects, strings, or native Responses directly from your handlers. Full lifecycle hook support (onRequest, onResponse, onError) for cross-cutting concerns. 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

探索相关项目

加载中…