Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smolijar/protocat
Modern, minimalist type-safe gRPC framework for Node.js
https://github.com/smolijar/protocat
api backend framework grpc microservice middleware node protocat server
Last synced: about 2 months ago
JSON representation
Modern, minimalist type-safe gRPC framework for Node.js
- Host: GitHub
- URL: https://github.com/smolijar/protocat
- Owner: smolijar
- License: mit
- Created: 2020-08-06T04:57:14.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-09-23T08:51:09.000Z (over 1 year ago)
- Last Synced: 2024-07-31T14:10:30.115Z (5 months ago)
- Topics: api, backend, framework, grpc, microservice, middleware, node, protocat, server
- Language: TypeScript
- Homepage: https://smolijar.github.io/protocat/
- Size: 1.19 MB
- Stars: 56
- Watchers: 4
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![](https://raw.githubusercontent.com/grissius/protocat/master/website/static/img/logo.svg)](https://smolijar.github.io/protocat/)
# ProtoCat
Modern, minimalist type-safe gRPC framework for Node.js
[![](https://flat.badgen.net/github/status/grissius/protocat)](https://github.com/grissius/protocat/actions/workflows/node.js.yml)
[![](https://flat.badgen.net/npm/v/protocat)](https://www.npmjs.com/package/protocat)
[![](https://flat.badgen.net/codecov/c/github/grissius/protocat)](https://codecov.io/gh/grissius/protocat)
[![](https://flat.badgen.net/codeclimate/maintainability/grissius/protocat)](https://codeclimate.com/github/grissius/protocat)
[![](https://flat.badgen.net/github/license/grissius/protocat)](https://github.com/grissius/protocat/blob/master/LICENSE)
[![](https://flat.badgen.net/david/dep/grissius/protocat)](https://david-dm.org/grissius/protocat)
[![](https://flat.badgen.net/snyk/grissius/protocat/master)](https://snyk.io/vuln/npm:protocat)
[![](https://flat.badgen.net/badge/%F0%9F%93%91%20docs/pages/cyan)](https://smolijar.github.io/protocat/)## Quickstart
```typescript
import { ProtoCat } from 'protocat'
import { CatService } from '../dist/cat_grpc_pb' // Generated service definitionapp = new ProtoCat()
app.addService(CatService, {
getCat: async call => {
const cat = await getCatByName(call.request?.getName() ?? '')
call.response.setName(cat.name)
.setHealth(cat.health)
.setLevel(cat.level)
.setClass(cat.profession ?? 'warrior')
}
}app.start('0.0.0.0:3000')
```## Docs
Learn more about ProtoCat in [docs](https://smolijar.github.io/protocat//).
## Support
Project is sponsored by [Ackee](https://www.ackee.cz).
## See also
- [Mali](https://mali.js.org/) - Minimalistic Node.js gRPC microservice framework
- [BloomRPC](https://github.com/uw-labs/bloomrpc) - GUI Client for GRPC Services
- [ghz](https://github.com/bojand/ghz) - Simple gRPC benchmarking and load testing tool
- [grpc-health-probe](https://github.com/grpc-ecosystem/grpc-health-probe) - A command-line tool to perform health-checks for gRPC applications in Kubernetes etc.## License
This project is licensed under [MIT](./LICENSE).