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

@anupamvijayvergia/intent-layer

v0.1.1

Published

Team memory for AI coding agents — captures intent behind every AI-assisted code change

Downloads

220

Readme

Intent Layer

Team memory for AI coding agents. Captures the intent behind every AI-assisted code change so the next session — yours or a teammate's — knows what was decided, what was rejected, and why.

Install

npm install -g @anupamvijayvergia/intent-layer

That's it. There are no API keys to configure, no Supabase URL to set, no .env to fill in. Everything that needs a secret runs on the dashboard you log in to.

Get started

Three commands, in this order:

intent-layer login        # opens browser, authorizes this device
intent-layer install      # registers a user-scope OS service that
                          # starts the watcher at login
intent-layer status       # confirms the daemon is running

After intent-layer install, the watcher runs in the background and auto-starts whenever you log in to your machine. There is nothing else to do — every Claude Code or Codex session you run will have its intents extracted and made available to your team's dashboard and to the MCP server.

What the watcher does

The background daemon watches your Claude Code (~/.claude/projects) and Codex (~/.codex/sessions) JSONL session files. When a session finishes (either a 60-turn batch or 30 minutes of idle time), it:

  1. Chunks the session client-side (no LLM cost — pure text transform).
  2. POSTs each substantial chunk to your dashboard at /api/v1/sessions/extract with your device's bearer JWT.
  3. The dashboard runs the extraction LLM, persists the resulting intent memory scoped to your tenant, and returns the parsed payload.
  4. Every 5 minutes the watcher pings /api/v1/sessions/touch so the Devices page on the dashboard knows this device is alive.

The customer-side runtime never holds a Supabase service key, an LLM API key, or any other infrastructure secret. After intent-layer login your ~/.intent-layer/config.json contains only:

{
  "jwt": "...",
  "user_id": "[email protected]",
  "org_slug": "your-team",
  "device_name": "your-laptop",
  "server_url": "https://your-dashboard.example.com"
}

Day-to-day commands

| Command | What it does | | --- | --- | | intent-layer status | Prints config and daemon health (running / stopped / failed). Pass --json for machine-readable output. | | intent-layer logs | Tails the daemon's platform-specific log (LaunchAgent log on macOS, journalctl on Linux, Windows Event Log). | | intent-layer list | Lists recent intents for the last 30 days via the dashboard's read API. | | intent-layer health | Confidence distribution + evolution counters. Read-only summary. | | intent-layer uninstall | Reverses install — removes the OS service. Your config and stored intents stay. | | intent-layer reset-local | Clears the watcher's local sync-state file so a re-run will re-process recent sessions. Does NOT touch the database. |

Per-repo setup (optional)

To enable the MCP get_file_intent / search_intent tools inside a specific repo (so Claude Code/Cursor/Codex can query intent before editing files), run from the repo root:

intent-layer setup

This writes .claude/CLAUDE.md, a PreToolUse hook, and .mcp.json into the repo so any AI agent that opens the repo automatically gets the intent-aware behavior.

Troubleshooting

  • Error: not logged in. Run intent-layer login first. — your device JWT expired or was revoked. Re-run intent-layer login.
  • Watcher not picking up sessions — check intent-layer status for daemon state and intent-layer logs for errors. Confirm the files actually live under ~/.claude/projects or ~/.codex/sessions.
  • Verbose logging — set INTENT_LAYER_DEBUG=true in the daemon's env (launchctl setenv on macOS, systemd drop-in on Linux). This is the only env var the watcher reads at runtime; everything else flows from the dashboard.
  • Switch dashboards — re-run intent-layer login and pick the new server when prompted; the JWT and server_url get rewritten atomically.

What's NOT here

The watcher is a thin client. It does not:

  • Hold any database or LLM credentials. Compromising a dev laptop doesn't leak service-role access.
  • Run background LLM calls on your machine (every extraction goes to the dashboard).
  • Store intents locally in a way the rest of your team can't see.

If you're operating the dashboard side, see intent-layer-dashboard/README.md (separate package) for deployment and configuration.