Skip to content

Latest commit

 

History

History
53 lines (43 loc) · 1.5 KB

index.md

File metadata and controls

53 lines (43 loc) · 1.5 KB
layout hero
home
name text tagline image actions
<em>itty</em>.dev
mighty [tiny] libraries
<span>We count our bytes to <span class="accent">keep your code small.</span><span>
src alt
/itty-square.256.png
itty.dev
theme text link
alt
Explore the libraries
/docs
theme text link
brand
or jump straight to Itty Router
/itty-router/getting-started

We really mean it. For example...

An edge-ready API in ~1 kB:

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