• Verified
  • Free plan

prerender-node

Listed under GitHub repos

prerender-node is an npm middleware for Node.js and Express sites. It detects crawler requests and returns prerendered HTML from a Prerender service, so JavaScript sites built with Angular, React or Vue can be indexed.

Used for

  • crawler prerendering
  • javascript seo
  • express middleware

What prerender-node does

Prerender Node is an Express middleware for Node.js sites that render their pages with JavaScript. It watches incoming requests, spots the ones coming from crawlers, and asks an external Prerender service for the finished HTML of that URL. The crawler receives static markup instead of a script bundle, so pages built with Angular, React or Vue can be read without the crawler executing any JavaScript.

Setup is one npm install plus a single app.use line in the Express app. A token from a prerender.io account switches the middleware to the hosted service; otherwise it points at a service the operator runs. The README describes hooks for caching, lists for allowing or blocking paths, and overrides for protocol, host and forwarded headers. Local testing needs a Prerender server running alongside the site.

Key features

Crawler request interception
Middleware inspects each request and only diverts those that should receive a prerendered page instead of the app output.
Path whitelist
Whitelist a single URL path or several, comparing the request to the configured list before a render is requested.
Path blacklist
Blacklist a single URL path or several so those routes are never sent to the prerender service.
beforeRender cache hook
Method intended for caching: it returns stored HTML for a URL before the middleware calls the Prerender service.
afterRender cache hook
Method intended for caching: it receives the freshly rendered HTML so the caller can write it to a store.
Protocol and host override
Hard-set the protocol and host used for the render request, useful behind a load balancer or on sites served over both.
Header forwarding
Option to forward headers from the incoming request on to prerender, so the service receives the same context.
Redis caching path
The README states the middleware is ready to be used with Redis behind the caching hooks.
Express version support
Tested against two Express major versions and carries no explicit dependency on either of them.
Own prerender service
Point the middleware at your own prerender server instead of the hosted service at prerender.io.
Token authentication
Set a prerenderToken so render requests go to prerender.io under an account rather than to a self-run server.
Render request options
prerenderServerRequestOptions adds options to the request the middleware sends to the prerender service.

How it works

  1. Install the package with npm and mount it in the Express app with app.use.
  2. The middleware checks the request against its rules to decide if a prerender should happen.
  3. When a request qualifies, the middleware calls the Prerender service with that page URL.
  4. The service returns static HTML, which the middleware sends to the crawler in place of the app output.
  5. A beforeRender hook can serve cached HTML and an afterRender hook can store the result.

Plans and pricing

The middleware is distributed free from npm under the MIT licence; the README shows a token option for a prerender.io account but prints no price for that hosted service.

Integrations and platforms

Works with

  • Express
  • Node.js
  • Redis
  • prerender.io

Available as

  • Web

Repository facts

  • Repositoryprerender/prerender-node
  • LanguageJavaScript
  • Stars922
  • Forks186
  • Created2013-09-27
  • Last commit2026-10-23
  • Open issues41

Services and details

  • Does SEO work itself

    Yes
  • API or MCP server

    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 plan or free tools, free trial, WordPress plugin, browser extension, built for agencies. The website did not say; check with the vendor.

Compare with other SEO tools:

About the company

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.