A TypeScript/JavaScript client library for EchoFi services (v5.0.0). Automatically generates gRPC-Web clients from proto files, providing a unified interface to access Music, User, Activity, and Stats services with full TypeScript support and real-time WebSocket communication. Works in browsers and Node.js environments. Key differentiator: auto-generation from proto files ensures zero manual code changes when adding new services. Active development on GitHub.
npm install echofi-clientNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates initializing the gRPC client and making a paginated request to the Music service.
Add await client.initialize() after construction.
Import only needed message classes via deep imports if available, e.g. import { ListArtistsRequest } from 'echofi-client/dist/messages/music'.Set WebSocket options in client config instead of using grpc-web directly.
Use dynamic import: const { EchoFiGrpcWebClient } = await import('echofi-client');Change const EchoFiGrpcWebClient = require('echofi-client') to const { EchoFiGrpcWebClient } = await import('echofi-client')Install protobufjs: npm install protobufjs
Add await client.initialize() before any service calls
Install grpc-web: npm install grpc-web