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

@nulib/clover

v4.8.0

Published

Composable IIIF components, for React and as web components: Clover 4.x.

Readme

@nulib/clover

A viewer as distinctive as your collections. Design a user experience rooted in IIIF.

Clover builds accessible viewers for IIIF Manifests and Collections, in React or as web components: a ready-made Viewer, and the parts it is made of, to compose your own. It is a project of Northwestern University Libraries.

Documentation · Repository · Issues

Install

npm install @nulib/clover

React 18 and 19 are supported. The package is ES modules only.

In React

The Viewer, with its Default template:

import Viewer from "@nulib/clover";
import "@nulib/clover/styles.css";

export default function Item() {
  return (
    <Viewer iiifContent="https://api.dc.library.northwestern.edu/api/v2/works/3510cac2-1439-49f0-b30a-09ae19a0643d?as=iiif" />
  );
}

Another template, with its styles:

import Viewer from "@nulib/clover";
import { Document } from "@nulib/clover/templates";
import "@nulib/clover/styles.css";
import "@nulib/clover/templates.css";

<Viewer iiifContent={url} template={Document} />;

Or a layout of your own, from the parts the templates are made of:

import * as Clover from "@nulib/clover";
import "@nulib/clover/styles.css";

<Clover.Root iiifContent={url}>
  <Clover.Label />
  <Clover.Body />
  <Clover.Items />
</Clover.Root>;

As web components

For a page without React. The elements bring their own styles, so there is no stylesheet to add. With a bundler, import them once:

import "@nulib/clover/web-components";

Or load them from a CDN, in the page's <head>:

<script src="https://cdn.jsdelivr.net/npm/@nulib/clover/dist/web-components/index.umd.js"></script>

Then place the Viewer, or the parts:

<clover-viewer
  iiif-content="https://api.dc.library.northwestern.edu/api/v2/works/3510cac2-1439-49f0-b30a-09ae19a0643d?as=iiif"
></clover-viewer>

<clover-root iiif-content="https://example.org/manifest.json">
  <clover-label></clover-label>
  <clover-body></clover-body>
  <clover-items></clover-items>
</clover-root>

If you serve Clover's files yourself, copy the whole dist/web-components folder.

Entry points

| Import | What it is | | ------------------------------------- | ------------------------------------------------------------------------------------- | | @nulib/clover | The Viewer (the default export), and every part, hook and helper (named). | | @nulib/clover/templates | The templates: Default, Document and Gallery. | | @nulib/clover/map | Map and its helpers, as @nulib/clover exports them (Clover.Map). | | @nulib/clover/three | registerThreeEngine, to draw a Scene with three.js, which you install. | | @nulib/clover/web-components | <clover-viewer>, and every part as an element. | | @nulib/clover/web-components/viewer | <clover-viewer> alone, for a page that shows a Viewer and nothing else of Clover's. | | @nulib/clover/web-components/three | three.js for the elements' Scene, bundled. | | @nulib/clover/styles.css | Every part's styles, and the Default template's. | | @nulib/clover/templates.css | The other templates' styles. | | @nulib/clover/base.css | For a look of your own, in place of both: the structure of every part and template. | | @nulib/clover/spacing.css | Clover's margins, paddings and gaps, after base.css. |

Learn more

Clover 3.x, @samvera/clover-iiif, is deprecated and no longer maintained. Its docs are kept on the same site, under Clover 3.x.

License

MIT, © 2026 Northwestern University Libraries. See LICENSE.