Skip to content

foxifyjs/foxify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Foxify Tweet Twitter Follow

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

Inspired by Express & Fastify.

Npm Version Build Status Coverage Status License Node.js Version Npm Monthly Downloads Npm Total Downloads Known Vulnerabilities Open Issues Pull Requests Sponsors on Open Collective Backers on Open Collective Built with TypeScript Tested With Jest 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 Content

Getting Started

Installation

NPM

npm i foxify

PNPM

pnpm add foxify

Yarn

yarn add foxify

Usage

import { HttpException } from "@foxify/http";
import Foxify from "foxify";

const 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

Benchmarks are available here

Credits

Authors

Contributors

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

Contributors

Made with contrib.rocks.

Sponsors

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

Sponsors

Backers

Thanks to all Foxify backers! [Become a backer]

Backers

Versioning

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

License

This project is licensed under the MIT License.