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

friction-log

v0.6.1

Published

Capture, query, and infer agent-workflow frictions. SQLite-backed, sink-pluggable, zero-config default.

Readme

friction-log

Capture, query, and infer agent-workflow frictions. SQLite-backed, sink-pluggable, zero-config default.

Most agent tooling helps a model write the code. friction-log keeps a structured record of the moments where the agent's tools, MCP verbs, or harness behave unexpectedly, so the friction doesn't evaporate between sessions and the dogfood loop stays honest.

Overview

Two recurring patterns in agent-driven development go unaddressed by most tooling: the per-friction reflex (the agent notices a tool acting unexpectedly mid-task, mentally notes it, then moves on and the note evaporates) and the end-of-session bilanz (a retrospective naming tools exercised, frictions observed, tasks filed, easy to skip if nothing makes it cheap). friction-log lowers the cost of both: a one-line log for the per-moment capture, a one-command file to push the friction into whatever issue tracker the team uses, and a passive Stop-hook scan plus bilanz so missed frictions still get a second chance at the session boundary. The data isn't the goal; the goal is the inferences a few weeks of accumulated data enable (which tools cause the most friction, which categories recur, how long frictions take to become fixes), which is why the schema (SQLite + FTS5) is the foundation everything else builds on.

Status: M5 (this release) completes the v1 surface. init writes a YAML config and optionally installs the Claude Code Stop-hook in one command (with a --yes non-interactive mode for scripted bootstrap). import --format markdown-frontmatter <dir> bulk-loads existing markdown notes into the database, idempotent on re-run via a content-hash dedup. Four templates round out the v1 set (tool-missing-capability, auth-expiry, schema-drift, doc-gap), all auto-picked by matching the friction's category.

Key features

  • One-command init: detects the local environment and writes config, optionally installing the Claude Code Stop-hook
  • Structured log, list, search (FTS5), export, and digest (aggregations) over a local SQLite store
  • Five pluggable filing sinks: markdown-file (default, zero-dependency), stdout-json, github-issues, agent-tasks, linear
  • Idempotent scan of Claude Code transcripts (deduped on session, tool, and title) and import of existing markdown notes (content-hash deduped)
  • Optional multi-machine sync-export: deterministic, config-gated JSON file dump with read-only peer merge into digest
  • Auto-linked recurrence detection on repeated (tool, title) matches

Install / quick start

Install from npm (Node.js 22 or later):

npm i -g friction-log
friction-log --version

# Log a friction you noticed
friction-log log \
  --title "tasks_list returns 149kB blob" \
  --tool "mcp:agent-tasks/tasks_list" \
  --category output-overflow \
  --severity high

# See it in the local database
friction-log list

# Render and file it via the default markdown sink
friction-log file 1

The global install puts a friction-log command on PATH, which the Stop-hook below needs.

To run from a local build instead (for development on this repository):

git clone https://github.com/LanNguyenSi/agent-dx && cd agent-dx
cd packages/friction-log && npm install && npm run build
node dist/cli.js --help

A markdown record lands under ~/.local/share/friction-log/frictions/ with full frontmatter, ready to commit, paste into a chat, or pipe into another tool.

Usage

Wire automatic capture into every Claude Code session with a Stop-hook, then review with bilanz:

// ~/.claude/settings.json
{
  "hooks": {
    "Stop": [
      {
        "matcher": "",
        "hooks": [{ "type": "command", "command": "friction-log scan --silent --stdin-payload" }]
      }
    ]
  }
}
friction-log bilanz

See Command reference for every subcommand, including manual transcript scanning; run any command with --help for its complete flag list.

Documentation

  • Command reference: full subcommand table, Stop-hook wiring, manual scan, templates
  • Sinks: configuration for markdown-file, stdout-json, github-issues, agent-tasks, linear
  • Sync-export: optional multi-machine file merge, format, and write-through semantics
  • Storage: SQLite schema and recurrence_of_id matching rule
  • Design notes: ADR for the sink options bag, roadmap, and how this relates to slop-detector

Development

npm install
npm run typecheck
npm run build
npm test

License

MIT. See LICENSE.