Instant SPA interactivity
with pure HTML simplicity.
A production-grade engineering track instructing AI agents to build smooth, hypermedia-driven interfaces with server-rendered partial swaps, inline validation, and zero API boilerplate.
<button hx-post="/cart/add" hx-target="#cart" hx-swap="outerHTML">
<!-- Server returns pure HTML partial -->
8 ms
Swap Time
0 JSON
Parsing
100%
SEO Friendly
Seamless Partial Swaps
Surgically swap targeted DOM fragments in place without full page reloads or jarring white flashes.
Zero API Serialization Boilerplate
The server remains the single source of truth. No JSON mapping, no redundant client-side validation logic.
Vendored Security & CSRF
Locally vendored with zero external CDN risk, automatic CSRF token injection, and deep browser history sync.
WHY BUILD A FULL REST API JUST TO UPDATE A FORM?
Duplicating validation logic across frontend and backend while managing hundreds of REST endpoints creates unnecessary complexity. HTMX returns to web fundamentals.
Heavy SPA & API Duplication
- ✕ Duplicating validation rules across JavaScript frontend and backend.
- ✕ Hundreds of boilerplate REST endpoints just to serialize and map JSON.
- ✕ Complex client-side state libraries trying to keep caches synchronized.
- ✕ Degraded SEO and heavy initial rendering penalty for search crawlers.
The TidyFactor Hypermedia Standard
- ✓ The server renders clean HTML partials with zero intermediate mapping code.
- ✓ Single source of truth: validate on the server and render inline errors instantly.
- ✓ SPA-level fluid user experience powered by plain HTML attributes.
- ✓ 100% SEO compatible out of the box because every response is semantic HTML.
WHAT CAN YOU BUILD WITH TIDYFACTOR HTMX?
Smart interaction patterns transforming server-rendered sites into responsive modern web apps.
Instant Live Search & Filters
Search-as-you-type with debounced inputs and instantaneous result fragment swaps.
Inline Form Validation
On-blur field validation rendering precise inline error feedback directly from server rules.
Real-Time Telemetry & Polling
Declarative polling or Server-Sent Events keeping live metrics updated with zero JS state sync.
Dynamic Modals & Tab Navigation
Load modals and tab content lazily upon user interaction, keeping initial payload minimal.
THE 4 PILLARS OF TIDYFACTOR HTMX
Principles delivering instant UI feedback, bulletproof CSRF security, and clean separation of concerns.
Server-Rendered HTML Partials
01Eliminates client-side state duplication by returning authoritative HTML fragments directly from backend routes.
Morph & Out-of-Band Swaps
02Fine-grained DOM patching with Morphdom and simultaneous multi-region updates via Out-of-Band swaps.
CSRF Security & Visual Indicators
03Built-in request debouncing, duplicate submit prevention, and automatic CSRF header attachment.
Deep History & URL Synchronization
04Seamless back-button support and deep-linkable URLs maintained via hx-push-url without client routers.
HTMX POWERS INTERACTIVITY. PHP RUNS THE SERVER. STYLER CRAFTS UI.
Seamless layer composition: Scaffold backend routes with TidyFactor PHP, add fluid partial swaps via TidyFactor HTMX, and style interfaces with TidyFactor Styler.
terminal
Installation Options & AI Agent Slash Commands
expand_more
Installation command for server-driven HTML partial swaps. Recognized natively by AI coding agents (Antigravity, Claude Code, Cursor, Codex, Windsurf).
Available Slash Commands in AI Agent IDEs:
hx-swap & morph strategies.
Secure forms with CSRF.
Out-of-Band multi updates.
Loading spinners & states.