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

@stevemoraco/datatools

v1.0.0

Published

Persist Claude Code sessions, auth, and history across Replit container restarts

Readme

replit-claude-persist

Persist Claude Code sessions, authentication, and history across Replit container restarts.

When Replit containers restart, everything outside /home/runner/workspace/ is wiped - including your Claude conversations, auth tokens, and installed binaries. This tool fixes that.

Features

  • Session Persistence - Conversations survive container restarts
  • Interactive Session Picker - Choose which session to resume on shell start
  • Multi-Terminal Support - Each terminal tracks its own session
  • Auth Persistence - Keep your Claude authentication working
  • Binary Caching - Claude binary persists (faster startup)
  • Bash History - Command history survives restarts too

Installation

Option 1: npx (easiest)

npx replit-claude-persist

Option 2: curl

curl -fsSL https://raw.githubusercontent.com/stevemoraco/DATAtools/main/install.sh | bash

Option 3: Manual

npm install -g replit-claude-persist
replit-claude-persist

What You'll See

After installation, opening a new shell shows:

✅ Claude authentication: valid (23h remaining)
✅ Claude Code ready: 2.0.71 (Claude Code)

╭─────────────────────────────────────────────────────────╮
│  Claude Session Manager                                 │
╰─────────────────────────────────────────────────────────╯
  (2 Claude instance(s) running in other terminals)

  [c] Continue last session for this terminal
      └─ b3dcb95c...
  [r] Resume a specific session (pick from list)
  [n] Start new session
  [s] Skip - just give me a shell

  Choice [c/r/n/s]: _

Press r to see detailed session info:

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  [1]
  ID:       b3dcb95c-cebb-4082-b671-988c8d36578e
  Messages: 237  |  Size: 912.1KB
  Active:   2m ago
  Started:  2026-01-18 18:22:12 UTC
  First:    "Can you help me fix this bug..."
  Latest:   "Thanks, that worked!"

How It Works

The tool creates symlinks from ephemeral locations to persistent workspace storage:

~/.claude      →  /workspace/.claude-persistent/
~/.codex       →  /workspace/.codex-persistent/
~/.local/bin/  →  /workspace/.local/share/claude/versions/

On every shell start, .config/bashrc ensures symlinks exist and shows the session picker.

Commands

| Command | Description | |---------|-------------| | cr | Continue last session | | claude-menu | Show session picker again | | claude-new | Start fresh session | | claude-pick | Claude's built-in picker |

Configuration

Disable the menu

export CLAUDE_NO_PROMPT=true

Add to .config/bashrc to make permanent.

Fix auth permanently

claude setup-token

Creates a long-lived token that doesn't expire.

Files Created

workspace/
├── .claude-persistent/     # Conversations, credentials
├── .codex-persistent/      # Codex CLI data
├── .claude-sessions/       # Per-terminal session tracking
├── .local/share/claude/    # Claude binary versions
├── .persistent-home/       # Bash history
├── .config/bashrc          # Shell startup config
└── scripts/
    ├── setup-claude-code.sh
    └── claude-session-manager.sh

Troubleshooting

Menu not appearing

source /home/runner/workspace/.config/bashrc

Auth expired

claude login
# Or for permanent fix:
claude setup-token

Symlinks broken

source /home/runner/workspace/scripts/setup-claude-code.sh

License

MIT