Socket
Socket
Sign inDemoInstall

protocat

Package Overview
Dependencies
35
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    protocat

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


Version published
Weekly downloads
599
decreased by-19.27%
Maintainers
1
Install size
7.40 MB
Created
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 for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • 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