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

second-mind

v2.1.1

Published

Living Obsidian-compatible knowledge brain for Claude projects. Scans codebases, builds decision logs, maintains project context across sessions.

Downloads

499

Readme

Second Mind

A living knowledge vault for agentic IDE projects — built as a portable skill.

Never lose project context again. Scan your codebase, capture decisions, restore instantly.

npm version Built for Claude Code Works in Antigravity Works in Cursor Works in Windsurf Obsidian Compatible Node.js >= 16

Setup Guide  •  Usage Guide


Quick Start

Install

Install Second Mind into your AI assistant(s):

# Interactive installation (auto-detects active environments)
npx second-mind install

# Install for a specific AI assistant (e.g. Claude Code)
npx second-mind install --ai claude

# Install globally to your home directory (~/)
npx second-mind install --global

Initialize your mind

/second-mind init

Answer 3 questions. The agent will:

  • Scan your entire codebase
  • Extract decisions from git history
  • Build a complete vault at ./mind/
  • Generate a newcomer guide

Uninstall the skill

# Interactive uninstall
npx second-mind uninstall

# Uninstall for a specific AI assistant globally
npx second-mind uninstall --ai claude --global

Restore context next session

/second-mind restore

Save your work at end of session

/second-mind update

Core Commands

Once installed, simply type these commands to your agent:

| Command | What it does | |---------|--------------| | /second-mind init | Scans the project, extracts history, and builds your vault from scratch. | | /second-mind wiki | Explicitly generates or updates all technical guides in your code wiki (guides/). | | /second-mind restore | Run this when starting a new chat to get instantly caught up on your progress. | | /second-mind capture | Manually captures a quick decision mid-session. | | /second-mind update | Run this before closing your chat to save your session's progress. | | /second-mind overview | Generate fresh project overview | | /second-mind onboarding | Generates a fresh START-HERE.md 10-minute newcomer guide. |


Vault Structure

mind/
├── START-HERE.md              # Newcomer onboarding (10-min read)
├── story.md                   # How the project evolved (prose)
├── roadmap.md                 # Future goals with reasoning
├── overview.md                # Fresh project overview (regenerated)
│
├── guides/                    # Code Wiki & Guides (Supabase-style)
│   ├── database.md            # Database, schema, and queries
│   ├── auth-security.md       # Authentication and security
│   ├── api-integrations.md    # API contracts and third-party APIs
│   ├── deployment.md          # Deployment and hosting details
│   ├── workflows.md           # Local setup and workflow procedures
│   └── standards.md           # Code documentation standards
│
├── knowledge-base/
│   ├── architecture.md        # System design and layers
│   ├── tech-stack.md          # Technologies + why chosen
│   ├── data-models.md         # Core data structures
│   ├── integrations.md        # External APIs and services
│   └── components/            # One file per major component
│
├── decisions/
│   ├── decision-log.md        # Chronological index
│   └── YYYY-MM-DD-slug.md    # Individual ADR files
│
├── sessions/
│   ├── latest.md              # Most recent session
│   └── YYYY-MM-DD-HHMM.md   # Timestamped archives
│
├── context/
│   ├── current-state.md       # What works, what's broken
│   ├── open-questions.md      # Unresolved issues
│   └── next-steps.md          # Immediate actions
│
└── _meta/
    ├── initialized.json       # Setup timestamp, project name
    └── scan-history.json      # Log of all scans

How It Works

Second Mind runs entirely through your agent's native tools — no external scripts, no background daemons.

| Tool | Used for | |------|----------| | Glob | Finding project files | | Grep | Extracting TODOs, classes, functions, decisions | | Read | Loading README, configs, docs | | Write | Creating and updating vault files |

What gets extracted automatically

Second Mind recognises patterns like:

  • Decisions"we chose X because", "switched to Y"
  • Failures"tried X but", "abandoned", "didn't work"
  • Questions"?", "not sure", "need to figure out"
  • Rationale"because", "allows", "prevents"
  • Future plans"eventually", "roadmap", "later"

Quality rules

  • Never invents information — unknowns are marked as _Gap: ..._
  • Always records rationale alongside decisions
  • Superseded decisions are kept but flagged, never deleted
  • Uses exact identifiers, never paraphrases code names

Compatibility

Second Mind works as a skill in any agentic IDE that supports tool use:

| IDE | Status | |-----|--------| | Claude Code | ✅ First-class support | | Antigravity | ✅ First-class support | | Cursor | ✅ Compatible | | Windsurf | ✅ Compatible | | Aider | ✅ Compatible | | Claude.ai (with code access) | ✅ Compatible |


Requirements

  • Node.js 16+ (for npm install)
  • Git (optional — enables git history scanning)
  • An agentic IDE with file tool access

CLI Reference

The CLI provides commands to manage the skill installation. Run npx second-mind --help for full details.

second-mind install

Installs the Second Mind skill to your project or home directory.

  • Options:
    • -a, --ai <type>: Install only for a specific AI assistant (e.g., claude, cursor, gemini, antigravity, all).
    • -f, --force: Overwrite existing files.
    • -g, --global: Install globally to home directory (~/) instead of current project directory.

second-mind uninstall

Removes the installed skill from your system.

  • Options:
    • -a, --ai <type>: Specific AI assistant to uninstall.
    • -g, --global: Uninstall from home directory (~/).

Documentation

| Doc | Description | |-----|-------------| | Setup Guide | Step-by-step installation for all IDEs | | Usage Guide | All 6 modes with examples | | Skill Reference | Full skill definition | | Contributing | How to contribute | | Changelog | What's changed |


Contributing

Contributions are welcome! See CONTRIBUTING.md for how to report bugs, suggest features, and submit pull requests.


⬆ Back to top

Visitor Count