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

@wizzlethorpe/vaults-foundry-compiler

v0.9.8

Published

Compile a wizzlethorpe vault into a distributable Foundry VTT module (LevelDB compendium packs + module.json).

Readme

@wizzlethorpe/vaults-foundry-compiler

vfmc — the vaults foundry module compiler. Compiles a wizzlethorpe vault into the Foundry VTT module that lives at <vault>/foundry/.

vfmc writes the LevelDB compendium packs and owns only the packs array of module.json. Everything else in that directory — custom esmodules, styles, lang/ UI strings, Babele translation files, and every other module.json key (relationships, languages, flags) — is authored and maintained by you, and is preserved across recompiles. So <vault>/foundry/ is a normal, extensible Foundry module you own; vfmc just keeps its compendiums in sync with the vault.

The vaults CLI (../cli) is Foundry-agnostic; the vaults Foundry module (../foundry) syncs a vault into a live world. This is the third leg: bake a vault's foundry.base content into an installable module. All three are lockstep-versioned via the monorepo's release.sh.

Input

  • <vault>/foundry/module.json with flags.vfmc.packs — one entry per compendium pack: { folder, name, label, type } (which Compendium/<folder>/ compiles to which pack). id and the optional system are read from here too.
  • <vault>/Compendium/<folder>/ pages with foundry: { base, id, data_json, folder } frontmatter and *.foundry.json sidecars (roll tables carry inline foundry.data).

Output (in place)

<vault>/foundry/
├── module.json      ← `packs` array rewritten; all other keys preserved
└── packs/<name>/    ← LevelDB, rewritten

Pass --out <dir> to write a copy elsewhere instead of in place.

How content maps

  • Page body markdown → the document's description HTML, dropping fenced handler blocks (spell-card, statblock-fm, rolltable), rewriting `dice: 2d6`[[/r 2d6]], and [[Wikilinks]]@UUID[Compendium.…].
  • Folders: a doc's compendium folder is its foundry.folder frontmatter (override) or its subfolder path under Compendium/<folder>/. Nested via "/".
  • Babele / custom JS / styles / UI lang: not generated — you keep them in <vault>/foundry/ and vfmc leaves them untouched.

Install

From the monorepo root (vaults/):

pnpm install
pnpm --filter @wizzlethorpe/vaults-foundry-compiler run build
pnpm --filter @wizzlethorpe/vaults-foundry-compiler link --global   # puts `vfmc` on PATH

The bundled Foundry CLI (@foundryvtt/foundryvtt-cli) is resolved from this package's own dependencies, so vfmc works from any directory.

Usage

vfmc <vaultPath> [--out <dir>]

# e.g. compile WANDS in place into WANDS/foundry/
vfmc ~/projects/wizzlethorpe/WANDS