Introducing a new way to review your PRs.

Read the announcement

shakacode / react_on_rails

Integration of React + Webpack + Rails including server-side rendering of React, enabling a better developer experience and faster client performance.

View on GitHub

19 documents · Updated Nov 18, 2026

docs / pro-rendering-platform

Pro rendering platform

React on Rails Pro is the commercial extension layer for Rails applications that render React in production. Its Ruby package connects Rails requests to a local or separate Node renderer. Its JavaScript packages add server rendering, streaming output, cache access, deployment handoff, licensing status, and telemetry. The platform aims to make server-rendered React fast, progressive, safe to deploy, and visible in production without replacing the open-source React on Rails foundation.

Platform boundary

The platform has two cooperating sides. Rails owns the web request and application data. JavaScript owns React execution in a Node process when the application selects the Node renderer. The open-source React on Rails package remains the base for component registration, Rails integration, and core client behavior.

SideMain responsibilityResult for the application
Pro Ruby extensionConnect Rails rendering requests to the selected renderer, manage caches and deployment support, and expose Rails configurationRails can request HTML or streamed output through one Pro boundary
Pro JavaScript extensionAdd Pro lifecycle and rendering behavior to the client package, including streaming and server-component supportBrowser and server JavaScript use the same Pro capabilities
Pro Node rendererExecute trusted server bundles in a managed Node serviceRendering work can run in parallel worker processes outside the Rails process
Open-source React on RailsProvide the shared Rails and React basePro features remain compatible with the core integration

The Pro JavaScript entry point composes the core capability with Pro lifecycle and method capabilities. Applications can add capabilities such as SSR and RSC through the appropriate entry point; the RSC entry point also exposes the Pro cache interface. This keeps the paid features on the same base as the open-source client while allowing an application to select the server features it needs.

React on Rails Pro uses trust-based commercial terms. Development, test, CI, staging, preview, and evaluation use are free. Production use is also free for small organizations, charities, educational institutions, and hospitals; other organizations need a subscription. A license key is optional and does not block or change execution. See Pro licensing and observability for the license and operational view.

References: packages/…/createReactOnRailsPro.ts• L16-53 packages/…/ReactOnRailsRSC.ts• L16-26 packages/…/LICENSE.md• L1-29

Rendering service

The rendering service turns a Rails render request into HTML or a stream of HTML and related data. Rails may use the default embedded JavaScript path, but the Pro Node renderer is the production path for connection pooling, parallel work, code splitting, streaming SSR, and React Server Components.

This diagram shows the main request path from a Rails view to a browser response.

flowchart LR
    A[Rails request] --> B[Pro Ruby rendering boundary]
    B --> C{Selected renderer}
    C -->|Embedded JavaScript| D[In-process render]
    C -->|Node renderer| E[Authenticated HTTP render request]
    E --> F[Node master and workers]
    F --> G[React server bundle]
    D --> H[HTML or stream]
    G --> H
    H --> I[Browser response]

Rails rendering boundary

The Ruby extension presents one rendering boundary to Rails. It selects the embedded renderer or the Node renderer based on configuration, adds cache behavior around eligible renders, and returns either a completed result or a stream to the Rails response path. Pro view helpers support cached, buffered, streamed, and asynchronous render paths while keeping props lazy on cache misses.

The request boundary keeps the bundle and companion assets for one render operation together. It can send normal, streamed, incremental, and asset requests over the renderer connection. When several requests need the same assets at once, one upload serves the waiting requests, and a prepared artifact identity prevents a build change from replacing the bytes selected for an in-flight render.

References: react_on_rails_pro/…/pro_rendering.rb• L16-45 react_on_rails_pro/…/pro_rendering.rb• L68-129 react_on_rails_pro/…/react_on_rails_pro_helper.rb• L55-117 react_on_rails_pro/…/react_on_rails_pro_helper.rb• L292-347 react_on_rails_pro/…/request.rb• L93-117 react_on_rails_pro/…/request.rb• L146-223 react_on_rails_pro/…/request.rb• L529-671

