{"id":13484748,"url":"https://github.com/vizia/vizia","last_synced_at":"2025-05-13T19:11:58.641Z","repository":{"id":36957205,"uuid":"407354121","full_name":"vizia/vizia","owner":"vizia","description":"A declarative GUI library written in Rust","archived":false,"fork":false,"pushed_at":"2025-04-24T13:46:16.000Z","size":10958,"stargazers_count":1779,"open_issues_count":52,"forks_count":82,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-04-27T20:07:02.632Z","etag":null,"topics":["application","binding","css","declarative-ui","desktop","framework","graphical-user-interface","graphics","gui","reactive","rust","skia","toolkit","ui","user-interface"],"latest_commit_sha":null,"homepage":"https://docs.vizia.dev","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/vizia.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,"zenodo":null}},"created_at":"2021-09-17T00:32:49.000Z","updated_at":"2025-04-26T14:03:35.000Z","dependencies_parsed_at":"2024-04-27T15:30:19.860Z","dependency_job_id":"c26ee3d2-0183-4463-98a4-6c88b3f627ce","html_url":"https://github.com/vizia/vizia","commit_stats":{"total_commits":1396,"total_committers":32,"mean_commits":43.625,"dds":0.2048710601719198,"last_synced_commit":"c6d19d1803a258702a30882cc56a78b93d650c85"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vizia%2Fvizia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vizia%2Fvizia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vizia%2Fvizia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vizia%2Fvizia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vizia","download_url":"https://codeload.github.com/vizia/vizia/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254010811,"owners_count":21998993,"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":["application","binding","css","declarative-ui","desktop","framework","graphical-user-interface","graphics","gui","reactive","rust","skia","toolkit","ui","user-interface"],"created_at":"2024-07-31T17:01:32.382Z","updated_at":"2025-05-13T19:11:58.621Z","avatar_url":"https://github.com/vizia.png","language":"Rust","funding_links":[],"categories":["Rust","GUI","UI Framework"],"sub_categories":["Native"],"readme":"\u003cdiv align=\"center\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/vizia/vizia/main/assets/branding/vizia-logo-01.png\" width=\"128px\" height=\"128px\"/\u003e\u003ch1\u003eVizia\u003c/h1\u003e\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003c!-- License --\u003e\n  \u003ca href=\"https://github.com/vizia/vizia/blob/main/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/crates/l/vizia\"\n    alt=\"License\" /\u003e\n  \u003c/a\u003e\n  \u003c!-- Docs --\u003e\n  \u003ca href=\"https://docs.vizia.dev\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/docs-website-blue\" \n      alt=\"Documentation\" /\u003e\n  \u003c/a\u003e\n  \u003c!-- CI --\u003e\n  \u003ca href=\"https://github.com/vizia/vizia/actions/workflows/build.ym\"\u003e\n    \u003cimg src=\"https://github.com/vizia/vizia/actions/workflows/build.yml/badge.svg\"\n      alt=\"CI status\" /\u003e\n  \u003c/a\u003e\n  \u003c!-- docs (TODO) --\u003e\n  \u003c!-- Dependency status --\u003e\n  \u003ca href=\"https://deps.rs/repo/github/vizia/vizia\"\u003e\n    \u003cimg src=\"https://deps.rs/repo/github/vizia/vizia/status.svg\"\n      alt=\"Dependency status\" /\u003e\n  \u003c/a\u003e\n  \u003c!-- Audit --\u003e\n  \u003ca href=\"https://github.com/vizia/vizia/actions/workflows/audit.yml\"\u003e\n    \u003cimg src=\"https://github.com/vizia/vizia/actions/workflows/audit.yml/badge.svg\"\n      alt=\"Audit status\" /\u003e\n  \u003c/a\u003e\n  \u003c!-- Discord --\u003e\n  \u003ca href=\"https://discord.gg/aNkTPsRm2w\"\u003e\n    \u003cimg src=\"https://img.shields.io/discord/791142189005537332.svg?label=\u0026logo=discord\u0026logoColor=ffffff\u0026color=7389D8\u0026labelColor=6A7EC2\" \n      alt=\"Discord Link\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\u003c!-- [![Crates.io](https://img.shields.io/crates/v/vizia)](https://crates.io/crates/vizia) --\u003e\n\u003c!-- [![docs.rs](https://img.shields.io/badge/docs-website-blue)](https://docs.rs/vizia/) --\u003e\n\n\u003cbr/\u003e\n\n\u003ch4 align=\"center\"\u003eA declarative desktop GUI framework for the \u003ca href=\"https://www.rust-lang.org/\"\u003eRust\u003c/a\u003e programming language.\u003c/h4\u003e\n\n\u003cbr/\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch3\u003e\n    \u003ca href=\"https://book.vizia.dev/\"\u003e Book \u003c/a\u003e\n    \u003cspan\u003e • \u003c/span\u003e\n    \u003ca href=\"https://docs.vizia.dev/\"\u003e Docs \u003c/a\u003e\n    \u003cspan\u003e • \u003c/span\u003e\n    \u003ca href=\"https://discord.gg/aNkTPsRm2w\"\u003e Discord \u003c/a\u003e\n  \u003c/h3\u003e\n\u003c/div\u003e\n\n\u003cbr/\u003e\n\n# Features\n- ### __Cross-platform (Windows, Linux, MacOS)__\n  Build desktop applications which look and behave the same for Windows, Mac, and Linux.\n- ### __Declarative__\n  Write GUI code in a declarative way in pure Rust (no DSL macros).\n- ### __Reactive__\n  Views derive from application state. Change the state and the views which bind to it update automatically.\n- ### __Flexible layout__\n  Create flexible layouts which adapt to changes in size. Powered by [morphorm](https://github.com/vizia/morphorm).\n- ### __Powerful styling__\n  Take advantage of stylesheets with hot-reloading to fully customize the look of your application.\n- ### __Animations__\n  Bring your applications to life with animations.\n- ### __Built-in views and themes__\n  Utilize over 25 ready-made views as well as two built-in themes (light and dark) to get you started. Includes 4250+ SVG icons, provided by [Tabler Icons](https://tabler-icons.io).\n- ### __Accessibility__\n  Make you applications accessible to assistive technologies such as screen readers, powered by [accesskit](https://github.com/accesskit/accesskit).\n- ### __Localization__\n  Adapt your application to different locales, including translating text with [fluent](https://github.com/projectfluent/fluent-rs).\n- ### __Optimised rendering__\n  Vizia leverages the powerful and robust [skia](https://github.com/rust-skia/rust-skia) library for rendering, with further optimizations to only draw what is necessary.  \n- ### __Audio plugin development__\n  Vizia provides an alternative [baseview](https://github.com/RustAudio/baseview) windowing backend for audio plugin development, for example with the [nih-plug](https://github.com/robbert-vdh/nih-plug) framework.\n\n\u003cbr /\u003e\n\n# At a Glance\nA simple counter application. Run with `cargo run --example counter`.\n```rust, no_run\nuse vizia::prelude::*;\n\n// Define some model data\n#[derive(Lens)]\npub struct AppData {\n    count: i32,\n}\n\n// Define events to mutate the data\npub enum AppEvent {\n    Increment,\n}\n\n// Describe how the data is mutated in response to events\nimpl Model for AppData {\n    fn event(\u0026mut self, _: \u0026mut EventContext, event: \u0026mut Event) {\n        event.map(|app_event, _| match app_event {\n            AppEvent::Increment =\u003e {\n                self.count += 1;\n            }\n        });\n    }\n}\n\nfn main() {\n    // Create an application\n    Application::new(|cx| {\n\n        // Build the model data into the tree\n        AppData { count: 0 }.build(cx);\n\n        // Declare views which make up the UI\n        HStack::new(cx, |cx| {\n          \n            // Declare a button which emits an event\n            Button::new(cx, |cx| Label::new(cx, \"Increment\"))\n              .on_press(|cx| cx.emit(AppEvent::Increment));\n\n            // Declare a label which is bound to part of the model, updating when it changes\n            Label::new(cx, AppData::count).width(Pixels(50.0));\n        })\n        .alignment(Alignment::Center)  // Apply style and layout modifiers\n        .horizontal_gap(Pixels(50.0));\n    })\n    .title(\"Counter\") // Configure window properties\n    .inner_size((400, 100))\n    .run();\n}\n```\n\u003cdiv align=\"center\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/vizia/vizia/main/assets/images/counter.png\" width=\"400px\" height=\"130px\"/\u003e\u003c/div\u003e\n\n\n# Learning\n## Book\nA quickstart guide for vizia is available [here](https://book.vizia.dev).\n## Docs\nAuto-generated code documentation can be found [here](https://docs.vizia.dev).\n## Examples\n\nA list of [examples](https://github.com/vizia/vizia/tree/main/examples) is included in the repository.\n\nTo run an example with the [winit](https://github.com/rust-windowing/winit) (default) windowing backend:\n```bash\ncargo run --release --example name_of_example\n```\n\n### Baseview\n\nTo run an example with the [baseview](https://github.com/RustAudio/baseview) windowing backend:\n\n```bash\ncargo run --release --example name_of_example --no-default-features --features baseview\n```\n\n# Contributing and Community\nFor help with vizia, or to get involved with contributing to the project, come join us on [our discord](https://discord.gg/aNkTPsRm2w).\n\n# License and Attribution\nVizia is licensed under [MIT](https://github.com/vizia/vizia/blob/main/LICENSE).\n\nVizia logo designed by [Lunae Somnia](https://github.com/LunaeSomnia).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvizia%2Fvizia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvizia%2Fvizia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvizia%2Fvizia/lists"}