πQuick Start
npm install vegaa
import { vegaa, route } from 'vegaa'
route('/ping').get(() => ({ message: 'pong' }))
await vegaa.startVegaaServer()
// Server running on http://localhost:4000
β¨Key Features
- πAutomatic Parameter Injection
No more `req.params.id`βjust declare what you need
- πBuilt-in Middleware System
Global and route-specific middleware support
- πExpress Middleware Compatibility
Use existing Express middleware seamlessly
- πΏZero Dependencies
Minimal core with optional plugins
- β‘Lightning Fast
Built on Fastify's core for maximum performance
- π οΈBuilt-in Plugins
CORS, JSON, Body Parser, Static Files, HTTP Client
- π¦Response Helpers
HTML, text, and JSON response utilities
- πProduction-Ready
Cluster mode support for multi-core scaling
Write Less, Do More
Traditional Express
app.get('/user/:id', (req, res) => {
const user = req.user
const id = req.params.id
res.json({ user, id })
})
With Vegaa
route('/user/:id').get((user, id) => ({
user, id
}))