{"id":20642418,"url":"https://github.com/ipld/java-ipld-cbor","last_synced_at":"2025-08-11T21:04:58.217Z","repository":{"id":40379698,"uuid":"135087322","full_name":"ipld/java-ipld-cbor","owner":"ipld","description":"A Java implementation of the IPLD cbor format","archived":false,"fork":false,"pushed_at":"2025-05-01T07:32:52.000Z","size":26,"stargazers_count":12,"open_issues_count":3,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-01T08:29:41.423Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","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/ipld.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,"zenodo":null}},"created_at":"2018-05-27T22:53:43.000Z","updated_at":"2025-05-01T07:32:56.000Z","dependencies_parsed_at":"2023-11-13T08:30:01.719Z","dependency_job_id":"3c552909-ec35-495e-b516-41709dcd9c3d","html_url":"https://github.com/ipld/java-ipld-cbor","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ipld/java-ipld-cbor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipld%2Fjava-ipld-cbor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipld%2Fjava-ipld-cbor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipld%2Fjava-ipld-cbor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipld%2Fjava-ipld-cbor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipld","download_url":"https://codeload.github.com/ipld/java-ipld-cbor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipld%2Fjava-ipld-cbor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269956177,"owners_count":24503116,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-16T16:09:05.017Z","updated_at":"2025-08-11T21:04:58.183Z","avatar_url":"https://github.com/ipld.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# java-ipld-cbor\n\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io)\n[![](https://img.shields.io/badge/project-IPLD-blue.svg?style=flat-square)](http://github.com/ipld/ipld)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n\n\u003e A Java implementation of the IPLD cbor format\n\nThis is the [ipld](https://github.com/ipld/ipld) serialization implementation in Java.\n\n## Table of Contents\n\n- [Install](#install)\n- [Usage](#usage)\n- [Dependency](#dependency)\n- [Testing](#testing)\n- [Building](#building)\n- [Releasing](#releasing)\n- [Maintainers](#maintainers)\n- [Contribute](#contribute)\n- [License](#license)\n\n## Install\n\nSimply clone this repo.\n\n## Usage\n\n```java\n// Serialization\nList\u003cCborObject\u003e list = new ArrayList\u003c\u003e();\nlist.add(new CborObject.CborString(\"A value\"));\nlist.add(new CborObject.CborByteArray(\"A value\".getBytes()));\nlist.add(new CborObject.CborNull());\nlist.add(new CborObject.CborBoolean(true));\nCborObject.CborList cborList = new CborObject.CborList(list);\nbyte[] raw = cborList.toByteArray();\n\n// Deserialization\nCborObject deserialized = CborObject.fromByteArray(raw);\n\n// Custom classes can implement Cborable to implement their own cbor format (with a corresponding static fromCbor method)\n\n```\n## Dependency\nYou can use this project by building the JAR file as specified below, or by using [JitPack](https://jitpack.io/#ipld/java-ipld-cbor/) (also supporting Gradle, SBT, etc).\n\nfor Maven, you can add the follwing sections to your POM.XML:\n```xml\n  \u003crepositories\u003e\n    \u003crepository\u003e\n        \u003cid\u003ejitpack.io\u003c/id\u003e\n        \u003curl\u003ehttps://jitpack.io\u003c/url\u003e\n    \u003c/repository\u003e\n  \u003c/repositories\u003e\n\n  \u003cdependencies\u003e\n    \u003cdependency\u003e\n      \u003cgroupId\u003ecom.github.ipld\u003c/groupId\u003e\n      \u003cartifactId\u003ejava-ipld-cbor\u003c/artifactId\u003e\n      \u003cversion\u003ev1.0.0\u003c/version\u003e\n    \u003c/dependency\u003e\n  \u003c/dependencies\u003e\n```\n\n## Testing\n\n`mvn test`\n\n## Building\n\n`mvn package` will build a JAR file with Maven dependency information.\n\n## Releasing\n\nThe version number is specified in the `pom.xml` file and must be changed in order to be accurately reflected in the JAR file manifest. A git tag must be added in the format \"vx.x.x\" for JitPack to work.\n\n## Maintainers\n\nCaptain: [@ianopolous](https://github.com/ianopolous).\n\n## Contribute\n\nContributions welcome. Please check out [the issues](https://github.com/ipld/java-ipld-cbor/issues).\n\nCheck out our [contributing document](https://github.com/ipld/ipld/blob/master/contributing.md) for more information on how we work, and about contributing in general. Please be aware that all interactions related to IPLD are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\n\nSmall note: If editing the Readme, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\n[MIT](LICENSE) © 2016 Ian Preston, Christopher Boddy\n\n[Apache v2] © 2013 J.W. Janssen\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipld%2Fjava-ipld-cbor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipld%2Fjava-ipld-cbor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipld%2Fjava-ipld-cbor/lists"}