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

session-wrap-skill

v3.9.0

Published

Universal session wrap-up: automatically persist project context to memory files for seamless resume

Readme

Session Wrap Skill v3.9.0

Agent-native session management for seamless multi-agent coordination.

Automatically persist project context, track decisions, and enable agents to share memory for long-term coherent development.

Works with Claude Code, Cursor, Windsurf, Cline, Aider, and any AI agent.

✨ What's New (v3.9.0)

Phase 9: Dashboard Backend API Server — bridges bash agent tools to the React dashboard via REST API.

  • Express server on :3001 with localhost-only CORS
  • Task CRUD via single-writer model (delegates to agent-tasks.sh)
  • Decision search with keyword, agent, and date range filters
  • Memory stats with async directory walk and 30s cache
  • Agent sync status with active detection (30min threshold)
  • 10 automated tests, all passing

Previous Releases

v3.8.0 (Phase 8): Enterprise features — RBAC, analytics, integrations, caching

v3.7.0 (Phase 7): Interactive dashboard — WebSocket sync, task editing, search, team collaboration

Agent Tools + Automation (7 tools + 3 automation scripts)

7 Agent Coordination Tools:

| Tool | Purpose | Usage | |------|---------|-------| | agent-context | Auto-inject project context on startup | agent-context | | agent-share | Cross-agent memory sharing | agent-share write/read/list | | agent-decision | Decision logging + reasoning chains | agent-decision log/list/search | | agent-checkpoint | Checkpoint & rollback system | agent-checkpoint save/restore | | agent-knowledge | Project knowledge base | agent-knowledge set/get/list | | agent-optimize | Smart memory optimization | agent-optimize stats/archive/prune | | agent-tasks | Task dependency graph | agent-tasks add/done/next/claim |

3 Automation Scripts (Phase 6):

| Script | Purpose | Speed | |--------|---------|-------| | setup.sh | One-command project initialization | 15 min → 2 min | | deploy-railway.sh | Automated Railway backend deployment | Manual → 5 min | | web/ (React dashboard) | Real-time team monitoring | New in v3.6.0 |

Features

  • 🤖 Agent-native — 7 tools designed for multi-agent coordination
  • 🧠 Decision tracking — Remember why decisions were made
  • 🔄 Context injection — Agents load project context automatically
  • 👥 Memory sharing — Agent A's output feeds to Agent B
  • 📋 Task coordination — Avoid conflicts with dependency graph
  • 📚 Knowledge base — Persistent project conventions & architecture
  • ⚙️ Auto-optimize — Keep memory lean for context windows
  • 🔐 Git-backed — Checkpoints with full rollback support
  • 🎯 Web Dashboard — Real-time team monitoring (React, Vercel-deployed)
  • Setup Automation — New user setup: 15 min → 2 min
  • 🚀 One-Click Deployment — Deploy backend to Railway in 5 minutes

📚 Documentation

Start here based on your needs:

| Guide | Purpose | |-------|---------| | README.md (you are here) | Feature overview & quick reference | | QUICKSTART-EXAMPLES.md | 3 real-world copy-paste examples | | AGENT-WORKFLOW.md | 6 workflow patterns + best practices | | INTEGRATIONS.md | Claude Code, Cursor, Windsurf setup | | PRODUCTION-SETUP.md | Deploy backend to Railway/Docker/VPS | | web/README.md | Dashboard setup, deployment, and usage | | DASHBOARD-DEPLOYMENT-GUIDE.md | Local dev, Vercel, Docker, backend integration | | VISUALIZATION-GUIDE.md | Visualize tasks, decisions, memory, timeline | | FAQ-TROUBLESHOOTING.md | Common issues & solutions | | BENCHMARKS.md | Productivity metrics & time savings | | MIGRATION.md | Upgrade from v3.3 to v3.4.0 |

Real-World Workflow Guides

See how session-wrap works in practice across different team structures:

