Skip to content

itty.dev

mighty [tiny] API design

With serverless, fewer bytes === faster.

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

Released under the MIT License.