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

@hacknock/lobster-wiki

v0.1.0

Published

Wiki/multi-page site extension for lobster.js — Markdown-driven, zero-config

Readme

lobster-wiki

Markdown-driven wiki / multi-page site extension for lobster.js.

Demo →

lobster-wiki turns a folder of Markdown files into a wiki-style site — sidebar navigation, page routing, auto-generated table of contents — with almost no code beyond the Markdown itself.

Quick Start

Create a project with this structure:

my-wiki/
  index.html
  wiki.config.json
  nav.md
  content/
    intro.md
    guide.md

Write wiki.config.json:

{
  "title": "My Wiki",
  "navigation": "./nav.md",
  "footer": "./footer.md",
  "defaultPage": "intro",
  "tableOfContents": true
}

Write nav.md as a nested list with ?page= links:

- Getting Started
  - [Introduction](?page=intro)
  - [Guide](?page=guide)

Write a minimal index.html:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>My Wiki</title>
    <link rel="stylesheet" href="https://hacknock.github.io/lobster-wiki/style.css" />
  </head>
  <body>
    <script type="module">
      import { initWiki } from "https://hacknock.github.io/lobster-wiki/lobster-wiki.js";
      initWiki("./wiki.config.json");
    </script>
  </body>
</html>

Write your content pages in content/ and serve with any static file server.

Installation

CDN

The latest build is available via GitHub Pages — see the import URL in the Quick Start above. Or download lobster-wiki.js from the releases page and host it yourself.

npm

npm install @hacknock/lobster-wiki
import { initWiki } from "@hacknock/lobster-wiki";
initWiki("./wiki.config.json");

Features

  • SPA routing?page=slug query parameters with browser history support
  • Sidebar navigation — loaded from a Markdown file (nav.md) with active link highlighting
  • Auto-generated table of contents — builds an "On this page" section from headings (h2-h4)
  • Shared header / footer — specify via .md file path in config
  • Hash routing — optional "routing": "hash" mode for file:// protocol compatibility
  • Responsive — sidebar collapses on mobile, TOC hides on narrow screens
  • CSS-first — wiki layout uses lbw-* classes; content uses lobster.js lbs-* classes

Configuration

All options are defined in wiki.config.json:

| Key | Description | Default | | ----------------- | -------------------------------------------------------------------------------------- | ---------------- | | title | Site title (used in <title>) | — | | navigation | Path to sidebar navigation Markdown file (required) | — | | header | Path to header Markdown file | — | | footer | Path to footer Markdown file | — | | contentDir | Directory containing page Markdown files | ./content/ | | defaultPage | Default page slug when no ?page= is specified | intro | | tableOfContents | Enable auto-generated table of contents (true or { "minLevel": 2, "maxLevel": 4 }) | false | | routing | Routing mode: query or hash | query | | lobsterUrl | URL to lobster.js | GitHub Pages CDN |

Development

This project uses npm (declared via devEngines; requires >=11.10.0 for the min-release-age setting in .npmrc, which blocks installation of package versions less than 7 days old as a supply-chain mitigation).

npm ci               # Install dependencies (uses package-lock.json)
npm run build        # Build dist/lobster-wiki.js
npm run build:docs   # Build and copy to docs/ for GitHub Pages

License

MIT