Introduction
Serve0 is a programmable edge gateway and reverse proxy designed for modern microservices architectures.
Why Serve0?
Standard proxies like Nginx are powerful but hard to extend with custom logic. AWS API Gateway is expensive and vendor-locked.
Serve0 offers:
- TypeScript First: Write middleware and plugins in full TypeScript.
- Modular: Pick only the modules you need (Auth, RateLimit, Cache).
- Edge Ready: Designed to run on lightweight edge/serverless runtimes.
Key Features
- 🔐 Authentication: Built-in JWT and API Key support.
- 🚦 Rate Limiting: Redis-backed distributed rate limiting.
- ⚡ Caching: Smart caching strategies for high performance.
- 🔍 Observability: Integrated logging and metrics.
Quick Start
import { Serve0 } from '@serve0/core';
import { RateLimit } from '@serve0/ratelimit';
const app = new Serve0();
app.use(RateLimit({ window: '1m', limit: 100 }));
app.get('/api', (ctx) => {
return { message: 'Hello from Edge' };
});
app.listen(3000);