{"id":28660110,"url":"https://github.com/bnclabs/multiformats","last_synced_at":"2025-06-13T10:09:53.323Z","repository":{"id":57641954,"uuid":"313055750","full_name":"iprs-dev/multiformats","owner":"iprs-dev","description":"Implement the multiformat specifications in rust.","archived":false,"fork":false,"pushed_at":"2020-11-15T15:53:22.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-11T13:53:12.760Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/iprs-dev.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":"2020-11-15T15:00:43.000Z","updated_at":"2021-11-17T08:58:41.000Z","dependencies_parsed_at":"2022-09-07T04:12:15.815Z","dependency_job_id":null,"html_url":"https://github.com/iprs-dev/multiformats","commit_stats":null,"previous_names":["bnclabs/multiformats"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iprs-dev/multiformats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iprs-dev%2Fmultiformats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iprs-dev%2Fmultiformats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iprs-dev%2Fmultiformats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iprs-dev%2Fmultiformats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iprs-dev","download_url":"https://codeload.github.com/iprs-dev/multiformats/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iprs-dev%2Fmultiformats/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259624744,"owners_count":22886331,"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-13T10:09:53.046Z","updated_at":"2025-06-13T10:09:53.309Z","avatar_url":"https://github.com/iprs-dev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Documentation](https://docs.rs/multiformats/badge.svg?style=flat-square)](https://docs.rs/multiformats)\n\nMultiformats\n============\n\nA collection of protocols which aim to future-proof systems, today.\nThey do this mainly by enhancing format values with self-description.\nThis allows interoperability, protocol agility, and helps us avoid\nlock in.\n\nThe self-describing aspects of the protocols have a few stipulations:\n\n* They MUST be **in-band** (with the value); not out-of-band (in context).\n* They MUST avoid **lock-in** and promote extensibility.\n* They MUST be **compact** and have a **binary-packed representation**.\n* They MUST have a **human-readable representation**.\n\nUnsigned-varint\n---------------\n\nVARiable INTeger format used in all the multiformats. The encoding is:\n\n* Unsigned integers are serialized 7 bits at a time, starting with the\n  least significant bits.\n* The most significant bit (msb) in each output byte indicates if there\n  is a continuation byte (msb = 1).\n* There are no signed integers.\n* Integers are minimally encoded.\n\nRefer [unsigned-varint spec][unsigned-varint] for details.\n\nMultibase\n---------\n\nBase encoding is converting binary-data to plain-text. There are several\nbase-encoding definitions that can convert binary-data to a small\nsubset of, typically, ASCII code. Purpose,\n\n* Printable character set.\n* A bridge to backward-compatibility.\n* When a channel cannot, do-not, allow binary data.\n\nRefer [multibase][multibase] for details.\n\nMulticodec\n----------\n\nMulticodec is an agreed-upon codec table. It is designed for use in\nbinary representations, such as keys or identifiers (i.e [CID][CID]).\nFind the canonical table of multicodecs at [table.csv][multicodec-table].\n\nRefer [multicodec spec][multicodec] for details.\n\n**Reference**:\n\nList of active multiformat specification(s).\n\n* Micro-site, http://multiformats.io\n* Unsigned varint, https://github.com/multiformats/unsigned-varint\n* Multicodec, https://github.com/multiformats/multicodec\n\nThere are other implementations that can suite your need better:\n\n* [rust implementation of multi-base][rust-multibase]\n\n[unsigned-varint]: https://github.com/multiformats/unsigned-varint\n[rust-multibase]: https://github.com/multiformats/rust-multibase\n[multibase]: https://github.com/multiformats/multibase\n[multicodec]: https://github.com/multiformats/multicodec\n[CID]: https://github.com/ipld/cid\n[multicodec-table]: https://github.com/multiformats/multicodec/blob/master/table.csv\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbnclabs%2Fmultiformats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbnclabs%2Fmultiformats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbnclabs%2Fmultiformats/lists"}