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/create-theme

v0.7.0

Published

ZeroPress theme starter generator

Readme

@zeropress/create-theme

npm license node

Public ZeroPress starter generator for Theme Runtime v0.7 and Preview Data v0.7.

This package creates a buildable ZeroPress starter project for the preview-data.json + theme/ workflow. The five starter templates are bundled inside the npm package.

It uses directly:

Generated starter projects use:

Public contract references:

Quick Start

npx @zeropress/create-theme --name my-portfolio --template portfolio
cd my-portfolio
npm install
npm run dev

The development server prints the local preview URL and watches the generated theme and Preview Data. To produce static output later:

npm run build

The build output is written to dist/.

Usage

npx @zeropress/create-theme --name <slug> --template <template>

The npm package is @zeropress/create-theme, and the installed binary is zeropress-create-theme.

Required Options

  • --name <slug>: starter directory name and generated theme.json.slug
  • --template <template>: minimal, blog, docs, portfolio, or magazine

Other Options

  • --help, -h: show help
  • --version, -v: show package version

Templates

The package intentionally ships only five built-in starters:

  • minimal: quiet content-first starter.
  • blog: editorial blog starter with menus, widgets, posts, categories, tags, comments, and a newsletter CTA.
  • docs: documentation starter with pages, navigation, search, and Markdown-friendly Preview Data content.
  • portfolio: portfolio starter using site metadata and named collections.
  • magazine: editorial magazine starter with curated landing sections.

Remote theme catalogs and runtime theme installation are not supported. Create another starter locally, or copy an existing generated project, when you need an additional theme.

Generated Project

my-portfolio/
  package.json
  .gitignore
  preview-data.json
  public/                 # optional, included by starters that need trusted public HTML/assets
  theme/
    theme.json
    layout.html
    index.html
    post.html
    page.html
    archive.html             # optional, template-dependent
    category.html            # optional, template-dependent
    tag.html                 # optional, template-dependent
    404.html
    partials/
    assets/

The generated .gitignore excludes node_modules/ and the reproducible dist/ build output. Commit the generated lockfile when you install dependencies.

Generated package.json includes:

{
  "engines": {
    "node": ">=22.12.0"
  },
  "scripts": {
    "build": "zeropress-build ./theme --data ./preview-data.json --out ./dist --empty-out-dir",
    "dev": "zeropress-theme dev ./theme --data ./preview-data.json"
  },
  "dependencies": {
    "@zeropress/build": "^0.7.2",
    "@zeropress/theme": "^0.7.0"
  }
}

The build is assembled in a sibling staging directory. ZeroPress replaces dist/ only after the new build succeeds, so no shell-specific or evaluated cleanup script is needed.

Generated theme/theme.json is rewritten with:

  • $schema: "https://schemas.zeropress.dev/theme-runtime/v0.7/schema.json"
  • runtime: "0.7"
  • namespace: "my-company"
  • slug and name from --name
  • version: "0.1.0"

Update namespace, name, and demo fixture content before publishing a theme.

Generated templates use the effective Theme Runtime feature objects: check site.search.enabled, site.feed.enabled, site.archive.enabled, and site.comments.enabled, and use site.feed.url or site.archive.url only in the enabled branch. Preview Data preferences use the same { "enabled": boolean } shape; omitting search, feed, or archive requests the enabled default.

Validation

The generated theme is validated immediately with @zeropress/theme-validator.

Generation is staged in a temporary sibling directory and committed only after validation succeeds. The requested target may be absent or an existing empty real directory; symbolic-link targets and non-empty directories are rejected. Human-readable diagnostics escape terminal control and directional characters.

The package test suite validates and builds every bundled starter.

License

MIT