Mali

A minimalistic gRPC microservice framework for Node.js
GitHub
890
Created 8 years ago, last commit 8 months ago
20 contributors
499 commits
Stars added on GitHub, month by month
0
1
2
3
4
5
6
7
8
9
10
11
12
2024
No star added on GitHub yesterday
npmPackage on NPM
mali
0.47.1
Monthly downloads on NPM
1
2
3
4
5
6
7
8
9
10
11
12
2024
README

Mali

A minimalistic gRPC microservice framework.

npm version build status coverage status JavaScript Style Guide License chat on gitter Donate Buy me a coffee

Installation

Install module and required peer dependencies.

$ npm install mali @grpc/grpc-js @grpc/proto-loader

Example

const Mali = require('mali')

function sayHello (ctx) {
  ctx.res = { message: `Hello ${ctx.req.name}` }
}

function main () {
  const app = new Mali('helloworld.proto')
  app.use({ sayHello })
  app.start('0.0.0.0:50051')
}

Documentation

Full documentation.

License

Apache-2.0