| Scenario | Guide | Team Size | Key Features | |----------|-------|-----------|--------------| | Async Open Source | OPENSOURCE-COLLABORATION.md | 4+ distributed | Self-onboarding, decision logging, task coordination | | Early-Stage Startup | STARTUP-TEAM-WORKFLOW.md | 3-5 people | Daily standups, async code review, shared decisions | | Enterprise Multi-Team | ENTERPRISE-ADOPTION.md | 50+ people | Cross-team coordination, knowledge sharing, incident learning | | Solo Developer | SOLO-DEVELOPER.md | 1 person | Context switching, project management, client billing |

Quick Path to Success

  1. First 5 min: Read QUICKSTART-EXAMPLES.md → Copy Example 1
  2. First session: Follow Example 1, save your first session wrap
  3. Multi-agent: When ready, follow AGENT-WORKFLOW.md Pattern 2
  4. Team setup: See INTEGRATIONS.md for your editor
  5. Real-world: Find your scenario in the workflow guides above

Upgrade from v3.3 → v3.4.0

See MIGRATION.md for step-by-step upgrade guide.

Note: v3.4.0 is fully backward compatible. No breaking changes.


Installation

npm (Recommended)

npm install -g session-wrap-skill

Manual with Setup Script

git clone https://github.com/redredchen01/session-wrap-skill.git
cd session-wrap-skill
bash scripts/setup.sh

This runs a guided setup that:

  • ✅ Creates memory directories
  • ✅ Initializes knowledge base
  • ✅ Verifies all prerequisites
  • ✅ Shows next steps

Time: ~2 minutes

Manual (Advanced)

