{"id":13835866,"url":"https://github.com/wishawa/async_ui","last_synced_at":"2025-04-13T15:49:28.563Z","repository":{"id":60758058,"uuid":"472235915","full_name":"wishawa/async_ui","owner":"wishawa","description":"Lifetime-Friendly, Component-Based, Retained-Mode UI Powered by Async Rust","archived":false,"fork":false,"pushed_at":"2025-01-04T01:20:57.000Z","size":3132,"stargazers_count":557,"open_issues_count":10,"forks_count":12,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-04-06T13:01:33.790Z","etag":null,"topics":["async","rust","ui"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wishawa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-21T07:51:46.000Z","updated_at":"2025-04-04T01:45:42.000Z","dependencies_parsed_at":"2024-01-13T16:48:04.811Z","dependency_job_id":"b3f3069d-413c-4fb4-bb4f-c956ee4c43d6","html_url":"https://github.com/wishawa/async_ui","commit_stats":{"total_commits":283,"total_committers":4,"mean_commits":70.75,"dds":"0.010600706713780883","last_synced_commit":"e1113449dec39cbe9cbc7f47b0c5fc350ba421ee"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wishawa%2Fasync_ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wishawa%2Fasync_ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wishawa%2Fasync_ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wishawa%2Fasync_ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wishawa","download_url":"https://codeload.github.com/wishawa/async_ui/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248741147,"owners_count":21154249,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async","rust","ui"],"created_at":"2024-08-04T15:00:21.362Z","updated_at":"2025-04-13T15:49:28.530Z","avatar_url":"https://github.com/wishawa.png","language":"Rust","funding_links":[],"categories":["UI Framework"],"sub_categories":["Native"],"readme":"# Async UI\n[\u003cimg alt=\"crates.io\" src=\"https://img.shields.io/crates/v/async_ui_web?style=for-the-badge\" height=\"20\"\u003e](https://crates.io/crates/async_ui_web)\n[\u003cimg alt=\"crates.io\" src=\"https://img.shields.io/docsrs/async_ui_web?style=for-the-badge\" height=\"20\"\u003e](https://docs.rs/async_ui_web)\n\n\nA web UI framework where Futures are components.\n\n## Overview (for the User)\n\nAsync UI is...\n*   **Easy**; if you know what Futures are and how to join them, you know 90% of Async UI already.\n*   **Just async Rust**; no DSL or opaque runtime - leverage existing Async Rust patterns and ecosystem.\n*   **Flexible**; you get direct access to the entire Web API (through [web_sys](https://docs.rs/web-sys/latest/web_sys/)).\n\n[See hosted demos](https://wishawa.github.io/async_ui/demos/index.html)\n\n[Get Started Now!](https://wishawa.github.io/async_ui/book/index.html)\n\n## Overview (for the UI Framework Connoisseur)\n*   **Async as UI Runtime**; the app is one long-running Future.\n*   **Components are Futures**; composition is done by nesting and joining Futures.\n*   **UI as Side-Effect**; running a Future displays its UI, dropping it removes that UI.\n\n[Read more about the framework](https://wishawa.github.io/async_ui/book/in-depth/framework-design.html)\n\n## Example Code: Hello World\n```rust\nasync fn hello_world() {\n    \"Hello World\".render().await;\n}\n```\n\n## Example Code: Async Control Flow\n```rust\nasync fn app() {\n    let resource = loading_indicator(\n        fetch_resource()\n    ).await;\n    show_resource(\u0026resource).await;\n}\n```\n\n## Example Code: Counter\n```rust\nasync fn counter() {\n    let mut count = 0;\n    let value_text = Text::new();\n    let incr_button = Button::new();\n    join((\n        value_text.render(),\n        incr_button.render(\"Increment\".render()),\n        async {\n            loop {\n                value_text.set_data(\u0026count.to_string());\n                incr_button.until_click().await;\n                count += 1;\n            }\n        },\n    ))\n    .await;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwishawa%2Fasync_ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwishawa%2Fasync_ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwishawa%2Fasync_ui/lists"}