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

pnkd-llmcache

v2.0.1

Published

Cache LLM responses. Save tokens, save money. PRO features: cost tracking, semantic search, compression.

Readme

llmcache

Cache LLM responses. Save tokens, save money.

npm version

Installation

npm install -g pnkd-llmcache

Quick Start

# Initialize cache
llmcache init

# Cache a response
llmcache set "What is AI?" "AI is artificial intelligence..."

# Get cached response
llmcache get "What is AI?"

# View statistics
llmcache stats

Commands

FREE Commands

| Command | Description | |---------|-------------| | init | Initialize a new cache | | set <prompt> <response> | Cache a prompt/response pair | | get <prompt> | Get cached response | | list | List cached entries | | stats | Show cache statistics | | clear | Clear cache entries | | search <query> | Search cached prompts | | export [file] | Export cache to JSON | | import <file> | Import cache from JSON |

PRO Commands

| Command | Description | |---------|-------------| | cost | Show cost savings report | | similar <prompt> | Find similar cached prompts | | sync <action> | Sync cache between machines | | serve | Start HTTP server |

Options

Global Options

  • -g, --global - Use global cache (~/.llmcache/cache)
  • -p, --path <path> - Custom cache path

Set Options

  • -m, --model <name> - Model name (default: "default")
  • -t, --ttl <duration> - Time to live (PRO): 7d, 24h, 30m
  • --tags <tags> - Comma-separated tags (PRO)

Get Options

  • -m, --model <name> - Model name (default: "default")
  • -r, --raw - Output only the response
  • -o, --output <file> - Write response to file

Using Files

Use @ prefix to read from files:

llmcache set @prompt.txt @response.txt
llmcache get @prompt.txt

FREE vs PRO

| Feature | FREE | PRO | |---------|------|-----| | Cache entries | 50 max | Unlimited | | Response size | 10KB | 10MB | | Storage backend | JSON | JSON, SQLite, Redis | | Cost tracking | - | Yes | | Semantic search | - | Yes | | Compression | - | Yes | | HTTP server | - | Yes | | Team sync | - | Yes | | TTL expiration | - | Yes |

PRO License

$18.99 one-time payment

Purchase at: https://pnkd.dev/llmcache

# Activate license
llmcache license activate LMC-XXXX-XXXX-XXXX-XXXX

# Check status
llmcache license status

Programmatic API

const llmcache = require('pnkd-llmcache');

// Initialize
llmcache.init();

// Cache response
llmcache.set('What is AI?', 'AI is...', 'gpt-5-turbo');

// Get cached response
const result = llmcache.get('What is AI?', 'gpt-5-turbo');
if (result) {
  console.log(result.response);
}

// Get stats
const stats = llmcache.stats();
console.log(`Entries: ${stats.entries}`);

HTTP Server (PRO)

llmcache serve --port 3377

Endpoints

  • GET /health - Health check
  • GET /cache?prompt=...&model=... - Get cached response
  • POST /cache - Set cache entry (JSON body)
  • GET /cache/list - List entries
  • GET /cache/search?q=... - Search entries
  • GET /stats - Get statistics

More PRO Tools

Support

  • Issues: https://github.com/pnkd-dev/llmcache/issues
  • Website: https://pnkd.dev/llmcache

License

MIT - pnkd.dev