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

wiki-search-index

v0.2.0

Published

Build a self-describing search index from a GitHub wiki (or any Markdown docs) — the indexer for wiki-search.

Readme

wiki-search NPM version

GitHub wikis are great for docs but have no real search. wiki-search adds it: a bookmarklet (plus a hosted search page) that searches a wiki and takes you straight to the matching section — without moving your docs off the wiki.

Try the live demo & install the bookmarklet

Use it

  • Search a wiki. Drag the bookmarklet to your bookmarks bar, then open any GitHub wiki that has a wiki-search index and search — each result jumps you to the exact section. (Try it now on this project's own wiki — no install needed.)

  • Add search to your own wiki. Build an index from your Markdown — needs Node, nothing to install:

    npx wiki-search-index --wiki ./your-wiki   # → your-wiki/search-index.json

    Commit that search-index.json into your wiki, then add a one-line Search section. Got API docs in your README? Run from your repo root and add --file README.md to fold it into the same index — results deep-link to the rendered file on GitHub. Full guide — including keeping the index fresh — Add search to your wiki.

How it works

The bookmarklet opens the search page on its own GitHub Pages origin, so the wiki page's security policy can't block it. There it loads a small JSON index built from the wiki's Markdown and links each result with a text fragment, so your browser scrolls to — and, where supported, highlights — the matched phrase. By default a result re-uses your current tab; Back returns you. The index carries its own URL template, so the same app works for any site with no hardcoded host.

| Path | What | | -------------- | ------------------------------------------------------------------- | | index.html | Landing + bookmarklet-install page (the Pages root). | | app/ | The search page (loads + validates an index, searches, links out). | | builder/ | wiki-index CLI: Markdown → the JSON index. | | engine/ | Search core: MiniSearch (vendored), with a zero-dep fallback. | | bookmarklet/ | The bookmarklet — one constant, imported by the app + install page. |

Run locally: python3 -m http.server from the repo root, then open http://localhost:8000/app/?wiki=uhop/wiki-search.

Release notes

  • 0.2.0 New: fold a repo file (e.g. a README that doubles as API docs) into the index with --file; fix: headings with links or image badges now slug like GitHub.
  • 0.1.3 Fix: HTML entities in headings now decode too, so anchors and section titles match GitHub (0.1.1 only handled body text).
  • 0.1.2 Set the published CLI's execute bit (tidy hygiene; npm already chmods bins on install).
  • 0.1.1 HTML entities (—, Ӓ, …) are decoded so they no longer pollute the index.
  • 0.1.0 Initial release of the wiki-search-index builder.

For the full history see the wiki: Release notes.

License

BSD-3-Clause