{"id":26361452,"url":"https://github.com/unrust/uni-app","last_synced_at":"2025-09-10T13:33:41.455Z","repository":{"id":57671066,"uuid":"138702934","full_name":"unrust/uni-app","owner":"unrust","description":"Unrust native/wasm compatibility layer for window, input and filesystem","archived":false,"fork":false,"pushed_at":"2023-03-30T15:41:53.000Z","size":84,"stargazers_count":7,"open_issues_count":1,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-27T05:52:01.784Z","etag":null,"topics":["filesystem","input","rust","wasm","windowing"],"latest_commit_sha":null,"homepage":"","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/unrust.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2018-06-26T07:45:21.000Z","updated_at":"2024-11-20T06:09:26.000Z","dependencies_parsed_at":"2024-11-26T04:47:58.128Z","dependency_job_id":null,"html_url":"https://github.com/unrust/uni-app","commit_stats":{"total_commits":40,"total_committers":5,"mean_commits":8.0,"dds":0.125,"last_synced_commit":"011db67a0fcb371a3448c0b476cd96800c3d41a6"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/unrust/uni-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unrust%2Funi-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unrust%2Funi-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unrust%2Funi-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unrust%2Funi-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unrust","download_url":"https://codeload.github.com/unrust/uni-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unrust%2Funi-app/sbom","scorecard":{"id":910886,"data":{"date":"2025-08-11","repo":{"name":"github.com/unrust/uni-app","commit":"011db67a0fcb371a3448c0b476cd96800c3d41a6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":1,"reason":"Found 3/26 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE-APACHE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE-APACHE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 11 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T19:07:07.995Z","repository_id":57671066,"created_at":"2025-08-24T19:07:07.995Z","updated_at":"2025-08-24T19:07:07.995Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274470467,"owners_count":25291605,"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-10T02:00:12.551Z","response_time":83,"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":["filesystem","input","rust","wasm","windowing"],"created_at":"2025-03-16T17:37:46.066Z","updated_at":"2025-09-10T13:33:41.402Z","avatar_url":"https://github.com/unrust.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# unrust / uni-app\n\n[![Documentation](https://docs.rs/uni-app/badge.svg)](https://docs.rs/uni-app)\n[![crates.io](https://meritbadge.herokuapp.com/uni-app)](https://crates.io/crates/uni-app)\n\nThis library is a part of [Unrust](https://github.com/unrust/unrust), a pure rust native/wasm game engine.\nThis library provides a native/wasm compatibility layer for following components :\n* Window creation\n* Input (mouse + keyboard)\n* File system (local + http[s], ready-only)\n\n## Usage\n\n```toml\n[dependencies]\nuni-app = \"0.4.*\"\n```\n\n```rust\nextern crate uni_app;\n\nfn main() {\n    // create the game window (native) or canvas (web)\n    let app = uni_app::App::new(uni_app::AppConfig {\n        size: (800, 600),\n        title: \"my game\".to_owned(),\n        vsync: true,\n        show_cursor: true,\n        headless: false,\n        resizable: true,\n        fullscreen: false,\n        intercept_close_request: false,\n        icon: None,\n    });\n    // start game loop\n    app.run(move |app: \u0026mut uni_app::App| {\n        for evt in app.events.borrow().iter() {\n            // print on stdout (native) or js console (web)\n            uni_app::App::print(format!(\"{:?}\", evt));\n            // exit when pressing escape\n            match \u0026evt {\n                uni_app::AppEvent::KeyUp(ev) if ev.code == ScanCode::Escape =\u003e {\n                    uni_app::App::exit();\n                }\n                _ =\u003e (),\n            }\n        }\n    });\n}\n```\n\n## Build\n\n### As web app (wasm32-unknown-unknown)\n\nInstall wasm32 target :\n```\nrustup target install wasm32-unknown-unknown\n```\nInstall [wasm-pack](https://rustwasm.github.io/wasm-pack/installer/)\nand [npm](https://www.npmjs.com/get-npm)\n\nCompile the demo with\n```\nwasm-pack build examples\n```\nThis creates a wasm package in examples/pkg\n\nRun the demo with\n```\ncd www\nnpm install\nnpm run start\n```\n\nOpen your browser at http://localhost:8080/\n\n### As desktop app (native-opengl)\n\nRun it from the www/ directory to be able to load the test.txt file :\n\n```\ncd www \u0026\u0026 cargo run --example basic --release\n```\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n### Contribution\n\nYou can contribute to this library through pull requests. If you do so, please update the CHANGELOG.md and CREDITS.md files. If you provide a new feature, consider adding an example as a tutorial/showcase.\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any\nadditional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funrust%2Funi-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funrust%2Funi-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funrust%2Funi-app/lists"}