Warp

Building a Filament-Style Admin in Go + Inertia React: Architecture & 5 Real-World Lessons

4 min read

In December 2026, Dan Harrin shared a pivotal architectural update on X: the Filament Go and Filament Rust prototypes are built on Inertia React, rather than porting Livewire to Go or Rust.

That single decision validates a shift we have been building toward in production. Over the past week, we built and shipped Asaka — an open-source, Go-native server-driven admin panel for Laravel Go + PostgreSQL / MySQL / SQLite + Inertia v3 + React — and ran it live against 10,000 PostgreSQL rows in a single ~55 MB binary.

Moving a server-driven admin panel from Livewire to Inertia React changes the rules in subtle, practical ways. Here is the architecture that worked cleanly, plus the 5 real-world lessons we hit along the way.


The Core Architecture: Schema JSON + Thin Inertia Shell + Drop-in React

Instead of re-implementing Livewire's server-side DOM diffing in Go or Rust, a server-driven admin on Inertia React splits cleanly into three layers:

  1. Server Layer (Go / Rust / PHP): Declares resources, columns, filters, 20 form fields, policies, and actions as plain structs. On each request, it compiles those declarations into a typed Schema JSON + paginated records + capabilities (canCreate, canEdit, canDelete).
  2. Inertia React Shell: Renders tables, filters, forms, infolists, modals, and relation managers generically from that Schema JSON. You write zero per-resource React for 90% of CRUD screens.
  3. Drop-in React + WebAssembly Components: Whenever a business screen outgrows standard CRUD (spreadsheets, pivot tables, shift rosters, schedulers, floor plans), you mount a framework-agnostic React (+ optional Rust .wasm) component via a 10-line registry (registerAsakaField / registerAsakaWidget) or custom page.

5 Real-World Lessons Building It in Production

1. Keep Action Modals Strictly Local in React

In Livewire, opening a modal, toggling a checkbox inside it, and closing it all trigger server round-trips. In Inertia React, never round-trip to open or edit a modal.

Keep modal open/close state and draft form values strictly in React state, and send only the final submit to the server (POST /admin/{slug}/actions/{action}). Every click feels instant (0 ms UI latency), and your Go/Rust server only handles real state mutations.

2. Scope Inertia Partial Reloads Strictly (Especially Around 422 Validation)

When a background mutation or inline cell edit succeeds, a full page reload resets open drawers, active filter popovers, or unsaved inputs.

Use Inertia's only: ['records', 'summary'] partial reloads strictly scoped to table/widget keys. On HTTP 422 validation errors, return structured fieldErrors directly to the active modal or inline cell without disturbing the rest of the page.

3. Evaluate Dependent Fields Client-Side, Validate Server-Side

Business forms constantly need conditional visibility (visibleWhen) and live computed totals (like line-item subtotals inside a Repeater).

Shipping lightweight visibility/expression rules inside the Schema JSON lets React react in 0 ms on every keystroke, while the Go backend remains the single source of truth on submit (plus an explicit /live endpoint only when server-side DB lookups are genuinely needed).

4. Replace Polling with Native Go / Rust SSE Streams

Livewire's wire:poll is simple, but polling every few seconds wastes CPU and DB connections at scale.

Go and Rust shine at long-lived HTTP streams. Serving notifications and background job progress over native Server-Sent Events (EventSource) with context.Context cancellation gives instant live toasts, bell drawers, and cancellable batch jobs with near-zero memory overhead — no Redis or WebSocket broker required.

5. The Real Superpower: One Shared UI Ecosystem Across PHP, Go, and Rust

This is the biggest strategic consequence of Filament Go and Filament Rust adopting Inertia React:

  • Previously, Filament PHP (Livewire + Alpine) and React apps lived in completely separate worlds.
  • When Filament Go, Filament Rust, Asaka, and Laravel PHP (Inertia React) all share React + TypeScript on the frontend, a single framework-agnostic React + WebAssembly component (such as a 20 KB Rust .wasm pivot aggregator, canvas spreadsheet, or shift roster) works across all three backend languages with nothing more than a thin JSON adapter.

Go-Native Superpowers You Get for Free

Because Asaka is built natively for Go rather than porting PHP abstractions, we also shipped Go-first operational capabilities in v0.12.0:

  • asaka.RuntimeWidget() & panel.DBPoolWidget(): Live Heap RAM, goroutines, GC pauses, and sql.DBStats at 0 ms SQL cost.
  • Built-in /health (JSON), /metrics (Prometheus), and Server-Timing headers: Zero external APM agents required.
  • In-Process Cancellable Jobs (panel.Jobs()): Goroutine background jobs with SSE progress and one-click context.Context cancellation (no Redis/Horizon needed on a $5 VPS).
  • O(1) Streaming CSV & .sql.gz Backups: Direct web.Stream + compress/gzip streaming with constant memory.
  • One-Command SQLite Admin: asaka serve --sqlite=./app.db launches an instant SQLite admin UI in one command.

Try It Yourself

More from the blog

6-Way AI Coding Showdown: Framework vs No-Framework Across PHP, Go, and Rust (Codex Controlled Benchmark)

Do you still need a web framework in the AI coding era? We gave the exact same Invoice API spec to Codex (gpt-6-astra, memory-zero isolated runs) across Laravel PHP (+Boost), Pure PHP, Laravel Go v0.2.0, Pure Go, Laravel Rust 0.2.0, and Pure Rust — and verified every app with an external 12-point black-box HTTP test suite.

Reading 100 Open PRs on Laravel for Go — And Submitting Our First Performance PR (#421)

After benchmarking Laravel Go v0.2.0, we profiled its validation hot path, submitted PR #421 to laravel/go-framework, and read through 100 open PRs. Here is what stood out — from @mattn's 3-line hot-path fixes to Blade, Wayfinder, and native OTLP.

See who is free next week and book them, in Filament

An agency manager needs 40 hours for a project that starts Monday. The planner shows only the people who have the time, the booking is a drag, and the overbooked project manager gets a fix in two clicks.

Filament + AI coding tips, by email

How to fit Warp plugins into your own app and pair them with Claude Code or Cursor: prompts that work, mistakes AI makes, real examples. Once or twice a month. Unsubscribe anytime.

Ask us anything about Warp

No email address or sign-up needed.

We read every question and answer here on the site, usually within a day. Others see your question after we have checked it.

What's stopping you from using Warp's plugins?

One question. We read every answer, and it decides what we build next. It is not shown on the site.

What's stopping you from using Warp's plugins?