I'll build "Drift," a local-first personal reading queue. Let me start by exploring the project structure.
I have everything I need. Let me build the app with a clean architecture. First, the title and CSS setup.
Now the types and seed data:
Now the store hook with localStorage persistence:
Now the components. Let me create the icons, sidebar, article card, reading view, add form, and command palette.
Now the command palette:
Now the main App that ties it together:
Let me fix a small class typo (bg-sage-100 bg-cream-200 and h-4.5) and then build.
The build succeeded. Let me verify there are no leftover unused imports that could cause issues — checking the ReadingView which imports Article. Everything compiled cleanly with 40 modules transformed and no errors.
I've built Drift, a complete local-first personal reading queue. Here's what's included:
Structure
src/types.ts — the Article and Status models
src/data/seed.ts — 9 realistic, fully-written articles (no lorem ipsum) across all statuses, each with real paragraphs of prose
src/hooks/useArticles.ts — state + localStorage persistence, with add/update/status/remove/favorite actions and derived tag/count data
src/components/ — Sidebar, ArticleCard, ReadingView, AddArticleModal, CommandPalette, and a hand-drawn icons set
Features delivered
- Sidebar with Inbox, Reading, Finished, Archive — each showing live counts, plus a tag filter list
- Searchable list filtering by title, source, excerpt, author, and tags
- Article cards with title, source, author, reading time, tags, and an animated progress bar for in-progress pieces
- Reading view that opens as an in-page overlay (no navigation), tracks scroll progress into localStorage, and auto-promotes Inbox → Reading when you start
- Command palette on Ctrl/Cmd+K with arrow-key navigation, grouped nav/actions/articles, and Enter-to-run
- Add-article form with URL-derived source fallback and validation
- Working actions everywhere: archive, restore, mark-finished, favorite, tag-filter, clear filters
- Responsive with a mobile drawer sidebar and top bar
Design
- Cream / charcoal / muted-green palette defined as Tailwind theme tokens
- Editorial typography (Fraunces serif headings, Newsreader for reading, Inter for UI), including a drop cap in the reader
- Calm, restrained animations (fade/slide/pop) with
prefers-reduced-motion support
- No gradients, glow, glassmorphism, or heavy dividers — just subtle borders and generous spacing
Everything persists across reloads via localStorage, and the project builds cleanly.
Files built: index.html, src/index.css, src/types.ts, src/data/seed.ts, src/hooks/useArticles.ts, src/components/icons.tsx, src/components/Sidebar.tsx, src/components/ArticleCard.tsx, src/components/ReadingView.tsx, src/components/AddArticleModal.tsx, src/components/CommandPalette.tsx, src/App.tsx