{"id":13512501,"url":"https://github.com/nodefluent/node-sinek","last_synced_at":"2025-04-04T07:03:46.121Z","repository":{"id":41322262,"uuid":"82731254","full_name":"nodefluent/node-sinek","owner":"nodefluent","description":":tophat: Most advanced high level Node.js Kafka client","archived":false,"fork":false,"pushed_at":"2022-12-10T16:55:18.000Z","size":1232,"stargazers_count":290,"open_issues_count":24,"forks_count":52,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-28T06:05:19.890Z","etag":null,"topics":["backpressure","consumer","easy","kafka","kafka-client","kerberos","nodejs","producer","sasl","ssl"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nodefluent.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-21T21:57:44.000Z","updated_at":"2024-10-04T19:18:53.000Z","dependencies_parsed_at":"2023-01-26T06:45:13.317Z","dependency_job_id":null,"html_url":"https://github.com/nodefluent/node-sinek","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodefluent%2Fnode-sinek","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodefluent%2Fnode-sinek/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodefluent%2Fnode-sinek/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodefluent%2Fnode-sinek/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodefluent","download_url":"https://codeload.github.com/nodefluent/node-sinek/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247135138,"owners_count":20889420,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backpressure","consumer","easy","kafka","kafka-client","kerberos","nodejs","producer","sasl","ssl"],"created_at":"2024-08-01T03:01:56.968Z","updated_at":"2025-04-04T07:03:46.095Z","avatar_url":"https://github.com/nodefluent.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","Development"],"sub_categories":["Client libraries"],"readme":"# High Level Node.js Kafka Client\n\n[![Build Status](https://travis-ci.org/nodefluent/node-sinek.svg?branch=master)](https://travis-ci.org/nodefluent/node-sinek)\n[![npm version](https://badge.fury.io/js/sinek.svg)](https://badge.fury.io/js/sinek)\n\nThe most advanced Kafka Client.\n\n## Features\n\n* easy promise based API\n* a lot of Kafka pitfalls already taken care of\n* backpressure and stream consume modes\n* secure committing in backpressure (1:n, batch) mode\n* plain Javascript implementation based on `kafka-node` and a super fast native implementation based on `node-rdkafka`\n* SSL, SASL \u0026 Kerberos support\n* auto reconnects\n* auto partition recognition and deterministic spreading for producers\n* **intelligent health-checks** and **analytic events** for consumers and producers\n\n## You might also like\n\n* check out :goberserk: [node-kafka-streams](https://github.com/nodefluent/kafka-streams) for a stream processing kafka api\n* check out :fire: [node-kafka-connect](https://github.com/nodefluent/kafka-connect) for a easy datastore \u003c-\u003e kafka transfer\n\n## Latest Changes\n\nCan be found [here](CHANGELOG.md)\n\n## Install\n\n```shell\nnpm install --save sinek\n```\n\n## Usage\n\n### Usage - JS Client (based on kafka.js)\n\n```javascript\nconst {\n  JSConsumer,\n  JSProducer\n} = require(\"sinek\");\n\nconst jsProducerConfig = {\n  clientId: \"my-app\",\n  brokers: [\"kafka1:9092\"]\n}\n\n(async () =\u003e {\n\n  const topic = \"my-topic\";\n\n  const producer = new JSProducer(jsProducerConfig);\n  const consumer = new JSConsumer(topic, jsConsumerConfig);\n\n  producer.on(\"error\", error =\u003e console.error(error));\n  consumer.on(\"error\", error =\u003e console.error(error));\n\n  await consumer.connect();\n\n  // consume from a topic.\n  consumer.consume(async (messages) =\u003e {\n    messages.forEach((message) =\u003e {\n      console.log(message);\n    })\n  });\n\n  // Produce messages to a topic.\n  await producer.connect();\n  producer.send(topic, \"a message\")\n})().catch(console.error);\n\n```\n\n# Further Docs\n\n* [Best-practice example](examples/best-practice-example)\n* [SSL example](examples/ssl-example/)\n* [SASL+SSL example](examples/sasl-ssl-example/)\n* [Alpine based docker example](kafka-setup/alpine.Dockerfile)\n* [Debian based docker example](kafka-setup/debian.Dockerfile)\n\n\u003e make it about them, not about you\n\u003e - Simon Sinek\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodefluent%2Fnode-sinek","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodefluent%2Fnode-sinek","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodefluent%2Fnode-sinek/lists"}