# zarrita

> [![NPM](https://img.shields.io/npm/v/zarrita/next.svg?color=black)](https://www.npmjs.com/package/zarrita) [![License](https://img.shields.io/npm/l/zarrita.svg?color=black)](https://github.com/manzt/zarrita.js/raw/main/LICENSE) ![GitHub Actions](https://g

Latest version **0.7.5** (published 2026-09-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install zarrita
pnpm add zarrita
yarn add zarrita
bun add zarrita
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.7.5 |
| Published | 2026-09-01 |
| First published | 2020-11-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 1.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 146 |
| Maintainers | manzt |

## Links

- npm: https://www.npmjs.com/package/zarrita
- Repository: https://github.com/manzt/zarrita.js
- Homepage: https://github.com/manzt/zarrita.js#readme
- Issues: https://github.com/manzt/zarrita.js/issues
- npm.io page: https://npm.io/package/zarrita

## Dependencies (2)

- [numcodecs](https://npm.io/package/numcodecs.md) ^0.3.2
- [@zarrita/storage](https://npm.io/package/@zarrita/storage.md) ^0.2.0

## Recent versions

- 0.7.5 (latest) — 2026-09-01
- 0.4.0-next.27 (next) — 2025-03-01
- 0.2.0-beta.3 (beta) — 2021-12-21
- 0.2.0-alpha.8 (alpha) — 2021-12-15
- 0.7.4 — 2026-08-05
- 0.7.3 — 2026-05-04
- 0.7.2 — 2026-04-23
- 0.7.1 — 2026-04-15
- 0.7.0 — 2026-04-14
- 0.6.2 — 2026-03-30
- 0.6.1 — 2026-01-30
- 0.6.0 — 2026-01-23
- 0.5.4 — 2025-09-29
- 0.5.3 — 2025-08-13
- 0.5.2 — 2025-06-26
- … 59 more at https://npm.io/package/zarrita/versions

## README

# zarrita.js <a href="https://github.com/manzt/zarrita.js"><img align="right" src="https://raw.githubusercontent.com/manzt/zarrita.js/main/docs/public/logo.svg" height="38"></img></a>

[![NPM](https://img.shields.io/npm/v/zarrita/next.svg?color=black)](https://www.npmjs.com/package/zarrita)
[![License](https://img.shields.io/npm/l/zarrita.svg?color=black)](https://github.com/manzt/zarrita.js/raw/main/LICENSE)
![GitHub Actions](https://github.com/manzt/zarrita.js/actions/workflows/ci.yml/badge.svg)

a minimal & modular Zarr implementation in TypeScript

- **Zero dependencies** (optionally
  [`scijs/ndarray`](https://github.com/scijs/ndarray))
- Runs natively in **Node**, **Browsers**, and **Deno** (ESM)
- Supports **v2** or **v3** protocols, C & F-order arrays, diverse data-types,
  and [ZEP2 Sharding](https://zarr.dev/zeps/draft/ZEP0002.html)
- Allows flexible **storage** backends and **compression** codecs
- Provides rich, in-editor **type information** via
  [template literal types](https://www.typescriptlang.org/docs/handbook/2/template-literal-types.html)

## Installation

```sh
npm install zarrita
```

Read
[the documentation](https://manzt.github.io/zarrita.js/get-started.html#getting-started)
to learn more about other environments.

## Usage

```javascript
import * as zarr from "zarrita";

const store = new zarr.FetchStore("http://localhost:8080/data.zarr");
const arr = await zarr.open(store, { kind: "array" }); // zarr.Array<DataType, FetchStore>

// read chunk
const chunk = await arr.getChunk([0, 0]);

// Option 1: Builtin getter, no dependencies
const full = await zarr.get(arr); // { data: Int32Array, shape: number[], stride: number[] }

// Option 2: scijs/ndarray getter, includes `ndarray` and `ndarray-ops` dependencies
import { get } from "@zarrita/ndarray";
const full = await get(arr); // ndarray.Ndarray<Int32Array>

// read region
const region = await get(arr, [null, zarr.slice(6)]);
```

Read [the documentation](https://manzt.github.io/zarrita.js) to learn more.

---
_Source: https://npm.io/package/zarrita · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
