agentleFS
DioxusLabsDioxusLabs/dioxus/AGENTS.md

dioxus

AGENTS.md40k starsChanged 9 months agoApache-2.0View on GitHub

Dioxus is a cross-platform UI framework for Rust, similar to React. It compiles to web (WASM), desktop (webview), mobile (iOS/Android), and native (GPU-rendered). For deeper understanding, see notes/architecture/: Component definition:

Files
AGENTS.md

Dioxus Agent Guide

Dioxus is a cross-platform UI framework for Rust, similar to React. It compiles to web (WASM), desktop (webview), mobile (iOS/Android), and native (GPU-rendered).

Quick Overview

  • Language: Rust (stable toolchain)
  • UI Model: React-like with VirtualDOM, components, hooks, signals
  • Syntax: JSX-like rsx! macro for declaring UI
  • Platforms: Web, Desktop (Windows/macOS/Linux), Mobile, Native, LiveView (server-rendered)

Workspace Structure

packages/
├── dioxus/           # Main re-export crate users depend on
├── core/             # VirtualDOM, components, diffing, scheduling
├── rsx/              # RSX macro parsing and code generation
├── rsx-hotreload/    # Template diffing for hot-reload
├── signals/          # Reactive state (Signal, Memo, Store)
├── hooks/            # Built-in hooks (use_signal, use_effect, etc.)
├── router/           # Type-safe routing with #[derive(Routable)]
├── fullstack/        # SSR, hydration, #[server] functions
├── cli/              # `dx` build tool, dev server, bundling
├── web/              # WASM renderer
├── desktop/          # Wry/Tao webview renderer
├── native/           # Blitz/Vello GPU renderer
├── liveview/         # WebSocket streaming renderer
├── manganis/         # asset!() macro for compile-time assets
├── subsecond/        # Hot-patching system (jump table indirection)
├── devtools/         # Dev server communication protocol
├── interpreter/      # Sledgehammer JS for DOM mutations
└── wasm-split/       # WASM code splitting

Architecture Documentation

For deeper understanding, see notes/architecture/:

When working on...Read...
VirtualDOM, components, diffing, events01-CORE.md
CLI, build system, bundling, dev server02-CLI.md
RSX macro, parsing, formatting03-RSX.md
Signals, state management, reactivity04-SIGNALS.md
Server functions, SSR, hydration05-FULLSTACK.md
Web/desktop/native/liveview renderers06-RENDERERS.md
Hot-reload, hot-patching, devtools07-HOTRELOAD.md
Asset macro, manganis, const serialization08-ASSETS.md
Router, navigation, nested routes09-ROUTER.md
WASM code splitting10-WASM-SPLIT.md

Key Concepts

  • VirtualDOM: Tree of VNode with templates, dynamic nodes, and attributes
  • Signals: Copy-able reactive primitives via generational-box (generation-based validity)
  • WriteMutations: Trait that renderers implement to apply DOM changes
  • RSX: Proc macro that compiles JSX-like syntax to VNode construction
  • Server Functions: #[server] macro generates client RPC stubs and server handlers
  • Subsecond: Hot-patches Rust code via jump table indirection (no memory modification)
  • Manganis: asset!("/main.css") macro for including assets by embedding data via linker symbols

Common Patterns

Component definition:

#[component]
fn MyComponent(name: String) -> Element {
    let mut count = use_signal(|| 0);
    rsx! {
        button { onclick: move |_| count += 1, "{name}: {count}" }
    }
}

Notes for Agents

  1. The dioxus crate re-exports from other crates - most implementation is in packages/vdom, packages/signals, etc.
  2. RSX macro expansion happens in packages/rsx - look there for syntax questions
  3. Each renderer implements WriteMutations differently - see 06-RENDERERS.md
  4. Hot-reload has two systems: RSX template diffing (fast) and Subsecond code patching (full Rust)
  5. Assets use link sections and binary patching - the asset!() macro creates symbols the CLI processes

Download now (ZIP)

Trending

Less talk lately.about the whole repository

Dec 2025: 6 mentionsJan 2026: 4 mentionsFeb 2026: 1 mentionMar 2026: 2 mentionsApr 2026: 4 mentionsMay 2026: 1 mentionJun 2026: 2 mentionsJul 2026: 5 mentionsAug 2026: 3 mentionsSep 2026: 3 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the DioxusLabs/dioxus repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about DioxusLabs/dioxus

The biggest 5 of 114 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 114

Talked about on GitHub, Bluesky, YouTube, Hacker News, the web and Stack Overflow (114 times).

On GitHub · 46

41 more on GitHub

On Bluesky · 43

38 more on Bluesky

On YouTube · 14

9 more on YouTube

On the web · 2

On Stack Overflow · 1

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.