Node renderer service

The Node renderer is a separate service that accepts render requests for versioned server bundles. It can run as one process or as a master process with worker processes. The service entry point checks the RSC and React compatibility window and the supported Node and Fastify runtime before it starts. The master manages worker life cycles and shutdown, while workers execute renders and stream results. The service also receives bundles and companion assets so the Rails side and renderer can use the same deployment generation.

The service protects the Rails-to-Node boundary with a renderer password and a versioned bundle identity. Its published package requires Node 20.19 or later and exposes protocol version 2.0.0. Its RSC support accepts only supported stable React and react-on-rails-rsc pairings; the renderer is the JavaScript source of truth for that compatibility window. Read Node renderer processes for the process model and request contract.

The default Node renderer command starts this service from environment-based configuration. A worker count of zero selects one process; a positive count starts the supervised master and worker model. This gives local and production launch paths the same service boundary.

References: packages/…/ReactOnRailsProNodeRenderer.ts• L27-78 packages/…/default-node-renderer.ts• L16-23 packages/…/master.ts• L62-82 packages/…/configBuilder.ts• L49-155 packages/…/rscPeerSupport.ts• L16-55 packages/…/package.json• L3-8 packages/…/package.json• L86-99 react_on_rails_pro/…/request.rb• L258-299 react_on_rails_pro/…/request.rb• L673-705

Rendering flows

Pro supports complete SSR responses and progressive responses. The choice depends on whether the page needs a finished result at once, content that can arrive as it becomes ready, or a server-component payload that the browser will consume.

Standard server-side rendering

Standard SSR evaluates a render request and returns a complete value to Rails. The request includes the bundle generation so the renderer does not run code from an unrelated deployment. If the Node request fails, the Ruby side can use its configured embedded-JavaScript fallback for supported non-streaming renders.

References: react_on_rails_pro/…/node_rendering_pool.rb• L53-66 react_on_rails_pro/…/node_rendering_pool.rb• L107-135 react_on_rails_pro/…/node_rendering_pool.rb• L185-210

Streaming server-side rendering

Streaming SSR sends the shell and later React output as separate chunks. This lets the browser start work before all data or Suspense boundaries finish. Pro can pass the stream through Rails and can cache a completed stream for later requests without caching a stream that reports a render error. A cached stream also records the mount point that produced it, then rebinds embedded mount identifiers when another request uses the entry.

For pages with a content-security nonce, Pro stores a safe placeholder in cached markup and replaces it with the current request nonce during cache delivery. The same replacement works for a live stream when the placeholder crosses a chunk boundary. See Async props and streaming SSR for the stream life cycle and async data flow.

References: react_on_rails_pro/…/react_on_rails_pro_helper.rb• L119-210 react_on_rails_pro/…/react_on_rails_pro_helper.rb• L493-605 react_on_rails_pro/…/react_on_rails_pro_helper.rb• L720-979 react_on_rails_pro/…/csp_nonce_stream_rewriter.rb• L17-56 react_on_rails_pro/…/pro_rendering.rb• L74-117 react_on_rails_pro/…/stream_cache.rb• L21-50 react_on_rails_pro/…/stream_cache.rb• L72-149

Async prop delivery

Async prop delivery lets a render start before all named prop values are ready. React suspends on a stable promise for each prop. Rails then sends updates as values arrive, and the Node renderer resumes the waiting parts of the render. The request closes when the producer finishes, so unresolved props fail instead of leaving the response open forever.

The flow supports push delivery and an optional pull request from the renderer for a prop. RSC payload requests can obtain their producer from a controller override or from the component-name registry. Both sides share a small wire contract. A closed client also tears down the upstream work so the system does not continue a render that no browser can use. See Async props and streaming SSR.

References: packages/…/AsyncPropsManager.ts• L29-59 packages/…/AsyncPropsManager.ts• L90-159 react_on_rails_pro/…/rsc_payload_renderer.rb• L92-142 react_on_rails_pro/…/request.rb• L120-203 packages/…/handleIncrementalRenderRequest.ts• L177-203