git clone https://github.com/redredchen01/session-wrap-skill.git
cd session-wrap-skill
chmod +x scripts/*.sh
source .zshrc-wrap

Quick Start

1. Load Aliases

# Add to ~/.zshrc
source ~/.zshrc-wrap

2. Agent Workflow

# At agent startup
agent-context               # Load project context

# During work
agent-decision log "auth" "use JWT" "balance speed & security"
agent-tasks claim my-task
# ... work ...
agent-tasks done my-task

# End of session
wrap "Completed auth system"

3. Multi-Agent Coordination

# Agent A publishes state
agent-share write agent-a-state ~/my-progress.md

# Agent B reads it
agent-share read agent-a-state

# Show next executable tasks
agent-tasks next

Commands

agent-context

Load project context for agent startup.

agent-context              # Show compact context
agent-context full         # Show full context with decisions & knowledge

agent-share

Cross-agent memory sharing.

agent-share write <agent-id> <file>   # Publish agent state
agent-share read <agent-id>           # Read another agent's state
agent-share list                      # List active agents
agent-share clean                     # Remove stale states (>24h)

agent-decision

Log decisions with reasoning chains.

agent-decision log <topic> <decision> <reasoning>
agent-decision list
agent-decision search <keyword>

agent-checkpoint

Create checkpoints and rollback on errors.

agent-checkpoint save [label]         # Create checkpoint
agent-checkpoint list                 # Show all checkpoints
agent-checkpoint restore <id>         # Rollback to checkpoint
agent-checkpoint diff <id>            # Show changes since checkpoint

agent-knowledge

Manage project knowledge base.

agent-knowledge set <topic> <content>
agent-knowledge get <topic>
agent-knowledge list
agent-knowledge context               # For use in agent-context

agent-optimize

Smart memory optimization.

agent-optimize stats                  # Show breakdown
agent-optimize archive                # Keep last 3 sessions
agent-optimize summarize              # Compress old sessions
agent-optimize prune [--dry-run]      # Remove empty files

agent-tasks

Coordinate multi-agent task execution.

agent-tasks add <id> <description> [depends-on...]
agent-tasks done <id>
agent-tasks next                      # Show executable tasks
agent-tasks status                    # Full task graph
agent-tasks claim <id> [agent-id]     # Claim task to avoid conflicts

Agent Hook Integration

Claude Code

Add to ~/.claude/settings.json (PostToolUse hook):

{
  "type": "command",
  "command": "cd ~/YD\\ 2026 && bash scripts/session-wrap.sh",
  "statusMessage": "Saving session with agent tools..."
}

Cursor / Windsurf / Others

Any agent with shell access can use:

# Load context at startup
eval "$(agent-context)"

# Log decisions during work
agent-decision log "feature-x" "implemented via hooks" "better DX"

# Show next task
agent-tasks next

# Save progress at end
wrap "Completed feature X"

Memory Structure

~/.claude/projects/-Users-dex-YD-2026/memory/
├── MEMORY.md                 # Master index
├── session_*.md              # Session wraps
├── decisions/                # Decision logs
│   └── YYYY-MM-DD-topic.md
├── knowledge/                # Project knowledge
│   ├── conventions.md
│   ├── architecture.md
│   ├── known-issues.md
│   └── tech-stack.md
├── checkpoints/              # Git checkpoints
│   ├── manifest.json
│   └── YYYYMMDD-HHMMSS.snapshot
├── agents/                   # Agent states
│   ├── agent-a-state.md
│   └── agent-b-state.md
└── tasks/                    # Task dependency graph
    └── tasks.json

Why This Matters

Before v3.4.0

  • Manual context loading between sessions
  • No way for agents to coordinate
  • Decision history lost
  • Long projects become incoherent

After v3.4.0

  • Auto context injection — Agents start with full project knowledge
  • Decision tracking — Why decisions were made is preserved
  • Memory sharing — Agent A's work feeds to Agent B
  • Task coordination — Multiple agents work on same project without conflicts
  • Long-term projects — Context never lost, decisions never forgotten

Configuration

Set environment variables to customize:

export YD_WORKSPACE="/Users/dex/YD 2026"
export YD_MEMORY="/Users/dex/.claude/projects/-Users-dex-YD-2026/memory"
export YD_OBSIDIAN="$YD_WORKSPACE/obsidian"
export SESSION_WRAP_API_URL="http://localhost:3000"  # Optional: cloud sync

Backend (Optional)

For cloud synchronization and team dashboards, deploy session-wrap-backend:

Quick Deploy to Railway

bash scripts/deploy-railway.sh

This automates:

  • Railway project initialization
  • Environment variable setup
  • Database configuration
  • Deployment instructions

See PRODUCTION-SETUP.md for full deployment guide.

Note: Backend enables cloud sync and web dashboards for distributed teams. Fully optional — CLI tools work perfectly without it.

Web Dashboard

Real-time monitoring dashboard for distributed teams:

cd web
npm install
npm run dev                  # Local dev (http://localhost:5173)
npm run build                # Production build

Deploy to Vercel with one click:

npm i -g vercel
vercel

Features:

  • 📊 Task status visualization (pending/in-progress/completed)
  • 🎯 Decision timeline with reasoning chains
  • 💾 Memory usage metrics and growth trends
  • 🔄 Real-time sync status and active agents

See web/README.md for full setup and configuration.

Files

  • scripts/session-wrap.sh — Core session wrapping
  • scripts/obsidian-sync.sh — Knowledge vault sync
  • scripts/deploy-railway.sh — Railway backend deployment automation
  • scripts/setup.sh — One-command project initialization
  • scripts/agent-*.sh — 7 agent coordination tools
  • web/ — React dashboard (React + Vite + TypeScript)
  • .zshrc-wrap — Aliases and workflow aliases
  • package.json — npm metadata

How It Works

Agent Workflow (v3.4.0)

Session Start
    ├─ agent-context loads project context
    ├─ agent-tasks shows next executable tasks
    └─ agent-knowledge provides conventions

During Work
    ├─ agent-decision logs decisions
    ├─ agent-checkpoint creates savepoints
    └─ agent-share publishes progress

Session End
    ├─ session-wrap.sh saves wrap
    ├─ agent-optimize archives old sessions
    └─ task status updated for next agent

Examples

Example 1: Single Agent with Context

# Start session
source ~/.zshrc-wrap
agent-context              # Load project context

# Work on feature
agent-decision log "caching" "use Redis" "performance vs complexity"

# End session
wrap "Implemented caching layer"

Example 2: Multi-Agent Collaboration

# Agent A: Implements API
agent-tasks add "api-design" "Design REST API"
agent-tasks claim "api-design" "codex"
# ... work ...
agent-decision log "api" "use GraphQL" "better type safety"
agent-tasks done "api-design"
agent-share write codex ~/api-design.md

# Agent B: Implements frontend
agent-share read codex                    # Get API design
agent-tasks add "frontend" "Build UI" "api-design"
agent-tasks claim "frontend" "cursor"
agent-tasks next                          # Shows "api-design" is done, can start
# ... work ...

# Both agents coordinated without stepping on each other

Example 3: Long-Term Project

# Week 1
wrap "Completed auth system"
agent-decision log "auth" "use JWT tokens" "stateless, scales well"

# Week 2 (new session)
agent-context                             # See all past decisions
agent-tasks next                          # See incomplete tasks
agent-knowledge get "architecture"        # Understand design

# No context loss, decisions preserved, work continues seamlessly

Changelog

v3.7.0 (2026-03-27)

Phase 7: Interactive Dashboard & Team Collaboration

Added

  • WebSocket Real-Time Sync (Phase 7A)

    • useWebSocket hook with auto-reconnect (exponential backoff)
    • <100ms message latency vs 5s polling
    • Fallback to polling if WebSocket unavailable
    • Graceful error handling and recovery
  • Task Editing from UI (Phase 7B)

    • CreateTaskModal for task creation
    • Inline task editing (status, description)
    • Delete tasks with confirmation
    • Optimistic UI updates
    • Full CRUD API integration
  • Decision Search & Filtering (Phase 7C)

    • SearchBar with debounced keyword search
    • FilterChips: agent filter, date range
    • Real-time filtering with result count
    • Persistent filter state
    • URL-ready filter params
  • Team Collaboration (Phase 7D)

    • ActivityFeed: real-time event stream
    • CommentsSection: inline comments on tasks
    • MentionInput: @mention autocomplete
    • Comment API endpoints (CRUD)
    • Mention extraction and validation

Improved

  • Dashboard now fully interactive (not just read-only)
  • Real-time updates via WebSocket (replaces polling)
  • Search results <200ms response time
  • Component architecture supports future extensibility
  • Better UX with loading states and error handling

Architecture

  • Event-driven WebSocket with HTTP fallback
  • Modular component design (11 new/refactored)
  • Efficient filtering with useMemo
  • Mention system independent of backend
  • Activity feed extensible for new event types

Total changes: 1,679 lines (Phases 7A-D)

v3.6.0 (2026-03-26)

Phase 6: Setup Automation & Deployment Infrastructure

Added

  • 🚀 scripts/setup.sh — One-command project initialization (15 min → 2 min)
  • 🔧 scripts/deploy-railway.sh — Automated Railway backend deployment
  • 🎯 Web Dashboard (web/) — Real-time team monitoring with React + Vite
    • TaskBoard: Visual task status columns
    • DecisionTimeline: Chronological decision history
    • MemoryStats: Usage trends with sparkline charts
    • SyncStatus: Agent connection monitoring
    • Vercel deployment ready
  • 📖 DASHBOARD-DEPLOYMENT-GUIDE.md — Full deployment documentation
  • 📚 web/README.md — Dashboard setup and usage guide

Improved

  • README updated with v3.6.0 features
  • Setup process now automatable with shell script
  • Backend deployment scripted (eliminates manual steps)

Fixed

  • Path inconsistencies in setup scripts

Known Issues

  • Dashboard uses HTTP polling (WebSocket planned for v3.7)
  • Backend endpoints template (implementation required by user)

Total changes: 1,207 lines (scripts + dashboard)

v3.5.1 (2026-03-25)

  • [Previous releases...]

License

MIT

Author

redredchen01


v3.4.0 — Agent-native session management for seamless multi-agent workflows.

For updates: https://github.com/redredchen01/session-wrap-skill