{"id":13783793,"url":"https://github.com/nodefluent/schema-registry","last_synced_at":"2025-05-11T19:31:31.630Z","repository":{"id":65493332,"uuid":"90489309","full_name":"nodefluent/schema-registry","owner":"nodefluent","description":":orange_book: json \u0026 avro http schema registry backed by Kafka ","archived":true,"fork":false,"pushed_at":"2019-06-21T09:05:55.000Z","size":111,"stargazers_count":24,"open_issues_count":8,"forks_count":3,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-11-06T09:42:01.892Z","etag":null,"topics":["avro","json","kafka","node","registry","rest","schema","schema-registry"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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":null,"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-05-06T20:28:23.000Z","updated_at":"2024-05-27T18:32:02.000Z","dependencies_parsed_at":"2023-01-26T02:32:05.111Z","dependency_job_id":null,"html_url":"https://github.com/nodefluent/schema-registry","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodefluent%2Fschema-registry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodefluent%2Fschema-registry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodefluent%2Fschema-registry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodefluent%2Fschema-registry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodefluent","download_url":"https://codeload.github.com/nodefluent/schema-registry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224974851,"owners_count":17401108,"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":["avro","json","kafka","node","registry","rest","schema","schema-registry"],"created_at":"2024-08-03T19:00:30.780Z","updated_at":"2024-11-17T20:31:06.729Z","avatar_url":"https://github.com/nodefluent.png","language":"JavaScript","funding_links":[],"categories":["Operations"],"sub_categories":["Schema Management"],"readme":"# node-schema-registry\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/nodefluent/schema-registry.svg)](https://greenkeeper.io/)\n\n[![Build Status](https://travis-ci.org/nodefluent/schema-registry.svg?branch=master)](https://travis-ci.org/nodefluent/schema-registry)\n\n\u003e DISCLAIMER: We encourage you to keep your topics dynamic and JSON only, when choosing to go the Node.js Kafka way.\nTherefore we are no longer adding features to this registry project. When you are looking for a typed (schema-requirement) approach we suggest using Confluent's schema-registry with AVRO.\n\n- in BETA :seedling:\n- avro \u0026 json schema registry backed by Kafka :octopus:\n- API similar to [confluentinc's schema-registry](https://github.com/confluentinc/schema-registry)\n- enhances the experience of [node-kafka-streams](https://github.com/nodefluent/kafka-streams)\n- enables [node-kafka-connect](https://github.com/nodefluent/kafka-connect)\n- might also be used in a Kafka unrelated field :star:\n- ships with a neat `RegistryClient`\n- checkout [API Quickstart](docs/api.md)\n- compatibility options are currently disabled\n- `LivingAvroSchema` and `LivingJsonSchema` allow for real-time schema updates\nin running services\n\n## What is a Schema Registry?\n\nSchema Registry provides a serving layer for your metadata. It provides a\nRESTful interface for storing and retrieving Avro schemas. It stores a versioned\nhistory of all schemas, provides multiple compatibility settings and allows\nevolution of schemas according to the configured compatibility setting. It\nprovides serializers that plug into Kafka clients that handle schema storage and\nretrieval for Kafka messages that are sent in the Avro format.\n\n## Code Wise (Dev)\n\n```\nnpm install --save schema-registry\n```\n\n```es6\nconst {RegistryClient, Registry, LivingAvroSchema} = require(\"schema-registry\");\nconst registryClient = new RegistryClient({port: 1337});\nregistryClient.getLatestSubjectSchema(\"test-subject\").then(schema =\u003e {..});\n```\n\n## Living Schemas\n\n```es6\nconst {LivingAvroSchema} = require(\"schema-registry\");\nconst livingSchema = new LivingAvroSchema(\"test\", \"latest\", {port: 1337});\nlivingSchema.on(\"new-version\", console.log);\nlivingSchema.fetch().then(_ =\u003e {\n    const buffer = livingSchema.toBuffer(someObject);\n    const equalToSomeObject = livingSchema.fromBuffer(buffer);\n});\n```\n\n## Run a Registry (Ops) (Quicksetup)\n\n```\nnpm install -g schema-registry\n```\n\n```\n# you will need zookeeper + kafka (checkout `/kafka-setup/start.sh`\n# if you dont have them)\n# node-schema-registry -h\nnode-schema-registry -p 1337 -z localhost:2181/ -t _node_schema -l info\n```\n\n## Using the registry CLI Client\n```\nnsrc --host localhost -p 1337 -e getSchemaById -a e707463d-0c3d-4010-afed-0d53c77e3605 -v\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodefluent%2Fschema-registry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodefluent%2Fschema-registry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodefluent%2Fschema-registry/lists"}