Skip to content
Open source · local first

Your personal code library, on your machine.

Save the code worth reusing, find it without breaking flow, and keep every snippet in a SQLite file you control. No account or subscription required.

npm install --global https://github.com/tanRdev/codecache/releases/latest/download/codecache-cli.tgz
  • Self-hosted
  • SQLite + local files
  • Browser, CLI, and API
localhost:3000

Local library

Your snippets

New snippet
Search code, notes, or tags/

useLocalStorage

export function useLocalStorage<T>(key: string) {

TypeScript
reactbrowser

Retry with backoff

Reusable implementation with notes

TypeScript
asyncnetwork

Docker healthcheck

Reusable implementation with notes

Shell
dockerops

Built for recall

A small tool that earns its place.

Cache keeps the useful parts of your past work close without turning them into another hosted service to maintain.

Find it while the thought is fresh

Search titles, code, notes, languages, and tags from the terminal or the browser.

Keep the useful context

Save notes and attach reference files so a snippet still makes sense months later.

Own the whole library

One SQLite file and a local attachments folder. Easy to inspect, move, and back up.

One library, two surfaces

Fast in the terminal. Clear in the browser.

Capture without leaving your editor, then browse and edit when you want more room. Both use the same local data.

cache — local

$cache add ./retry.ts --tag typescript --tag network

✓ Saved “Retry with backoff”

$cache search backoff

Retry with backoff[typescript · network]

Keep it local. Make it useful.

Install Cache, add your first snippet, and keep the database wherever you already back up important work.