Work · Case study 02
Alphawhy:Notes persist in browser localStorage; accounts and sync are planned, not built.
SnipDesk
A browser-based code notebook that keeps each snippet together with the reason it matters, so it can be found again later.
- Status
- Alpha
- Stack
- React
- Vite
- Tailwind CSS
- Ace Editor
- Links
- Live site (external site)Source on GitHub (external site)

Problem
Useful snippets get saved in gists, chats and scratch files, and lose the context that made them worth keeping. Months later the code is there but the reason isn't, and neither is an easy way to find it.
Approach
Make the reason a first-class field. Every note stores a title, the reason it matters, language, tags and the code itself, so the context travels with the snippet instead of living in someone's memory.
Optimise for finding, not filing. Search covers both note metadata and the code, with filters for language and collection, and the workspace switches between grid and list views depending on whether you're browsing or scanning.
Keep the alpha local. Notes and collections persist in browser localStorage with no backend or accounts. That keeps it simple and private to one browser, at the cost of sync, which is planned but not built.
Diagram · From saving to finding again
01Save with context
Title, reason, language, tags and code in one note.
note02Organise
Collections and favourites group related snippets.
collections03Find
Search metadata and code; filter by language or collection.
search04Recall
Enrolled snippets come back for review on a schedule.
review05Persist
Everything lives in this browser's localStorage.
localStorage
Build details
Scheduled recall
A snippet can be enrolled in recall, and its scheduled review advanced or reset. The recall scheduling logic is covered by Node unit tests.
Syntax-aware editing
Code is edited in a drawer backed by Ace Editor, keeping the browsing view uncluttered while still giving proper syntax handling when you need it.
Browser checks in CI
Playwright runs browser checks, and a CI workflow runs the unit and browser suites on every pull request and push to main. The README lists the remaining coverage gaps openly.
Evidence
why:Snapshots are dated; follow the source to check them.
Unit and Playwright browser tests run in CI
On pull requests and pushes to main
Limits & next
Current limits
- Data stays in one browser; there are no accounts or cloud sync yet.
- Collections can be created but not yet renamed or deleted from the interface.
What I’d improve
- Close the test gaps the README already lists: clipboard, favourites, recall through the UI, storage-quota failures and mobile layouts.
- Expose rename and delete for collections in the interface (the state helpers exist).
- Accounts and cloud sync, so notes survive a cleared browser and follow you across devices.