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

@orqenix/memory-engine

v0.10.0

Published

Apache-2.0 memory engine for Orqenix. 3-level hierarchy, branch deep-copy, subagent harness, parallel query, BLAKE3 audit chain.

Readme

@orqenix/memory-engine

Apache-2.0 memory engine for Orqenix. The keystone that wires the 3-level hierarchy, branch deep-copy, subagent harness, parallel query, and audit chain. Phase 8 Foundation (D8.α.6). Charter gates G58 + G59 + G60 (38 sub-criteria).

What this engine wires

D8.α.6 implements the actual memory engine that prior deliveries stubbed:

| Stub | Now wired | | ------------------------------------------ | ------------------------------------------ | | ProjectIndex.query() (D8.α.3) | Real hybrid search vs SQLite memory.db | | ProjectIndex.fetchFullContent() (D8.α.3) | Real blob fetch | | Audit chain writer (D8.α.3/α.4) | Real BLAKE3 chain (extends Phase 7 D7.13) | | RegistryPersistence (D8.α.4) | SQLite installed_plugins (Migration 540) | | SettingsPersistence (D8.α.5) | SQLite config_overrides (Migration 560) |

Architecture (CR v8.0 Chapters 4 + 5)

MemoryEngine (facade)
├── HierarchyQuery   , parallel 3-step (session → branch → project)
├── BranchStore      , deep-copy at creation (ADR-E-003)
├── SubagentHarness  , no-matrix subagent + return absorber (ADR-E-002)
├── PromotionEngine  , session→branch→project promotion
├── CompressGuard    , protection_flags enforcement (INV-13)
└── AuditChainWriter , BLAKE3 single chain per project (INV-3)
        │
        ▼
SqliteStore (better-sqlite3 + sqlite-vec) + BlobStore (content-addressed)

3-Level Hierarchy

Every level (project → branch → session) has the full 4×4 Memory × Knowledge Matrix (T1-T4 × Chat/Code/Decision/Lesson) per CR v8.0 Section 4.2.

Project (project_id = blake3 of Ed25519)
├── Branch (branch_id = blake3(project_id + ":" + branch_name))
│   ├── Session (session_id = ULID)
│   └── Session ...
└── Branch ...

Key invariants enforced

  • INV-11: Branch creation deep-copies parent context (independent indexes)
  • INV-12: Query runs all 3 levels in parallel, NO short-circuit
  • INV-13: Subagent returns never compressed/tier-moved (protection_flags)
  • INV-3: Single BLAKE3 audit chain per project (branch/session metadata)
  • ADR-E-002: Subagents have no matrix; parent absorbs returns to T1+T2
  • ADR-E-003: Branch deep-copy (not COW) for isolation correctness

Usage

import { MemoryEngine } from "@orqenix/memory-engine";

const engine = await MemoryEngine.open("./.orqenix/memory.db", {
  projectId: "blake3:7f2ac8d1...",
});

// Write to a session
await engine.write({
  kb: "decision",
  content: "Use Stripe for billing",
  branchId: "blake3:main...",
  sessionId: "01J3X8H9...",
  memoryLevel: "session",
});

// Parallel 3-step query (session → branch → project)
const results = await engine.query({
  query: "billing approach",
  sessionId: "01J3X8H9...",
  branchId: "blake3:main...",
  projectId: "blake3:7f2ac8d1...",
  limit: 20,
});

// Branch deep-copy
await engine.createBranch({
  parentBranchId: "blake3:main...",
  newBranchName: "feature/stripe",
});

// Subagent (no matrix; parent absorbs return)
const ret = await engine.invokeSubagent({
  parentSessionId: "01J3X8H9...",
  harness: {
    /* ... */
  },
});

License

Apache-2.0 , see ./LICENSE