Displaying 1 to 20 from 43 results

permit - An unopinionated authentication library for building Node.js APIs.

  •    Javascript

An unopinionated authentication library for building Node.js APIs. Permit makes it easy to add an authentication layer to any Node.js API. It can be used with any of the popular server frameworks (eg. Express, Koa, Hapi, Fastify) and it can be used for any type of API (eg. REST, GraphQL, etc.) due to its simple, unopinionated design.

notadd - A micro-service development architecture based on nest

  •    TypeScript

A micro-service development architecture based on nest.js, AOP . —— 基于 Nest.js 的微服务开发架构,异步高性能应用、AOP(面向切面编程)

node-fastify-auto-push - Fastify plugin for HTTP/2 automatic server push

  •    TypeScript

This is not an official Google product.HTTP/2 is a major revision of the HTTP protocol. One of its differences from HTTP/1 is server push, which allows a server to pre-emptively send responses to a client in association with a previous client-initiated request. This can be useful when the server knows the client will need to have those responses available in order to fully process the response to the original request.

overload-protection - Load detection and shedding capabilities for http, express, restify and koa

  •    Javascript

overload-protection provides integration for your framework of choice.If a threshold is crossed for a given metric, overload-protection will send an HTTP 503 Service Unavailable response, with (by default) a Client-Retry header, instructing the client (e.g. a browser or load balancer) to retry after a given amount of seconds.




fastify-secure-session - Create a secure stateless cookie session for Fastify

  •    Javascript

Create a secure stateless cookie session for Fastify, based on libsodium's Secret Key Box Encryption. It is possible to generate a high-entropy key from a (low-entropy) secret passphrase. This approach is the simplest to use, but it adds a significant startup delay as strong cryptography is applied.

fastify-postgres - Fastify PostgreSQL connection plugin

  •    Javascript

Fastify PostgreSQL connection plugin, with this you can share the same PostgreSQL connection pool in every part of your server. Under the hood the node-postgres is used, the options that you pass to register will be passed to the PostgreSQL pool builder. As you can see there is no need to close the client, since is done internally. Promises and async await are supported as well.

fastify-react - React server side rendering support for Fastify with Next

  •    Javascript

React server side rendering support for Fastify with Next Framework. Since Next needs some time to be ready on the first launch, you must declare your routes inside the after callback, after you registered the plugin. The plugin will expose the api next in Fastify that will handle the rendering for you.

fastify-redis - Plugin to share a common Redis connection across Fastify.

  •    Javascript

Fastify Redis connection plugin, with this you can share the same Redis connection in every part of your server. Under the hood ioredis is used as client, the options that you pass to register will be passed to the Redis client.


fastify-reply-from - fastify plugin to forward the current http request to another server

  •    Javascript

fastify plugin to forward the current http request to another server. HTTP2 to HTTP is supported too. The following example set up two fastify servers and forward the request from one to the other.

fastify-static - Plugin for serving static file as fast as possible

  •    Javascript

Plugin for serving static files as fast as possible. The absolute path of the directory that contains the files to serve. The file to serve will be determined by combining req.url with the provided root directory.

fastify-swagger - Swagger documentation generator for Fastify

  •    Javascript

Swagger documentation generator for Fastify. It uses the schemas you declare in your routes to generate a swagger compliant doc. dynamic mode is the default one, if you use the plugin this way - swagger specification would be gathered from your routes definitions.

fastify-websocket - basic websocket support for fastify

  •    Javascript

WebSocket support for Fastify. Built upon websocket-stream. This project is kindly sponsored by nearForm.

middie - Middleware engine for Fastify.

  •    Javascript

middie is the module that add middlewares support on steroids to Fastify. The syntax style is the same as express/connect. Does not support the full syntax middleware(err, req, res, next), because error handling is done inside Fastify.

point-of-view - Template rendering plugin for Fastify

  •    Javascript

Templates rendering plugin support for Fastify. point-of-view decorates the reply interface with the view method for manage view engines that can be used to render templates responses.

under-pressure - Measure process load with automatic handling of "Service Unavailable" plugin for Fastify

  •    Javascript

Measure process load with automatic handling of "Service Unavailable" plugin for Fastify. It can check maxEventLoopDelay, maxHeapUsedBytes and maxRssBytes values. Require the plugin and register it into the Fastify instance.

website - This project is used to build the website for fastify web framework and publish it online.

  •    HTML

This project is used to build the website for fastify web framework and publish it online. This will execute all the steps necessary to create a build (static website).

fastify-auth - Run multiple auth functions in Fastify

  •    Javascript

This module does not provide an authentication strategy, but it provides a very fast utility to handle authentication (also multiple strategies) in your routes, without adding overhead. Check out the complete example here. As said above, fastify-auth does not provide an authentication strategy, so you must provide it (or them) by yourself, with a decorator or another plugin. In the following example you will find a very simple implementation that should help you understand how use this module.

fastify-autoload - Require all plugins in a directory

  •    Javascript

Require all plugins in a directory. If you need to disable the auto loading for a specific plugin, add autoload = false property.

fastify-bankai - Bankai assets compiler for Fastify

  •    Javascript

If you need to compile (browserify style!) your code, this plugin is for you! Internally it uses bankai, so refer to its documentation for the options. fastify-bankai will automatically live-reload your HTML and regenerate your bundle whenever your code change. This can be disabled in test or in production.

fastify-cli - Run a fastify route with one command!

  •    Javascript

For a list of available flags for fastify start see the help: fastify help start. If you want to use custom options, just export an options object with your route and run the cli command with the --options flag.