{"id":28618958,"url":"https://github.com/alexsergey/nest-kafka","last_synced_at":"2025-06-12T04:19:19.085Z","repository":{"id":81565490,"uuid":"494009245","full_name":"AlexSergey/nest-kafka","owner":"AlexSergey","description":"Test kafka integration to Nestjs","archived":false,"fork":false,"pushed_at":"2024-01-14T18:08:36.000Z","size":348,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T11:08:30.734Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/AlexSergey.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":"roadmap.md","authors":null}},"created_at":"2022-05-19T09:41:41.000Z","updated_at":"2023-03-10T08:48:53.000Z","dependencies_parsed_at":"2024-01-14T19:36:18.580Z","dependency_job_id":"d280ee18-ef0a-400a-9536-a15f68436103","html_url":"https://github.com/AlexSergey/nest-kafka","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AlexSergey/nest-kafka","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexSergey%2Fnest-kafka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexSergey%2Fnest-kafka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexSergey%2Fnest-kafka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexSergey%2Fnest-kafka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexSergey","download_url":"https://codeload.github.com/AlexSergey/nest-kafka/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexSergey%2Fnest-kafka/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259395508,"owners_count":22850845,"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":[],"created_at":"2025-06-12T04:19:13.575Z","updated_at":"2025-06-12T04:19:19.071Z","avatar_url":"https://github.com/AlexSergey.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nestjs + Kafkajs integration\n\nThis is test project to connect nestjs and kafkajs.\nIncludes docker-compose with:\n- zookeeper\n- kafka cluster\n- kafka-ui\n- kafdrop\n\n## Installation\nGo to \"consumer\" folder and run:\n\n```shell\nnpm install\n```\n\nGo to \"producer\" folder and run:\n\n```shell\nnpm install\n```\n\nIn the root project's folder run:\n\n```shell\ndocker-compose up\n```\n\n### Usage\n\nAfter running docker containers you should run producer and consumer.\nPlease, use the following command:\n\n```shell\nnpm start\n```\nProducer will be available on the link:\n[producer link](http://localhost:3000)\nAfter opening it in the Browser producer will fire event to consumer\n\n### Console usage\n\nConsole usage snippets:\n\n- Check ZooKeeper is running:\n\n```shell\ntelnet localhost 2181\n```\nAfter you see \"Connected to localhost.\", put this code:\n```shell\nsrvr\n```\n\n- Consumer\n\n```shell\nkafka-console-consumer \\\n--topic \"say.hello\" \\\n--bootstrap-server localhost:9092\n```\n\n- Producer\n\n```shell\nkafka-console-producer \\\n--topic \"say.hello\" \\\n--bootstrap-server localhost:9092\n```\n\nTo use key:value notation:\n\n```shell\nkafka-console-producer \\\n--topic \"say.hello\" \\\n--bootstrap-server localhost:9092 \\\n--property parse.key=true \\\n--property key.separator=\":\"\n```\n\nSchema-registry. Delete subject:\n\n```shell\ncurl -X DELETE http://localhost:8085/subjects/{subject_name}/versions/1\n```\n\n### Tools\n\n- [kafka-ui](http://localhost:8081)\n- [kafdrop](http://localhost:8082)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexsergey%2Fnest-kafka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexsergey%2Fnest-kafka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexsergey%2Fnest-kafka/lists"}