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

zeropress-theme

v0.1.2

Published

ZeroPress theme developer toolkit

Downloads

310

Readme

zeropress-theme

npm license node

Developer toolkit for building, validating, and packaging ZeroPress themes.


Install

# Run directly with npx
npx zeropress-theme <command>

# Or install globally
npm install -g zeropress-theme

Commands

dev — Preview Server

npx zeropress-theme dev [themeDir] [options]

Launches a local preview server with WebSocket-based live reload.

Behavior highlights:

  • Watches template/assets changes and performs full reload
  • Non-matching routes return 404
  • If 404.html exists at theme root, it is rendered; otherwise a built-in 404 page is used

| Option | Description | Default | | --- | --- | --- | | --port <number> | Server port | 4321 | | --host <ip> | Bind address | 127.0.0.1 | | --data <path-or-url> | Preview data JSON (local path or HTTPS URL) | Built-in sample data | | --open | Open browser automatically | — | | --no-js-check | Skip JS-related checks | — |

Examples:

# Preview current directory
npx zeropress-theme dev

# Preview specific theme with custom data
npx zeropress-theme dev ./my-theme --data ./preview.json

# Use remote preview data
npx zeropress-theme dev ./my-theme --data https://signed-url/preview.json

If --data is omitted, built-in sample data is used.
Remote URLs must use HTTPS (1 MB limit, 5-second timeout).

Data loading rules:

  • Local file path and HTTPS URL are both supported
  • Redirects are allowed
  • No retry on fetch failure
  • Download or JSON parse failure aborts dev startup

validate — Theme Validation

npx zeropress-theme validate [themeDir] [options]

Validates a theme against the ZeroPress Theme Runtime v0.1 contract.

Options:

| Option | Description | | --- | --- | | --strict | Treat warnings as errors | | --json | Output results as JSON |

Errors (block upload)

  • theme.json missing or invalid
  • Missing required templates: layout.html, index.html, post.html, page.html
  • Invalid semver in version
  • assets/style.css missing
  • Invalid slot usage in layout.html
  • <script> tag inside layout.html
  • Nested slots or Mustache block syntax
  • Path traversal or symlink escape

Warnings

  • archive.html, category.html, tag.html missing

Exit Codes

| Code | Meaning | | --- | --- | | 0 | No errors or warnings | | 1 | Errors found | | 2 | Warnings only |

With --strict, warnings result in exit code 1.


pack — Zip Packaging

npx zeropress-theme pack [themeDir] [options]

Creates an upload-ready zip file.

| Option | Description | Default | | --- | --- | --- | | --out <dir> | Output directory | dist | | --name <file> | Zip filename | {name}-{version}.zip |

Workflow:

  1. Runs validate
  2. Excludes unnecessary files
  3. Generates a root-flattened zip
  4. Re-validates the archive

Excluded automatically:
.git, node_modules, dist, *.log, __MACOSX, .DS_Store, lockfiles


CI Usage

npx zeropress-theme validate ./theme --strict
npx zeropress-theme pack ./theme --out ./artifacts

Requirements

  • Node.js >= 18.18.0
  • ESM only

Related


About ZeroPress

ZeroPress is a CMS built around file-based themes and a defined runtime contract.
It emphasizes predictable structure and portable theme bundles.

Project website:
https://zeropress.app


License

MIT