What react-snap does
react-snap is a Node package that pre-renders a web app into static HTML. It uses Headless Chrome through Puppeteer to crawl every link reachable from the root page, then saves the rendered markup as files. The output gives search engines and social crawlers HTML to read, which plain client-side apps do not provide. It only supports routing built on the HTML5 history API.
The main property is zero configuration: adding a postbuild script is enough for create-react-app projects, with no code changes. Despite the name, it does not depend on React and also works with Preact and Vue. A real browser handles features such as WebGL and blobs that server side renderers often miss. The npm package ships without a build step, so it can be forked and installed from a GitHub URL.
Key features
- Headless Chrome crawling
- Starts at the root URL and follows all available internal links, rendering each route in a real browser before saving the HTML.
- Zero configuration setup
- Adding one postbuild script to package.json is enough for create-react-app; the readme states no other configuration is required.
- Framework agnostic prerendering
- Does not depend on React and documents basic usage for create-react-app, Preact and Vue.js projects.
- AJAX request capture
- Records the AJAX requests made during rendering and stores JSON responses so the prerendered page can replay them.
- Third-party request blocking
- Can block requests to Google Analytics, Mapbox and similar hosts so prerendering does not fire analytics or external calls.
- Experimental inline CSS
- An inlineCss option inlines styles into the output; the readme labels the feature experimental and needing improvement.
- Forkable npm package
- The npm package has no compilation step, so you can fork it, change what you need and install it from a GitHub URL.
- Custom user agent flag
- Pages can detect prerendering with navigator.userAgent == ReactSnap and change their behaviour during the crawl.
- Load performance optimizations
- Applies loading optimizations to the prerendered output; the repository links a separate document describing the details.
How it works
- Install the package as a dev dependency with yarn add --dev react-snap.
- Add a postbuild script to package.json that runs react-snap after the normal build.
- Switch the app entry point to hydrate when the root element already has child nodes.
- react-snap launches Headless Chrome at the root URL and follows the internal links it finds.
- Each visited route is rendered, then written out as static HTML that crawlers can read.
Plans and pricing
Free and open source software released under the MIT licence; the repository lists no paid plans.
Integrations and platforms
Works with
- Puppeteer
- Docker
- Heroku
Available as
- CLI
- Web
Repository facts
- Repositorystereobooster/react-snap
- LanguageJavaScript
- Stars5124
- Forks394
- LicenceMIT
- Created2017-10-01
- Last commit2026-02-02
- Open issues192
- prerender
- react
- seo
- server-side-rendering
- ssr
- static-site-generator
- vue
- zero-configuration
Services and details
Does SEO work itself
YesFree plan or free tools
Yes
No information yet on keyword research, content optimization, writes content with AI, technical audits, rank tracking, backlinks and link building, local SEO, AI search visibility, free trial, API or MCP server, WordPress plugin, browser extension, built for agencies. The website did not say; check with the vendor.
About the company
- Company stereobooster
- Website: github.com/stereobooster/react-snap
Listing compiled from public sources and the product's own website. Last updated 2026-11-12. Report a correction or request removal. Back to GitHub repos.