r/tauri • u/Long_Photo4018 • 15h ago
Made a 4 MB markdown reader with Tauri, with live wallpapers behind the text
I wanted something nicer than VS Code for reading my study notes, so I made a small markdown reader with Tauri 2 + TypeScript (with a lot of help from Claude Code).
A few things that might be interesting here:
- the installer is 4 MB, per-user NSIS, and registers itself for .md files
- the CSP blocks all network requests except images a document links to, so it works offline
- markdown-it + KaTeX + DOMPurify, and Mermaid only loads when a note actually has a diagram
- the wallpapers (starfield, rain, a pixel world) are a canvas behind the webview content, with an fps cap and they pause when minimised
One thing I couldn't solve: I use a custom title bar (decorations: false), and that loses the Windows 11 snap layout menu when you hover the maximise button. If anyone has a fix for that I'd love to hear it.
Windows only for now, MIT licence: