2026-11-16 / Engineering / 1 min read

Notes that stay here.

Choosing browser storage for a small creative tool.

EngineeringStudio notes

Choose the smallest store

A preference such as a selected theme fits in localStorage. Save compact values and keep a default ready when the browser blocks access.

Make changes deliberate

An inspector should tell the visitor which record it changes. The studio uses one named IndexedDB database for its note specimen. Other sites’ data is outside its scope.

const preference = { density: 1, accent: '#ff6749' };
localStorage.setItem('fi:theme', JSON.stringify(preference));

Plan for a fresh start

Private browsing and clearing site data can erase local work. Give visitors an export option for anything they expect to keep, such as a generated print or a theme.

Keyboard shortcuts

Ctrl / ⌘ K Open search

↑ ↓ Enter Navigate search results

? Show shortcuts

Esc Close a dialog