Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/BackendStack21/fast-gateway
Fast-gateway is an easy to use Node.js API gateway framework built to handle large scale API traffic with great performance and scalability. Written with JavaScript, it is a framework for the masses!
https://github.com/BackendStack21/fast-gateway
api-gateway http nodejs proxy
Last synced: about 2 months ago
JSON representation
Fast-gateway is an easy to use Node.js API gateway framework built to handle large scale API traffic with great performance and scalability. Written with JavaScript, it is a framework for the masses!
- Host: GitHub
- URL: https://github.com/BackendStack21/fast-gateway
- Owner: BackendStack21
- License: mit
- Created: 2019-05-26T15:30:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-06T08:56:57.000Z (9 months ago)
- Last Synced: 2024-04-14T05:59:09.409Z (8 months ago)
- Topics: api-gateway, http, nodejs, proxy
- Language: JavaScript
- Homepage:
- Size: 314 KB
- Stars: 307
- Watchers: 10
- Forks: 37
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- cuban-opensource - fast-gateway - js-api-gateway-for-the-masses-a12fdb9e961c> (Web Development / Javascript)
README
# Introduction
[![tests](https://github.com/BackendStack21/fast-gateway/actions/workflows/tests.yaml/badge.svg)](https://github.com/BackendStack21/fast-gateway/actions/workflows/tests.yaml)
[![NPM version](https://badgen.net/npm/v/fast-gateway)](https://www.npmjs.com/package/fast-gateway)
[![NPM Total Downloads](https://badgen.net/npm/dt/fast-gateway)](https://www.npmjs.com/package/fast-gateway)
[![License](https://badgen.net/npm/license/fast-gateway)](https://www.npmjs.com/package/fast-gateway)
[![TypeScript support](https://badgen.net/npm/types/fast-gateway)](https://www.npmjs.com/package/fast-gateway)
[![Github stars](https://badgen.net/github/stars/jkyberneees/fast-gateway?icon=github)](https://github.com/jkyberneees/fast-gateway)
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](https://www.youtube.com/watch?v=EBSdyoO3goc) proxying integration is supported via [`http-lambda-proxy`](https://www.npmjs.com/package/http-lambda-proxy) ð¥
> Since v3.1.0, WebSockets proxying is supported via [`faye-websocket`](https://www.npmjs.com/package/faye-websocket) ð¥Read more online:
- A â.jsâ API Gateway for the masses: https://itnext.io/a-js-api-gateway-for-the-masses-a12fdb9e961c## Install
```js
npm i fast-gateway
```## Usage
### Gateway
```js
const gateway = require('fast-gateway')
const server = gateway({
routes: [{
prefix: '/service',
target: 'http://127.0.0.1:3000'
}]
})server.start(8080)
```
### Remote Service
```js
const service = require('restana')()
service.get('/get', (req, res) => res.send('Hello World!'))service.start(3000)
```
### Testing
```bash
curl -v http://127.0.0.1:8080/service/get
```
## More
- Website and documentation: https://fgw.21no.de