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

ome-zarr.js

v0.0.19

Published

Some JavaScript utils for simple rendering of OME-Zarr images

Downloads

1,878

Readme

ome-zarr.js

Some JavaScript utils for simple rendering of OME-Zarr images.

About

See the Documentation pages for more details and demos.

To test thumbnail rendering of a sample image, the easiest option is to try https://ome.github.io/ome-ngff-validator/ which uses ome-zarr.js to display a thumbnail.

We use https://github.com/manzt/zarrita.js for loading zarr data.

Supports all versions of OME-Zarr v0.1 -> v0.5.

The URL must point to a multiscales image (not a plate or bioformats2raw.layout group).

Usage

render() uses rendering settings from the omero metadata if the zarr image has it and the lowest resolution of the multiscales pyramid by default:

import * as omezarr from "https://cdn.jsdelivr.net/npm/ome-zarr.js@latest/+esm";

const url = "https://livingobjects.ebi.ac.uk/idr/zarr/v0.4/idr0062A/6001240.zarr";
let src = await omezarr.render(url);
document.getElementById("thumbnail").src = src;

We can choose to use different resolutions of the multiscales pyramid, to apply rendering settings and to render a smaller region of the image. See docs above for more details.

Demo and Development

The index.html page contains a demo of the features described above and can be viewed with:

$ npm install
$ npm run dev

To develop and build the docs, we need to build ome-zarr.js first so it can be imported from /dist/ by the docs:

$ npm run build
$ npm run docs:dev

Typescript from ome-zarr-models-py

I have experimented with using https://github.com/phillipdupuis/pydantic-to-typescript to generate typescript interfaces from https://github.com/ome-zarr-models/ome-zarr-models-py.

The src/types/ome.ts file was generated with:

$ pydantic2ts --module src/ome_zarr_models/v04/image.py --output ome.ts

License

Distributed under the terms of the BSD license, "ome-zarr.js" is free and open source software.

Release steps

  • Fetch origin/main, checkout main and rebase
  • Bump version in package.json
  • Update CHANGELOG.md
  • Commit changes

Then:

$ npm run build

# check the docs are up to date (images are rendering correctly)
$ npm run docs:build
$ npm run docs:preview

$ npm pack
$ npm publish

$ git tag v0.0.14
$ git push origin HEAD v0.0.14