React Server Components

React Server Components add a server-produced RSC payload to the SSR and navigation model. An RSC payload is the Flight-serialized output for one server component name and props pair. Rails can expose a payload route, and Pro can embed the payload in streamed HTML so the client can use it before a separate fetch. The client registers server components as routes instead of placing their implementations in the client bundle.

The RSC JavaScript entry point combines the SSR capability with the Pro RSC capability. It also exposes the Pro cache interface for applications that use server-component data across renders. This entry point keeps server-component support and normal Pro client behavior on one React on Rails instance.

During hydration, the browser reads the embedded payload first. During client navigation or an explicit refetch, it requests a length-prefixed stream and decodes each record as it arrives. The stream reports completion separately from root decoding because React can resolve the root before all records and error signals have arrived. A failed stream therefore cannot be treated as a successful payload only because its root rendered.

The RSC provider owns a bounded Provider Cache of decoded payload promises. It deduplicates equal requests and can use a shared prefetch result on the first read. An explicit route refetch bypasses that warm path. In production, a failed refetch can keep the last successful route visible and expose a retry state. Development still surfaces failures through the normal error boundary. React Server Components integration covers the payload route and browser behavior.

RSC packages must use a supported stable version pair. The Pro JavaScript package declares react-on-rails-rsc from 19.2.1 up to but not including 20.0.0. The Node renderer checks the RSC package line against the matching React and React DOM patch range, and rejects superseded release candidates rather than treating them as stable support.

References: packages/…/ReactOnRailsRSC.ts• L16-26 packages/…/RSCRoute.tsx• L41-88 packages/…/RSCRoute.tsx• L321-385 packages/…/RSCRouteErrorBoundary.tsx• L25-93 packages/…/RSCProvider.tsx• L217-275 packages/…/RSCProvider.tsx• L356-495 packages/…/RSCProvider.tsx• L505-665 packages/…/RSCStreamCompletion.ts• L16-20 packages/…/getReactServerComponent.client.ts• L79-183 packages/…/getReactServerComponent.client.ts• L423-454 packages/…/parseLengthPrefixedStream.ts• L16-28 packages/…/client.tsx• L22-61 packages/…/server.tsx• L22-49 packages/…/package.json• L86-105 packages/…/ReactOnRailsProNodeRenderer.ts• L37-47 packages/…/rscPeerSupport.ts• L16-55 packages/…/checkRscPeerCompatibility.test.ts• L30-72 packages/…/checkRscPeerCompatibility.test.ts• L109-188

TanStack Router hydration

The TanStack Router integration carries the server's resolved route state into the browser so the first client tree matches the server HTML. The server loads the requested URL, records route matches and optional dehydrated application data, and sends that state with the render props. The client restores those matches before the first RouterProvider render, then starts the normal router load after hydration.

This handoff supports the TanStack Router 1.x API range from 1.139.0 up to but not including 2.0.0. It can use the older store shape or the newer stores API. Production route errors are reduced to a safe public error before they cross the server-to-client boundary. The same boundary warns when loader data is not safe to serialize.

References: packages/…/serverRender.ts• L80-127 packages/…/serverRender.ts• L129-243 packages/…/clientHydrate.ts• L106-195 packages/…/clientHydrate.ts• L197-211 packages/…/clientHydrate.ts• L282-455 packages/…/clientHydrate.ts• L469-592 packages/…/types.ts• L35-87 packages/…/types.ts• L101-166 packages/…/utils.ts• L16-29 packages/…/package.json• L89-105

Cache and deployment lifecycle

Pro treats rendered output and renderer bundles as related but different cache concerns. Render caches reduce repeated work for the same render input. Bundle caches and deployment handoff keep the renderer able to serve code while old Rails processes drain during a release.

Render output caching

Render caching stores completed component output or stream chunks behind keys that include the Pro and core versions and, when server rendering is involved, the relevant bundle identity. Request-specific render identity excludes random mount IDs where possible, so one cached stream can serve more than one mount point. The stream cache restores the current mount ID before delivery.

