egg-obelisk is a gRPC framework for the Egg.js ecosystem, providing seamless integration of gRPC and Protobuf into Egg applications. Version 1.0.12 is the latest stable release, with a low update cadence. It extends Egg's router to support RPC methods, works with Egg middleware and plugins, and handles both HTTP and gRPC requests. Key differentiators include tight Egg integration, reuse of Egg's controller and service layers, and support for both HTTP and gRPC in a single app. It requires Node >=12 and uses egg-grpc under the hood.
npm install egg-obeliskNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Complete example of setting up an Egg app with egg-obelisk as the framework, including router, controller, and service for a gRPC endpoint.
Add 'egg': { 'framework': 'egg-obelisk' } to package.json.Use config.obelisk.listen = { port: 50051 }.Define controllers in app/controller and services in app/service, then reference them.
Test compatibility with your Egg version; consider alternatives like grpc-alone if issues arise.
Change port in config.obelisk.listen.port.
Add 'egg' to your package.json dependencies and run npm install.
Ensure package.json has 'egg': { 'framework': 'egg-obelisk' }.Place .proto files in app/proto directory and load them.