LongMemory Hydrograph architecture

September 14, 2026 ยท View on GitHub

LongMemory Hydrograph ships as one TypeScript npm package named longmemory.

The package has three public entry modes:

  • library import from src/index.ts
  • CLI binary named longmemory
  • self-hosted API server from src/server

There is no separate SDK package. The package itself is the SDK.

Phase 1 boundaries

Phase 1 creates the foundation only:

  • package scripts
  • CLI and server entry points
  • createMemory placeholder
  • invariants
  • docs
  • acceptance tests

Phase 1 does not include production memory storage, dashboard, hosted service, graph visualization, vector database integration, or external connectors.

Shared engine rule

The API server and CLI must both call createMemory. They must not construct separate engine paths.