Rails fragment caching and Node-side prerender caching can work together, while cache tags provide a path to remove related entries when application data changes. Component entries keep nonce-bearing and nonce-free markup in separate cache partitions. A valid request nonce is replaced by a cache-safe placeholder at write time and restored to the serving request's nonce at read time. A malformed nonce bypasses component caching rather than poisoning either partition. Cached stream and static RSC paths write only successful output, so an error chunk does not become a shared response. A local fast tier can sit above a shared store such as Redis.

References: react_on_rails_pro/…/react_on_rails_pro_helper.rb• L43-76 react_on_rails_pro/…/react_on_rails_pro_helper.rb• L493-605 react_on_rails_pro/…/react_on_rails_pro_helper.rb• L720-979 react_on_rails_pro/…/react_on_rails_pro_helper.rb• L1140-1244 react_on_rails_pro/…/csp_nonce_stream_rewriter.rb• L17-56 react_on_rails_pro/…/cache.rb• L88-99 react_on_rails_pro/…/cache.rb• L146-207 react_on_rails_pro/…/stream_cache.rb• L61-69 packages/…/TieredCacheHandler.ts• L27-84

Rolling deployment safety

Rolling deployment safety keeps old and new renderer generations available during the overlap between releases. The new deployment can discover and stage previous bundle generations before traffic moves. The renderer keeps the current generation pinned and can retain older generations for the drain window. If pre-seeding cannot fetch an old bundle, the runtime retry path remains available instead of turning a best-effort seed into a failed build. See Renderer cache and rolling deploys.

The built-in HTTP adapter uses an authenticated route on the running Rails application as its artifact source. It validates prior origins and bundle identities before staging artifacts. It also bounds discovery and download time, limits response size, and warns when a non-loopback HTTP origin would send the bearer token in clear text.

References: react_on_rails_pro/…/rolling_deploy_cache_stager.rb• L22-45 react_on_rails_pro/…/rolling_deploy_cache_stager.rb• L79-97 react_on_rails_pro/…/http.rb• L31-75 react_on_rails_pro/…/http.rb• L141-226 react_on_rails_pro/…/http.rb• L374-445 react_on_rails_pro/…/engine.rb• L25-41

Operational controls

Production use depends on controls around access, entitlement, error handling, and service visibility. These controls cross the Ruby application, the Node renderer, and the deployment system, so a change on one side can affect the whole render path.

Rails engine lifecycle

The Rails engine connects Pro to the Rails boot cycle. It registers Pro routes, conditionally exposes the rolling-deploy artifact route, checks license status after startup, and warns about middleware patterns that can drain streaming bodies. When Scout APM is present, it also adds a trace around Node rendering without making the monitoring tool a runtime requirement.

References: react_on_rails_pro/…/engine.rb• L16-68 react_on_rails_pro/…/engine.rb• L70-145 react_on_rails_pro/…/engine_spec.rb• L285-409

License control

The Ruby gem and JavaScript packages are commercial Pro software that build on the separately licensed open-source React on Rails core. The published Pro license uses trust rather than runtime enforcement: no activation, phone-home check, usage telemetry, or lockout exists. A license key is optional identity data that changes the generated attribution and license-status logs.

Production use is free for a small organization when it stays below all three size limits in the license. It is also free for a charity, educational institution, or hospital. Other production use requires one subscription for the organization. Each rendered HTML document must retain one complete Pro attribution comment. License configuration can come from Rails or from the REACT_ON_RAILS_PRO_LICENSE environment variable. A standalone Node renderer must receive its own token because it cannot read Rails credentials. See Pro licensing and observability.

References: packages/…/LICENSE.md• L1-29 packages/…/LICENSE.md• L128-225 react_on_rails_pro/LICENSE_SETUP.md• L5-18 react_on_rails_pro/…/engine.rb• L44-48 react_on_rails_pro/…/engine.rb• L70-145

Authentication and service probes

