{"id":23357334,"url":"https://github.com/gxi-rs/gxi","last_synced_at":"2025-10-28T19:31:16.122Z","repository":{"id":40566717,"uuid":"362399288","full_name":"gxi-rs/gxi","owner":"gxi-rs","description":"A Declarative Cross-Platform Native UI-Framework","archived":false,"fork":false,"pushed_at":"2024-08-14T17:14:04.000Z","size":1786,"stargazers_count":31,"open_issues_count":6,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-06T04:34:28.730Z","etag":null,"topics":["gtk","gtk-rs","rust","wasm","web"],"latest_commit_sha":null,"homepage":"https://gxi-rs.com/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gxi-rs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-04-28T08:46:36.000Z","updated_at":"2024-06-30T19:01:53.000Z","dependencies_parsed_at":"2024-08-14T18:55:42.394Z","dependency_job_id":null,"html_url":"https://github.com/gxi-rs/gxi","commit_stats":{"total_commits":1036,"total_committers":5,"mean_commits":207.2,"dds":0.1351351351351351,"last_synced_commit":"b39d1128e4233d909490ab5218e822596f792b05"},"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gxi-rs%2Fgxi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gxi-rs%2Fgxi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gxi-rs%2Fgxi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gxi-rs%2Fgxi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gxi-rs","download_url":"https://codeload.github.com/gxi-rs/gxi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238706227,"owners_count":19516897,"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":["gtk","gtk-rs","rust","wasm","web"],"created_at":"2024-12-21T10:20:11.916Z","updated_at":"2025-10-28T19:31:10.609Z","avatar_url":"https://github.com/gxi-rs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eGXI\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ci\u003eA Declarative Cross-Platform Native UI-Framework\u003c/i\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/gxi-rs/gxi/actions\"\u003e\n        \u003cimg src=\"https://github.com/gxi-rs/gxi/actions/workflows/tests.yml/badge.svg\" alt=\"Tests\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://crates.io/crates/gxi\"\u003e\n        \u003cimg src=\"https://img.shields.io/crates/v/gxi\" alt=\"Crates.io\" \u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\u003e ⚠️ Early Stage\n\nUsing [proc-macros](https://doc.rust-lang.org/reference/procedural-macros.html),\nthe [gxi transpiler](gxi-transpiler/README.md) transpile a component tree into a\nstateful self-managed n-binary tree using observable sync/async state pattern,\nfor maximum efficiency and lowest possible overhead, with close to no runtime\ncost. Inherently, eliminating the use of a\n[virtual dom](https://reactjs.org/docs/faq-internals.html) or a\n[diffing algorithm](https://reactjs.org/docs/reconciliation.html). The component\nsystem is platform-agnostic, which allows the system to produce\nplatform-dependent and independent components, merging them for code reuse and\nmaintainability.\n\n## Platforms\n\n- [x] Web `wasm32-unknown-unknown`\n- [ ] Desktop (GTK) Windows, Mac and Linux\n- [ ] Platform Independent (Web and GTK)\n- [ ] Android\n- [ ] Ios\n\n## Examples\n\n```rust\nuse gxi::{gxi, set_state, State, StrongNodeType, Text};\n\npub fn cat_fact() -\u003e StrongNodeType {\n    let cat_fact = State::new(String::new());\n\n    let fetch_cat_fact = set_state!(\n        async || {\n            let resp = reqwest::get(\"https://catfact.ninja/fact?max_length=140\")\n                .await\n                .unwrap();\n            *(*cat_fact).borrow_mut() = resp.text().await.unwrap();\n        },\n        [cat_fact]\n    );\n\n    // pre fetch cat memes\n    fetch_cat_fact();\n\n    return gxi! {\n        div [\n            button ( on_click = move |_| fetch_cat_fact() ) [\n                Text ( value = \"fetch cat memes!\" )\n            ],\n            p [\n                Text ( value = \u0026cat_fact[..])\n            ],\n        ]\n    };\n}\n```\n\n![](./gxi-web-eg.gif)\n\nFull src [here](examples)\n\n## Code of conduct\n\nCode of conduct can be found at **[CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md)**\n\n## Contributing\n\nMake sure to read **[Contribution Guidelines](CONTRIBUTING.md)** before\ncontributing.\n\n## License \u0026 Copyright\n\nCopyright (C) 2021 Aniket Prajapati\n\nLicensed under the **[MIT LICENSE](LICENSE)**\n\n## Contributors\n\n- [Aniket Prajapati](https://aniketprajapati.me)\n  \u003c[contact@aniketprajapati.me](mailto:contact@aniketprajapati.me)\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgxi-rs%2Fgxi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgxi-rs%2Fgxi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgxi-rs%2Fgxi/lists"}