{"id":21497325,"url":"https://github.com/jazzfool/cape","last_synced_at":"2025-07-25T00:39:17.450Z","repository":{"id":137122164,"uuid":"341814545","full_name":"jazzfool/cape","owner":"jazzfool","description":"Rust UI","archived":false,"fork":false,"pushed_at":"2022-02-20T12:14:11.000Z","size":298,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T22:14:03.307Z","etag":null,"topics":[],"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/jazzfool.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-24T07:24:08.000Z","updated_at":"2022-12-09T19:57:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"510f9c61-20e7-40ad-82f3-06fa14c323bc","html_url":"https://github.com/jazzfool/cape","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzfool%2Fcape","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzfool%2Fcape/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzfool%2Fcape/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzfool%2Fcape/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jazzfool","download_url":"https://codeload.github.com/jazzfool/cape/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244031761,"owners_count":20386658,"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":[],"created_at":"2024-11-23T16:23:15.680Z","updated_at":"2025-03-17T12:25:31.214Z","avatar_url":"https://github.com/jazzfool.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cape\n\n### *(yet another) Desktop UI library in Rust*\n\n*\\*inspired by React, Moxie, and Crochet*\n\n---\n\n- No `RefCell`\n- No global state\n- Reactive \u0026 declarative\n- Caching helpers\n- Retained DOM-like backing tree (reconciliation)\n- No `unsafe` beyond rendering code\n\n---\n\n```rust\n#[cape::ui]\nfn counter(cx: \u0026mut Cx) -\u003e impl IntoNode {\n    let count = cx.state(|| 0);\n\n    Column::new()\n        .spacing(5.)\n        .child(format!(\"Count: {}\", cx.at(count)))\n        .child(\n            Row::new()\n                .spacing(5.)\n                .child(\n                    Button::new(cx)\n                        .child(\"Increment\")\n                        .on_click(move |cx, _| *cx.at(count) += 1),\n                )\n                .child(\n                    Button::new(cx)\n                        .child(\"Decrement\")\n                        .on_click(move |cx, _| *cx.at(count) -= 1),\n                ),\n        )\n}\n```\n\n---\n\n### What's missing\n\n- Multiple windows\n- Long list views (direct DOM mutation)\n- Z-order (implies a simple layer compositor)\n- Correct text input (IME)\n- Accessibility (first priority would be Microsoft UIAutomation)\n\nNot quite as sophisticated as Crochet, more based around empirical needs and wants.\n\n## Maintenance\n\nThere's no need for new UI libraries in Rust, as such I may not be very active or responsive. Think of this more as a tech demo, i.e. don't use it for any project you care about.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazzfool%2Fcape","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjazzfool%2Fcape","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazzfool%2Fcape/lists"}