{"id":13648743,"url":"https://github.com/yewstack/facade","last_synced_at":"2025-09-03T10:32:17.431Z","repository":{"id":57627213,"uuid":"196782313","full_name":"yewstack/facade","owner":"yewstack","description":"Facade Framework - autogenerated embedded live dashboards for Rust apps","archived":false,"fork":false,"pushed_at":"2019-09-25T01:16:21.000Z","size":195,"stargazers_count":104,"open_issues_count":6,"forks_count":8,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-08-31T16:40:31.557Z","etag":null,"topics":["autogenerated","dashboards","interactive","livestream","rust","ui","wasm","websocket","yew"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yewstack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-14T01:44:52.000Z","updated_at":"2025-07-19T20:43:00.000Z","dependencies_parsed_at":"2022-08-23T14:21:25.394Z","dependency_job_id":null,"html_url":"https://github.com/yewstack/facade","commit_stats":null,"previous_names":["deniskolodin/facade"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yewstack/facade","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yewstack%2Ffacade","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yewstack%2Ffacade/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yewstack%2Ffacade/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yewstack%2Ffacade/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yewstack","download_url":"https://codeload.github.com/yewstack/facade/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yewstack%2Ffacade/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273430350,"owners_count":25104479,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["autogenerated","dashboards","interactive","livestream","rust","ui","wasm","websocket","yew"],"created_at":"2024-08-02T01:04:30.118Z","updated_at":"2025-09-03T10:32:17.082Z","avatar_url":"https://github.com/yewstack.png","language":"Rust","readme":"# Facade\n\n**Facade** is a framework to rapidly add web-UI to any Rust program. It let enrich your console or server app with an awesome UI just in a matter of seconds.\n\n**Facade** fuses web-server and WASM-based web-app into Rust program. No external files. No external dependencies. Just your binary.\n\nTo achieve that effect **Facade** uses [Yew](https://github.com/DenisKolodin/yew) framework to build a universal UI and use WebSocket connection to interact with your app that supply live updates to UI that renders them reactively.\n\n## Vuetify relations\n\nWe reuse CSS components' styles from Vuetify project: https://github.com/vuetifyjs/vuetify\n\nYou can read the license of Vuetify here: https://github.com/vuetifyjs/vuetify/blob/master/LICENSE.md\n\n## Use-cases\n\nUses-cases of this framework are unlimited and include but are not limited to the following cases\n*(checkbox list used to show layouts that implemented to make these cases possible)*:\n\n- [x] Dashboards\n- [ ] Admin panels for server\n- [ ] Installation wizards\n- [ ] Logs explorers\n- [ ] Business-intelligence panels\n- [ ] Swagger-compatible API playgrounds\n- [ ] Blockchain explorers\n- [ ] Presentations *(yeah, you can create presentations for Rust conferences with Rust soon)*\n- [ ] Polls and quizes\n- [ ] Interactive docs\n\n**EXTRA:** Mobile compatibility! It already works, but need flexible layouts.\n\nYou know that very hard to keep maintainance of the projects without external supports. [Become a sponsor on Patreon](https://www.patreon.com/deniskolodin) to help us bring these cases faster.\n\n## How to use\n\n### Add dependency\n\nAdd a dependency to your `Cargo.toml` file:\n\n```toml\n[dependencies]\nfacade = { git = \"https://github.com/DenisKolodin/facade\" }\n```\n\nWe used git here since the framework is very fast changed yet.\n\n### Spawn a server\n\nSpawn a server in your main function and take a control object to declare UI and supply **live** updates to it.\n\n```rust\nlet mut control = facade::main()?;\n```\n\n### Declare UI\n\nCreate a scene and put it to `Control` instance:\n\n```rust\nlet page_one = Page(\n    \"Page One\",\n    \"Live information\",\n    Row(vec![\n        TitledPanel(\"Server Status\", Dynamic(\"status\")),\n    ]),\n);\nlet scene = Dashboard(\n    \"My Dashboard\",\n    vec![page_one],\n);\ncontrol.scene(scene);\n```\n\n### Send live data\n\nNow you can use `Control` instance to send live updates to UI using unique IDs you used in UI declaration:\n\n```rust\nlet mut counter = 0;\nloop {\n    counter += 1;\n    control.assign(\"status\", format!(\"Counter is {}\", counter));\n    thread::sleep(Duration::from_millis(300));\n}\n```\n\nAnd yeah, you supplied updates too fast in this example, but that's not a problem, because **Facade**\naccumulate updates before send them, overwrites changed values and send the latest update only.\n\nStart and enjoy live updates by connecting to: http://localhost:12400 port (by default) with your favorite browser.\nIf you want to check it with your smartphone than set bind address to `FACADE_ADDRESS=0.0.0.0` and connect\nto the same port, but to IP address of your PC/Mac (both to avoid sexism).\n\nYou can also check ready to use example [here](https://github.com/DenisKolodin/facade-example).\n\n### Tuning\n\nYou can use `FACADE_` prefixed variables to control parameters of the **Facade** in your app. For example,\nto change address or port you can use `FACADE_ADDRESS` and `FACADE_PORT` environment variables respectively.\n","funding_links":["https://www.patreon.com/deniskolodin"],"categories":["Rust"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyewstack%2Ffacade","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyewstack%2Ffacade","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyewstack%2Ffacade/lists"}