An open API service indexing awesome lists of open source software.

https://github.com/tinyhttp/tinyhttp

🦄 0-legacy, tiny & fast web framework as a replacement of Express
https://github.com/tinyhttp/tinyhttp

backend es6 es6-javascript esm esnext express-js http http-server javascript javascript-framework node-js nodejs nodejs-frameworks nodejs-server typescript web webframework

Last synced: 8 days ago
JSON representation

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

Awesome Lists containing this project

README

          





tinyhttp

⚡ Tiny web framework as a replacement of Express



[![][site-badge]][site-url] [![npm][npm-img]][npm-url]
[![GitHub Workflow
Status][gh-actions-img]][github-actions]
[![Coverage][cov-img]][cov-url] [![][code-quality-img]][code-quality]




_**tinyhttp**_ is a modern [Express](https://expressjs.com/)-like web framework
written in TypeScript and compiled to native ESM with a minimal install and runtime footprint. tinyhttp doesn't depend on any polyfills or any other compatibility layers and targets recent Node.js versions.

## Features

- ⚙ 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

Visit [tinyhttp website](https://tinyhttp.v1rtl.site) for docs, guides and
middleware search.

## Install

[Node.js 16+](https://node.green/#ES2022) is required.

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

## Donate

You can donate with fiat or crypto
[here](https://github.com/tinyhttp/tinyhttp?sponsor=1).

## Sponsors

[![LambdaTest](https://www.lambdatest.com/blue-logo.png)](https://www.lambdatest.com/?utm_source=tinyhttp&utm_medium=sponsor)

## Contributing

There are many ways to contribute:

- [Submit bugs or feature requests](https://github.com/tinyhttp/tinyhttp/issues)
- Adding a new feature or addressing bugs yourself
- Review [documentation](https://tinyhttp.v1rtl.site/) and fix typos or add new
content

For ways to contribute, please see the
[documentation](https://github.com/tinyhttp/tinyhttp/blob/master/CONTRIBUTING.md).

[site-url]: https://tinyhttp.v1rtl.site
[npm-url]: https://npmjs.com/package/@tinyhttp/app
[github-actions]: https://github.com/tinyhttp/tinyhttp/actions
[gh-actions-img]: https://img.shields.io/github/actions/workflow/status/tinyhttp/tinyhttp/main.yml?branch=master&style=for-the-badge&logo=github&label=&color=hotpink
[cov-img]: https://img.shields.io/coveralls/github/tinyhttp/tinyhttp?style=for-the-badge&color=hotpink
[cov-url]: https://coveralls.io/github/tinyhttp/tinyhttp
[code-quality-img]: https://img.shields.io/codefactor/grade/github/tinyhttp/tinyhttp?style=for-the-badge&color=hotpink
[code-quality]: https://www.codefactor.io/repository/github/tinyhttp/tinyhttp
[npm-img]: https://img.shields.io/npm/dt/@tinyhttp/app?style=for-the-badge&color=hotpink&logo=npm&label=
[site-badge]: https://img.shields.io/badge/website-open-hotpink?style=for-the-badge