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

cuemap

v0.6.6

Published

CueMap TypeScript SDK - High-performance temporal-associative memory

Readme

CueMap TypeScript SDK

High-performance temporal-associative memory store that mimics the brain's recall mechanism.

Overview

CueMap implements a Continuous Gradient Algorithm inspired by biological memory:

  1. Intersection (Context Filter): Triangulates relevant memories by overlapping cues
  2. Pattern Completion (Associative Recall): Automatically infers missing cues from co-occurrence history, enabling recall from partial inputs.
  3. Recency & Salience (Signal Dynamics): Balances fresh data with salient, high-signal events prioritized by the Amygdala-inspired salience module.
  4. Reinforcement (Hebbian Learning): Frequently accessed memories gain signal strength, staying "front of mind".
  5. Autonomous Consolidation: Periodically merges overlapping memories into summaries, mimicking systems consolidation.

Installation

npm install cuemap

Quick Start

1. Start the Engine

docker run -p 8080:8080 cuemap/engine:latest

2. Basic Usage

import CueMap from 'cuemap';

const client = new CueMap();

// Add a memory (auto-cue generation by default using internal Semantic Engine)
await client.add("The server password is abc123", []);

// Recall by natural language (resolves via Lexicon)
const results = await client.recall(
  "server credentials", // query text
  undefined, // cues
  undefined, // projects
  10 // limit
);

console.log(results[0].content);
// Output: "The server password is abc123"

Core API

Add Memory

// Manual cues
await client.add(
  "Meeting with John at 3pm",
  ["meeting", "john", "calendar"]
);

// Auto-cues (Semantic Engine)
await client.add("The payments service is down due to a timeout", []);

Recall Memories

// Natural Language Search
const results = await client.recall(
  "payments failure", // query_text
  undefined,    // cues
  undefined,    // projects
  10,           // limit
  2,            // depth
  false,        // auto_reinforce
  undefined,    // min_intersection
  true          // explain
);

console.log(results[0].explain);
// Shows normalized cues, expanded synonyms, etc.

Grounded Recall (Hallucination Guardrails)

Get verifiable context for LLMs with a strict token budget.

const response = await client.recallGrounded(
  "Why is the payment failing?",
  500 // token budget
);

console.log(response.verified_context);
// [VERIFIED CONTEXT] ...
console.log(response.proof);
// Cryptographic proof of context retrieval

Context Expansion (v0.6.1)

Explore related concepts from the cue graph to expand a user's query.

const response = await client.contextExpand("server hung 137", 5);
// {
//   "query_cues": ["server", "hung", "137"],
//   "expansions": [
//     { "term": "out_of_memory", "score": 25.0, "co_occurrence_count": 12 },
//     { "term": "SIGKILL", "score": 22.0, "co_occurrence_count": 8 }
//   ]
// }

Cloud Backup (v0.6.1)

Manage project snapshots in the cloud (S3, GCS, Azure).

// Upload current project snapshot
await client.backupUpload("default");

// Download and restore snapshot
await client.backupDownload("default");

// List available backups
const backups = await client.backupList();

Ingestion (v0.6)

Ingest content from various sources directly.

// Ingest URL
await client.ingestUrl("https://example.com/docs");

// Ingest File (PDF, DOCX, etc.)
// Requires a File or Blob object (browser) or similar in Node
await client.ingestFile(myFileObject);

// Ingest Raw Content
await client.ingestContent("Raw text content...", "notes.txt");

Lexicon Management (v0.6)

Inspect and wire the brain's associations manually.

// Inspect a cue's relationships
const data = await client.lexiconInspect("service:payment");
console.log("Synonyms:", data.outgoing);
console.log("Triggers:", data.incoming);

// Manually wire a token to a concept
await client.lexiconWire("stripe", "service:payment");

// Get synonyms via WordNet
const synonyms = await client.lexiconSynonyms("payment");

Job Status (v0.6)

Check the progress of background ingestion tasks.

const status = await client.jobsStatus();
console.log(`Ingested: ${status.writes_completed} / ${status.writes_total}`);

Advanced Brain Control

Disable specific brain modules for deterministic debugging.

const results = await client.recall(
  "urgent issue", // query
  undefined,
  undefined,
  10,
  1,
  false,
  undefined,
  false, // explain
  true,  // disablePatternCompletion
  true,  // disableSalienceBias
  true   // disableSystemsConsolidation
);

Performance

  • Write Latency: ~2ms (O(1) complexity)
  • Read Latency: ~3ms (P99, 1M memories)

License

MIT