hero

Mali

Minimalistic Node.js gRPC microservice framework

Get Started →

Modern JavaScript

Mali is designed for usage with modern asynchronous mechanisms utilizing `Promises` or `async / await`.

Metadata

Mali supports header, trailer, status, and error metadata.

Middleware

Cascading middleware can be composed to extend the minimal core and add additional features.

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

Full server in a few lines of code...

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')
}

main()