Registry / devops / eol-commons-grpc

eol-commons-grpc

JSON →
library3.8.0jsnpmunverified

Common utilities for gRPC servers in TypeScript, version 3.8.0. Includes a script (eol-protogen) to generate protobuf models from proto files, reducing boilerplate. Designed for internal use at Newline Studio; not actively maintained for the broader community. No notable alternatives in the npm ecosystem for this specific workflow.

devops
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

The CLI tool is invoked via npx, not imported as a module.

npx eol-protogen

ESM import is preferred; the package is written in TypeScript and exports named symbols.

import { MainGrpcServer } from 'eol-commons-grpc';

Only named export available.

import { generateModels } from 'eol-commons-grpc';

Shows how to generate protobuf models using eol-protogen and start a gRPC server with eol-commons-grpc.

// First, generate proto models // Run: npx eol-protogen -m ./src/models -p ./proto-internal -s services.draft.drafts services.draft.lotteries // Then use generated models in a gRPC server import { MainGrpcServer } from 'eol-commons-grpc'; import { DraftService } from './generated/models'; const server = new MainGrpcServer({ host: '0.0.0.0', port: 50051, services: [new DraftService()], }); server.start(); console.log('gRPC server started on port 50051');
Debug
Known footguns
deprecatedThe package may not receive frequent updates; version 3.8.0 is stable but not actively maintained.
gotchaThe CLI tool eol-protogen requires service names without .proto extension.
gotchaGenerated models are placed relative to --model path; default is ./src/models. Ensure this path exists.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
8 hits · last 30 days
gptbot
3
Resources