itty.dev
mighty [tiny] API design
With serverless, fewer bytes === faster.
We really mean it. For example...
import { AutoRouter } from 'itty-router' // ~970 bytes
export const router = AutoRouter()
router
.get('/hello/:name', ({ name = 'World' }) => `Hello ${name}!`)
.get('/json', () => [1,2,3])
.get('/promises', () => Promise.resolve('foo'))
export default router