Skip to main content
Hypermedia-Driven Applications with Rust
0%

Hypermedia-Driven Applications with Rust

A practical guide for humans and AI coding agents

Start reading

Axum + Maud + HTMX

A Rust-native stack: Axum for routing, Maud for type-safe HTML, HTMX for interactivity. No JavaScript frameworks required.

Hypermedia-driven

HTML is the API. The server returns rendered markup, and the browser handles the rest. Simple architecture, fewer moving parts.

AI-agent friendly

Written to work as context for AI coding agents. Every section is self-contained, precise, and ready to feed into your workflow.

What's inside

Getting Started

  • Development Environment
  • Project Structure

Architecture

  • Why Hypermedia-Driven Architecture
  • The Web Platform Has Caught Up
  • SPA vs HDA: A Side-by-Side Comparison
  • When to Use HDA (and When Not To)

Core Stack

  • Web Server with Axum
  • HTML Templating with Maud
  • Interactivity with HTMX
  • CSS Without Frameworks

Data

  • Database with PostgreSQL and SQLx
  • Database Migrations
  • Search

Auth & Security

  • Authentication
  • Authorization
  • Web Application Security

Forms & Errors

  • Form Handling and Validation
  • Error Handling

Integrations

  • Server-Sent Events and Real-Time Updates
  • HTTP Client and External APIs
  • Background Jobs and Durable Execution with Restate
  • AI and LLM Integration

Infrastructure

  • File Storage
  • Email
  • Configuration and Secrets
  • Observability

Operations

  • Testing
  • Continuous Integration and Delivery
  • Deployment
  • Web Application Performance

Practices

  • Rust Best Practices for Web Development
  • Building with AI Coding Agents

Search documentation

Type to search. Use arrow keys to navigate results, Enter to select, Escape to close.

/
↑↓ Navigate ↵ Select esc Close
Powered by elasticlunr