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

@hiromima/throughline

v0.1.0

Published

The cross-machine cognitive bus for AI agents. Your Dropbox/Drive is the only backend — no server, no database. Append-only JSONL that any filesystem-capable AI can read and append.

Readme

throughline

The cross-machine cognitive bus for AI agents. The folder you already sync is the only backend — no server, no database. Append-only JSONL that any filesystem-capable AI can read and append.

License: MIT Node


Why

Every AI memory tool (mem0, letta, claude-mem…) assumes one machine + a server/DB or a hosted API. None give you the simplest possible substrate: a file on a folder you already sync, shared across every machine and every AI at once.

throughline isn't an "AI memory" product — it's a vendor-neutral context protocol:

  • Zero infrastructure — no daemon, no server, no database. The sync service you already run (Dropbox / Google Drive / Syncthing / iCloud) is the transport.
  • Cross-machine — laptop, desktop, and home server share one stream. Every comparable tool is single-machine.
  • AI-neutral — Claude Code, Claude Desktop, Codex, Gemini CLI… anything that can read a file can join. One protocol, thin per-AI adapters — the LSP model for AI context.
  • append-only JSONL — torn-write resilient, mergeable across machines, greppable.

Honest boundary: any AI that can reach the local filesystem participates. A pure cloud chat (e.g. vanilla ChatGPT web) cannot — its MCP is remote-only — so it needs a bridge that breaks the zero-infra property. See spec/PROTOCOL.md §6.

Install

npm install -g @hiromima/throughline      # CLI + library

Quickstart — library

import { Stream, googleDriveAdapter } from "@hiromima/throughline";

const stream = new Stream({
  root: googleDriveAdapter().resolveRoot(),   // ~/.../My Drive/.throughline
  source: "my-agent",
});

// Append a cognitive event (ts/schema/kind/machine are filled in for you)
stream.emit({ source: "my-agent", type: "milestone", summary: "shipped v1" });

// Read recent cognitive events (ops/telemetry are filtered out)
for (const e of stream.read()) {
  console.log(`[${e.source}@${e.machine}] ${e.type}: ${e.summary}`);
}

Quickstart — CLI

export THROUGHLINE_ROOT="$HOME/Dropbox/.throughline"   # or any synced folder

throughline emit milestone "shipped v1" "details here" --source my-agent
throughline read --cursor ~/.throughline-cursor

Sync backends

throughline never syncs anything itself — it rides a folder your sync app keeps in sync across machines. Pick the adapter for the service you already use; each just resolves the local mount path (nothing touches any cloud API):

| Service | Adapter | Default / detection | Override | |---------|---------|---------------------|----------| | Dropbox | dropboxAdapter() | ~/Dropbox/.throughline | DROPBOX_DIR or { base } | | Google Drive | googleDriveAdapter() | autodetects ~/Library/CloudStorage/GoogleDrive-*/My Drive (macOS) or ~/Google Drive | GOOGLE_DRIVE_DIR or { base } | | iCloud Drive | icloudAdapter() | ~/Library/Mobile Documents/com~apple~CloudDocs/.throughline | ICLOUD_DIR or { base } | | Syncthing / any folder | mountedAdapter(path) | — (you pass the synced folder) | n/a | | Local (single machine / tests) | localAdapter(path) | — | n/a |

import { googleDriveAdapter, mountedAdapter } from "@hiromima/throughline";

googleDriveAdapter().resolveRoot();                     // autodetected My Drive
googleDriveAdapter({ base: "/Volumes/Work/My Drive" }); // explicit mount
mountedAdapter("/home/me/Sync/.throughline");           // Syncthing folder

The interface is just resolveRoot() + health(), so adding a new backend (OneDrive, pCloud, an SMB share…) is a few lines — see src/sync/.

The kind envelope

Every event is one JSONL line:

{"ts":"2026-06-02T01:00:00Z","schema":"throughline/v1","kind":"cognitive","source":"codex","machine":"laptop","type":"milestone","summary":"shipped v1"}

kind is the load-bearing field:

| kind | meaning | injected into agent context? | |------|---------|------------------------------| | cognitive | decisions, progress, findings, handoffs | ✅ yes | | ops | process supervision / automation logs | ❌ no (separate ops-*.jsonl) | | telemetry | high-frequency metrics | ❌ no |

Readers inject cognitive only, so operational noise never drowns durable context. Legacy events without kind are inferred (type+source ⇒ cognitive).

AI adapters

throughline is a protocol; each AI joins via a thin adapter (see adapters/):

| AI | read | status | |----|------|--------| | Claude Code | SessionStart hook → throughline read | adapters/claude-code/ | | Codex | AGENTS.md instruction → throughline read | adapters/codex/ | | Claude Desktop | Filesystem MCP (local stdio) | reads the folder directly | | ChatGPT (web) | remote MCP bridge | bridge tier — breaks zero-infra |

Cursor rule: each AI keeps its own cursor file. Sharing a cursor between tools makes one mark events read and the other miss them — the one hard rule.

Develop

npm install
npm run typecheck
npm test          # vitest
npm run build     # -> dist/

License

MIT © hiromima.