protocat
Advanced tools
Modern, minimalist type-safe gRPC framework for Node.js
Weekly downloads
Readme
import { ProtoCat } from 'protocat'
import { CatService } from '../dist/cat_grpc_pb' // Generated service definition
app = 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')
Learn more about ProtoCat in docs.
Project is sponsored by Ackee.
This project is licensed under MIT.
FAQs
Modern, minimalist type-safe gRPC framework for Node.js
The npm package protocat receives a total of 479 weekly downloads. As such, protocat popularity was classified as not popular.
We found that protocat demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.