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

@svartz/theme-wiki

v2.3.0

Published

A Svartz theme for wikis: infoboxes, categories, recent changes, and references.

Readme

@svartz/theme-wiki

Publish a vault as a wiki: a reference for a game, a product's user guide, or anything people look things up in. The structure follows Wikipedia and wiki.gg; the look is Svartz's.

// svartz.config.ts
vaults: [{ id: "wiki", path: "vault", target: { type: "static" }, theme: { base: "@svartz/theme-wiki" } }],

What it renders

| Page | Contents | | --- | --- | | Article | Title and tagline, hatnote, infobox, numbered contents in the rail, references (footnotes), categories bar, "What links here", last-edited date | | Main page | The home note, then the featured article, recent changes, and category portals | | Categories | /tags/ lists every category; /tags/:tag/ lists its pages A–Z | | All pages | /folders/ lists every page A–Z; /folders/:path/ lists one folder | | Recent changes | /feed/, grouped by day |

The rail also has a Random page button. On narrow screens the rail becomes a menu drawer and the infobox leads the article.

The wiki extends @svartz/theme-minimal, which supplies search, the drawer, contents, and the footer. A note with an infobox or a hatnote renders as a wiki article in any site that composes the wiki, and theme: wiki in a note's frontmatter picks it explicitly.

Section bar

The vault's folders become the bar under the search, so you group pages by moving them into folders:

characters/                  → "Characters" in the bar
  Harbourmaster Quill.md     → a page in its dropdown
  lamplighters/              → a flyout in the dropdown
    index.md                 → names the flyout ("Lamplighters' Guild") and is its link
    Mirelle Ashford.md

Each top-level folder is a bar item that links to its folder note, or to its folder page if it has none. A dropdown shows 12 pages, then links to the rest. Folders deeper than a flyout appear as plain links. Notes at the vault root stay out of the bar. On narrow screens the same tree opens in the menu drawer.

Sections and pages sort by title. To put one first, give it an order number: lower comes first, and anything without one follows in title order. A folder takes the order of its folder note.

# getting-started/index.md
title: Getting started
order: 1

Frontmatter

hatnote: "For the guild she leads, see [[Lamplighters' Guild]]."   # wikilinks and `code` render
featured: true        # show on the main page
image: portrait.svg   # the infobox image; a vault attachment here is published with the page
infobox:
  caption: Mirelle in the 1.4 update
  rows:
    Role: Lamplighter
    Home: "[[Vessa]], Lower Wards"   # wikilinks resolve to pages
  sections:
    - heading: Abilities
      rows:
        Trim wick: Doubles a lantern's burn time

infobox.image also works, but only for URLs: the pipeline publishes attachments named by top-level image, cover, or socialImage. The types are exported as Infobox and InfoboxSection. Plugins that generate wiki pages should emit this shape.

Settings

theme.routes renames the list URLs (tags, folders, feed); theme.footer.links and theme.comments work as in every Svartz theme.

Develop

pnpm svartz dev --vault showcase-wiki