The renderer accepts requests only from a Rails client that presents the configured renderer password. Node-renderer deployments require that password outside development and test environments. Rails and Node must also agree on the transport mode. Health and readiness probes can expose status-only endpoints for a supervisor without exposing bundle paths or runtime details. These probes support process management; they do not replace request authentication.

References: react_on_rails_pro/…/configuration.rb• L206-219 react_on_rails_pro/…/configuration.rb• L612-701 packages/…/configBuilder.ts• L103-110 packages/…/authHandler.ts• L1-120 react_on_rails_pro/…/request.rb• L346-374

Telemetry and error reporting

Pro can carry trace context from Rails into renderer requests and record render timing, request size, response size, and nested SSR work. The Node renderer can own an OpenTelemetry provider or attach spans to an application-owned provider. Rails can also connect Node render timing to Scout APM when that optional integration is installed.

Telemetry is optional and does not change the render result. Missing packages disable telemetry without blocking normal rendering. RSC stream observability can add opt-in browser marks for payload bytes and flush timing, while the stream injector keeps those scripts out of incomplete HTML boundaries. The system reports render errors through the stream or completed response according to the configured policy. It avoids treating a client disconnect as an application failure and avoids persisting a stream that contains an error marker. See Pro licensing and observability for traces, logs, and alerts.

References: react_on_rails_pro/…/open_telemetry.rb• L18-28 react_on_rails_pro/…/open_telemetry.rb• L136-169 react_on_rails_pro/…/engine.rb• L54-68 packages/…/opentelemetry.ts• L51-85 packages/…/opentelemetry.ts• L516-563 packages/…/injectRSCPayload.ts• L128-208 packages/…/injectRSCPayload.test.ts• L352-397 packages/…/injectRSCPayload.test.ts• L2435-2462 react_on_rails_pro/…/stream_cache.rb• L171-209

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep the Rails incremental-render protocol and the Node renderer's mirrored keys and update-chunk rules aligned: packages/…/AsyncPropsManager.ts and packages/…/handleIncrementalRenderRequest.ts.
  • Keep the renderer protocol version, request paths, bundle roles, raw-request headers, and asset-upload behavior aligned between react_on_rails_pro/…/request.rb and the Node renderer.
  • Keep operation-scoped artifact identities, companion-asset bytes, upload single-flight keys, and renderer generation identity aligned across the Ruby request boundary, the rolling-deploy adapter, the cache stager, and the Node renderer.
  • Keep the RSC payload authorizer contract, props contract, async-props provider lookup, RSC bundle identity, and payload-only fresh-worker initialization aligned across Rails, generated JavaScript, the Pro RSC capability, and the Node renderer.
  • Keep the RSC client stream contract aligned across length-prefixed record creation, browser parsing, root resolution, and stream completion. Root resolution must not replace completion status.
  • Keep RSC route recovery tied to the current payload key and request identity. A stale or unrelated client error must not restore old route content or report a refetch failure.
  • Keep the RSC peer compatibility source of truth aligned with the Ruby Doctor and generator values. Stable package publication must control any suggested upgrade from a rejected prerelease.
  • Keep RSC payload script escaping shared with core console replay. Preserve production-like diagnostic redaction, the generic error signal, and the development/test diagnostic path when changing metadata handling.
  • Keep RSC stylesheet discovery, preload promotion, reveal ordering, split HTML handling, and optional browser performance marks aligned when changing the RSC stream injector or its asset inputs.
  • When changing cache key inputs, nonce validation, or expiry behavior, check both Rails render caches and JavaScript cache handlers. Preserve the nonce-active and nonce-free partitions, placeholder marker, malformed-nonce bypass, and live-stream rewrite path.
  • When changing stream cache keys, mount-point handling, or cached nonce replacement, keep random-ID normalization, stored producing IDs, chunk boundaries, placeholder carry-over, and RSC payload references aligned.
  • When changing stream error reporting, keep per-chunk error signals connected to every cache write path. A stream can complete while an async boundary still reports an error.
  • When changing renderer authentication or transport settings, update both the Rails HTTP client and the Node renderer configuration.
  • When changing rolling-deploy artifact discovery, keep manifest provenance, versioned artifact identity, URL validation, size limits, and runtime retry fallback aligned. Keep the conditional Rails artifact route available when the HTTP adapter is used.
  • When changing TanStack Router hydration, keep server match serialization, client match restoration, supported private API shapes, route chunk preloading, and post-hydration loading in step.
  • When changing streaming middleware or compression setup, keep body-preserving behavior compatible with ActionController::Live.
  • When changing the Pro JavaScript entry points, keep the capability set and cache exports aligned with the server features that each entry point promises.
  • When changing Node renderer startup, keep runtime validation, RSC peer checks, worker-count selection, and the default environment-based launch path aligned.

