bholmesdev/simple-rsc
bholmesdev/simple-rsc has 753 GitHub stars and 66 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-09 04:17 UTC. Last push 2025-10-24.
A simple React Server Components implementation that you can build yourself 🙌
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalSimple RSC ⚛️
A simple React Server Components implementation that you can build yourself.
Watch the "build from scratch" code-along video to learn how all of the pieces fit together. Or... just read the in-line documentation in this codebase :)
Goals
- 🌊 Show how React server components are streamed to the browser with a simple Node server.
- ⚙️ Demo a build process to bundle server components and handle client components with the
"use client"directive.
Getting started
Install dependencies using npm and start the Node development server:
npm i
npm run dev
This should trigger a build and start your server at http://localhost:3000.
Developer note on the dev script
You'll notice the dev script maps to the following command in the package.json:
node --conditions react-server server.js
The --conditions flag is part of the Node.js conditional exports system. This allows packages to export different versions of a module depending on your environment.
When passed react-server, react-server-dom-esm will expose a server-only module that omits React's client-side or browser-specific APIs, ensuring compatibility with the server-rendered environment.
Project structure
This project is broken up into the app/ and server/ directories. The most important entrypoints are listed below:
# Your full-stack application
app/
page.jsx # server entrypoint.
_client.jsx # client script that requests and renders your `page.jsx`.
# Your backend that builds and renders the `app/`
server.js
What is not included?
- File-based routing conventions. This repo includes a single index route, with support for processing query params. If you need multiple routes, you can try NextJS' new
app/directory. - Advance bundling for CSS-in-JS. A Tailwind script is included for playing with styles.
- Advice on production deploys. This is a learning tool to show how React Server Components are used, not the bedrock for your next side project. See React's updated "Start a New React Project" guide for advice on building production-ready apps.
Explore related projects
ytdl-org/youtube-dl
Command-line program to download videos from YouTube.com and other video sites
141,500 starsexcalidraw/excalidraw
Virtual whiteboard for sketching hand-drawn like diagrams
135,396 starsgodotengine/godot
Godot Engine – Multi-platform 2D and 3D game engine
119,840 starsmrdoob/three.js
JavaScript 3D Library.
117,905 stars