Repository navigation
v10.0.0 โ The One Where It Started Over ๐ฑ
This is a ground-up rewrite of Viewer for Reddit. Version 10 is server-first: the browser never fetches Reddit, reads happen in Server Components, and writes happen in Server Actions. Reddit disabled public, unauthenticated REST access in June 2026, so every request now goes through oauth.reddit.com with your own sign-in. Version 9 (Mantine) is preserved in the 9.1.0 tag.
โจ Features & Enhancements
- ๐ Sign in with Reddit: OAuth sign-in with sealed session cookies (
iron-session) - ๐ Feeds: Home, subreddit, and custom feeds with sorting, time ranges, and URL-driven state, so every view is a link
- โพ๏ธ Infinite Scroll: Feeds append pages as you scroll, and the Previous and Next links stay in the HTML for no-JavaScript use
- ๐ Optimistic Voting: Vote on posts and comments with instant feedback
- ๐ฌ Comments: Threaded comments, expandable threads, a composer, replies, and delete with confirmation
- ๐ก Live Comments: A thread sorted by New checks for new comments every 15 seconds, replies included, and shows them above the thread. Edits to the post, such as a live score, appear too. Checks slow down on a quiet thread, stop in a hidden tab, and can be paused. If you have scrolled down, new comments wait behind a button instead of moving the page.
- ๐งญ Suggested Sort: Threads open on the sort their moderators suggest, so game threads start on New
- ๐ฅ Active Threads: A list of the busiest game, match, and daily threads of the last 12 hours, from the sidebar
- ๐ฐ๏ธ Reddit Live Threads: Open a
/live/thread with its updates, which are added as they are posted. Links to live threads from posts and comments open in the app. - ๐พ Saved, Subscriptions & Follow: Manage saved items, subscribe to communities, and follow users
- ๐ Search & Profiles: Search Reddit and browse user profiles
- ๐๏ธ Multireddits: Create and manage custom feeds
- ๐ฌ Media: Autoplay loops, HLS video, gallery carousel with a lightbox, inline images and GIFs in text and comments, embed facades, and an oEmbed fallback
- โ๏ธ Settings: Gear menu in the header with a dark mode switch and an NSFW blur toggle (off by default), plus a link to your Reddit app settings
- ๐งฑ Post Cards: Layout modeled on reddit.com
- ๐ New Artwork: Current Snoo artwork for the logo and icons, with the logo inside the search bar
- ๐ฌ Landing Page: A split hero with a drawn preview of the feed, feature cards (now including live comments and active threads), how-it-works steps, an FAQ that links to the services and documentation it names, and a closing call to action. It fits phones, tablets, and desktops.
- ๐ About, Donate, and 404 Pages: These share the landing page's header, footer, and cards. About is written in first person and says what the site records, with links to Datadog and its privacy policy.
- ๐ช 404 for Everyone: A signed-out visitor to an address the site doesn't have now sees the 404 page with a real 404 status, instead of a redirect to sign-in. Signed-in routes still send signed-out readers to sign in.
- ๐ฉน Fixes: Audio from an embed stops when you leave the page, and the blur toggle now applies to posts loaded by infinite scroll. The community header no longer squeezes its name on phones.
๐ Performance Optimizations
- ๐ฅ๏ธ Server-First: No client-side data fetching, and client components are small islands for optimistic UI and media playback
- โก Cache Components & Partial Prerendering: Static shell with streamed content
- โ๏ธ React Compiler: No manual
memo(),useCallback(), oruseMemo() - ๐จ CSS Modules with Cascade Layers: Design tokens and no runtime styling library
- ๐งฎ Shared Reads: New comments in a public thread are read once every 10 seconds for everyone watching it, to stay inside Reddit's shared request limit. Private and quarantined threads are never shared.
๐ Security & Authentication
- ๐ก๏ธ One Reddit Client: A single
redditFetch()adds auth, the User-Agent, and rate-limit tracking, and throws typed errors - ๐งผ HTML Sanitization: Reddit HTML reaches the page only through
sanitize-html, and every media and link URL is validated - ๐ Session-Derived Tokens: Reads and writes derive the token from the session, and every name and id from the URL or a form is validated before it reaches an API path
- ๐ง Security Headers & Error Pages: Added security headers, forbidden, not-found, and section error boundaries
๐๏ธ Infrastructure & Deployment
- ๐ Datadog: Server logs, errors, and browser sessions are sent to Datadog. Session replay is off.
- ๐งญ SEO: Only
/,/about, and/donateare indexable, and the signed-in shell isnoindex. Each public page has its own canonical URL plus Open Graph and Twitter card text, the landing page has JSON-LD, the sitemap lists last-modified dates, and the web app manifest has 192px and 512px icons. - โ๏ธ Signed History: Every commit and tag is signed and shows as verified on GitHub.
- ๐ค CI: Type checks, lint, unit tests, and Playwright against a mock Reddit run on every push and pull request
๐งช Testing & Developer Experience
- โ 90% Coverage Enforced: Vitest 5, Testing Library, and happy-dom
- ๐ญ End-to-End Suite: Playwright runs against a mock Reddit server, so no credentials are needed
- ๐งฉ Schemas from Fixtures: Zod 4 schemas generated from captured Reddit responses, with tolerant listings and view models
- ๐ Agent Docs:
AGENTS.mdand project rules for AI agents, with permissions and a definition of done
๐ฆ Dependency Updates
- โฌ๏ธ Next.js canary (16.4) with React 19.3, TypeScript strict mode, and Zod 4
- ๐๏ธ Mantine and the v9 component tree are gone, with no ported code
Full Changelog: 9.1.0...10.0.0