Important failure modes

TriggerConsequenceGuard
Rails and Node use different renderer passwords or incompatible transport settingsRender requests are rejected even when the Node service is runningShare the renderer secret and keep both sides on the same protocol generation
A requested bundle generation is missing from the renderer cacheThe render cannot execute during a rolling releaseUpload or pre-seed the required generation and keep runtime retry available
A render uses bytes from a changed build after its request was preparedRails and Node use different bundle or companion-asset content for one renderUse one operation-scoped artifact snapshot and reject identity mismatches
The Node runtime is too old for the supported Fastify lineThe renderer exits before it accepts render trafficRun the supported Node version and let startup validation fail fast
The RSC package and React or React DOM are from different support linesRSC setup fails or the renderer can decode a payload with the wrong Flight runtimeUse the published stable peer window and run the compatibility check before deployment
An RSC root resolves before its stream finishesA failed or truncated later record is treated as a successful route payloadTrack stream completion separately and require clean EOF with no error metadata
A production refetch fails after the route has renderedThe route can blank or lose its last known-good contentRetain the last successful payload and expose the recoverable retry state
A stale refetch or unrelated client error reaches the recovery boundaryThe wrong route reports an error or restores old contentMatch recovery to the active payload key and stream request identity
RSC payload text is inserted without the shared script escaping policyUser content can break out of an inline scriptKeep Pro injection and core console replay on the same escaping policy
Production-like RSC metadata includes a server error message, stack, or replay detailInternal data reaches the browserEmit only the generic error signal outside development and test
A streamed RSC reveal arrives before its client stylesheetA boundary can paint without its stylesPromote eligible stylesheet hints and hold the reveal until the required link is emitted
A cached stream is replayed under a different mount ID without rebindingThe page can lack the payload or replay data for its current mount pointStore the producing mount ID and rebind it before delivery
Cached markup crosses the nonce-active and nonce-free partitionsThe browser can reject inline scripts under the response CSPKeep the partitions separate and replace valid placeholders with the request nonce
A live stream splits a nonce placeholder across chunksThe stale placeholder or nonce reaches the browserHold a possible partial suffix until the next chunk or stream flush
A malformed CSP nonce enters component cachingMarkup can be stored in the wrong partition or cannot be safely re-stampedBypass component caching and warn once for the request
A stream emits an error chunk and still enters the cacheLater visitors receive a broken cached streamTrack per-chunk error markers and refuse the cache write
The async props request closes before all values arriveUnresolved React work rejects instead of finishingEnd the async-prop stream and surface the missing-prop error
An RSC payload has unauthorized access or invalid propsThe endpoint returns forbidden or bad-request outputAuthorize the component before rendering and enforce the props contract
The server and client TanStack Router APIs do not match the supported 1.x shapesHydration cannot restore route matches or can start a duplicate loadValidate the supported API shape and keep the router within the declared range
The production organization needs a subscription but has no valid subscriptionThe software keeps running, but production use is outside the commercial termsDetermine status for the whole organization and retain the required attribution
Rails has a token but a standalone Node renderer has noneRails and Node report different license statusConfigure each validating process through its own secret source
The rolling-deploy HTTP adapter has no Rails mount routePrevious renderer bundles cannot be stagedEnable the route with the HTTP adapter and mount path
A compression callback reads the response body before Rails streams itStreaming output can be drained or changedUse body-preserving middleware and heed the engine warning
OpenTelemetry dependencies are absent or provider shutdown exceeds the worker budgetTraces are absent or shutdown is delayedTreat telemetry as optional and use bounded provider shutdown

