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

@skeems/wikidata

v0.6.0

Published

Read-only WikiData (Wikibase) adapter for the skeem CLI.

Readme

@skeems/wikidata

Read-only WikiData (and any Wikibase instance) adapter for skeem.

Usage

npm install -g skeem @skeems/wikidata
adapter: wikidata
connection:
  url: https://www.wikidata.org   # or any Wikibase instance
  language: en                    # label/description language (default: en)

No authentication is required. The adapter talks to the MediaWiki Action API (/w/api.php) and sends a descriptive User-Agent per Wikimedia etiquette.

Tier: Read

WikiData is a knowledge graph, not a table store, so it maps to two synthetic, read-only collections:

  • items — Q-id entities (people, places, works, concepts, …)
  • properties — P-id properties (the predicates used in statements)

Each is keyed by id, with stable label, description, and aliases fields.

| Capability | Supported | | --- | --- | | ls, describe, discover | ✅ | | get <items\|properties> <id> | ✅ (full entity: simplified claims + externalIds) | | find <items\|properties> --where label=<text> | ✅ (search; --offset supported) | | find … --where id=<id> | ✅ (summary lookup) | | find items --where imdb=… / doi=… / P####=… | ✅ (reverse lookup by external id) | | count | returns null (the corpus is effectively unbounded) | | create / update / delete | ❌ read-only | | define / init / link | ❌ |

Examples

skeem get items Q42 --json                          # Douglas Adams: claims + externalIds
skeem find items --where label="Douglas Adams" --json
skeem find items --where imdb=nm0010930 --json      # reverse: external id -> Q42
skeem get properties P31 --json                     # the "instance of" property
skeem find properties --where label="instance of" --json

Claims and external identifiers

get splits an entity's statements into two objects:

  • externalIds — statements whose property has the external-id datatype (Q42 carries 245 of them), keyed by the shared vocabulary in docs/reference/external-ids.md where curated (imdb, doi, musicbrainz_artist, …) and by the raw P#### otherwise. P856 (official website) and the language's Wikipedia sitelink are folded in as official_website / wikipedia. Values are always arrays of strings.
  • claims — everything else, flattened to { propertyId: [value, ...] }. Entity references collapse to their id (e.g. "Q5"), times to their timestamp string, quantities to their amount, monolingual text to its string, and coordinates to { latitude, longitude }. Property ids and entity references are not resolved to labels — resolve them with another get if needed.

Changed in 0.6.0: external-id statements used to appear inside claims (e.g. claims.P345); they now live in externalIds under friendly keys.

Reverse lookup

find items --where <key>=<value> accepts one external-id filter — a curated key (imdb, doi, viaf, …) or any raw P#### — and resolves it via CirrusSearch haswbstatement. Matching is exact and case-sensitive (imdb values are lowercased for you); --limit is capped at 50; items only.

This simplification is intentionally lossy: it aims for a readable payload an agent can act on, not a faithful RDF reproduction. For full statement structure or graph queries, use the SPARQL endpoint directly.