{"id":20126070,"url":"https://github.com/zarr-developers/zarr-java","last_synced_at":"2025-12-05T06:04:51.453Z","repository":{"id":199280760,"uuid":"616941168","full_name":"zarr-developers/zarr-java","owner":"zarr-developers","description":"Java implementation of the Zarr Specification","archived":false,"fork":false,"pushed_at":"2025-04-18T11:28:20.000Z","size":26315,"stargazers_count":9,"open_issues_count":0,"forks_count":12,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-04-19T00:52:47.432Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/zarr-developers.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":"2023-03-21T11:51:02.000Z","updated_at":"2025-04-18T11:28:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"e7dfe837-706b-4fec-8d77-c3999f0bcc15","html_url":"https://github.com/zarr-developers/zarr-java","commit_stats":null,"previous_names":["zarr-developers/zarr-java"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zarr-developers%2Fzarr-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zarr-developers%2Fzarr-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zarr-developers%2Fzarr-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zarr-developers%2Fzarr-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zarr-developers","download_url":"https://codeload.github.com/zarr-developers/zarr-java/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252734459,"owners_count":21796021,"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":"2024-11-13T20:13:41.159Z","updated_at":"2025-12-05T06:04:51.447Z","avatar_url":"https://github.com/zarr-developers.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zarr-java\n\nThis repository contains a Java implementation of Zarr version 2 and 3.\n\n## Usage\n```java\nimport dev.zarr.zarrjava.store.FilesystemStore;\nimport dev.zarr.zarrjava.store.HttpStore;\nimport dev.zarr.zarrjava.v3.Array;\nimport dev.zarr.zarrjava.v3.DataType;\nimport dev.zarr.zarrjava.v3.Group;\n\nGroup hierarchy = Group.open(\n    new HttpStore(\"https://static.webknossos.org/data/zarr_v3\")\n        .resolve(\"l4_sample\")\n);\nGroup color = (Group) hierarchy.get(\"color\");\nArray array = (Array) color.get(\"1\");\nucar.ma2.Array outArray = array.read(\n    new long[]{0, 3073, 3073, 513}, // offset\n    new int[]{1, 64, 64, 64} // shape\n);\n\nArray array = Array.create(\n    new FilesystemStore(\"/path/to/zarr\").resolve(\"array\"),\n    Array.metadataBuilder()\n        .withShape(1, 4096, 4096, 1536)\n        .withDataType(DataType.UINT32)\n        .withChunkShape(1, 1024, 1024, 1024)\n        .withFillValue(0)\n        .withCodecs(c -\u003e c.withSharding(new int[]{1, 32, 32, 32}, c1 -\u003e c1.withBlosc()))\n        .build()\n);\nucar.ma2.Array data = ucar.ma2.Array.factory(ucar.ma2.DataType.UINT, new int[]{1, 1024, 1024, 1024});\narray.write(\n    new long[]{0, 0, 0, 0}, // offset\n    data\n);\n```\n## Development Start-Guide\n\n### Run Tests Locally\nTo be able to run the tests locally, make sure to have `python3.11` and `uv` installed. \n\nFurthermore, you will need the `l4_sample` test data:\n\n`curl https://static.webknossos.org/data/zarr_v3/l4_sample.zip -o testdata/l4_sample.zip\n\u0026\u0026 cd testdata\n\u0026\u0026 unzip l4_sample.zip\n`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzarr-developers%2Fzarr-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzarr-developers%2Fzarr-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzarr-developers%2Fzarr-java/lists"}