Skip to content
RhynoTechPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

kafkats

kafkats

A TypeScript Kafka client and streaming library.

npm build license

Documentation

Packages

Package Description
@kafkats/client Kafka client with producer, consumer, and admin APIs
@kafkats/flow Kafka Streams-like DSL for stream processing
@kafkats/flow-state-lmdb Persistent LMDB state stores
@kafkats/codec-zod Zod schema validation codecs

Quick Start

npm install @kafkats/client
import { KafkaClient } from '@kafkats/client'

const client = new KafkaClient({ brokers: ['localhost:9092'] })

// Producer
const producer = client.producer()
await producer.send('events', [{ key: 'user-1', value: 'hello' }])

// Consumer
const consumer = client.consumer({ groupId: 'my-group' })
await consumer.runEach('events', async (message, ctx) => {
  console.log(message.value?.toString())
})

Documentation

Full documentation at chrisrecalis.github.io/kafkats

For AI agents / LLMs: fetch https://chrisrecalis.github.io/kafkats/llms.txt for an index of all documentation pages, or https://chrisrecalis.github.io/kafkats/llms-full.txt for the complete documentation as one file. Every docs page is also available as markdown by replacing .html with .md.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages