RenderKit is a premium Gutenberg block system built with React, TypeScript, and Tailwind CSS. It focuses on beautiful, interactive blocks with a clean editor experience and reliable frontend rendering.
RenderKit brings modern development practices to WordPress block development:
- React & TypeScript: Type-safe, component-based block development.
- Tailwind CSS: Utility-first styling with a centralized design system.
- Server-Side Rendering (SSR): Blocks are rendered via renderKit-Relay, a local sidecar service, ensuring SEO-friendly static HTML without client-side JS dependency for initial paint.
- Performance Monitoring: Built-in stack with Prometheus + Grafana for tracking SSR latency, throughput, and errors.
- Optimizations: Automatic WebP image generation, font performance (swap/preconnect), and optimized hydration engine.
- Hot Reloading: Fast development cycle.
- Strict Typing: Shared types between editor and frontend.
- Relay Service: Docker-based safe execution environment (WordPress communicates via HTTP to
127.0.0.1).
RenderKit includes a growing suite of premium blocks:
- Hero Block: Multiple variants (Standard, Minimal, Full-height) with scroll animations.
- Text Block (
.rk-prose): Advanced typography management. - Text-Image: Flexible layouts with focal point control and object-fit support.
- Footer: Flexible content areas with menu integration.
- Product Grid: Bento-style grid with hover effects and buy actions.
- Cart: Session-based cart management.
- Swiper: specialized slider interactions.
- Premium Navigation: Backdrop blur, mobile drawer, and integrated cart.
- FAQ: SSR-safe accordion UI.
- Contact Form: ReCAPTCHA v3 integration, privacy checks, and status messaging.
- Cookie Solution: Complete consent system with Banner, Gate, and Settings management.
- WordPress 6.0+
- PHP 8.0+
- Node.js (for local development and builds)
- Docker (for Relay service)
- Copy this folder to
wp-content/plugins/renderkit. - Activate "renderKit" in the WordPress admin.
The Relay service is required for rendering blocks.
- Start the relay service:
cd relay ./renderkit-relay up - Configure WordPress:
- Go to Settings → renderKit-Relay in the WordPress admin.
- Ensure the URL matches your local relay (default:
http://127.0.0.1:3000). - Copy/Paste the Secret Key found in
relay/.envor generated during setup.
Note: The Relay binds to 127.0.0.1 by default, so no external firewall ports need to be opened.
Install dependencies:
npm installRun development server (compiles TSX/CSS and watches for changes):
npm run devNote: This also starts the monitoring stack if configured.
Build for production:
npm run buildsrc/— Source code (React components, blocks, styles).blocks/— Individual block definitions.
build/— Compiled assets.includes/— PHP backend logic.relay/— renderKit-Relay service (SSR).renderkit.php— Main plugin file.
- Relay Connection: If WordPress cannot connect to the Relay, check if the Docker container is running (
docker ps) and if the port matches the settings in WordPress. - Styling Issues: Ensure
npm run devornpm run buildhas been run to generate the latest CSS.
