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

@abraca/wiki

v2.34.0

Published

Wikipedia → Abracadabra importer — fetch articles into a graph of CRDT docs

Readme

@abraca/wiki

Streaming Wikipedia → Abracadabra importer. Fetches Wikipedia (or any MediaWiki) articles and seeds them into a space as a live graph of CRDT docs: every discovered title becomes a shell doc immediately, then bodies stream in one fetch at a time — so the tree skeleton appears in the dashboard before the first body is written.

Extracted from @abraca/cli (where it used to be the abracadabra wiki command) so the heavyweight wtf_wikipedia dependency no longer ships with the core CLI.

Install

pnpm add -g @abraca/wiki   # or: pnpm dlx @abraca/wiki ...

Requires @abraca/dabra (peer). Authenticates with the same Ed25519 key file as the abracadabra CLI (~/.abracadabra/cli.key), so both tools share one account.

Usage

abracadabra-wiki "<Article Title>" user-agent="you ([email protected])" [options]

| Option | Default | Meaning | | :-- | :-- | :-- | | mode=single\|split | split | one doc per article, or split into sections + infobox | | depth=<n> | 1 | follow internal links to depth N | | category-depth=<n> | 1 | recurse into sub-categories | | lang=<code> | en | wiki language | | domain=<host> | — | 3rd-party MediaWiki host (overrides lang) | | parent=<docId> | active space root | parent doc for the new graph | | user-agent=<str> | — | required Api-User-Agent (Wikimedia etiquette) | | rate=<rps> | 3 | max Wikipedia requests per second | | --include-categories | off | expand each article's categories into nested graphs | | --dry-run | off | fetch only the entry article, print its outline, write nothing |

Environment

| Var | Purpose | | :-- | :-- | | ABRA_URL | server URL (required unless --dry-run) | | ABRA_KEY_FILE | Ed25519 key seed (default ~/.abracadabra/cli.key) | | ABRA_NAME / ABRA_COLOR | presence identity | | ABRA_INVITE_CODE | invite code for first-run registration | | ABRA_WIKI_USER_AGENT | default Api-User-Agent (or pass user-agent=) |

Examples

# Preview the structure without touching a server
abracadabra-wiki "Toronto Raptors" user-agent="me ([email protected])" --dry-run

# Import two link-hops deep, split into section docs, with categories
export ABRA_URL=https://your-server.example.com
abracadabra-wiki "Jazz" depth=2 mode=split --include-categories \
  user-agent="me ([email protected])"

Programmatic use

import { runWiki } from "@abraca/wiki";

const summary = await runWiki({
  positional: ["Toronto Raptors"],
  params: { "user-agent": "me ([email protected])" },
  flags: new Set(["dry-run"]),
});

runWiki(args) runs an import for already-parsed args and returns a summary string. (The package is primarily a CLI; abracadabra-wiki is the bin.)

License

MIT