{"id":16752310,"url":"https://github.com/jprochazk/cbor","last_synced_at":"2026-03-12T23:32:02.215Z","repository":{"id":57122260,"uuid":"274921420","full_name":"jprochazk/cbor","owner":"jprochazk","description":"TypeScript implementation of the CBOR specification","archived":false,"fork":false,"pushed_at":"2023-02-10T23:12:07.000Z","size":216,"stargazers_count":22,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-21T20:25:10.179Z","etag":null,"topics":["cbor","javascript","json","typescript"],"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/jprochazk.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":"2020-06-25T13:20:10.000Z","updated_at":"2025-09-16T10:50:16.000Z","dependencies_parsed_at":"2024-10-23T04:25:23.731Z","dependency_job_id":null,"html_url":"https://github.com/jprochazk/cbor","commit_stats":{"total_commits":70,"total_committers":3,"mean_commits":"23.333333333333332","dds":0.05714285714285716,"last_synced_commit":"4824b43c60f8a1c38fd8ef3d51d1f24e30a55743"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/jprochazk/cbor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jprochazk%2Fcbor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jprochazk%2Fcbor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jprochazk%2Fcbor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jprochazk%2Fcbor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jprochazk","download_url":"https://codeload.github.com/jprochazk/cbor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jprochazk%2Fcbor/sbom","scorecard":{"id":536132,"data":{"date":"2025-08-11","repo":{"name":"github.com/jprochazk/cbor","commit":"4824b43c60f8a1c38fd8ef3d51d1f24e30a55743"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"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":"Code-Review","score":0,"reason":"Found 0/24 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":"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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 'master'"],"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":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 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"}}]},"last_synced_at":"2025-08-20T07:00:08.397Z","repository_id":57122260,"created_at":"2025-08-20T07:00:08.397Z","updated_at":"2025-08-20T07:00:08.397Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30449056,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T21:31:01.033Z","status":"ssl_error","status_checked_at":"2026-03-12T21:30:43.161Z","response_time":114,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["cbor","javascript","json","typescript"],"created_at":"2024-10-13T02:46:38.084Z","updated_at":"2026-03-12T23:32:02.189Z","avatar_url":"https://github.com/jprochazk.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/jprochazk/cbor.svg?branch=master)](https://travis-ci.com/jprochazk/cbor)\n[![David](https://img.shields.io/david/dev/jprochazk/cbor)](https://github.com/jprochazk/cbor/blob/master/package.json)\n[![GitHub](https://img.shields.io/github/license/jprochazk/cbor)](https://github.com/jprochazk/cbor/blob/master/LICENSE)\n\nTypeScript implementation of the Concise Binary Object Representation [RFC 7049](https://tools.ietf.org/html/rfc7049). From the [official website](http://cbor.io/):\n\nCBOR is a data format whose design goals include the possibility of extremely small code size, fairly small message size, and extensibility without the need for version negotiation.\n\nThe API is self-explanatory:\n```js\n// Initialize some data\nconst json = {\n    \"key\": \"value\",\n    \"another key\": [\n        1, 2, 3\n    ],\n    \"number\": 3.141592653589793\n    \"nulls are also encoded\": null\n};\n\nconst encoded = CBOR.encode(json); // ArrayBuffer\nconst decoded = CBOR.decode(encoded); // Object\n\n// You can also encode into a pre-allocated buffer\nconst encoded = CBOR.encodeInto(new ArrayBuffer(4096), data);\n```\n\n### Usage\n\nThe library is targeted for both Node and Browsers using NPM:\n```\n\u003e npm install cbor@npm:jprochazk/cbor\n```\nThis installs the library under the `cbor` alias.\n\n```js\n// as CommonJS\nconst CBOR = require(\"cbor\");\n\n// as an ES module\nimport CBOR from \"cbor\";\n\nCBOR.encode(...);\nCBOR.decode(...);\n```\n\nOr included in the page as a static script from the `unkpg` CDN:\n\n```html\n\u003cscript src=\"https://unpkg.com/@jprochazk/cbor@0.4.6\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n    // after including the script in the page, the CBOR object is available globally\n    CBOR.encode(...);\n    CBOR.decode(...);\n\u003c/script\u003e\n```\n\n### Benchmarks\n\nBenchmark is available [here](https://jsbench.me/krkdop8101/1).\n\n| Browser | CBOR.decode | CBOR.encode | CBOR.encodeInto |\n| :------ | :---------- | :---------- | :-------------- |\n| Chrome  | 5225 ops/s  | 8998 ops/s  | 9268 ops/s      |\n| Firefox | 20454 ops/s | 22323 ops/s | 22900 ops/s     |\n\nResults are on a i5-8600k intel processor. Your mileage may vary. The JSON data used in the test is 2 KB decoded and 1.8 KB encoded. I specifically chose this data, because it encodes badly (lots of nested objects with only a single property). The benchmark suggests the library can encode/decode around 10 MB/s in Chrome and around 50 MB/s in Firefox. Hopefully, these are meaningful results.\n\n### Notes\n\nThere are a few things from the specification which are currently unimplemented:\n\n-   Tags, and the items they represent:\n    -   date/time, bignum/bigfloat as byte string, and others\n-   16-bit float (IEEE754 binary16)\n-   Integers larger than 32 bit (BigInt)\n\nIf you need one or more of these features, submit an [issue](https://github.com/jprochazk/cbor/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjprochazk%2Fcbor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjprochazk%2Fcbor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjprochazk%2Fcbor/lists"}