Skip to content

zehedisodef1-oss/snipstore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SnipStore πŸ“‹

Your personal code snippet manager β€” save, search, run and share from the terminal.

Python License CLI

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.

Features

  • πŸ“ 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/

Installation

git clone https://github.com/zehedisodef1-oss/snipstore.git
cd snipstore
pip install -e .

Quick Start

# 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

Commands

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

Storage

All snippets are stored locally in ~/.snipstore/snippets.json. No cloud, no accounts, no tracking.

Dependencies

  • Rich β€” beautiful terminal output
  • requests β€” for sharing via paste.rs

License

MIT


Made with ❀️ for developers who live in the terminal.

About

πŸ“‹ Code snippet manager for your terminal - save, search, run & share snippets instantly

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages