Works
Clave
Clave keeps the things you copy at hand. Save text, links, colors, code, snippets, screenshots and files as clips, with titles and tags, find them again by search, and copy them back with a click. Snippets fill in the date and ask for their fields as they’re copied, sensitive clips are encrypted behind a PIN, and everything syncs through your browser account, with no server of its own. In seven languages, and usable from the keyboard and with screen readers.
Role
Author and maintainer
Timeline
27 December 2023 – 3 December 2026
Reading time
2 minutes
Built with
Source
Site
Notes
Clave began at the end of 2023 as a clipboard manager on SvelteKit, its components built one at a time in Storybook through 2024. It was rebuilt in 2026 on WXT and Svelte 5, for Chrome, Edge and Firefox, on the same sync engine as Swift TODO, and released as 0.1.0.
Sensitive clips
A clip marked sensitive keeps its content out of sight, and once a PIN is set, it is encrypted, on the device and in sync. The hard case is the right-click menu: saving what a password field holds happens in the background, where there is no PIN to ask for, and the clip still must never be written in the clear.
So clips are sealed with a public key, which anything can use, and only the private key opens them. That key is stored encrypted too, with AES-GCM under a key drawn from the PIN with PBKDF2, and kept in memory for 15 minutes once the PIN is entered. A new PIN seals the private key again and leaves the clips as they are. The PIN itself is never stored, only a slow salted hash of it.
Forgetting the PIN means losing the sensitive clips. A reset deletes the ones its device can see and counts itself in the synced settings, so those still on another device, or on their way to sync, are dropped wherever they turn up.
Knowing what a clip holds
Each clip is tagged with what it holds: an email address, a link, a color, a number, a password, a snippet or code. The checks are strict where the list relies on them: a color has to be a valid CSS color, since its row paints a swatch with it. Code is valid JSON, or text with three of eight signs of code, such as braces, a line ending in a semicolon, keywords, an indented line or a query.
Snippets fill themselves in as they’re copied: {date}, {time} and {datetime} become the moment, and each {?Name} field is asked for.
Files stay on the device
Screenshots and files pasted into the popup, up to 25 MB each, are kept in the extension’s own database on the device. They never sync and are left out of backups; the clip’s record only says what each one is. An image copies back as an image, and any other file is downloaded, since a page can’t put a file on the clipboard.
Everywhere the browser allows
Clips are saved from a page’s right-click menu and pasted into a field from it, snippets filled in, and searched from the address bar by typing clave and a space. The popup works from the keyboard and with screen readers, in seven languages, Arabic from right to left.
The logic has full unit test coverage and is mutation-tested with Stryker. End-to-end tests run on the built extension in Chromium, and every component has its own Storybook story.