fast-gateway
TypeScript icon, indicating that this package has built-in type declarations

3.4.6 • Public • Published

Introduction

tests NPM version NPM Total Downloads License TypeScript support Github stars

A super fast, framework agnostic Node.js API Gateway for the masses ❤️
Docker images: https://hub.docker.com/repository/docker/kyberneees/rproxy

Since v2.3.0, AWS Lambda proxying integration is supported via http-lambda-proxy 🔥
Since v3.1.0, WebSockets proxying is supported via faye-websocket 🔥

Read more online:

Install

npm i fast-gateway

Usage

Gateway

const gateway = require('fast-gateway')
const server = gateway({
  routes: [{
    prefix: '/service',
    target: 'http://127.0.0.1:3000'
  }]
})

server.start(8080)

Remote Service

const service = require('restana')()
service.get('/get', (req, res) => res.send('Hello World!'))

service.start(3000)

Testing

curl -v http://127.0.0.1:8080/service/get

More

/fast-gateway/

    Package Sidebar

    Install

    npm i fast-gateway

    Weekly Downloads

    1,848

    Version

    3.4.6

    License

    MIT

    Unpacked Size

    15 kB

    Total Files

    9

    Last publish

    Collaborators

    • jkyberneees