🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

nodegate

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodegate

API gateway made simple, fast and easy to configure.

0.8.2
Source
npm
Version published
Weekly downloads
16
-44.83%
Maintainers
1
Weekly downloads
 
Created
Source

nodegate

The easy plugin to programmatically manage a horizontally scalable JSON API Gateway. Built on top of Express & Request.

CircleCI Dependencies status Coverage status Version

const nodegate = require('nodegate');
const gate = nodegate();
const { aggregate } = nodegate.modifiers;

gate.route({
  method: 'get',
  path: '/user/:user',
  pipeline: [
    aggregate('get', 'https://api.github.com/users/{params.user}'),
    aggregate('get', 'https://api.github.com/users/{params.user}/gists'),
  ],
});

gate.listen(8080);

Usage

Nodegate usage

This plugin will help you to solve the well known problem of API management. Some people are doing this by themselves, others by using complex tools or services. But even with this kind of systems you will have to program some mechanics. Nodegate helps you to programmatically configure, develop and run your API gateway, in the simple way.

Everything can be done by declaring routes with a pipeline containing modifiers. Each modifier modify a container for composing the response. That's it.

A bunch of modifiers are bundled with this plugin, but everyone can create more easily!

Documentation

The complete documentation can be found here

License

Copyright (c) Weekendesk SAS.

MIT

Keywords

nodegate

FAQs

Package last updated on 24 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts