Handling paste events in the browser is deceptively complex. Screenshots paste as image/png blobs. Word documents include both HTML and plain text. File explorers inject DataTransferItem lists. Every app — Notion clones, WYSIWYG editors, comment boxes — ends up writing its own clipboardData parsing from scratch.
paste-rich normalizes paste events into predictable types — image, file, HTML, or text — in 3 lines. Zero dependencies. One callback, one predictable shape: { type, data, files }.
Every power-user app — GitHub, Figma, Linear, Notion — has a keyboard shortcut layer that reveals itself when you press ?. Building one from scratch means wiring up event listeners, handling modifier keys, managing sequences like g then h, grouping shortcuts by category, and building a UI on top of all that.
So register hotkeys, display a beautiful overlay with ?, handle sequences, groups, and modifiers — in 5 lines.