Gallop WP is a headless WordPress REST API for Next.js

Gallop WP is a headless WordPress API layer built for Next.js. Rather than stitching together several core WordPress REST calls per page, your front end hits a single Gallop endpoint and gets back the post body, SEO block, and site block in one round trip.

REST API

Resolve a URI to a post, SEO, and site block in one call

GET|POST /gallop/v1/post takes a uri and resolves it straight to a post, returning post, seo, and site payloads in a single response. POST /gallop/v1/category does the same for taxonomy archives. Your front-end code stays simple: one fetch, one response, ready to render. No chaining /wp/v2/posts, /wp/v2/media, and taxonomy calls per page.

With Yoast SEO active, the seo block is populated from Yoast’s indexables: canonical, meta description, OpenGraph, robots flags, reading time. Without Yoast, seo is returned as an empty object so clients can branch safely.

A request to /gallop/v1/post returning post, SEO, and site data

Auth

POST /gallop/v1/auth/login calls WordPress’s built-in wp_signon() and sets the standard auth cookies, so a Next.js front end on the same registered domain can make authenticated requests with credentials included. GET /gallop/v1/auth/session reports whether a visitor is logged in, and POST /gallop/v1/auth/logout ends the session. No JWT layer. Cookie auth is intentional.

Brute-force protection is built in: five failed attempts per username + client IP within fifteen minutes return HTTP 429 until the window expires, and successful logins clear the counter. Action hooks (gallop_auth_login_success, gallop_auth_login_failed, gallop_auth_logout) let you wire in logging or notifications.

Cookie-based auth endpoints with built-in rate limiting

Admin

Settings and custom post types, configured from WordPress

Point Gallop at your Next.js production URL and it 301-redirects public WordPress front-end requests to the matching path on your headless host. Admin, REST API, and previews are left untouched. The same screen exposes the Trust proxy IP headers toggle for sites behind Cloudflare or a load balancer.

Register REST-enabled custom post types from the Post Types tab and they’re immediately available through the Gallop namespace. No register_post_type() boilerplate, no developer round trip. Core post types are left alone, and content you create survives a deactivate/uninstall.

Get Gallop WP

Drop the plugin into any WordPress install and replace a stack of core REST calls with a single, page-shaped fetch.

Headless WordPress Blog Template

Winx

About

A modern, AI-built blog and publishing template for writers, journalists, and content creators. Keep WordPress as your editor and authoring backend, then ship a blazing-fast headless Next.js front end that publishes at the speed of thought, outshines the competition, and ranks #1 on Google.

Features

  • 🚀 Next.js 16.2 with App Router
  • ⚛️ React 19 for cutting-edge performance
  • 🎨 Tailwind CSS 4.2 for pixel-perfect design
  • 🔌 Headless WordPress - Keep WordPress as your authoring backend and serve a fast, decoupled Next.js front end
  • ✍️ TSX-powered posts - Articles authored in WordPress and exported as TSX components for full design control
  • 📚 Rich blog archives - Category, tag, author, and year pages built in
  • 🗺️ Auto-generated sitemaps for posts, authors, categories, and tags
  • 🖼️ Image processing with automatic optimization via Sharp
  • 🔍 Built-in search powered by FlexSearch with Algolia Autocomplete
  • 🔦 Lightbox galleries for post images and media
  • 🎞️ Swiper carousels for image galleries and sliders
  • 💬 Share counts powered by Prisma and Vercel KV cache

The technology

Every dependency is battle-tested in production and chosen for stability, performance, and long-term maintainability.

  • Next.js v16.2.4
  • React v19.2.5
  • Tailwind CSS v4.2.2
  • Headless UI v2.2.10
  • Prisma v7.2.0
  • Vercel KV v3.0.0
  • Valtio v2.3.1
  • Swiper v12.1.4
  • Yet Another React Lightbox v3.31.0
  • FlexSearch v0.8.212