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

@whittakertech/virgil

v0.1.1

Published

Build-phase sigil forge for static site artifacts

Readme

WhittakerTech::Virgil

Build-phase sigil forge for static site artifacts

Virgil generates OG images, sitemaps, robots.txt, and other build artifacts deterministically with content-addressed caching.

Philosophy

  • Deterministic: Content-addressed hashing eliminates timestamp lies
  • Locked: Only regenerates what actually changed
  • CI-first: Designed for GitHub Actions, not local dev servers
  • Declarative: Everything in virgil.spec.json

Installation

npm install @whittakertech/virgil

Quick Start

1. Create virgil.spec.json

{
  "brand": {
    "name": "WhittakerTech",
    "logo": "docs/public/logo.svg",
    "color": "#5b7cff"
  },
  "product": {
    "name": "MosaicJS",
    "logo": "docs/public/mosaic-logo.svg",
    "version": "0.3.0"
  },
  "outputs": [
    {
      "type": "og-image",
      "id": "getting-started",
      "page": {
        "title": "Getting Started",
        "url": "https://mosaicjs.whittakertech.com/getting-started",
        "description": "Learn how to use MosaicJS"
      }
    }
  ]
}

2. Run Virgil

npx virgil build

3. Reference in frontmatter

---
og-image: og:getting-started
---

Your static site generator resolves og:getting-started via virgil.manifest.json.

How It Works

Execution Flow

  1. Load spec (virgil.spec.json) - declarative intent
  2. Load lock (virgil.lock.json) - truth from last run
  3. Hash inputs - SHA-256 of data + template + generator version
  4. Compare - skip if hash matches
  5. Generate - create artifacts only when needed
  6. Update manifest (virgil.manifest.json) - stable references
  7. Write lock - record current state

Content-Addressed Hashing

hash = sha256(
  JSON.stringify(data) +
  templateContents +
  generatorVersion
)

Changes to data, template, or generator trigger regeneration. Timestamp changes do not.

Lock File (virgil.lock.json)

{
  "version": "0.1",
  "entries": {
    "getting-started": {
      "hash": "sha256:9fa4c...",
      "generatedAt": "2025-01-15T10:30:00Z",
      "generator": "og-image",
      "generatorVersion": "0.1.0"
    }
  }
}

Manifest (virgil.manifest.json)

{
  "version": "0.1",
  "og": {
    "getting-started": "/og/getting-started.1735346221.png"
  }
}

Frontmatter uses stable IDs (og:getting-started), manifest maps to cache-busted filenames.

Output Types

OG Images

{
  "type": "og-image",
  "id": "home",
  "page": {
    "title": "Welcome",
    "url": "https://example.com",
    "description": "Optional description"
  }
}

Generates 1200×630 PNG using Playwright.

Sitemap

{
  "type": "sitemap",
  "id": "main",
  "baseUrl": "https://example.com",
  "pages": [
    {
      "path": "/",
      "lastmod": "2025-01-15",
      "changefreq": "weekly",
      "priority": 1.0
    }
  ]
}

Robots.txt

{
  "type": "robots",
  "id": "default",
  "rules": [
    {
      "userAgent": "*",
      "allow": ["/"],
      "disallow": ["/admin"]
    }
  ],
  "sitemap": "https://example.com/sitemap.xml"
}

CLI

virgil build [options]

Options:
  -r, --root <dir>     Project root directory (default: cwd)
  -o, --output <dir>   Output directory (default: public)
  -v, --verbose        Verbose output

Programmatic Usage

import { run } from '@whittakertech/virgil';

const result = await run({
  rootDir: process.cwd(),
  outputDir: 'public',
  verbose: true
});

console.log(`Generated: ${result.generated}`);
console.log(`Skipped: ${result.skipped}`);

GitHub Actions

- name: Generate artifacts
  run: npx virgil build --verbose

Virgil skips unchanged artifacts, keeping CI fast.

v0.1 Scope

Supported:

  • ✅ OG image generation (PNG)
  • ✅ sitemap.xml generation
  • ✅ robots.txt generation
  • ✅ Content-addressed locking
  • ✅ Manifest rewriting
  • ✅ No-op if nothing changed

Not Yet:

  • ❌ Watch mode
  • ❌ Vite/VitePress runtime integration
  • ❌ React/Vue rendering
  • ❌ Remote data fetching
  • ❌ Partial page crawling

License

MIT

Author

Lee Whittaker • WhittakerTech