Axum and Maud vs. React for a Rust SaaS
Choose Axum and Maud or a React frontend for your Rust SaaS by testing one paid workflow: validation, refresh, redirects, and unsaved state.
Start with Axum and Maud if your first paid workflow is mostly links, forms and views of data stored on the server. Keep or choose a React frontend if the workflow depends on a substantial amount of unsaved state in the browser. If only one screen needs that state, try making that screen interactive before turning the whole product into a single-page app.
Axum is the HTTP layer in either case. This is a choice between returning HTML from Rust and having a client application render the workflow against an API. It isn't a claim that React can only render on the client, or that a server-rendered app can't use JavaScript.
Before buying a Rust starter, try the same paid workflow in each architecture you're considering. A dashboard screenshot tells you little. A rejected save, a refresh and an interrupted session will tell you which parts of the starter you can actually keep.
Compare who owns the screen
| Approach | Where the screen comes from | Where it fits | Work to budget |
|---|---|---|---|
| Axum + Maud pages | Axum returns a full HTML document rendered by Maud | Settings, reports, search and forms where a navigation is acceptable | Routes, accessible error pages and clear handling of redirects |
| Server pages with an enhanced fragment or widget | The server still renders the page; a specific update swaps HTML or runs in a widget | Live filters, dependent fields or one tightly bounded interactive screen | Focus, history, pending requests and a fallback where required |
| Axum API + React client | React composes the workflow in the browser; Axum returns data and accepts writes | Editors, multi-panel tools and flows with coordinated drafts or undo | API contracts, client routing, state reconciliation and end-to-end tests |
Maud's Axum integration lets a handler return rendered markup as a response. It doesn't prescribe how to model a product or give you a browser state system. A React client can keep a draft even when different components need to edit it. React's state guidance is useful here: avoid storing the same fact in two places and then having to keep both copies in sync. Neither approach removes the need for a server-side access check when you save.
Choose based on the lifecycle of the data, not the number of controls on the screen. A report with a dozen filters may work well as a URL and a new server response. A three-field editor might merit client state if changing one field must immediately update a live preview and the user must be able to undo the last five edits without saving.
Run the paid-workflow drill before you buy
Take the hardest common task a paying customer must finish. For a reporting SaaS, try editing a saved report: choose a date range and grouping, preview the result, save it, then reopen the saved view from a direct link. A login page or a static dashboard is too easy a test.
Write down the state owners before implementing anything. In this example, the database owns the last saved definition, the URL can own committed filters that should be shareable, and the browser owns any edits that haven't been saved. Don't use the URL for sensitive values. Decide whether a lost draft is acceptable before you test refresh. State restored after refresh is a separate requirement from state kept while switching tabs within a screen.
Run the following as an acceptance worksheet. The report is hypothetical; these are checks for your own prototype, not results from a ShipRust benchmark.
| Trial | Expected behavior | What a failure tells you |
|---|---|---|
| Open the saved report in a fresh tab | The URL loads the same authorized report and committed filters without first visiting the dashboard. | A link depends on state kept only in memory or a prior navigation. |
| Save an invalid date range the browser can't reject on its own | The server rejects it, identifies the problem, retains safe input and leaves the stored report unchanged. | The screen lost the editor's work, or the server did not enforce the rule. |
| Save a corrected report, then refresh | The saved definition stays visible and refreshing does not send another write. | The save and the page being refreshed are not separated, or the client and stored state disagree. |
| Edit the report, then trigger a preview or move between editor panels | Unsaved values persist or reset exactly as specified. A late preview must not overwrite a newer one. | The draft or newest request has no clear owner. |
| Try to save after the session expires in your test environment | The app does not write; the UI explains the next step without showing a false success. | The happy path concealed an important recovery flow. |
For a full-page implementation, a successful POST can return a 303 See Other to the saved report's GET URL. A redirect prevents refresh of the result page from replaying that POST; it doesn't prevent double-clicks or retries from submitting two writes. Axum's Redirect::to issues this redirect. On rejection, return the form with an error instead of silently redirecting to a blank form. Try the invalid submission with a keyboard, not just by calling the handler: can you find the error and get back to the corresponding field? The W3C forms guidance shows how to connect the error to what the user needs to fix.
For the failed-save trials, record both the visible outcome and whether the database row changed. For a React client, reload from a fresh tab after saving as well; a locally updated component isn't evidence that the write persisted. In either prototype, record the revision and configuration and keep the same fixtures and expected outcomes.
If you use a coding agent, give it the expected outcomes before it picks the implementation. Ask it to return the failing trial, the code that owns that state and what actually ran. “The page renders” is not an acceptance report.
Where the decision usually turns
Use full pages when a navigation doesn't interrupt the task. If a filter change produces a new URL and the customer can use Back, refresh and share the result, a trip to the server isn't inherently a problem. Check it with the data and network conditions you expect rather than assuming it is too slow or fast enough. If the page already does the job, there is no reason to start with a parallel JSON interface just to display the same fields.
Enhance one part of a page when the page is sound but one interaction is awkward. For example, preview a report without replacing the filter inputs. htmx documents how it decides which responses to swap. Don't assume a 422 form response that works on ordinary navigation will swap in by default. Explicitly test the fragment's error handling, what receives focus and what Back restores. If one GET URL serves both full HTML and a fragment based on HX-Request, follow htmx's caching guidance so caches distinguish them. htmx is an example of an enhancement you can add, not a requirement of Axum or Maud.
Keep a client app when the draft is the product. Think of a report designer with drag-to-reorder fields, undo and three previews driven by the same unsaved model. If a full-page prototype keeps rebuilding that model across interactions, try a React widget or client route. If your team already has a working React editor and a tested API contract, keeping them may be cheaper than porting the editor. Passing the drill counts for more than getting the whole stack into one language.
Record the cheapest approach that passed every requirement, not the one that passed the most rows. For example: “Pages pass saved-view and rejected-save checks. Preview must preserve draft fields without a navigation. Try one fragment before adding a separate client.” If the fragment fails only because of focus handling, fix and retest that behavior. If it fails because several panels need one unsaved model, try moving that model into a client component.
Where ShipRust fits
We build ShipRust. The generated app starts with Axum, Maud, plain CSS and Postgres. It doesn't require a JavaScript build step, but that doesn't mean it contains no JavaScript or that every optional feature works without it. It isn't a React starter. The selectable API and other generation options are a starting point; they do not provide your report endpoints or a typed frontend contract for them. The optional customer billing integration is also separate from the website checkout used to buy ShipRust.
If the full-page prototype passes, compare the work you would keep from a starter with the work you'd build: session-backed accounts, rendering and deployment setup versus your domain model, screens and permissions. Building directly on Axum is reasonable if you only need a narrow API or already have those pieces. If accounts are part of your evaluation, the generated app can log email verification codes for local HTTP development with the Mailgun settings blank; configure production email separately. See the account implementation walkthrough for the flow.
If the drill points to pages plus one widget, keep the server-rendered flow and budget the widget explicitly. If it points to a client-first application and you'd be replacing most of the supplied UI, prefer an API-first base or keep your working frontend. For an HTML-first fit, watch a generated project reach its first local run, then check current pricing before deciding. The walkthrough demonstrates setup, not a successful run of the report drill.
Product details and references reviewed November 19, 2026.