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

@vibecook/spaghetti

v0.5.12

Published

**Inspect, search, and navigate Claude Code data from the terminal.**

Downloads

675

Readme

@vibecook/spaghetti

Inspect, search, and navigate Claude Code data from the terminal.

Part of Spaghetti. The CLI ships both a full-screen Ink TUI and one-shot commands. It indexes ~/.claude into local SQLite via @vibecook/spaghetti-sdk.

npm node

╭ Spaghetti v0.5.0 ──────────────────────────────────────────────────────╮
│                                                                        │
│  ▄▀▀ █▀█ ▄▀▄ █▀▀ █ █ █▀▀ ▀█▀ ▀█▀ █      Projects           79         │
│  ▀▄▄ █▀▀ █▀█ █ █ █▀█ █▀   █   █  █      Sessions        1,247         │
│  ▄▄▀ █   █ █ ▀▀▀ ▀ ▀ ▀▀▀  ▀   ▀  ▀      Messages       86,412         │
│                                            Tokens          66.3M      │
│  untangle your claude code history         ──────────────────────      │
│                                            /search  /stats  /help      │
╰────────────────────────────────────────────────────────────────────────╯

Install

npm install -g @vibecook/spaghetti
spag

Or run without installing:

npx @vibecook/spaghetti

Binaries: spaghetti and the shorter spag.

Modes

  • Bare spag in a TTY launches the Ink TUI.
  • spag --json or piped spag prints a JSON summary.
  • Subcommands (projects, messages, search, …) run as one-off terminal commands.

TUI

Home
 ├─ Projects
 │   ├─ Sessions
 │   │   ├─ Messages
 │   │   ├─ Todos
 │   │   ├─ Plan
 │   │   └─ Subagents
 │   └─ Memory
 ├─ Hooks Monitor
 ├─ Stats
 ├─ Help
 ├─ Chat
 └─ Doctor

The TUI initializes the core service lazily and shows a boot screen with progress while the parser/indexer runs.

Commands

| Command | Alias | Purpose | |---|---|---| | projects | p | List indexed projects | | sessions [project] | s | List sessions for a project | | messages [project] [session] | m | Read session messages | | search <query> | | Full-text search | | stats | st | Aggregate usage and store stats | | memory [project] | mem | Show project MEMORY.md | | todos [project] [session] | t | Show session todos | | subagents [project] [session] [agent] | sub | Inspect subagent transcripts | | plan [project] [session] | pl | Show a session plan | | export [project] | x | Export project/session data (JSON or Markdown) | | hooks | h | View captured hook events | | chat | c | Chat with active Claude Code sessions | | plugin <action> [plugin] | | Install/uninstall/check Spaghetti plugins | | doctor | | Health-check data paths and plugin state | | update | | Check for and install updates | | uninstall | | Show uninstall instructions |

Flexible resolution

Project and session args accept:

  • exact names
  • fuzzy prefixes
  • numeric indexes
  • . for current working directory
  • latest / last for the newest session
  • partial UUIDs for session selection

Examples

spag projects
spag sessions .
spag messages . latest
spag search "refactor parser"
spag export . --format markdown --output session.md
spag hooks --follow
spag chat --follow
spag doctor

Requirements

  • Node.js >=18
  • A local Claude Code data directory at ~/.claude

Library usage

If you want to build on top of the same data pipeline, use @vibecook/spaghetti-sdk directly.

License

MIT — James Yong