{"id":25268694,"url":"https://github.com/tamdilip/kafka-nodejs-docker","last_synced_at":"2026-04-29T23:32:03.342Z","repository":{"id":129131263,"uuid":"376326933","full_name":"tamdilip/kafka-nodejs-docker","owner":"tamdilip","description":"Simple Kafka hello world example with docker and nodejs.","archived":false,"fork":false,"pushed_at":"2021-06-12T16:20:00.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T04:34:24.136Z","etag":null,"topics":["docker","docker-compose","kafka","kafka-consumer","kafka-docker","kafka-node","kafka-producer","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tamdilip.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-12T15:43:05.000Z","updated_at":"2024-09-12T00:43:21.000Z","dependencies_parsed_at":"2023-04-22T16:00:56.509Z","dependency_job_id":null,"html_url":"https://github.com/tamdilip/kafka-nodejs-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tamdilip/kafka-nodejs-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamdilip%2Fkafka-nodejs-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamdilip%2Fkafka-nodejs-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamdilip%2Fkafka-nodejs-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamdilip%2Fkafka-nodejs-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tamdilip","download_url":"https://codeload.github.com/tamdilip/kafka-nodejs-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamdilip%2Fkafka-nodejs-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32448399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"ssl_error","status_checked_at":"2026-04-29T22:10:49.234Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["docker","docker-compose","kafka","kafka-consumer","kafka-docker","kafka-node","kafka-producer","nodejs"],"created_at":"2025-02-12T10:32:15.897Z","updated_at":"2026-04-29T23:32:03.325Z","avatar_url":"https://github.com/tamdilip.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📣 kafka-nodejs-docker\nSimple Kafka sample to boot up zookeeper and kafka service with docker and nodejs scripts to create a topic, a consumer listening to the topic and a producer to publish message with specified partion to a topic.\n\n### Boot Zookeeper and Kafka\nInitial Docker compose up to create image and run container.\n```sh\n        $ docker-compose up -d\n```\nSecondary docker commands to start/stop containers.\n```sh\n        $ docker-compose stop\n        $ docker-compose start\n```\n### Kafka Node scripts\n\n * `node create-topic.js`  - creates a kafka topic with specified number of partitions.\n * `node consumer.js` - subscribes/listens to kafka topic for published/incoming messages.\n * `node producer.js message_one 1` - publishes message to a kafka topic to the specified partition. \n \n### References\n - https://www.baeldung.com/ops/kafka-docker-setup\n - https://www.youtube.com/watch?v=R873BlNVUB4\n\n**Happy coding :) !!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftamdilip%2Fkafka-nodejs-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftamdilip%2Fkafka-nodejs-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftamdilip%2Fkafka-nodejs-docker/lists"}