npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@englacial/icechunk-js

v0.1.0

Published

TypeScript read-only client for Icechunk stores, compatible with zarrita.js

Downloads

119

Readme

icechunk-js

TypeScript read-only client for Icechunk stores, compatible with zarrita.js.

Overview

Icechunk is a transactional storage engine for Zarr data, designed for cloud object storage. This library provides a browser-compatible TypeScript client for reading Icechunk repositories, implementing kylebarron's suggestion from neuroglancer PR #718.

Features

  • Read-only access to Icechunk stores
  • zarrita.js compatible - implements the AsyncReadable interface
  • Browser and Node.js support
  • Virtual chunk references - supports reading chunks from external files (NetCDF, HDF5)
  • Cloud storage - translates gs:// and s3:// URLs to HTTPS
  • Caching - LRU cache for manifests

Installation

npm install icechunk-js

Usage

Basic Usage

import { IcechunkStore } from 'icechunk-js';

// Open a store
const store = await IcechunkStore.open(
  'https://storage.googleapis.com/ismip6-icechunk/12-07-2025/',
  { ref: 'main' }
);

// Read metadata
const metadata = await store.get('zarr.json');
console.log(JSON.parse(new TextDecoder().decode(metadata!)));

// List children
const models = store.listChildren('');
console.log('Available models:', models);

With zarrita.js

import { IcechunkStore } from 'icechunk-js';
import * as zarr from 'zarrita';

const store = await IcechunkStore.open(
  'https://storage.googleapis.com/ismip6-icechunk/12-07-2025/',
  { ref: 'main' }
);

// Open an array
const arr = await zarr.open(
  store.resolve('VUB_AISMPALEO/ctrl_proj_std/base'),
  { kind: 'array' }
);

console.log('Shape:', arr.shape);
console.log('Dtype:', arr.dtype);

// Read data
const data = await zarr.get(arr);

API

IcechunkStore.open(url, options?)

Opens an Icechunk store.

Parameters:

  • url - Base URL of the Icechunk repository
  • options.ref - Branch name (default: "main")
  • options.tag - Tag name (alternative to ref)
  • options.snapshot - Direct snapshot ID (alternative to ref/tag)
  • options.cache.manifests - Max cached manifests (default: 100)

Returns: Promise<IcechunkStore>

store.get(key)

Read data for a zarr key.

Parameters:

  • key - Zarr path like "zarr.json", "group/array/zarr.json", or "array/c/0/1/2"

Returns: Promise<Uint8Array | undefined>

store.resolve(path)

Create a store scoped to a subpath.

Parameters:

  • path - Path prefix

Returns: IcechunkStore

store.listChildren(path)

List child paths under a given path.

Returns: string[]

store.listNodes()

List all nodes in the snapshot.

Returns: NodeSnapshot[]

Development

# Install dependencies
npm install

# Run tests
npm test

# Build
npm run build

# Format code
npm run format

License

Apache-2.0

Credits

Based on the Icechunk TypeScript implementation in neuroglancer by Google Inc.