| aside | false |
|---|---|
| editLink | false |
| title | tinyhttp |
| titleTemplate | title · 0-legacy, tiny & fast web framework as a replacement of Express |
| description | modern Express-like web framework written in TypeScript and compiled to native ESM with minimal dependencies. |
| layout | home |
::: code-group
npm i @tinyhttp/apppnpm i @tinyhttp/appbun i @tinyhttp/app:::
stars
2.8k
coverage
98%
import { App } from '@tinyhttp/app'
import { logger } from '@tinyhttp/logger'
const app = new App()
app
.use(logger())
.get('/', (_, res) => void res.send('<h1>Hello World</h1>'))
.get('/page/:page/', (req, res) => {
res.status(200).send(req.params)
})
.listen(3000)- ⚙ Express middleware compat
- ↪ Async error handling support
- ☑ ESM-only
- 🚀 No legacy compat or useless polyfills
- 🤏 Minimal dependencies (3x less than express v5)
- 🔨 Types out of the box
- 🔥 Middlewares for common tasks
Help support future development and make tinyhttp a sustainable open-source project:
