{"id":15290763,"url":"https://github.com/kafkajs/confluent-schema-registry","last_synced_at":"2025-05-14T10:12:29.884Z","repository":{"id":35111574,"uuid":"203171190","full_name":"kafkajs/confluent-schema-registry","owner":"kafkajs","description":"is a library that makes it easier to interact with the Confluent schema registry","archived":false,"fork":false,"pushed_at":"2025-04-02T17:35:23.000Z","size":2320,"stargazers_count":165,"open_issues_count":73,"forks_count":102,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-03T21:41:37.341Z","etag":null,"topics":["kafka","nodejs","npm-package","schema-registry","schema-registry-client"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@kafkajs/confluent-schema-registry","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/kafkajs.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-19T12:45:20.000Z","updated_at":"2025-04-02T17:35:20.000Z","dependencies_parsed_at":"2024-06-18T12:29:05.385Z","dependency_job_id":"19163ef7-faca-4795-89b3-19e01e69d038","html_url":"https://github.com/kafkajs/confluent-schema-registry","commit_stats":{"total_commits":239,"total_committers":29,"mean_commits":8.241379310344827,"dds":0.7740585774058577,"last_synced_commit":"d2367bd5b0bf90f7462976ed029da6a40c661eb9"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kafkajs%2Fconfluent-schema-registry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kafkajs%2Fconfluent-schema-registry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kafkajs%2Fconfluent-schema-registry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kafkajs%2Fconfluent-schema-registry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kafkajs","download_url":"https://codeload.github.com/kafkajs/confluent-schema-registry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248338060,"owners_count":21087157,"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":["kafka","nodejs","npm-package","schema-registry","schema-registry-client"],"created_at":"2024-09-30T16:09:22.062Z","updated_at":"2025-04-11T03:37:27.809Z","avatar_url":"https://github.com/kafkajs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# confluent-schema-registry\n\n`@kafkajs/confluent-schema-registry` is a library that makes it easier to interact with the Confluent schema registry, it provides convenient methods to encode, decode and register new schemas using the Apache Avro serialization format and Confluent's [wire format](https://docs.confluent.io/current/schema-registry/docs/serializer-formatter.html#wire-format).\n\n[![Build Status](https://dev.azure.com/tulios/ConfluentSchemaRegistry/_apis/build/status/kafkajs.confluent-schema-registry?branchName=master)](https://dev.azure.com/tulios/ConfluentSchemaRegistry/_build/latest?definitionId=3\u0026branchName=master)\n\n## Getting started\n\n```sh\nnpm install @kafkajs/confluent-schema-registry\n# yarn add @kafkajs/confluent-schema-registry\n```\n\n```javascript\nconst { Kafka } = require('kafkajs')\nconst { SchemaRegistry } = require('@kafkajs/confluent-schema-registry')\n\nconst kafka = new Kafka({ clientId: 'my-app', brokers: ['kafka1:9092'] })\nconst registry = new SchemaRegistry({ host: 'http://registry:8081/' })\nconst consumer = kafka.consumer({ groupId: 'test-group' })\n\nconst run = async () =\u003e {\n  await consumer.connect()\n  await consumer.subscribe({ topic: 'test-topic', fromBeginning: true })\n\n  await consumer.run({\n    eachMessage: async ({ topic, partition, message }) =\u003e {\n      const decodedKey = await registry.decode(message.key)\n      const decodedValue = await registry.decode(message.value)\n      console.log({ decodedKey, decodedValue })\n    },\n  })\n}\n\nrun().catch(console.error)\n```\n\n## Documentation\n\nLearn more about using [KafkaJS Confluent Schema registry on the official site!](https://kafkajs.github.io/confluent-schema-registry/)\n\n## License\n\nSee [LICENSE](https://github.com/kafkajs/confluent-schema-registry/blob/master/LICENSE) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkafkajs%2Fconfluent-schema-registry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkafkajs%2Fconfluent-schema-registry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkafkajs%2Fconfluent-schema-registry/lists"}