{"id":19564477,"url":"https://github.com/dioxuslabs/sdk","last_synced_at":"2025-05-16T07:02:21.101Z","repository":{"id":152916072,"uuid":"561607717","full_name":"DioxusLabs/sdk","owner":"DioxusLabs","description":"A library to provide abstractions to access common utilities when developing Dioxus applications.","archived":false,"fork":false,"pushed_at":"2025-04-12T02:47:15.000Z","size":268,"stargazers_count":153,"open_issues_count":16,"forks_count":16,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-04-12T02:49:09.529Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DioxusLabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2022-11-04T04:01:13.000Z","updated_at":"2025-04-12T01:44:42.000Z","dependencies_parsed_at":"2023-11-14T22:22:42.614Z","dependency_job_id":"682779a6-a633-4ad0-af4b-290ef5c4fc7b","html_url":"https://github.com/DioxusLabs/sdk","commit_stats":null,"previous_names":["dioxuslabs/sdk","dioxuslabs/dioxus-std"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DioxusLabs%2Fsdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DioxusLabs%2Fsdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DioxusLabs%2Fsdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DioxusLabs%2Fsdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DioxusLabs","download_url":"https://codeload.github.com/DioxusLabs/sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248509537,"owners_count":21116044,"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-11T05:22:12.432Z","updated_at":"2025-05-16T07:02:21.066Z","avatar_url":"https://github.com/DioxusLabs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e🧰 Dioxus Development Kit 🚀\u003c/h1\u003e\n  \u003cp\u003e\u003cstrong\u003eCross-platform crates for supercharging your productivity with Dioxus.\u003c/strong\u003e\u003c/p\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003c!-- Crates version --\u003e\n  \u003ca href=\"https://crates.io/crates/dioxus-sdk\"\u003e\n    \u003cimg src=\"https://img.shields.io/crates/v/dioxus-sdk.svg?style=flat-square\"\n    alt=\"Crates.io version\" /\u003e\n  \u003c/a\u003e\n  \u003c!-- Downloads --\u003e\n  \u003ca href=\"https://crates.io/crates/dioxus-sdk\"\u003e\n    \u003cimg src=\"https://img.shields.io/crates/d/dioxus-sdk.svg?style=flat-square\"\n      alt=\"Download\" /\u003e\n  \u003c/a\u003e\n  \u003c!-- docs --\u003e\n  \u003ca href=\"https://docs.rs/dioxus-sdk\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square\"\n      alt=\"docs.rs docs\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n-----\n\n\u003cp align=\"center\"\u003e\u003ci\u003eThese crates are still under development. Expect breaking changes!\u003c/i\u003e\u003c/p\u003e\n\u003cbr/\u003e\n\n`dioxus-sdk` is a development kit for Dioxus that provides cross-platform APIs for your Dioxus app. SDK is organized into many different crates accessible through the `dioxus-sdk` crate with the corresponding feature flags.\n\n## Features\n- `dioxus-storage`\n- `dioxus-geolocation` - Web \u0026 Windows\n- `dioxus-notifications` - Desktop\n- `dioxus-window`\n  - [x] Theme - (Web, Windows, Mac)\n  - [x] Window Size\n- `dioxus-time`\n  - [x] Sleep\n  - [x] Intervals\n  - [x] Debounce\n  - [x] Timeouts\n- `dioxus-sync`\n  - [x] Channels\n- `dioxus-util`\n  - [x] `use_root_scroll`\n- [ ] Camera\n- [ ] WiFi\n- [ ] Bluetooth\n\nGeolocation example:\n\n```rust\n// dioxus-geolocation= { version = \"*\" }\nuse dioxus::prelude::*;\nuse dioxus_geolocation::{\n    init_geolocator, use_geolocation, PowerMode\n};\n\n#[component]\nfn App() -\u003e Element {\n    let geolocator = init_geolocator(PowerMode::High).unwrap();\n    let coords = use_geolocation();\n\n    match coords {\n      Ok(coords) =\u003e {\n        rsx!( p { \"Latitude: {coords.latitude} | Longitude: {coords.longitude}\" } )\n      }\n      Err(Error::NotInitialized) =\u003e {\n        rsx!( p { \"Initializing...\" } )\n      }\n      Err(e) =\u003e {\n        rsx!( p { \"An error occurred {e}\" } )\n      }\n    }\n}\n```\n\n## Usage\nYou can add `dioxus-sdk` to your application by adding it to your dependencies.\n```toml\n[dependencies]\ndioxus-sdk = { version = \"0.7\", features = [] }\n```\n\n### Dioxus Compatibility\nThis table represents the compatibility between this crate and Dioxus versions.\nThe crate version supports a Dioxus version up until the next crate version in the table.\n\nE.g. if crate version `0.1` supported Dioxus `0.6` and crate version `0.4` supported Dioxus `0.7`, crate versions `0.1`, `0.2`, and `0.3` would support Dioxus `0.6`.\n\n| Crate Version | Dioxus Version |\n| ------------- | -------------- |\n| 0.7           | 0.6            |\n| 0.5           | 0.5            |\n\n## License\nThis project is dual licensed under the [MIT](./LICENSE-MIT) and [Apache 2.0](./LICENSE-APACHE) licenses.\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in `dioxus-sdk` or any of it's crates, by you, shall be licensed as MIT or Apache 2.0, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdioxuslabs%2Fsdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdioxuslabs%2Fsdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdioxuslabs%2Fsdk/lists"}