A clipboard history manager for your terminal. Track, search, and manage everything you copy.
Project description
yankit
A clipboard history manager for your terminal.
Yank it, track it, find it.
Features
- Watch — Monitor your clipboard in real-time (foreground or daemon mode)
- List — View your clipboard history with timestamps and word counts
- Search — Find anything you've copied with highlighted results
- Stats — See statistics about your clipboard usage
- Copy back — Re-copy any past entry back to your clipboard
- Export — Export your clipboard history as JSON
- Prune — Auto-cleanup old entries to keep your database lean
- Daemon mode — Run in background with
stopandstatuscommands
Installation
With uvx (recommended, no install needed)
uvx yankit watch
With uv
uv tool install yankit
With pip
pip install yankit
Quick Start
1. Start watching your clipboard
# Foreground mode (Ctrl+C to stop)
yankit watch
# Background daemon mode
yankit watch --daemon
2. Check watcher status / stop it
yankit status
yankit stop
3. View your clipboard history
yankit list
yankit list --today
yankit list --limit 50
4. Search through history
yankit search "password"
yankit search "https://"
5. View statistics
yankit stats
6. Re-copy an old entry
yankit copy 42
7. Show full content of an entry
yankit show 42
8. Export history
yankit export
yankit export --output history.json
9. Cleanup
# Delete entries older than 30 days
yankit prune --older-than 30
# Delete all history
yankit clear
How It Works
yankit polls your system clipboard every 0.5 seconds and stores new entries in a local SQLite database. It deduplicates consecutive copies and enforces a configurable maximum entry limit (default: 10,000) to prevent unbounded growth.
yankit watch ──► polls clipboard ──► new content? ──► store in SQLite
every 0.5s │
same as last? ──► skip
Database Location
All data is stored locally at ~/.yankit/history.db. No data is ever sent anywhere.
Database Size Management
- Max entries limit:
yankit watch --max-entries 5000 - Age-based pruning:
yankit prune --older-than 30(days) - Full reset:
yankit clear - Monitor size:
yankit statsshows current DB size
Platform Support
| Platform | Status | Notes |
|---|---|---|
| macOS | ✅ | Uses pbcopy/pbpaste (pre-installed) |
| Linux | ✅ | Requires xclip or xsel |
Linux Prerequisites
# Debian/Ubuntu
sudo apt-get install xclip
# Arch
sudo pacman -S xclip
# Fedora
sudo dnf install xclip
Development
git clone https://github.com/oktaysabak/yankit.git
cd yankit
uv sync
uv run yankit --help
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yankit-0.1.1.tar.gz.
File metadata
- Download URL: yankit-0.1.1.tar.gz
- Upload date:
- Size: 355.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a93647894d7e919140c34dbb73da8bb9ba034823679cb2efe5864d592ffbcd2
|
|
| MD5 |
628f9de02a5237494fdee665d0e06970
|
|
| BLAKE2b-256 |
1d5566fc320383df19e88849bf5eec7a7c5d3e13a9a1e2f393e8e1d70f4a054a
|
File details
Details for the file yankit-0.1.1-py3-none-any.whl.
File metadata
- Download URL: yankit-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33ad4abeb5122a5e28ffa7d4d90abf0e10e8bc1ea4da631af6102037e23e2fb9
|
|
| MD5 |
8e1b49ce8da6de6c6aa6d5330c12152c
|
|
| BLAKE2b-256 |
9dd35b9577fb0de4cd4e867af60ee7be0d136bf28f28685a219eb866a18c9b3b
|