Karthik.P
Back to projects
TypeScriptBunInkSQLite

clipsnip

Your local command library. Save, search, and run the shell commands you keep forgetting, with templates and tags, all from an interactive CLI picker.

clipsnip · 12 snippets/ search
deploy to prodgit push prod main
tail nginx logstail -f /var/log/nginx
reset local dbdropdb app && createdb app

Installation

Install it globally, or run it from source.

global
$ bun install -g clipsnip
from source
$ git clone https://github.com/grimmy-dev/clipsnip
$ cd clipsnip
$ bun install

Requires Bun v1.0+.

Commands

cs
Home screen with snippet count
cs run
Open the interactive picker
cs add "desc" -- <cmd>
Save a new snippet
cs list
Show all snippets
cs search <query>
Find snippets by description

What it does

Local-first

Everything lives in a local SQLite database. No cloud, no accounts.

Interactive picker

A persistent session with fuzzy search and a command palette.

Templates

Named {{variable}} placeholders filled at runtime with shell-escaping.

Auto-tagging

The first word of a command becomes its tag, or override it with --tag.

Import / export

JSON-based backup and restore, so your library moves with you.

Injection-safe

POSIX single-quote escaping keeps saved commands from running wild.