# @tinyhttp/app

> 0-legacy, tiny & fast web framework as a replacement of Express

Latest version **3.0.11** (published 2026-08-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @tinyhttp/app
pnpm add @tinyhttp/app
yarn add @tinyhttp/app
bun add @tinyhttp/app
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.0.11 |
| Published | 2026-08-10 |
| First published | 2020-06-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=16.10.0 |
| Dependencies | 7 |
| Unpacked size | 76.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 2903 |
| Author | v1rtl |
| Maintainers | dropthebeatbro, v1rtl |
| Keywords | tinyhttp, router, backend, http, framework, api |

## Links

- npm: https://www.npmjs.com/package/@tinyhttp/app
- Repository: https://github.com/tinyhttp/tinyhttp
- Homepage: https://tinyhttp.v1rtl.site
- Funding: https://github.com/tinyhttp/tinyhttp?sponsor=1
- npm.io page: https://npm.io/package/@tinyhttp/app

## Dependencies (7)

- [regexparam](https://npm.io/package/regexparam.md) ^3.0.0
- [@tinyhttp/req](https://npm.io/package/@tinyhttp/req.md) 2.2.10
- [@tinyhttp/res](https://npm.io/package/@tinyhttp/res.md) 2.2.15
- [@tinyhttp/cookie](https://npm.io/package/@tinyhttp/cookie.md) 2.1.1
- [@tinyhttp/router](https://npm.io/package/@tinyhttp/router.md) 2.2.5
- [@tinyhttp/accepts](https://npm.io/package/@tinyhttp/accepts.md) ^2.3.1
- [@tinyhttp/proxy-addr](https://npm.io/package/@tinyhttp/proxy-addr.md) 3.0.1

## Alternatives

- [express-promise-router](https://npm.io/package/express-promise-router.md) — 736.1K weekly downloads
- [next-usequerystate](https://npm.io/package/next-usequerystate.md) — 29.8K weekly downloads
- [@bitkyc08/opencodex](https://npm.io/package/@bitkyc08/opencodex.md) — 4.6K weekly downloads
- [lynkr](https://npm.io/package/lynkr.md) — 575 weekly downloads
- [baremetal.js](https://npm.io/package/baremetal.js.md) — 42 weekly downloads

## Recent versions

- 3.0.11 (latest) — 2026-08-10
- 0.2.46 (pnpm-temp) — 2020-08-17
- 0.2.16 (next) — 2020-07-18
- 3.0.10 — 2026-07-22
- 3.0.9 — 2026-07-18
- 3.0.8 — 2026-07-18
- 3.0.7 — 2026-04-15
- 3.0.6 — 2026-02-08
- 3.0.5 — 2026-02-08
- 3.0.4 — 2026-02-01
- 3.0.3 — 2026-02-01
- 3.0.2 — 2026-01-20
- 3.0.1 — 2025-09-14
- 3.0.0 — 2025-09-14
- 2.5.2 — 2025-02-22
- … 305 more at https://npm.io/package/@tinyhttp/app/versions

## README

# @tinyhttp/app

The core of tinyhttp. Contains the `App`, `Request` and `Response`. Additionally, it provides special tinyhttp-specific types.

## Install

```sh
pnpm i @tinyhttp/app
```

## Example

```ts
import { App } from '@tinyhttp/app'
import type { Request, Response, NextFunction } from '@tinyhttp/app'

new App()
  .use((req: Request, res: Response, next: NextFunction) => {
    console.log('Did a request')
    next()
  })
  .get('/', (_, res) => res.send('<h1>Hello World</h1>'))
  .get('/page/:page', (req, res) => res.send(`You opened ${req.params.page}`))
  .listen(3000)
```

---
_Source: https://npm.io/package/@tinyhttp/app · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
