0.6.5-beta.1 • Published 2 years ago

protocat v0.6.5-beta.1

Weekly downloads
796
License
MIT
Repository
-
Last release
2 years ago

npm.io

ProtoCat

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

npm.io npm.io npm.io npm.io npm.io npm.io npm.io npm.io

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.

0.6.5-beta.1

2 years ago

0.6.5-beta.0

2 years ago

0.6.4

3 years ago

0.6.3

3 years ago

0.6.3-beta.0

3 years ago

0.6.2

3 years ago

0.6.1

3 years ago

0.6.0

4 years ago

0.5.2

4 years ago

0.5.1

4 years ago

0.5.0

4 years ago

0.5.0-beta.1

4 years ago

0.5.0-beta.0

4 years ago

0.4.0

4 years ago

0.4.0-beta.1

4 years ago

0.4.0-beta.0

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.2

4 years ago

0.1.3

4 years ago

0.1.0

4 years ago

0.1.1

4 years ago

0.0.1

4 years ago