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

@unrdf/fusion

v26.4.4

Published

Unified integration layer for 7-day UNRDF innovation - KGC-4D, blockchain, hooks, caching

Readme

@unrdf/fusion

Unified Integration Layer - 7-Day Innovation Consolidation

Canonical API surface for UNRDF's recent innovations:

  • KGC-4D: Time-travel store, Git snapshots, HDIT coordinates
  • Blockchain: Cryptographic receipts, Merkle proofs, anchoring
  • Hooks: Policy execution, validation, transformation
  • Caching: Multi-layer cache, resource management
  • Oxigraph: High-performance RDF store

Quick Start

import { createEngine, prove } from '@unrdf/fusion';

// Create unified engine
const engine = await createEngine({
  enableCaching: true,
  enableBlockchain: true,
  enableGit: false,
});

// Access subsystems
const { store, kgcStore, receipts, policies, resources } = engine;

// Get combined stats
console.log(engine.getStats());

// Cleanup
await engine.close();

Deterministic Proof

Run the E2E proof scenario:

DETERMINISTIC=1 node tools/prove.mjs

This executes a complete workflow:

  1. Create KGC store + Git backbone
  2. Apply policy hooks
  3. Allocate resources via cache
  4. Execute test case
  5. Generate blockchain receipts
  6. Produce Merkle proof

Output:

  • Final proof hash
  • Merkle root
  • Receipt count
  • Verification status
  • Full ledger JSON

Exported APIs

Core Store

  • createStore() - Create Oxigraph RDF store
  • dataFactory - RDF term creation (namedNode, literal, etc.)

KGC-4D Engine

  • KGCStore - Time-travel enabled store
  • GitBackbone - Git-backed snapshots
  • freezeUniverse() - Snapshot creation
  • VectorClock - Distributed time
  • HDIT functions: coordsForEvent, findKNearest, projectPCA

Blockchain

  • ReceiptAnchorer - Ethereum anchoring
  • MerkleProofGenerator - Merkle tree generation
  • WorkflowVerifier - Smart contract verification

Policy Hooks

  • defineHook() - Hook definition
  • executeHook() - Hook execution
  • createHookRegistry() - Hook management
  • builtinHooks - Standard validators

Caching

  • createCachingSystem() - Multi-layer cache
  • MultiLayerCache - L1/L2/L3 caching
  • DependencyTracker - Invalidation tracking

Integration Map

@unrdf/fusion
├── Store (@unrdf/oxigraph)
│   └── createStore(), dataFactory
├── Engine (@unrdf/kgc-4d)
│   ├── KGCStore (time-travel)
│   ├── GitBackbone (snapshots)
│   └── HDIT (coordinates, similarity)
├── Receipts (@unrdf/blockchain)
│   ├── ReceiptAnchorer
│   └── MerkleProofGenerator
├── Policies (@unrdf/hooks)
│   ├── defineHook()
│   └── executeHook()
└── Resources (@unrdf/caching)
    ├── MultiLayerCache
    └── DependencyTracker

Proof Artifacts

Ledger location: ARTIFACTS/last7days-ledger.json

Schema:

{
  "proofHash": "sha256 hex",
  "scenario": {
    "workflowCreated": true,
    "policyApplied": true,
    "resourceAllocated": true,
    "caseExecuted": true,
    "receiptsEmitted": 5,
    "merkleRoot": "0x...",
    "verificationPassed": true
  },
  "versions": { ... },
  "hashes": { ... }
}

For Agents 2-10

This package provides the canonical imports. Do NOT re-implement:

// ✅ CORRECT - Import from fusion
import { createEngine, KGCStore, ReceiptAnchorer } from '@unrdf/fusion';

// ❌ WRONG - Re-implementing
const myStore = new CustomStore(); // Don't do this

All APIs are delegated to existing packages. Zero reimplementation.