A Node.js Kafka Connect connector for MySQL, PostgreSQL, SQLite, and MSSQL databases using Sequelize ORM. Version 4.0.0 allows streaming data from databases to Kafka (source connector) and from Kafka to databases (sink connector). It supports custom ETL transformations and offers both API and CLI usage. The library is currently in maintenance mode with limited updates and does not support Node.js >= 13 when using native mode with node-rdkafka. A key differentiator is its tight integration with Sequelize for schema management.
npm install sequelize-kafka-connectNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a source connector that streams data from a PostgreSQL database to a Kafka topic. Replace kafka and database connection details with your environment.
Use JavaScript mode (without noptions) or downgrade Node.js to 12.x.
Install yarn globally (npm i -g yarn) and use yarn add instead of npm install.
Use 'const { runSourceConnector } = require('sequelize-kafka-connect')' instead of 'const runSourceConnector = require('sequelize-kafka-connect')'.Prefer using the API programmatically until CLI is stable.
Remove zkConStr and set kafkaHost to your Kafka broker address.
Run 'yarn add node-rdkafka@2.7.4' (requires yarn and Node.js 9-12).
Change to 'import { runSourceConnector } from 'sequelize-kafka-connect''.Ensure Kafka is running and accessible; check kafkaHost config.
Verify database host, port, and credentials in connector.options.