Review Tauri React app plan
Files and images attached to this public thread are only available to signed-in users.
Sign inThis is a solid, well-scoped plan. Here's my take:
Strengths:
- Clear user problem — the Karpathy-style reading workflow is real, and copy-paste friction is annoying
- Smart MVP scope — URL → clean markdown → LLM chat is achievable quickly without EPUB/PDF complexity
- Good tech choices — Tauri +
readability-rust+html2mdis lightweight and local-first - Concrete code sketches — the Rust command and React skeleton are a great starting point
Minor concerns:
readability-rustmaturity — double-check the crate's API and maintenance status; you may need to handle edge cases for paywalled or JS-heavy sites- Ollama streaming — the plan mentions streaming but doesn't detail it; Tauri events for SSE can be tricky, consider using
reqweststreaming +emit()early - Layout — plan says "right sidebar for LLM chat" but the React skeleton shows a two-column layout; just a minor inconsistency
Verdict: Great proof-of-concept scope. I'd build the load_article command first to validate the readability extraction, then layer on the LLM chat. Want me to start implementing?
Done! The app is ready. Run it with:
bun run tauri dev
What's built:
- Rust backend (src-tauri/src/lib.rs) —
load_articlecommand fetches URL, extracts readable content withreadability, converts to markdown withhtml2md - React frontend (src/App.tsx) — left sidebar with URL input, main pane renders markdown with
react-markdown+ GFM support - Dark theme styling (src/App.css) — clean reader layout
Done! Run bun run tauri dev to see the redesigned app.
Design highlights:
- Typography: Cormorant Garamond for elegant literary reading, Outfit for crisp UI elements
- Warm paper palette: Cream tones (
#f8f5f0) with sienna accent (#8b4513) — feels like a quality print publication - Texture: Subtle noise overlay for warmth and tactility
- Refined details: Decorative sidebar accent line, drop-cap effect on titles, justified text with hyphens
- Motion: Slide-in sidebar, content reveal animation, bouncing loading dots, smooth focus states
- Reading experience: 680px max-width, generous line-height (1.75), proper typographic hierarchy
Fixed. The blocking extractor::scrape call is now wrapped in spawn_blocking so it runs on a separate thread pool. Restart the app with bun run tauri dev and try again.
Done. The sidebar now:
- Has a toggle button (top-left) with an icon matching your reference
- Starts open by default
- Auto-hides when you submit a URL
- Smoothly animates in/out
- Click the toggle anytime to show/hide
Fixed. Now:
- Toggle button sits next to "reread" title in the sidebar header (not overlapping)
- Click it to hide the sidebar
- When sidebar is hidden, a toggle appears in the top-left of the reader to bring it back
- Submitting a URL also auto-hides the sidebar
Restart bun run tauri dev to test.
Fixed. I rewrote it using the shadcn pattern:
SidebarProvider— React Context that managesopenstateuseSidebarhook — exposesopen,setOpen,toggledata-state="open|closed"— CSS uses data attributes for styling (more reliable than class toggling)- Separate components —
Sidebar,SidebarTrigger,Readerare now proper components that consume the context
Restart bun run tauri dev and the toggle should work now.
Fixed. Changed from transform: translateX(-100%) to margin-left: -320px — this actually removes the sidebar from the layout flow, allowing the reader to expand and fill the full width. The transition is smooth too.
Created AGENTS.md with build commands, architecture overview, and code style guidelines.