In short.
Bun React SSR is an AI-assistant skill for developers who want custom React server rendering on Bun, but its separate recipes require corrections before they form a reliable application. It explains renderToString, renderToReadableStream, hydration, SQLite data and browser builds. The streaming example waits for allReady, the data example inserts JSON directly into an HTML script element, and the document layouts require matching hydration entry points. No code was executed; compatibility, performance and deployment behavior remain unverified.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is limited to plugins/bun/skills/bun-react-ssr at revision 88378361314f558fb719aec0af9fd898ab36f0b2. The supplied manifest marks that selected scope complete and contains one selected file, SKILL.md, plus the repository-root LICENSE as an applicable notice outside the folder. The referenced streaming and caching files are not present in that manifest. Other repository skills, dependency documentation, newer revisions and deployment environments are outside the evidence. No application, command, build, browser journey or benchmark was executed.
The overview
identity
Bun React SSR is the bun-react-ssr skill in secondsky/claude-skills, under plugins/bun/skills/bun-react-ssr. Its metadata declares version 1.0.0 and MIT licensing. It supplies instructions and code examples for an assistant helping with custom React server rendering on Bun.
The original folder is [https://github.com/secondsky/claude-skills/tree/main/plugins/bun/skills/bun-react-ssr]. The supplied scope contains SKILL.md and the repository-root licence notice; it does not establish the capabilities of other skills in the repository.
assessment
The skill gives developers a concrete explanation of how a Bun server, React renderer, browser bundle and hydration entry point fit together. Its breadth makes it useful as a starting reference for building a small custom SSR application.
The examples need engineering review before deployment. Inline data serialization creates a security concern, and the streaming and hydration recipes require reconciliation. No execution or benchmark evidence establishes that the examples work together unchanged.
users
The intended users are developers asking an assistant to implement React server rendering with Bun without a framework. Beginners receive examples of the server, client and application files, but still need familiarity with React components, JavaScript or TypeScript, dependencies and HTTP responses.
Experienced developers may find the explicit rendering and build steps useful when they want direct control. They must supply application-level routing behavior, secure data handling, deployment configuration and other production concerns beyond these examples.
capabilities
The instructions cover Bun.serve, static-file responses, renderToString, hydrateRoot and Bun.build. Additional recipes show renderToReadableStream, Suspense, a SQLite query, passing initial data to the browser, exact-path routing and history-based navigation.
Other examples cover inline and external CSS, restarting the server after filesystem changes, and separate browser and server builds with minification. Caching, CDN integration and advanced streaming are mentioned, but their referenced guidance files are absent from the supplied manifest.
Using it
requirements
The application examples require Bun, react and react-dom. The setup also installs @types/react and @types/react-dom. Browser JavaScript is required for hydration, button handlers and client-side navigation.
The data example assumes a usable data.sqlite database with a users table and an App component accepting initialData. Neither the database schema nor that expanded App implementation is supplied. Bun and React versions are not pinned, and compatible version ranges are unknown. Installation requirements for loading the skill into an assistant are not documented here.
mechanism
In the basic recipe, Bun receives a request, reads its pathname and renders App into an HTML string. The response wraps that markup in a document containing a root element and a browser script. The browser entry calls hydrateRoot so React can attach interactive behavior to the existing HTML.
The data recipe queries SQLite before rendering and places initial data on window.__INITIAL_DATA__ for hydration. The streaming recipe instead creates a readable stream, but explicitly awaits stream.allReady before returning it. It therefore does not demonstrate sending the initial shell while suspended content is still pending.
setup
The documented sequence creates a project, runs bun init, installs React and its type packages, and adds src/server.tsx, src/client.tsx, src/App.tsx and build.ts. The client build writes to public/static. The next commands shown are bun run build.ts and bun run src/server.tsx.
These are files to assemble from the document rather than a supplied application scaffold. The production recipe writes assets to dist/public/static, while the server reads ./public relative to its working directory. Deployment must align those paths. The supplied material does not explain assistant-specific skill installation.
example
In the basic example, a request to [http://localhost:3000/about] passes /about to App. The intended HTML displays the current path and a button whose click handler shows an alert after hydration. This illustrates the division between server-generated content and browser interaction; the behavior was not executed or verified.
The Suspense example labels a component SlowComponent, but that component immediately returns markup. It contains no asynchronous operation or actual suspension, so it does not establish progressive loading behavior.
Assessment & evidence
limitations
The data example interpolates JSON.stringify output directly into an inline script. JSON serialization alone does not make data safe inside HTML: a closing script tag in untrusted data can terminate the element. This needs HTML-safe serialization before use with such data.
The streaming App renders a whole HTML document containing a nested root element, while the earlier client hydrates that root with App. Combining those examples unchanged would give the server and client different root structures. The streaming server also omits the basic example's static-file handler, so its bootstrap script needs an asset-serving arrangement.
Routing uses exact pathname matching, and Link intercepts clicks without handling modified-click behavior. A rendered 404 component does not itself set an HTTP 404 status. The referenced streaming-patterns.md and caching.md files are not included in the captured scope. Runtime correctness, browser compatibility and security hardening were not assessed through execution.
reasoning
The resource's practical value comes from showing the server, browser and build pieces in one place with concrete APIs and file paths. That can help developers understand and customize a small SSR implementation.
Confidence in a complete application is limited by the separate recipes, missing supporting references and identifiable serialization and hydration issues. The evidence supports using the skill as implementation guidance; it does not establish production readiness or performance gains.
alternatives
Within the skill, renderToString provides a complete HTML string, while renderToReadableStream provides the streaming approach. Choosing the latter requires resolving response timing, document structure and hydration together.
A framework that integrates routing, data loading and asset handling is another architectural approach for teams that want those responsibilities supplied together. No named framework comparison, migration guidance or comparative measurements are provided, so relative suitability and cost are unknown.
evidence
The supplied evidence contains the full SKILL.md and repository-root LICENSE at revision 88378361314f558fb719aec0af9fd898ab36f0b2. The captured skill is available at [https://raw.githubusercontent.com/secondsky/claude-skills/88378361314f558fb719aec0af9fd898ab36f0b2/plugins/bun/skills/bun-react-ssr/SKILL.md]. Its recorded SHA-256 is c7d54b16416880e48c350e66541443dea8f1a0ba739c232efb832f445bf54696.
The evidence supplies instructions and snippets, with no execution logs, tests or benchmark results. No code was run. Observations about integration and security follow from the shown code; actual runtime outcomes remain unverified.
Access & freshness
costs
The MIT licence grants use and redistribution free of charge. The examples contain no model API calls. The supplied material gives no prices for an assistant, hosting, support or operating the resulting application, so total cost is unknown.
No measured resource usage or performance results are supplied from which to estimate server capacity or operating expense.
rights
SKILL.md declares MIT licensing, and the repository-root LICENSE names Copyright (c) 2025 Claude Skills Maintainers. The licence permits use, copying, modification, distribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions.
The software is supplied without warranty. Redistributed copies of the captured skill should retain the licence notice from [https://raw.githubusercontent.com/secondsky/claude-skills/88378361314f558fb719aec0af9fd898ab36f0b2/LICENSE]. Separate dependency licence texts are not included in the supplied evidence.
freshness
The supplied snapshot was captured at 2026-11-17T02:10:03.144Z and identifies the skill as version 1.0.0. That version describes the skill metadata; it does not identify supported Bun or React releases.
The material gives no compatibility matrix or skill update date. Compatibility with current releases and any changes after the captured revision are unknown.
actions
Start with the basic rendering and hydration recipe, choose explicit Bun and React versions, and establish matching server and browser markup. Confirm asset paths and production working-directory assumptions before adding data or streaming.
Before deployment, replace inline JSON insertion with HTML-safe serialization, reconcile the streaming document and hydration root, and decide whether to wait for all content or send an earlier shell. Verify hydration, static assets, route status codes, navigation behavior and production builds in the intended environment. Measure any claimed streaming benefit with genuinely suspending content.
