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-adapter-hermes

v10.0.0-rc.1-dev.1777629045.28b45c1

Published

Hermes Agent adapter — connects Hermes AI agents to a DKG V10 node for verifiable shared memory

Readme

DKG Adapter for Hermes Agent

Connects Hermes Agent (v0.7+) to a DKG V10 node for verifiable, shared agent memory.

This package contains both sides of the integration:

  • src/ — TypeScript daemon adapter (registers HTTP routes on the DKG node)
  • hermes-plugin/ — Python memory provider plugin (loaded by Hermes Agent)

Architecture

Hermes Agent (Python)                DKG Daemon (TypeScript)
plugins/memory/dkg/                  packages/adapter-hermes/
  (symlink → hermes-plugin/)           HermesAdapterPlugin
                                       /api/hermes/* routes
  DKGMemoryProvider  ── HTTP ───→      DKGAgent delegation
  5 agent tools          :9200         importMemories() extraction
  Offline fallback   ←── HTTP ────

DKG Working Memory is the primary store for all persistent knowledge (facts, user profile, decisions). SQLite conversation history is kept as a local non-graph backup.

Quick Start

1. Install the Hermes plugin

cd packages/adapter-hermes
./install.sh /path/to/hermes-agent

This creates a symlink from Hermes's plugin directory to hermes-plugin/. If Hermes is in a standard location, the path is auto-detected.

2. Configure Hermes

hermes memory setup
# Select "dkg" → enter daemon URL (default: http://127.0.0.1:9200)

Or set directly in ~/.hermes/config.yaml:

memory:
  provider: dkg

3. Start DKG + Hermes

dkg start          # Start the DKG daemon
hermes             # Start Hermes (or it picks up the plugin on next session)

No restart needed if Hermes is already running — the plugin registers with the daemon on next session init.

What the Agent Gets

Five DKG tools appear automatically:

| Tool | Description | |------|-------------| | dkg_memory | Store/update/remove persistent facts in DKG Working Memory (replaces MEMORY.md) | | dkg_query | Run SPARQL queries across the knowledge graph | | dkg_share | Share knowledge to Shared Working Memory (team-visible, free, gossip-replicated) | | dkg_publish | Publish to Verified Memory (chain-anchored, permanent, costs TRAC) | | dkg_status | Check node health, peers, context graphs, assertion stats |

Memory Model

Working Memory (local, free)      agent's private assertions
  │
  ▼  SHARE (free, gossip)
Shared Working Memory             team-visible, provisional
  │
  ▼  PUBLISH (costs TRAC)
Verified Memory                   chain-anchored, trust gradient
                                  (self-attested → endorsed → consensus-verified)

Offline Mode

If the DKG daemon is unreachable:

  • Agent continues with cached facts from $HERMES_HOME/dkg_cache.json
  • Writes are queued and auto-synced when daemon comes back online
  • hermes dkg sync forces a manual sync

CLI Commands

hermes dkg status   # Connection info, context graphs, assertion stats
hermes dkg query "SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT 10"
hermes dkg sync     # Force-sync local cache to DKG

Development

# Build TypeScript adapter
pnpm build

# Run tests
pnpm test

License

Apache-2.0