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: 23 days 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: 2025-03-24T20:51:13.475Z (about 1 month ago)
- Topics: api, backend, framework, grpc, microservice, middleware, node, protocat, server
- Language: TypeScript
- Homepage: https://smolijar.github.io/protocat/
- Size: 1.19 MB
- Stars: 57
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://smolijar.github.io/protocat/)
# ProtoCat
Modern, minimalist type-safe gRPC framework for Node.js
[](https://github.com/grissius/protocat/actions/workflows/node.js.yml)
[](https://www.npmjs.com/package/protocat)
[](https://codecov.io/gh/grissius/protocat)
[](https://codeclimate.com/github/grissius/protocat)
[](https://github.com/grissius/protocat/blob/master/LICENSE)
[](https://david-dm.org/grissius/protocat)
[](https://snyk.io/vuln/npm:protocat)
[](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).