{"id":37471014,"url":"https://github.com/axlj45/schema-registry-client","last_synced_at":"2026-01-16T07:16:00.614Z","repository":{"id":38984944,"uuid":"161112676","full_name":"axlj45/schema-registry-client","owner":"axlj45","description":"Schema registry client for Confluent's Avro Schema Registry","archived":false,"fork":false,"pushed_at":"2025-10-27T21:34:50.000Z","size":1227,"stargazers_count":3,"open_issues_count":9,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-27T10:26:35.247Z","etag":null,"topics":["avro","node","node-js","node-rdkafka","schema-registry-client"],"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/axlj45.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-10T03:42:16.000Z","updated_at":"2025-04-06T13:10:03.000Z","dependencies_parsed_at":"2025-03-20T16:24:14.975Z","dependency_job_id":"873c02a0-5615-415c-8859-7072ce59f0fb","html_url":"https://github.com/axlj45/schema-registry-client","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/axlj45/schema-registry-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axlj45%2Fschema-registry-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axlj45%2Fschema-registry-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axlj45%2Fschema-registry-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axlj45%2Fschema-registry-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axlj45","download_url":"https://codeload.github.com/axlj45/schema-registry-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axlj45%2Fschema-registry-client/sbom","scorecard":{"id":220231,"data":{"date":"2025-08-11","repo":{"name":"github.com/axlj45/schema-registry-client","commit":"68cc498000d97e6db22b157d304348b982d7e227"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.2,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Info: topLevel 'contents' permission set to 'read': .github/workflows/build.yml:3","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/5 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/axlj45/schema-registry-client/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/axlj45/schema-registry-client/build.yml/main?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/build.yml:35","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: all commits (25) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-x4c5-c7rf-jjgv","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T02:18:45.982Z","repository_id":38984944,"created_at":"2025-08-17T02:18:45.982Z","updated_at":"2025-08-17T02:18:45.982Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"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":["avro","node","node-js","node-rdkafka","schema-registry-client"],"created_at":"2026-01-16T07:15:59.946Z","updated_at":"2026-01-16T07:16:00.606Z","avatar_url":"https://github.com/axlj45.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# schema-registry-client\nSchema registry client for Confluent's Avro Schema Registry.\n\n[![Build](https://github.com/axlj45/schema-registry-client/actions/workflows/build.yml/badge.svg)](https://github.com/axlj45/schema-registry-client/actions/workflows/build.yml)\n[![codecov](https://codecov.io/gh/axlj45/schema-registry-client/branch/master/graph/badge.svg)](https://codecov.io/gh/axlj45/schema-registry-client)\n\n## Usage\n\n```bash\nnpm install --save schema-registry-client\n```\n\n\n### Create Schema\n\n```ts\nimport { SchemaRegistryClient } from './SchemaRegistryClient';\n\nconst schemaRegistry = SchemaRegistryClient.create('http://localhost:8081');\n\ninterface IData {\n  first: string;\n  last: string;\n  age: number;\n}\n\nconst schema = {\n  \"name\": \"SerializationTest\",\n  \"namespace\": \"com.example\",\n  \"type\": \"record\",\n  \"fields\": [\n    { \"name\": \"first\", \"type\": [\"null\", \"string\"] },\n    { \"name\": \"last\", \"type\": \"string\" },\n    { \"name\": \"age\", \"type\": [\"null\", \"int\"] },\n  ]\n};\n\nschemaRegistry\n  .createSchema('subjectName', schema)\n  .then((schemaInfo)=\u003e { console.log(`Created schema: ${schemaInfo.subject} with id: ${schemaInfo.id}`) })\n```\n\n### Serialize JSON\n\n```ts\nimport { SchemaRegistryClient } from './SchemaRegistryClient';\n\nconst schemaRegistry = SchemaRegistryClient.create('http://localhost:8081');\n\ninterface IData {\n  first: string;\n  last: string;\n  age: number;\n}\n\nconst data: IData = {\n  'age': 60,\n  'first': 'firstName',\n  'last': 'lastName',\n}\n\nschemaRegistry\n  .encodeBySubject(data, 'subjectName')\n  .then(schemaRegistryAvroBuffer =\u003e console.log(schemaRegistryAvroBuffer))\n```\n\n### Deserialize JSON\n\n\n```ts\nimport { SchemaRegistryClient } from './SchemaRegistryClient';\n\nconst schemaRegistry = SchemaRegistryClient.create('http://localhost:8081');\n\ninterface IData {\n  first: string;\n  last: string;\n  age: number;\n}\n\nconst buffer = /* consume message buffer from kafka */\n\nschemaRegistry\n  .decode\u003cIData\u003e(buffer)\n  .then(data =\u003e {\n    console.log(`First Name: ${data.first}\n    Last Name: ${data.last}\n    Age: ${data.age}`)\n  })\n```\n\n## Future Development\n\n* Support schema registry multiserver configuration\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxlj45%2Fschema-registry-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxlj45%2Fschema-registry-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxlj45%2Fschema-registry-client/lists"}