agentsclimarketplace

Mailbox store jsonl with in memory index

Skill kjuhwa/skills-hub/skills/data-pipeline/mailbox-store-jsonl-with-in-memory-index

Self-correcting knowledge corpus for Claude Code — 9 stable shape clusters, bias-correction pipeline baked into contribution flow. 47 papers, 45 techniques, 1.1k skills.

Install
npx -y skills add kjuhwa/skills-hub --skill mailbox-store-jsonl-with-in-memory-index

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Append-only JSONL persistence with in-memory index for fast message lookup and ordering

SKILL.md

1.4 KB, 210 tokens by cl100k_base, as published. Nobody here has run it

JSONL mailbox with in-memory index

Use a JSONL file (one JSON object per line) as the durable append-only log, and maintain in-memory indexes (Map for ID lookup, arrays for ordered inbound/outbound refs) rebuilt on startup.

Mechanism

  • Append: fs.appendFileSync(path, JSON.stringify(msg) + '\n') then index.set(msg.id, msg).
  • Load: read file line-by-line, JSON.parse each, populate index. Skip malformed lines with a warning.
  • Schema evolve: include a schema_version on each record; migrate in a single pass when rebuilding the index.
  • Separate volatile state (cursors, ack marks) into a side JSON file so the log stays append-only.

When to reuse

  • Local message queues, outbox patterns, event logs that must survive restart.
  • Systems that want human-inspectable storage (grep, tail) without a database.
  • Anywhere you need durable writes + fast lookup without SQLite/LMDB.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.