https://github.com/malijs/mali
A minimalistic gRPC microservice framework for Node.js
https://github.com/malijs/mali
grpc hacktoberfest mali node
Last synced: 3 months ago
JSON representation
A minimalistic gRPC microservice framework for Node.js
- Host: GitHub
- URL: https://github.com/malijs/mali
- Owner: malijs
- License: apache-2.0
- Created: 2016-12-27T01:44:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-05-15T21:33:45.000Z (about 1 year ago)
- Last Synced: 2025-04-13T03:49:43.517Z (3 months ago)
- Topics: grpc, hacktoberfest, mali, node
- Language: JavaScript
- Homepage: https://mali.js.org
- Size: 2.04 MB
- Stars: 890
- Watchers: 14
- Forks: 60
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-grpc - Mali - A minimalistic gRPC microservice framework for Node.js (Language-Specific / Node.js)
README
# [](https://malijs.github.io)
**A minimalistic [gRPC](http://www.grpc.io) microservice framework.**
[](https://www.npmjs.com/package/mali)
[](https://github.com/malijs/mali/actions)
[](https://coveralls.io/github/malijs/mali)
[](https://standardjs.com)
[](https://raw.githubusercontent.com/malijs/mali/master/LICENSE)
[](https://gitter.im/malijs/Lobby)
[](https://www.paypal.me/bojandj)
[](https://www.buymeacoffee.com/bojand)## Installation
Install module and required peer dependencies.
```
$ npm install mali @grpc/grpc-js @grpc/proto-loader
```## Example
```js
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](https://mali.js.org).
## License
Apache-2.0