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

zagzig

v1.0.0

Published

An archival pixel-drafted interface system. Curated scarcity, stepped geometry, collectible significance.

Downloads

18

Readme

zagzig

An archival pixel-drafted interface system.

Curated scarcity. Stepped geometry. Collectible significance.


zagzig styles the web as a system of cataloged artifacts — an inventory interface from an institution that does not exist. Every surface is quiet by default. Color is rationed. Ornament is earned. Motion is mechanical.

Install

npm install zagzig

Quick Start

@import 'zagzig';
<div data-zagzig>
  <article class="accession" data-rarity="rare">
    <header class="accession__header">
      <span class="shard" data-rarity="rare">Singular</span>
      <span class="accession__number">#0041</span>
    </header>
    <hr class="seam seam--zagzig" data-rarity="rare" />
    <section class="accession__body">
      <h3 class="accession__title">Signal Fragment — Origin Unknown</h3>
      <p class="accession__description">
        Recovered from deep archive sector 7.
      </p>
    </section>
    <hr class="seam" />
    <footer class="accession__meta">
      <div class="readout" data-rarity="rare">
        <span class="readout__value">1 of 3</span>
        <span class="readout__label">Known copies</span>
      </div>
    </footer>
  </article>
</div>

Scoping

All styles are scoped under [data-zagzig]. Nothing leaks. Add the attribute to any element to declare it as zagzig territory.

<!-- Full page -->
<body data-zagzig>...</body>

<!-- Single section -->
<section data-zagzig>...</section>

The Five Laws

  1. Green must be earned. Signal color is rationed. Most UI is grey and black. Green means activation, life, rarity.
  2. The grid is the law. Everything snaps to a 4px base unit (--grid: 4px). No exceptions.
  3. Motion is discrete. All transitions use steps() timing. Nothing eases smoothly.
  4. Ornament is budgeted by rarity. The rarity system governs visual complexity — not just color, but spacing, borders, motion, and ornament.
  5. The staircase is the grammar. The zagzig motif (a 1px stepped diagonal) appears in clipped corners, dividers, focus rings, and selection markers.

Rarity

Every element exists at a tier of visual significance. Rarity is structural, not cosmetic.

| Tier | Attribute | Effect | |------|-----------|--------| | Common | (default) | Quiet. Grey. No green. Standard spacing. | | Uncommon | data-rarity="uncommon" | Signal appears. Double borders. Tighter padding. | | Rare | data-rarity="rare" | Full expression. Zagzig corners. Glow. Dense. |

Rarity describes content significance, not interaction emphasis. Don't put data-rarity="rare" on a submit button — put it on a one-of-a-kind artifact.

Components

| Class | What it is | HTML element | |-------|-----------|--------------| | .token | Button / interactive control | <button> | | .panel | Card / container | <div>, <section> | | .field | Input / data entry | <input>, <textarea> | | .seam | Divider / separator | <hr>, <div> | | .shard | Badge / tag / status | <span> | | .readout | Read-only data display | <div> | | .relay | Navigation / wayfinding | <nav> | | .slot | Layout region | <div> | | .cache | Modal / overlay | <div> | | .index | Table / catalog | <table> | | .accession | Specimen record (canonical) | <article> |

Modular Imports

/* Everything */
@import 'zagzig';

/* Foundation only */
@import 'zagzig/core/index.css';

/* Pick what you need */
@import 'zagzig/core/index.css';
@import 'zagzig/shadows/index.css';
@import 'zagzig/rarity/index.css';
@import 'zagzig/components/panel.css';
@import 'zagzig/components/accession.css';

Color Palette

zagzig uses three color families with a mossy/organic green.

| Family | Role | Range | |--------|------|-------| | Void (black) | Backdrop, absence | --void, --void-soft | | Structure (grey) | Skeleton, hierarchy | --structure-deep--structure-bright | | Signal (green) | Life, rarity, activation | --signal-faint--signal-flare |

Greys carry a faint green tint (2-4% saturation) for cohesion.

Status States

Error is communicated mechanically, not chromatically. No red.

<input class="field" data-status="critical" />
<tr data-status="locked">...</tr>
<div class="panel" data-status="pending">...</div>

| Status | Visual treatment | |--------|-----------------| | critical | Hatch pattern, border agitation, bright inversion | | locked | Reduced opacity, diagonal stripe, no interaction | | pending | Slow stepped pulse | | resolved | Brief signal flash, settles |

Scaling

Change --grid to scale the entire system:

[data-zagzig] { --grid: 2px; }  /* Tight */
[data-zagzig] { --grid: 4px; }  /* Default */
[data-zagzig] { --grid: 8px; }  /* Chunky */

Browser Support

Modern browsers with CSS custom properties, clip-path: polygon(), and filter: drop-shadow(). Chrome, Firefox, Safari, Edge (latest).

License

MIT