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

ghostshift

v1.0.0

Published

Open-source audit trail for AI work

Downloads

11

Readme

License: AGPL-3.0 Spec: Apache-2.0 Node Version

Ghostshift demo


Why Ghostshift?

AI agents produce commits, but the reasoning — the task context, decisions made, checks run — disappears the moment the agent finishes. Ghostshift captures that layer:

  • Capture — record tasks, touched files, decisions, and verification results alongside every agent session
  • Blame — find which session changed a specific file or line, and what decision went with it
  • Explain — get a semantic summary of what a session did and why
  • Replay — create a new session linked to an earlier one for auditability
  • Compare — diff two sessions: verification changes, decision provenance, patch deltas
  • Export — emit a stable, open JSON payload for external tooling or archival
  • Self-host — browse all of the above in a local preview UI, no cloud required

Install

npm install -g ghostshift

Or run directly from this repo:

git clone https://github.com/efegorkembildi12-lang/ghost-shift.git
cd ghost-shift
npm install
node apps/cli/src/index.js --help

Quickstart

# 1. Initialize in your project
ghostshift init

# 2. Record a task with decisions and verification
ghostshift run "refactor auth middleware" \
  --files src/auth.ts,src/session.ts \
  --decision "rationale:split auth checks from session loading" \
  --decision "risk:avoid changing token parsing in this pass" \
  --verify "lint:passed" \
  --verify "unit-tests:pending:needs fixture coverage"

# 3. List sessions
ghostshift trace

# 4. Find who changed a line
ghostshift blame src/auth.ts --line 42

See docs/quickstart.md for the full walkthrough.


CLI Reference

| Command | What it does | |---|---| | init | Create .ghostshift/ and local config | | run <task> | Record a task session with files, decisions, and checks | | trace | List all captured sessions | | blame <file> [--line N] | Find sessions that touched a file or specific line | | explain <id> | Summarize why a session happened and what it touched | | verify <id> | Show verification state for a session | | replay <id> | Create a new session linked to an earlier one | | compare <left> <right> | Diff two sessions | | pr-summary [left] [right] | Generate a Markdown PR summary | | export | Emit a stable JSON payload of all session data | | doctor | Validate config and storage |

Blame — line-aware attribution

ghostshift blame

PR Summary — ready for automation

ghostshift pr-summary


Self-Host Preview

Start a local browser UI over any workspace that contains .ghostshift/:

npm run preview
# or: GHOSTSHIFT_WORKSPACE=/path/to/repo node apps/server/src/index.js

Ghostshift preview UI

The preview exposes session detail, explain reports, compare views, line-aware blame lookup, and export import/sync — all without a cloud dependency.


Plugins

Ghostshift ships a stable plugin API with four hook types:

| Hook | Purpose | |---|---| | captureSession | Enrich a session at capture time | | enrichPatch | Add semantic metadata to a diff | | reportVerification | Push verification results to external systems | | consumeExport | Process the stable export payload |

Built-in adapters: git, shell (enabled by default).

Load a local plugin by path:

{
  "plugins": {
    "enabled": ["git", "./ghostshift-plugin.mjs"]
  }
}

See docs/architecture/plugins.md for the full adapter contract.


Stable Export

ghostshift export emits a versioned JSON payload with:

  • raw sessions
  • derived reports (verification summary, patch summary, semantic summary, provenance summary, replay lineage)
  • plugin catalog and plugin-produced export sections
  • explicit exportVersion and capability metadata

See docs/spec/export-format.md for the exact shape.


PR Summary Flow

# From latest two sessions
ghostshift pr-summary

# Between specific sessions, written to a file
ghostshift pr-summary gs_base gs_head --output ghostshift-pr-summary.md

See examples/github-action/README.md for the GitHub Actions workflow example.


Repository Layout

apps/
  cli/        npm CLI entrypoint
  server/     self-host preview HTTP server
  ui/         static preview web UI
packages/
  core/       task and session orchestration
  plugins/    stable plugin runtime and official adapters
  spec/       open data shapes and schema versioning
  storage/    local storage adapters
docs/
  architecture/
  rfcs/
  spec/
examples/
  local-repo/
  github-action/

License

Product packages are AGPL-3.0-only. The spec and future SDK packages are Apache-2.0. The rationale is in docs/rfcs/0001-monorepo-and-oss.md.


Contributing

See CONTRIBUTING.md and GOVERNANCE.md. New contributors should start with the quickstart and the RFC process.