mali

A minimalistic gRPC microservice framework for Node.js

Github星跟踪图

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

主要指标

概览
名称与所有者malijs/mali
主编程语言JavaScript
编程语言JavaScript (语言数: 1)
平台
许可证Apache License 2.0
所有者活动
创建于2016-12-27 01:44:16
推送于2024-05-15 21:33:45
最后一次提交2024-05-15 21:48:16
发布数64
最新版本名称v0.47.1 (发布于 )
第一版名称v0.0.2 (发布于 2016-12-27 16:27:42)
用户参与
星数888
关注者数14
派生数60
提交数499
已启用问题?
问题数68
打开的问题数11
拉请求数174
打开的拉请求数4
关闭的拉请求数131
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?