https://github.com/fastrodev/fastro
Full Stack Framework for Deno, TypeScript, Preact JS and Tailwind CSS
https://github.com/fastrodev/fastro
backend deno fastro framework frontend fullstack middleware preact react typescript
Last synced: 14 days ago
JSON representation
Full Stack Framework for Deno, TypeScript, Preact JS and Tailwind CSS
- Host: GitHub
- URL: https://github.com/fastrodev/fastro
- Owner: fastrodev
- Created: 2020-05-15T22:08:15.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T09:30:16.000Z (over 1 year ago)
- Last Synced: 2024-10-29T09:57:43.524Z (over 1 year ago)
- Topics: backend, deno, fastro, framework, frontend, fullstack, middleware, preact, react, typescript
- Language: TypeScript
- Homepage: https://fastro.dev
- Size: 15.5 MB
- Stars: 219
- Watchers: 4
- Forks: 5
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# The Fast, Simple, and Scalable Web Framework for Deno

[](https://github.com/fastrodev/fastro/actions/workflows/build.yml)
[](https://coveralls.io/github/fastrodev/fastro?branch=main)
Fastro is engineered for developers who refuse to compromise. It combines **extreme performance** with an **elegant API**, allowing you to build high-throughput microservices and web applications without the friction of traditional frameworks.
### Why Fastro?
- **Blazing Fast**: Optimized to reach near-native Deno speeds. [Compare the results](BENCHMARK.md).
- **Zero Friction**: Return [JSON, strings, or Responses](DOCS.md#responses) directly. No boilerplate, just code.
- **Ultra Lightweight**: Zero external dependencies. Built entirely on [Deno standards](https://deno.land).
- **Built to Scale**: [Automatic module loading](DOCS.md#automatic-module-loading) for complex applications.
- **AI-Driven Optimization**: Since v1, we've extensively leveraged AI to fine-tune performance and achieve a rigorous [100% test coverage on our core engine](https://coveralls.io/github/fastrodev/fastro?branch=main).
- **Rock Solid**: First-class TypeScript support and production-ready stability.
## Quick Start
Create a high-performance server with zero friction:
```ts
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.use((req, ctx, next) => {
console.log(`${req.method} ${ctx.url.pathname}`);
return next();
});
await app.serve({ port: 8000 });
```
## Resources
- [**Get Started**](DOCS.md) - Comprehensive documentation and API reference.
- [**Showcase**](SHOWCASE.md) - See what others are building with Fastro.
- [**Middleware**](MIDDLEWARES.md) - Explore the ecosystem and official plugins.
- [**Benchmarks**](BENCHMARK.md) - See how Fastro crushes performance tests.
- [**Contribute**](CONTRIBUTING.md) - Help us build the future of Deno web development.
- [**Sponsor**](https://github.com/sponsors/fastrodev) - Support the creator and get priority technical support.