Skip to content

itty.dev

mighty [tiny] libraries

We count our bytes to keep your code small.

itty.dev

We really mean it. For example...

An edge-ready API in ~1 kB:

ts
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