The fast, easy to use & typescript ready web framework for Node.js.
Inspired by Express & Fastify.
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.
npm i foxify
pnpm add foxify
yarn add foxify
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.
- Written in ES6
- Robust routing (about 60% faster than
Express
, almost as fast asFastify
) 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 are available here
- Ardalan Amini - Core Maintainer - @ardalanamini
This project exists thanks to all the people who contribute. [Contribute].
Made with contrib.rocks.
Support Foxify by becoming a sponsor. Your logo will show up here. [Become a sponsor]
Thanks to all Foxify backers! [Become a backer]
We use SemVer for versioning. For the versions available, see the releases on this repository.
This project is licensed under the MIT License.