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

promptlog

v1.0.2

Published

Version control for your AI prompts

Readme

PromptLog

Version control for your AI prompts. Like git, but for the prompts you use with AI coding assistants.

PromptLog Demo

Installation

npm install -g promptlog

Quick Start

# Copy a prompt to your clipboard, then save it
promptlog save code-review --note "initial version"

# List all saved prompts
promptlog list

# View prompt history
promptlog history code-review

# Show a specific version
promptlog show code-review@1

# Compare versions
promptlog diff code-review

# Copy a prompt back to clipboard
promptlog show code-review --copy

Commands

promptlog save <name>

Save clipboard contents as a new prompt version.

promptlog save code-review                    # Save with confirmation
promptlog save code-review --note "v2 notes"  # Add a note
promptlog save code-review --yes              # Skip confirmation

Flags:

  • -n, --note <note> - Add a note describing this version
  • -y, --yes - Skip confirmation prompt

promptlog list

List all saved prompts.

promptlog list
NAME              VERSIONS    LAST UPDATED
code-review       3           2 hours ago
sql-generator     7           Dec 4
commit-msg        2           Nov 28, 2024

promptlog history <name>

Show version history for a prompt.

promptlog history code-review
v3  2 hours ago     "added naming convention rules"
v2  3 days ago      "stricter about error handling"
v1  Dec 4           (no note)

promptlog show <name>

Display a prompt. Use @N for a specific version.

promptlog show code-review       # Latest version
promptlog show code-review@2     # Specific version
promptlog show code-review -c    # Copy to clipboard

promptlog diff <name> [v1] [v2]

Show diff between versions.

promptlog diff code-review        # Latest vs previous
promptlog diff code-review 2      # v2 vs latest
promptlog diff code-review 1 3    # v1 vs v3

promptlog delete <name>

Delete a prompt and all its versions.

promptlog delete code-review       # With confirmation
promptlog delete code-review --yes # Skip confirmation

A backup is automatically created before deletion at ~/.promptlog/.backup/.

promptlog export <name>

Export prompt to stdout.

promptlog export code-review          # Plain text
promptlog export code-review@2        # Specific version
promptlog export code-review --json   # JSON format

promptlog rename <old> <new>

Rename a prompt.

promptlog rename code-review strict-reviewer

Storage

Prompts are stored at ~/.promptlog/prompts/ as JSON files:

~/.promptlog/
├── config.json         # Settings (optional)
├── prompts/
│   ├── code-review.json
│   └── sql-generator.json
└── .backup/            # Backups before deletion

Configuration

Edit ~/.promptlog/config.json (created automatically):

{
  "preview_length": 200,
  "auto_confirm": false,
  "backup_enabled": true
}

Security

  • Sensitive content detection: Warns if clipboard contains API keys, tokens, or private keys
  • Local only: No network requests, all data stays on your machine
  • Restrictive permissions: Files created with 0600 (owner read/write only)

Name Rules

Prompt names must:

  • Start with a lowercase letter
  • Contain only a-z, 0-9, -
  • Be 1-50 characters

License

MIT