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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@nordskill/ground-zero

v1.2.0

Published

Zero-config Vite + EJS static site generator with hot module reloading and BrowserSync-powered dev server.

Readme

Ground Zero

Ground Zero (ground-zero) is a zero-config static site generator that wraps Vite, EJS templates, and modern CSS. Install it, run one command, and you get hot module reloading, BrowserSync mirroring, and production builds without writing any config files.

Why Ground Zero?

  • Zero setup: Vite config, BrowserSync, and file watching are bundled, so you only write templates and CSS.
  • Pure EJS + CSS: No React, no SCSS pipeline—just standard EJS partials and native CSS features (nesting, layers, imports).
  • Instant feedback: Vite's HMR keeps the browser in sync while BrowserSync mirrors clicks, scroll, and form inputs across devices.
  • Predictable builds: Every build runs EJS → Vite build → CSS minify, so what you preview is what you ship.

Core concepts

| Concept | What it means | | --- | --- | | EJS pages | Files under src/pages/*.ejs become HTML in dev-html/ (dev) or build/ (prod). Include partials from src/partials/*.ejs. | | Module entry | src/assets/js/main.js is injected via /@fs/ so you can import modules without fiddling with paths. | | One-click commands | gzero runs the dev loop (compile + Vite serve). gzero-build compiles, then minifies CSS with esbuild. | | Modern CSS | Write plain .css files that use nesting, layers, imports, and variables—Vite handles the rest. |

EJS comments

Ground Zero supports multiline comments that can contain EJS tags inside them. Anything between <%# and %> is stripped out during compilation:

<%#
This entire block is removed from the output.
You can even put EJS tags here and they won't run:
<%- include('partials/example') %>
%>

This is useful for temporarily disabling sections of a template or leaving notes for yourself.

SVG icons

Put your .svg files in src/assets/icons/. Ground Zero automatically generates a sprite file and watches for changes during development.

To use icons in a template:

  1. Include the sprite once per page (usually right after <body>):
<%- include('../partials/svg-sprite') %>
  1. Reference icons by filename using <use>:
<svg style="width: 24px; height: 24px;">
    <use href="#icon-home"></use>
</svg>

The icon ID follows the pattern #icon-{filename} — so home.svg becomes #icon-home.

Quick start

mkdir my-site && cd my-site
npm init -y
npm install @nordskill/ground-zero

# minimal structure
mkdir -p src/pages src/partials src/assets/css src/assets/js
touch src/pages/index.ejs src/assets/css/main.css src/assets/js/main.js

Example src/pages/index.ejs:

<!DOCTYPE html>
<html lang="en">
  <%- include('partials/head') %>
  <body>
    <%- include('partials/header') %>
    <main>
      <h1>Hello from Ground Zero</h1>
    </main>
    <%- include('partials/footer') %>
  </body>
</html>

Develop with HMR

npx gzero

This command:

  1. Compiles all EJS pages into dev-html/.
  2. Starts Vite with HMR so you see changes immediately.
  3. Keeps BrowserSync in sync across open devices.

Build for production

npx gzero-build

This command:

  1. Recompiles EJS → HTML.
  2. Runs vite build with the packaged config (multi-page aware).
  3. Minifies every CSS file in build/ using esbuild.

Deploy the build/ folder to any static host.

License

MIT © Ground Zero contributors.