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

@voila.dev/docs

v0.1.0

Published

Framework-free building blocks of a documentation site: a navigation registry, a typo-tolerant search, reader contexts, a link graph check, an OpenAPI reference model and an MDX pipeline for Vite.

Readme

@voila.dev/docs

The framework-free half of a documentation site: TypeScript only, no React, no copy, no app paths. A site declares its navigation, its audiences and what it needs to know about a reader; this package resolves the sidebar, finds the page a reader asks for, checks that every page is reachable and fresh, turns an OpenAPI document into reference pages, and compiles MDX in Vite. @voila.dev/ui-docs renders what it computes.

  • One navigation registry. Tabs, audiences, groups and folders, written once; the sidebar, the previous and next links, the breadcrumb and the coverage check all read it.
  • Pages know who they are for. The frontmatter names a page's audience, its kind and, when it differs by reader, the context it applies to (a country, a plan, a language). A page written for another context is dimmed with the reason, never hidden.
  • The docs are tested like code. checkDocsGraph reports dead links, pages more than two clicks from their landing, orphans and sources not re-read in 180 days, so CI fails before a reader finds them.
  • The API reference comes from the contract. An OpenAPI 3 document gives the operations, their schemas, request examples in cURL and fetch, and a Markdown export for assistants.
bun add @voila.dev/docs

| Module | What it holds | | --- | --- | | navigation | The sidebar registry type (DocsNavigation: tabs, the audiences a tab offers, groups, an audience's groups being its topics), resolveNavigation (slugs to pages, a page's sidebarTitle kept beside its title, each audience's landing), locate (tab, audience, group, folders, previous and next of a path), groupTrail (a group's audience then its label), slugsOf (a group's slugs, folders opened) and navigationCoverage (every page listed exactly once) | | slug, page, heading | docHref(root, slug), the frontmatter schema (docFrontmatter(vocabulary): sidebarTitle, audience, kind (path, guide, reference, explanation), stage, prerequisites, next, sources, lastVerified, appliesTo, variants), the outline type | | reader-context | The reader context: the dimensions a site declares (a closed list of values, the audiences asked, a query parameter), contextMismatches (why a page is not written for a reader; an unanswered dimension never rules one out), reading it back from storage or a link, applicabilityProblems for appliesTo | | coverage | contextCoverage (for each full context of an audience, the paths and planned paths that answer it), coverageTable (the matrix printed in CI) and the DocsPlannedPath type | | paths | A path (an ordered reading list for one persona) as data: pathsThrough (the paths that use a block), placeInPath (the step a reader is on, from ?path=, a parameter the site may rename, or the only path holding the page) | | audience-index | What an audience landing lists: its paths, then its pages under the sidebar topics (navigationTopics) | | links, graph | internalLinksIn (the site links of an MDX source) and checkDocsGraph: dead links, pages more than two clicks from their landing, orphans, lastVerified past 150 days (warn) or 180 days (fail), path pages that are not of kind path | | search, search-index | The accent- and typo-tolerant matcher with the site's synonym groups, and the builders of its entries (a page carries its audience and stage as chips) | | api-reference/* | An OpenAPI 3 document parsed (model, openapi-document, schema-node), its navigation groups, request examples (JSON, cURL, fetch), a Markdown export and the example tokenizer | | mdx/plugin | docsMdx(), the Vite plugin that compiles the .mdx pages: frontmatter, GFM, an id on every heading exported as headings, Shiki in a light and a dark theme |

A consumer imports a module by path (@voila.dev/docs/navigation), passes its own docs root and labels, and adds docsMdx() to its Vite plugins:

import { docsMdx } from "@voila.dev/docs/mdx/plugin";

export default defineConfig({ plugins: [docsMdx(), react()] });

Every module but mdx/* bundles in a browser: the compilers stay behind the Vite plugin, and the package structure test keeps it that way.