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

@origintrail-official/dkg-okf

v10.0.8

Published

Deterministic **Google Open Knowledge Format (OKF) → DKG** mapper.

Readme

@origintrail-official/dkg-okf

Deterministic Google Open Knowledge Format (OKF) → DKG mapper.

OKF standardises how knowledge is written and exchanged — portable Markdown + YAML frontmatter + untyped cross-links — but ships no verification, provenance or ownership layer (OKF SPEC §1, §10). This package is the bridge: it turns an OKF bundle into owned, verifiable RDF Knowledge Assets, reconstructing the bundle's cross-concept link graph. The same portable Markdown, now cryptographically provenanced, owned and shareable across agents.

Pure, no LLM, no network — the same bundle always yields identical triples and IRIs.

Use it from the CLI

# Deterministic, offline — prints the mapping summary, never touches a node
dkg okf import ./bundle --dry-run --print-nquads

# Import into a Context Graph (defaults to private Working Memory)
dkg okf import ./bundle --context-graph-id my-graph --create-context-graph

# Finalize + share to Shared Working Memory (free, team-visible)
dkg okf import ./bundle --context-graph-id my-graph --share

# Import into a private invite-only Context Graph; still one KA per concept
dkg okf import ./bundle --context-graph-id private-graph --private --create-context-graph

# Serialise a Context Graph back into a conformant OKF bundle (clean inverse)
dkg okf export my-graph ./out

Import defaults to Working Memory and never publishes to Verifiable Memory. --share advances to Shared Working Memory. On-chain VM promotion (real TRAC) is a separate, explicitly-gated operator step with dkg ka publish or dkg ka publish-async. --private creates or uses an invite-only Context Graph and keeps the same per-concept Knowledge Asset lifecycle, sharing each concept asset to SWM without VM promotion.

Use it as a library

import { loadBundleDir, importBundle, quadsToNQuads } from '@origintrail-official/dkg-okf';

const result = importBundle(loadBundleDir('./bundle'));
console.log(result.concepts.length, 'Knowledge Assets');
console.log(quadsToNQuads(result.quads)); // canonical, byte-stable N-Quads

Docs

  • CONTEXT.md — Language / Relationships / Flagged ambiguities.
  • ../../docs/use-dkg/okf.md — CLI import/export/verify lifecycle guide.
  • DEMO.md — the live mainnet runbook (WM → SWM → join invitation → Hermes agent → rendered graph; VM promotion held as a deferred capstone).

License: Apache-2.0. The vendored test/fixtures/crypto_bitcoin/ bundle is © Google LLC, Apache-2.0 (see its ATTRIBUTION).