Your personal code snippet manager β save, search, run and share from the terminal.
Tired of digging through old projects to find that one function you wrote months ago? SnipStore is a lightweight CLI tool that lets you save, organize, search, run, and share code snippets β all from your terminal.
- π Save snippets β interactively or via pipe
- π Search β find snippets by name, content, or tags
βΆοΈ Run snippets β execute Python, Bash, JavaScript, and more directly- π Clipboard support β copy any snippet with one command
- π·οΈ Tag system β organize snippets with tags
- π€ Export/Import β backup and restore as JSON
- π Share β upload to paste.rs and get a link
- βοΈ Edit β open in your
$EDITOR - π¨ Beautiful output β powered by Rich
- πΎ Local storage β everything stored in
~/.snipstore/
git clone https://github.com/zehedisodef1-oss/snipstore.git
cd snipstore
pip install -e .# Add a snippet interactively
snip add hello_world
# Add from a pipe
echo 'print("Hello, World!")' | snip add hello
# Add with tags and language
snip add fetch_data -t api http python -l python
# List all snippets
snip list
# Filter by tag
snip list -t api
# Get and copy to clipboard
snip get hello
# Search snippets
snip search "database"
# Run a snippet
snip run hello
# Edit in your editor
snip edit hello
# Share via paste.rs
snip share hello
# Export all snippets
snip export -o backup.json
# Import from file
snip import backup.json
# Delete a snippet
snip delete hello| Command | Description |
|---|---|
snip add <name> |
Add a new snippet (interactive or pipe) |
snip get <name> |
View a snippet and copy to clipboard |
snip list |
List all snippets |
snip search <keyword> |
Search snippets by keyword |
snip run <name> |
Execute a saved snippet |
snip export |
Export all snippets to JSON |
snip import <file> |
Import snippets from JSON |
snip share <name> |
Share via paste.rs |
snip edit <name> |
Edit in $EDITOR |
snip delete <name> |
Delete a snippet |
All snippets are stored locally in ~/.snipstore/snippets.json. No cloud, no accounts, no tracking.
Made with β€οΈ for developers who live in the terminal.