MCPcopy
hub / github.com/redfin/react-server

github.com/redfin/react-server @v0.8.1 sqlite

repository ↗ · DeepWiki ↗ · release v0.8.1 ↗
1,121 symbols 2,099 edges 332 files 54 documented · 5%
README

Build Status NPM version NPM downloads per month Chat on Slack NPM license Powered by Redfin

React framework with server render for blazing fast page load and seamless transitions between pages in the browser.


Just getting started with react-server?

The easiest way to get started is with our yeoman generator:

# install yeoman
npm install -g yo

# install the react-server generator
npm install -g generator-react-server

# make a new react-server project in the CURRENT directory
yo react-server

# run the new app
npm run start
# go to http://localhost:3000

That hooks you up with react-server-cli, which will take care of the server part and get you up and running right away.

Why react-server?

One of the great things about React is its support for server-side rendering, which can make sites show up faster for users and play better with search engine bots.

However, when you actually try to use React for server-side rendering, you quickly run into a bunch of practical problems, such as:

  • How should I load data on the server for my components?
  • How do I ensure that the client and the server load the same data and generate the same HTML markup?
  • How do I write code that can be both generated server-side and be part of a single-page application (SPA)?
  • How should I optimize the delivery of my JavaScript and CSS?
  • How do I find out about and follow performance best practices?
  • How do I ensure that my site is streamed to the browser as quickly as humanly possible?
  • How can I make my app resilient when my backend has high latency spikes?

react-server is a framework designed to make universal (née isomorphic) React easier to write, providing standard answers for these questions and more. When you write your app for react-server, you concentrate on your React components, and react-server takes care of everything else that's needed to run and deploy real React server-rendered apps. Under the hood, react-server is doing a bunch of clever optimizations, many borrowed from the ideas behind Facebook's Big Pipe, to make sure that your site shows up as quickly as humanly possible for your users.

Once you're hungry for more, dig into the React Server documentation and the react-server code.


Want to help?

Great! There's a lot to do! See the contributing guide to get started.

Where's all the code?!

This is a Lerna respository with multiple npm packages! Check out the packages/ directory :eyes:.

Core symbols most depended-on inside this repo

push
called by 94
packages/react-server-website/deployment/ec2.py
log
called by 42
packages/react-server/core/logging/response.js
push_group
called by 41
packages/react-server-website/deployment/ec2.py
withRlsContext
called by 37
packages/react-server/core/test/util/reactServerAgentSupport.js
to_safe
called by 35
packages/react-server-website/deployment/ec2.py
getQuery
called by 27
packages/react-server/core/ClientRequest.js
exists
called by 20
packages/generator-react-server/test/app.js
dehydrate
called by 18
packages/react-server/core/ReactServerAgent/Cache.js

Shape

Method 455
Function 364
Class 302

Languages

TypeScript97%
Python3%

Modules by API surface

packages/react-server/core/renderMiddleware.js43 symbols
packages/react-server/core/ClientController.js35 symbols
packages/react-server-website/deployment/ec2.py35 symbols
packages/react-server/core/ReactServerAgent/Cache.js34 symbols
packages/react-server-test-pages/pages/error/logs.js25 symbols
packages/react-server-integration-tests/src/specRuntime/testHelper.js25 symbols
packages/react-server/core/context/RequestContext.js20 symbols
packages/react-server/core/ClientRequest.js20 symbols
packages/flab/LAB.src.js20 symbols
packages/react-server/core/util/PageUtil.js18 symbols
packages/react-server/core/ExpressServerRequest.js18 symbols
packages/react-server/core/__bench__/handlePage.js16 symbols

Used by 2 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

ava0.17.0 · 1×
babel-cli6.18.0 · 1×
babel-core6.18.0 · 1×
babel-eslint7.0.0 · 1×
babel-loader6.2.2 · 1×
babel-plugin-add-module-exports0.2.1 · 1×
babel-plugin-react-require3.0.0 · 1×
babel-plugin-react-server0.6.0 · 1×
babel-plugin-transform-runtime6.15.0 · 1×
babel-preset-es20156.18.0 · 1×
babel-preset-react6.16.0 · 1×
babel-preset-react-server0.6.0 · 1×

For agents

$ claude mcp add react-server \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact