mali

A minimalistic gRPC microservice framework for Node.js

Github stars Tracking Chart

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/proto-loader

Example

const Mali = require('mali')

async function sayHello (ctx) {
  ctx.res = { message: 'Hello '.concat(ctx.req.name) }
}

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

Documentation

Full documentation.

License

Apache-2.0

Main metrics

Overview
Name With Ownermalijs/mali
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 1)
Platform
License:Apache License 2.0
所有者活动
Created At2016-12-27 01:44:16
Pushed At2024-05-15 21:33:45
Last Commit At2024-05-15 21:48:16
Release Count64
Last Release Namev0.47.1 (Posted on )
First Release Namev0.0.2 (Posted on 2016-12-27 16:27:42)
用户参与
Stargazers Count888
Watchers Count14
Fork Count60
Commits Count499
Has Issues Enabled
Issues Count68
Issue Open Count11
Pull Requests Count174
Pull Requests Open Count4
Pull Requests Close Count131
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private