All Projects → talentlessguy → Tinyhttp

talentlessguy / Tinyhttp

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

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects
es6
455 projects
esnext
17 projects

Projects that are alternatives of or similar to Tinyhttp

backend-server
📠 The backend of the Fairfield Programming Association website.
Stars: ✭ 26 (-97.93%)
Mutual labels:  backend, http-server, node-js
Serverless Express
Run Node.js web applications and APIs using existing application frameworks on AWS #serverless technologies such as Lambda, API Gateway, Lambda@Edge, and ALB.
Stars: ✭ 4,265 (+238.76%)
Mutual labels:  express-js, node-js
Hydra
后端一站式微服务框架,提供API、web、websocket,RPC、任务调度、消息消费服务器
Stars: ✭ 407 (-67.67%)
Mutual labels:  backend, http-server
Cutelyst
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
Stars: ✭ 671 (-46.7%)
Mutual labels:  webframework, http-server
tinyhttp
🦕 Deno port of tinyhttp, 0-legacy, tiny & fast web framework
Stars: ✭ 84 (-93.33%)
Mutual labels:  backend, http-server
node-boilerplate
Node Typescript Boilerplate for Microservices. Skeleton for Node.js Apps written in TypeScript (with Setup Instructions for ESLint, Prettier, and Husky)
Stars: ✭ 92 (-92.69%)
Mutual labels:  backend, node-js
Wechatbynode
Use the Node.js development WeChat(使用Node.js 开发微信公众号)【 博客地址:https://cnodejs.org/user/SilenceHVK 】
Stars: ✭ 642 (-49.01%)
Mutual labels:  express-js, node-js
express-mvc-generator
Express' Model View Controller Application Generator.
Stars: ✭ 46 (-96.35%)
Mutual labels:  node-js, express-js
Node Production
Take Your Node.js Project to The Production Environment (VPS/Dedicated Server).
Stars: ✭ 35 (-97.22%)
Mutual labels:  express-js, node-js
Kuzzle
Open-source Back-end, self-hostable & ready to use - Real-time, storage, advanced search - Web, Apps, Mobile, IoT -
Stars: ✭ 991 (-21.29%)
Mutual labels:  node-js, backend
Vaxic
Node HTTP server framework
Stars: ✭ 45 (-96.43%)
Mutual labels:  node-js, http-server
roboserver
Control OpenComputers robots without writing any code!
Stars: ✭ 52 (-95.87%)
Mutual labels:  node-js, express-js
node-rest-api-scaffold
This project is an initial NodeJS Rest API scaffold for developers
Stars: ✭ 24 (-98.09%)
Mutual labels:  node-js, express-js
Practicalnode
Practical Node.js, 1st and 2nd Editions [Apress] 📓
Stars: ✭ 3,694 (+193.41%)
Mutual labels:  express-js, node-js
node-express-mongo-passport-jwt-typescript
A Node.js back end web application with REST API, user JWT authentication and MongoDB data storage using TypeScript
Stars: ✭ 51 (-95.95%)
Mutual labels:  node-js, express-js
Lithium
Easy to use C++17 HTTP Server with no compromise on performances. https://matt-42.github.io/lithium
Stars: ✭ 523 (-58.46%)
Mutual labels:  webframework, http-server
Node Typescript Boilerplate
Minimalistic project template to jump start a Node.js back-end application in TypeScript. ESLint, Jest and type definitions included.
Stars: ✭ 1,061 (-15.73%)
Mutual labels:  node-js, backend
MERN-BUS-APP
This is a MFRP (My first Real Project) assigned to me during my internship at Cognizant. Made with MERN Stack technology.
Stars: ✭ 92 (-92.69%)
Mutual labels:  node-js, express-js
TODO-List-Tech-Module
TODO List (in C#, Java, JS and PHP) - Exam Preparation for the Tech Module @ SoftUni (August 2017)
Stars: ✭ 13 (-98.97%)
Mutual labels:  node-js, express-js
Liquidcore
Node.js virtual machine for Android and iOS
Stars: ✭ 765 (-39.24%)
Mutual labels:  javascript-framework, node-js

tinyhttp

⚡ Tiny web framework as a replacement of Express

npm GitHub Workflow Status Codecov Vulnerabilities Codacy grade Last commit NPM

🦕 tinyhttp now has a Deno port (work in progress)

tinyhttp is a modern Express-like web framework written in TypeScript and compiled to native ESM, that uses a bare minimum amount of dependencies trying to avoid legacy hell.

Here is a short list of most important features that tinyhttp has:

  • 2x faster than Express
  • ⚙ Full Express middleware support
  • ↪ Async middleware support
  • ☑ Native ESM and CommonJS support
  • 🚀 No legacy dependencies, just the JavaScript itself
  • 🔨 Types out of the box
  • 🔥 Prebuilt middleware for modern Node.js

Visit tinyhttp website for docs, guides and middleware search.

Install

tinyhttp requires Node.js 12.4.0 or newer. It is recommended to use pnpm, although it isn't required.

# npm
npm i @tinyhttp/app
# pnpm
pnpm i @tinyhttp/app
# yarn
yarn add @tinyhttp/app

Docs

You can see the documentation here.

Get Started

Create a new project using tinyhttp CLI:

pnpm i -g @tinyhttp/cli

tinyhttp new basic my-app

cd my-app

The app structure is quite similar to Express, except that you need to import App from @tinyhttp/app instead of default import from express.

import { App } from '@tinyhttp/app'
import { logger } from '@tinyhttp/logger'

const app = new App()

app
  .use(logger())
  .use(function someMiddleware(req, res, next) {
    console.log('Did a request')
    next()
  })
  .get('/', (_, res) => {
    res.send('<h1>Hello World</h1>')
  })
  .get('/page/:page/', (req, res) => {
    res.status(200).send(`You just opened ${req.params.page}`)
  })
  .listen(3000)

See tinyhttp "Learn" page for complete guide.

Middlewares

tinyhttp offers a list of premade middleware for common tasks, such as session, logger and jwt.

Search and explore the full list at middleware search page.

Comparison

See COMPARISON.md.

Benchmarks

Check benchmark folder.

Contributing

See CONTRIBUTING.md.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


v 1 r t l

💡 🔌 📆 🚧 💻

Matt

🔌 ⚠️

Nasmevka

📖

elianiva

💡 🚧 💻 ⚠️

Katja Lutz

💡

Arnovsky

🔌 💻

Rocktim Saikia

🚇 💻 💡

Ahmad Reza

💻

Ionel lupu

💡

Tomi Kalmi

📖

Luiginator

💡 💻

Aneesh Relan

💡 ⚠️

Roberto Ortega

💡

Barciet Maëlann

💡

shzmr

💻 ⚠️ 💡

Egor Avakumov

💡

Rashmi K A

💻

Shubhi Agarwal

⚠️

Maurizio

⚠️ 💻

jkreller

💡

Alan Carpilovsky

⚠️

KoljaTM

⚠️

ike

📖 💡

Fabian Morón Zirfas

🐛

Vitaly Baev

⚠️ 🐛

omrilotan

💻 📖

MVEMCJSUNPE

💡 🐛

Leo Toneff

💻

Calum Knott

📖 🐛

Reinaldy Rafli

💻 🐛

Ganesh Pendyala

📖

This project follows the all-contributors specification. Contributions of any kind welcome!

Sponsors 💰


molefrog

Carrots

Donate

PayPal ko-fi Qiwi Yandex Money Bitcoin Ethereu,

License

MIT © v1rtl

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].