itty.dev
mighty [tiny] libraries
We count our bytes to keep your code small.
mighty [tiny] libraries
We count our bytes to keep your code small.
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