Registry / messaging / kavka-core

kavka-core

JSON →
library0.0.2jsnpmunverified

Kavka Core is a gRPC connector library for Kavka messaging system, built with Connect-Protocol (connectrpc.com) and proto3 definitions from buf.build. Version 0.0.2 is the initial release, providing typed client and server stubs for TypeScript/JavaScript. It differentiates from other gRPC libraries by leveraging Connect's dual-protocol (gRPC and gRPC-Web) support and first-class TypeScript generation via Buf. Currently in early development stage.

npm install kavka-core
INSTALL
IMPORT
SIG · KAVKA-CORE
K
kavka-core
messagingjavascriptv0.0.2
harness data pending
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.

createClient
import { createClient } from 'kavka-core'
const { createClient } = require('kavka-core')
Package is ESM-only; CommonJS require will fail.
KavkaService
import { KavkaService } from 'kavka-core'
import { KavkaService } from 'kavka-core/service'
All exports are at the main entry point; no subpath imports.
KavkaClient
import type { KavkaClient } from 'kavka-core'
Use type import for TypeScript; regular import works at runtime but is unnecessary.
createRouter
import { createRouter } from 'kavka-core'
For server-side usage.

Creates a Kavka client using Connect-Web transport and sends a message.

import { createClient, KavkaService } from 'kavka-core'; import { createConnectTransport } from '@connectrpc/connect-web'; const transport = createConnectTransport({ baseUrl: 'https://api.example.com', interceptors: [], }); async function main() { const client = createClient(KavkaService, transport); const response = await client.sendMessage({ topic: 'orders', key: 'order-123', value: new TextEncoder().encode('hello'), }); console.log('Sent:', response); } main().catch(console.error);
Debug
Known issues
gotchaESM-only package; cannot be used with require() in CommonJS projects
fix
Use import syntax or set type: module in package.json
affects: >=0.0.0
breakingProtobuf types are not re-exported; you must install @bufbuild/protobuf separately
fix
npm install @bufbuild/protobuf
affects: >=0.0.0
gotchaNo built-in retry logic; transport-level retries must be added via interceptors
fix
Use @connectrpc/connect-retry or custom interceptor
affects: >=0.0.0
deprecatedKavyaService is subject to change; not stable API
fix
Pin exact version and monitor releases
affects: 0.0.x
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module /path/to/node_modules/kavka-core/index.mjs from /path/to/app.js not supported.
Using CommonJS require() on ESM-only package
fix
Use dynamic import() or convert project to ESM (type: module).
TypeError: Class extends value undefined is not a constructor or null
Missing @bufbuild/protobuf dependency
fix
npm install @bufbuild/protobuf
Module not found: Can't resolve '@bufbuild/protobuf'
@bufbuild/protobuf not installed or not in node_modules
fix
npm install @bufbuild/protobuf
Upgrade
Version history
0.0.2latest on npm
Audit
Dependencies
@connectrpc/connectrequiredCore Connect-Protocol runtime for creating clients and servers
@bufbuild/protobufrequiredProtobuf message types and serialization
Agent activity
16 hits · last 30 days
node
14
Amazon
1
OpenAI (training)
1
Resources
kavka-core — npm install kavka-core · libregistry