Skip to content

About

Marketplace-style performance demo for React on Rails Pro, React 19, and React Server Components.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

198 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React on Rails Marketplace Demo

Compare server-side rendering (SSR), client-side loading, and React Server Components (RSC) streaming in a Rails app. The demo includes product search, product and restaurant details, blog posts, and cached variants.

Explore the demo

Open the same page in each rendering mode to compare its loading behavior and browser JavaScript:

Page SSR Client RSC
Blog post SSR Client RSC
Product detail SSR Client RSC
Restaurant detail SSR Client RSC
Product search SSR Client RSC

Browse products opens the RSC product search. Each family also has SSR and RSC cached variants; start with the cached SSR blog and cached RSC blog. See the cached-variant measurements for cache state and test conditions.

Other examples:

This is a curated tour. The route contract lists the full GET-route inventory, including experiments with feature flags or other prerequisites. Those experiments are not part of the default tour.

Run locally

Prerequisites: Ruby 3.4.9, PostgreSQL, Node 22.12+ (or a supported Node 20 release listed in package.json), and pnpm 9.15.2. Ruby and JavaScript dependencies are pinned in Gemfile and package.json.

bundle install
pnpm install --frozen-lockfile
bin/rails db:prepare
bin/dev

Open localhost:3000, then use the same paths as the live-demo links above. bin/dev runs Rails, asset watchers, and the Node renderer together. Rails uses port 3000 and the renderer defaults to port 3800.

The app uses Rails 8.1, React 19, React on Rails Pro, TypeScript, and Tailwind CSS. Production builds use Rspack through Shakapacker; Webpack configurations remain available for comparison. See the bundler migration notes for details.

Seed data and a quick check

db:prepare uses the default SEED_MODE=small on a new database. This still creates substantial review data and may take several minutes. SEED_MODE=full is an opt-in large restaurant dataset, not a prerequisite for browsing the demo. The seed entry point selects the restaurant seed mode and also seeds products, product reviews, and the search catalog.

Dataset sizes depend on seed mode and the deployed database. Product counts and review counts describe different things; the old planning targets do not describe every deployment.

With the app running, check health and the actual product-search API:

curl --fail http://localhost:3000/up
curl --fail http://localhost:3000/api/product_search/results

The search response includes total_count, which reports the current matching product count.

A short walkthrough

  1. Open the blog's SSR, client, and RSC links from the table. Compare when content appears and inspect JavaScript requests in browser developer tools.
  2. Repeat with product search; use the same filters and pagination to compare equivalent results.
  3. Open the performance evidence page to inspect the linked reports and their measurement conditions.

Performance depends on the page, device, network, cache state, dataset, and build. This README makes no universal speedup claim. PERFORMANCE_EVIDENCE.md records dated measurements and their limitations; BENCHMARKING.md explains how to reproduce measurements and compare changes.

Contribute and read further

The original implementation plan and task specifications are historical design material. Their routes, commands, performance targets, and completion checklists are not current operating instructions.

The documentation route guard checks this README and the contributor guide against the canonical route contract. It also checks local file links and executable entry points. Update those documents when changing routes; see the guard.

About

Marketplace-style performance demo for React on Rails Pro, React 19, and React Server Components.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages