aside | editLink | title | titleTemplate | description | layout |
---|---|---|---|---|---|
false |
false |
tinyhttp |
title · 0-legacy, tiny & fast web framework as a replacement of Express |
modern Express-like web framework written in TypeScript and compiled to native ESM with minimal dependencies. |
home |
::: code-group
npm i @tinyhttp/app
pnpm i @tinyhttp/app
bun i @tinyhttp/app
:::
stars
2.7k
coverage
97%
Express compatibility
Works with most of the Express middleware out of the box.
Async support
async / await no longer crashes or hangs your app.
Prebuilt middleware
Re-written with latest ECMAScript and types out of the box.
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)
- ESM-only. Embraces the standard modules.
- No polyfills. 75% smaller install size, faster CI builds.
- Strongly typed. Works well with TypeScript.
Help support future development and make tinyhttp a sustainable open-source project: