Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

protocat

Package Overview
Dependencies
2
Maintainers
1
Versions
23
Issues
File Explorer

Advanced tools

protocat

Modern, minimalist type-safe gRPC framework for Node.js

    0.6.5-beta.1latest
    npm

Version published
Maintainers
1
Weekly downloads
618
decreased by-26.6%

Weekly downloads

Readme

Source

ProtoCat

Modern, minimalist type-safe gRPC framework for Node.js

Quickstart

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

Docs

Learn more about ProtoCat in docs.

Support

Project is sponsored by Ackee.

See also

  • Mali - Minimalistic Node.js gRPC microservice framework
  • BloomRPC - GUI Client for GRPC Services
  • ghz - Simple gRPC benchmarking and load testing tool
  • grpc-health-probe - A command-line tool to perform health-checks for gRPC applications in Kubernetes etc.

License

This project is licensed under MIT.

Keywords

FAQs

Last updated on 17 May 2022

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.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc