Skip to content

prerex/prerex

Repository files navigation

Prerex

Visible to Google. Cited by ChatGPT.

Your content deserves to be found by Google, cited by ChatGPT, and shared perfectly on social media. Prerex makes it happen — zero config.

🚀 First 250 users get Pro free for 6 months → Get Started Free

Website Issues WordPress 5.8+ PHP 7.4+


AI + SEO + Social · 29+ bots · ~200ms · Zero config · Any theme & page builder


Why Prerex?

25% of Google queries now trigger AI Overviews. If ChatGPT can't read your site, it will never recommend you. If Google can't see your JavaScript-rendered content, you're losing rankings.

Modern sites rely on JavaScript for everything — page builders, lazy loading, WooCommerce, dynamic widgets. But AI crawlers like GPTBot and ClaudeBot don't execute JavaScript at all. Google does, but with delays of hours to weeks.

Prerex fixes this. When any bot visits your site, it gets a fully-rendered version — every image loaded, every script executed, all content visible. Your visitors notice nothing. Bots see everything. AI cites you.

How It Works

How Prerex works

Why It Matters

Impact
AI visibility GPTBot, ClaudeBot, PerplexityBot see your complete content — get cited by ChatGPT
Full content indexing Google sees your complete pages, not empty JavaScript shells
Better Core Web Vitals Clean HTML (~80% smaller) = better performance signals = higher rankings
Crawl budget optimization Lighter pages = Google crawls more of your site in the same time
Perfect social previews Facebook, LinkedIn, WhatsApp show your real content, not a blank page
Zero impact on visitors Human visitors experience no difference whatsoever

Prerex doesn't do SEO for you. Prerex makes sure the SEO you've already done actually works — for Google, for ChatGPT, for every bot that matters.

Features

What it does
Zero config Install, activate, done. No server setup, no code changes.
Rex Sense Adaptive rendering — waits for your content to fully load before capturing.
29+ bots Google, Bing, Facebook, Twitter, LinkedIn, Pinterest, GPTBot, ClaudeBot, and more.
DNS verification Confirms bots are genuine. Blocks spoofed user-agents.
HTML cleanup Strips unnecessary scripts and styles — pages up to 80% lighter.
Cache compatible Works alongside WP Super Cache, WP Rocket, W3 Total Cache, LiteSpeed — no conflicts.
Social previews Facebook, Twitter, LinkedIn see your real content and images.
AI crawlers GPTBot, ClaudeBot, PerplexityBot get your complete content.
Works with everything Elementor, Divi, WPBakery, Bricks, WooCommerce, multisite, any theme.

Quick Start

WordPress

  1. Download prerex-wp.zip from the latest release
  2. In WordPress admin: Plugins > Add New > Upload Plugin
  3. Upload the ZIP, activate, done. No API keys, no configuration.

Next.js

npm install @prerex/next
// middleware.ts
import { createPrerexMiddleware } from '@prerex/next'
export default createPrerexMiddleware()

Set PREREX_API_KEY in your .env — done.

Nuxt

npm install @prerex/nuxt
// nuxt.config.ts
export default defineNuxtConfig({
  modules: ['@prerex/nuxt'],
})

Express / Node.js

npm install @prerex/express
import express from 'express'
import { prerex } from '@prerex/express'
const app = express()
app.use(prerex())

Nginx (any SPA)

Copy the config snippets from nginx/ into your Nginx setup:

# In http {} block:
include /path/to/prerex-maps.conf;

# In server {} block:
set $prerex_api_key "YOUR_API_KEY";
include /path/to/prerex-server.conf;

All integrations require a free account at prerex.io.

Plans

Free Pro
Price Free forever EUR 19.99/mo or EUR 199/yr
Renders 5,000/month 100,000/month
Sites 1 Up to 50
SEO bots (Google, Bing) Yes Yes
Social bots (Facebook, Twitter, LinkedIn) Yes
AI bots (GPTBot, ClaudeBot) Yes
Rex Sense Yes
HTML cleanup Yes
Custom bot policy Yes
Cache TTL 12h 48h

🚀 First 250 users get Pro free for 6 months → Start for free

Requirements

  • WordPress 5.8+
  • PHP 7.4+

FAQ

WordPress already renders HTML. Why do I need this?
WordPress generates server-side HTML, but modern sites are far from "just HTML." Page builders inject heavy JavaScript, lazy loading hides content, WooCommerce loads prices via API calls. The result: what Google sees is NOT what your visitors see.
Doesn't Google render JavaScript?
Yes, but it's delayed (hours to weeks), has a limited budget (not all pages get rendered), and isn't perfect with complex sites. Other bots — Bing, Facebook, LinkedIn, AI crawlers — mostly don't render JavaScript at all.
Does it slow down my site?
No. Prerex only activates for bots — never for human visitors. Bot requests are served from cache in ~200ms.
Does it work with my cache plugin?
Yes. Prerex works alongside WP Super Cache, WP Rocket, W3 Total Cache, LiteSpeed Cache, and any other cache plugin. It automatically installs a must-use plugin that bypasses the cache for bots only.
What data does Prerex collect?
Only what's needed to render pages: URLs visited by bots, bot user-agents, and bot IPs (for DNS verification). No personal visitor data, no analytics, no tracking. Privacy Policy →
How is this different from Prerender.io?
Prerex is WordPress-specific: zero config, built-in bot detection with DNS verification, automatic cache bypass, deep WordPress hooks. Prerender.io is a generic service that requires server configuration and has no WordPress integration.
Can ChatGPT see my site with Prerex?
With Prerex Pro, yes. GPTBot, ClaudeBot, and PerplexityBot receive fully rendered HTML of your pages. On the Free plan, AI crawler visits are logged but not served — you can see how often AI crawlers visit and upgrade when ready.

Under the Hood

Built by engineers, not marketers.

  • Cloud rendering engine with sub-second response times — pages served in ~200ms from edge cache
  • DNS-verified bot detection — reverse + forward DNS lookup confirms every bot is genuine. No spoofing gets through.
  • Adaptive wait technology (Rex Sense) — captures content when it's truly ready, not on a fixed timer. Handles lazy-loaded images, AJAX calls, and deferred scripts.
  • Three-tier network isolation — the rendering sandbox never touches your data. Separate networks for public traffic, internal services, and database layer.
  • SSRF protection — URL validation blocks private IPs, DNS rebinding, octal notation, and internal hostnames. Rendering can't be weaponized.
  • Every input validated — all API endpoints enforce strict schema validation. Every user-submitted regex checked for catastrophic backtracking (ReDoS).
  • Credentials hashed at rest — bcrypt for passwords and API keys, SHA-256 for verification codes. Nothing stored in plaintext.
  • Revocable sessions — JWT tokens can be invalidated instantly on logout or password change. No stale sessions.
  • Rate limiting everywhere — login, registration, rendering, webhooks. Multi-layer: application-level per key, infrastructure-level per IP.
  • HTML cleanup pipeline — strips scripts, styles, event handlers, and tracking pixels. Preserves JSON-LD, Open Graph, images, and semantic structure. Pages up to 80% lighter.
  • Smart cache integration — coexists with WP Super Cache, WP Rocket, W3 Total Cache, LiteSpeed, and any object cache. Ensures bots always get fresh rendered content without disrupting your existing cache setup.
  • 154 automated tests, zero tolerance for regressions

We don't ship features. We ship guarantees.

Bot Coverage

Prerex detects and serves optimized content to 29+ bot families across 4 categories:

Category Bots Free Pro
SEO Googlebot, Bingbot, Yandex, Baidu, DuckDuckBot, Sogou, Naver, Seznam, and more Yes Yes
Social Facebook, Twitter/X, LinkedIn, Pinterest, Telegram, WhatsApp, Discord, Slack Yes
AI OAI-SearchBot, GPTBot (OpenAI), Claude-SearchBot, ClaudeBot (Anthropic), PerplexityBot, Google-Extended, Cohere, Meta AI Yes
QA Lighthouse, PageSpeed Insights, GTmetrix, Pingdom Yes

Every bot is verified using reverse + forward DNS lookup — not just user-agent matching. This means:

  • crawl-66-249-66-1.googlebot.com → Verified Google bot → Served
  • fake-googlebot.com → DNS mismatch → Blocked

Performance

Metric Value
Cache hit response ~200ms
Fresh render 2-8s (depending on page complexity)
HTML size reduction Up to 80%
Bot detection overhead < 1ms
Cache TTL (Free) 12 hours
Cache TTL (Pro) 48 hours

Compatibility

Tested and verified with:

Page Builders Cache Plugins eCommerce Other
Elementor WP Super Cache WooCommerce Multisite
Divi WP Rocket Easy Digital Downloads WPML
WPBakery W3 Total Cache Polylang
Bricks LiteSpeed Cache Yoast SEO
Beaver Builder Cloudflare Rank Math
Oxygen Fastly

Support

Security

Found a vulnerability? Do not open a public issue. Email [email protected]. See SECURITY.md for details.

License

GPL-2.0 — see LICENSE.

About

Smart prerendering for WordPress — make your content visible to search engines, social bots, and AI crawlers. Zero config. 29+ bots. ~200ms.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages