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

v9.0.0-beta.6-dev.1773614346.8bc4e9c

Published

Command-line interface and daemon for DKG V9. This is the main entry point for running a DKG node — it manages the node lifecycle, exposes a local HTTP API, and provides commands for publishing, querying, and interacting with the network.

Readme

@origintrail-official/dkg

Command-line interface and daemon for DKG V9. This is the main entry point for running a DKG node — it manages the node lifecycle, exposes a local HTTP API, and provides commands for publishing, querying, and interacting with the network.

Installation

npm install -g @origintrail-official/dkg

From source (monorepo development):

pnpm build
pnpm link --global --filter @origintrail-official/dkg

# Binary is now available as `dkg`
dkg --help

Quick Start

# Initialize a new node (generates keys, sets up config)
dkg init

# Start the node daemon
dkg start

# Check node status
dkg status

# Publish data to a paranet
dkg publish --paranet urn:paranet:example --file data.nq

# Query the knowledge graph
dkg query "SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT 10"

Commands

| Command | Description | |---------|-------------| | dkg init | Initialize node config, generate keys, set up storage | | dkg start | Start the node daemon (HTTP API + P2P) | | dkg stop | Stop a running daemon | | dkg status | Show node status, connected peers, synced paranets | | dkg auth | Generate or display API authentication token | | dkg publish | Publish RDF data as Knowledge Assets to a paranet | | dkg query | Run a SPARQL query against the local store | | dkg query-remote | Forward a SPARQL query to a remote peer | | dkg peers | List connected peers | | dkg send | Send an encrypted message to another agent | | dkg chat | Start an interactive chat session with a remote agent | | dkg subscribe | Subscribe to a paranet and sync its data | | dkg paranet | Create, list, or inspect paranets | | dkg workspace publish | Publish from a local workspace (feeless mode) | | dkg index | Index a local code repository into the knowledge graph | | dkg wallet | Show wallet addresses and balances | | dkg set-ask | Set the token ask price for serving data | | dkg logs | Stream daemon logs |

HTTP API

When the daemon is running, it exposes a local HTTP API (default: http://localhost:9200). Endpoints include:

  • POST /api/publish — publish RDF data
  • POST /api/query — execute SPARQL queries
  • GET /api/peers — list connected peers
  • GET /api/status — node status
  • POST /api/sessions — create AKA sessions (experimental)
  • POST /api/context-graphs — create a Context Graph (M/N signature-gated subgraph)
  • GET /api/context-graphs/:id — get Context Graph metadata
  • POST /api/context-graphs/:id/publish — publish KAs into a Context Graph
  • GET /api/oracle/:contextGraphId/entity — entity lookup with Merkle inclusion proofs
  • POST /api/oracle/:contextGraphId/query — SPARQL query with proofs
  • POST /api/oracle/:contextGraphId/prove — single triple existence proof
  • GET /api/apps — list installed DKG apps

All endpoints (except public paths and oracle endpoints) require an API token via Authorization: Bearer <token> header.

Installable Apps

The daemon includes a generic app loader that discovers and serves third-party DKG apps without any per-app code changes. Apps are npm packages with a dkgApp manifest in their package.json. The daemon:

  1. Discovers installed apps from node_modules (packages with a dkgApp field) or explicit config.
  2. Loads each app's API handler and invokes it for requests under /api/apps/:appId/*.
  3. Serves each app's built UI (static assets) at /apps/:appId/.

Node runners install an app (pnpm add dkg-app-my-game), restart, and it appears in the Node UI sidebar. See docs/plans/DKG_APPS_INSTALLABLE.md for the full design.

Internal Dependencies

  • @origintrail-official/dkg-agent — agent runtime, wallet, publishing, querying
  • @origintrail-official/dkg-core — P2P node, event bus
  • @origintrail-official/dkg-node-ui — web dashboard serving