All Projects → foxifyjs → Foxify

foxifyjs / Foxify

Licence: mit
The fast, easy to use & typescript ready web framework for Node.js

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Foxify

Iris
The fastest HTTP/2 Go Web Framework. AWS Lambda, gRPC, MVC, Unique Router, Websockets, Sessions, Test suite, Dependency Injection and more. A true successor of expressjs and laravel | 谢谢 https://github.com/kataras/iris/issues/1329 |
Stars: ✭ 21,587 (+15542.75%)
Mutual labels:  middleware, framework, router, performance
Gin
Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
Stars: ✭ 53,971 (+39009.42%)
Mutual labels:  middleware, framework, router, performance
Pure Http
✨ The simple web framework for Node.js with zero dependencies.
Stars: ✭ 139 (+0.72%)
Mutual labels:  api, middleware, framework, router
Gearbox
Gearbox ⚙️ is a web framework written in Go with a focus on high performance
Stars: ✭ 455 (+229.71%)
Mutual labels:  api, framework, router, performance
Clevergo
👅 CleverGo is a lightweight, feature rich and high performance HTTP router for Go.
Stars: ✭ 246 (+78.26%)
Mutual labels:  api, middleware, router, fast
Diet
A tiny, fast and modular node.js web framework. Good for making fast & scalable apps and apis.
Stars: ✭ 394 (+185.51%)
Mutual labels:  api, middleware, router
koa-rest-router
Most powerful, flexible and composable router for building enterprise RESTful APIs easily!
Stars: ✭ 67 (-51.45%)
Mutual labels:  fast, middleware, router
Xseries
Library for cross-version Minecraft Bukkit support and various efficient API methods.
Stars: ✭ 109 (-21.01%)
Mutual labels:  api, performance, fast
Altair
Lightweight and Robust API Gateway written in Go
Stars: ✭ 34 (-75.36%)
Mutual labels:  api, middleware, router
Api
Minimal, extremely fast, lightweight Ruby framework for HTTP APIs
Stars: ✭ 252 (+82.61%)
Mutual labels:  api, performance, speed
Gear
A lightweight, composable and high performance web service framework for Go.
Stars: ✭ 544 (+294.2%)
Mutual labels:  middleware, framework, router
Copper
Copper is a set of Go packages that help you build backend APIs quickly and with less boilerplate.
Stars: ✭ 35 (-74.64%)
Mutual labels:  api, middleware, router
Zen
zen is a elegant and lightweight web framework for Go
Stars: ✭ 257 (+86.23%)
Mutual labels:  middleware, framework, router
Go Tgbot
Golang telegram bot API wrapper, session-based router and middleware
Stars: ✭ 90 (-34.78%)
Mutual labels:  api, middleware, router
Chubbyphp Framework
A based PSR-15 microframework that also sets maximum flexibility with minimum complexity and easy replaceability of the individual components, but also of the framework.
Stars: ✭ 69 (-50%)
Mutual labels:  api, middleware, framework
Cdnjs
🤖 CDN assets - The #1 free and open source CDN built to make life easier for developers.
Stars: ✭ 9,270 (+6617.39%)
Mutual labels:  framework, fast, speed
Apicache
Simple API-caching middleware for Express/Node.
Stars: ✭ 957 (+593.48%)
Mutual labels:  api, middleware, fast
Component
🔥🔥🔥A powerful componentized framework.一个强大、100% 兼容、支持 AndroidX、支持 Kotlin并且灵活的组件化框架
Stars: ✭ 2,434 (+1663.77%)
Mutual labels:  api, framework, router
Min
A minimalistic web framework with route grouping and middleware chaining
Stars: ✭ 95 (-31.16%)
Mutual labels:  middleware, framework, router
Dragon
⚡A powerful HTTP router and URL matcher for building Deno web servers.
Stars: ✭ 56 (-59.42%)
Mutual labels:  middleware, framework, router

Foxify Tweet Twitter Follow

The fast, easy to use & typescript ready web framework for Node.js

Inspired by Express & Fastify

Npm Version Node Version TypeScript Version Package Quality Npm Total Downloads Npm Monthly Downloads Open Issues Closed Issues Known Vulnerabilities Dependencies Status Pull Requests License Build Status Coverage Status Backers on Open Collective Sponsors on Open Collective Github Stars Github Forks

An efficient server implies a lower cost of the infrastructure, a better responsiveness under load and happy users. How can you efficiently handle the resources of your server, knowing that you are serving the highest number of requests as possible, without sacrificing security validations and handy development?

Enter Foxify. Foxify is a web framework highly focused on providing the best developer experience with the least overhead and a powerful plugin architecture. It is inspired by Fastify and Express and as far as we know, it is one of the fastest web frameworks in town.

Table of Contents

Getting Started

Prerequisites

  • Node.js 8.12 or higher is required.

Installation

npm i -s foxify

Usage

const Foxify = require('foxify');

let app = new Foxify();

app.get('/', (req, res) => {
    res.json({hello: 'world'});
});

// create an error
app.get('/error', (req, res) => {
    throw new Error('I Failed :(');
});

// create an http error
app.get('/404', (req, res) => {
    throw new HttpException('Not Found', 404);
});

app.start();

More detailed sample is available.

You can also find all the documents here.

Features

  • Written in ES6
  • Robust routing (about 60% faster than Express, almost as fast as Fastify)
  • Express middleware support
  • Robust database modeling (Odin)
  • Simple and powerful error handling
  • Focus on high performance
  • HTTP helpers (redirection, etc)
  • View system supporting lots of template engines
  • Content negotiation
  • Executable for generating applications quickly
  • Error handling

Benchmarks

Machine: Ubuntu 18.04 64-bit, Intel Core i7 (8 cores), 8GiB (DDR4)

Method: autocannon -c 100 -d 40 -p 10 localhost:3000 * 2, taking the second average

sort: Request / Second

Framework Version R/S
Foxify 0.10.7 27,716.8
fastify 1.13.0 26,654.4
bare 10.13.0 22,366.4
hapi 17.7.0 19,662.41
express 4.16.4 17,468
restify 7.2.2 14,660

More detailed benchmarks available here

Roadmap

See the ROADMAP.md file for details

Credits

Authors

Contributors

This project exists thanks to all the people who contribute. [Contribute].

Contributors

Backers

Thank you to all our backers! 🙏 [Become a backer]

Backers

Sponsors

Support this project by becoming a sponsor. Your logo will show up here. [Become a sponsor]

Sponsors

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

License

This project is licensed under the MIT License - see the LICENSE file for details

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].