Key files

FileWhy to read it
react_on_rails_pro/README.mdProduct view of Pro features and its relationship to React on Rails
packages/…/README.mdJavaScript package boundary and Pro-specific exports
packages/…/LICENSE.mdCommercial use boundary, attribution, and runtime non-enforcement
react_on_rails_pro/…/configuration.rbCross-cutting controls for rendering, caching, RSC, transport, deployment, and telemetry
react_on_rails_pro/…/engine.rbRails boot hooks for routes, license status, streaming warnings, and optional tracing
react_on_rails_pro/…/react_on_rails_pro_helper.rbRails-facing cached, streamed, buffered, async, and static RSC rendering
react_on_rails_pro/…/csp_nonce_stream_rewriter.rbLive replacement of cached CSP nonce placeholders across stream chunks
react_on_rails_pro/…/pro_rendering.rbRuby entry point that joins renderer selection with completed and streamed render caching
react_on_rails_pro/…/request.rbRails-to-renderer request boundary for normal, streamed, incremental, raw, and asset requests
react_on_rails_pro/…/stream_cache.rbRules for serving, rebinding, and persisting completed streaming output
react_on_rails_pro/…/rolling_deploy_cache_stager.rbBest-effort staging of previous renderer generations
react_on_rails_pro/…/http.rbAuthenticated artifact source and deployment safety checks
packages/…/createReactOnRailsPro.tsBase Pro JavaScript entry point and capability composition
packages/…/ReactOnRailsRSC.tsSSR and RSC entry point with the Pro cache interface
packages/…/ReactOnRailsProNodeRenderer.tsNode service startup, runtime checks, and process choice
packages/…/default-node-renderer.tsDefault environment-configured Node renderer launch path
packages/…/master.tsWorker supervision, restart, startup failure, and graceful shutdown
packages/…/configBuilder.tsNode service controls and security boundary
packages/…/rscPeerSupport.tsSupported stable React and RSC version relationship
packages/…/RSCProvider.tsxProvider Cache, embedded payload use, refetch behavior, and recovery state
packages/…/RSCRoute.tsxRSC route lifecycle, imperative refetch, and production recovery surface
packages/…/RSCRouteErrorBoundary.tsxRoute error conversion and restoration of the last successful payload
packages/…/getReactServerComponent.client.tsEmbedded payload hydration, HTTP fetch, stream completion, and safe fetch errors
packages/…/parseLengthPrefixedStream.tsShared browser record framing for streamed RSC and render responses
packages/…/serverRender.tsServer route loading and dehydrated TanStack Router state
packages/…/clientHydrate.tsMatch restoration, router hydration, and post-hydration loading
react_on_rails_pro/…/open_telemetry.rbRails-side trace propagation and renderer measurements
packages/…/opentelemetry.tsNode-side tracing ownership and shutdown behavior
packages/…/injectRSCPayload.test.tsGuarantees for safe payload injection, diagnostic redaction, stylesheet ordering, split streams, and opt-in observability
packages/…/getReactServerComponent.client.test.tsGuarantees for embedded payload fallback, stream completion, error redaction, and prefetch behavior
packages/…/imperativeRefetch.client.test.tsxGuarantees for refetch concurrency, retained content, recovery, and unrelated client errors
packages/…/deferredRouteSsr.test.tsxGuarantees for deferred routes, error boundaries, provider placement, and hydration parity
packages/…/parseLengthPrefixedStream.test.tsGuarantees for split byte records, UTF-8 lengths, separators, and truncation
packages/…/checkRscPeerCompatibility.test.tsGuarantees for the stable RSC and React compatibility window