Skip to content

10.0.0

Latest

Choose a tag to compare

@gregrickaby gregrickaby released this 30 Sep 15:41
· 73 commits to main since this release
10.0.0
5065b53

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(), or useMemo()
  • ๐ŸŽจ 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 /donate are indexable, and the signed-in shell is noindex. 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.md and 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