{"id":15137922,"url":"https://github.com/robertdodd/bevy_local_storage","last_synced_at":"2026-02-16T15:01:54.673Z","repository":{"id":251120538,"uuid":"803535126","full_name":"robertdodd/bevy_local_storage","owner":"robertdodd","description":"A LocalStorage asset reader for Bevy.","archived":false,"fork":false,"pushed_at":"2025-04-12T01:07:51.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-05T00:59:21.997Z","etag":null,"topics":["bevy","bevy-engine","game-development","localstorage"],"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/robertdodd.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":"2024-05-20T23:03:00.000Z","updated_at":"2024-08-01T05:22:02.000Z","dependencies_parsed_at":"2024-12-19T14:44:52.424Z","dependency_job_id":"725b7f6f-40ae-4b85-ba2c-7f083a8d122c","html_url":"https://github.com/robertdodd/bevy_local_storage","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"ba093026a77467e38a2044b6f9c615ad4a84a74f"},"previous_names":["robertdodd/bevy_local_storage"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/robertdodd/bevy_local_storage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdodd%2Fbevy_local_storage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdodd%2Fbevy_local_storage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdodd%2Fbevy_local_storage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdodd%2Fbevy_local_storage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robertdodd","download_url":"https://codeload.github.com/robertdodd/bevy_local_storage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdodd%2Fbevy_local_storage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29510518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bevy","bevy-engine","game-development","localstorage"],"created_at":"2024-09-26T07:03:35.729Z","updated_at":"2026-02-16T15:01:54.649Z","avatar_url":"https://github.com/robertdodd.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bevy Local Storage\n\nA simple [Bevy](https://bevyengine.org/) plugin that adds a [`LocalStorage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) asset reader.\n\n---\n\n## Example\n\nThe example is a separate crate because `trunk` does not support cargo examples yet.\n\n```shell\ncd example_crate\ntrunk serve\n```\n\n* requires [trunk](https://crates.io/crates/trunk): `cargo install --locked trunk`\n* requires `wasm32-unknown-unknown` target: `rustup target add wasm32-unknown-unknown`\n* this will serve your app on `8080` and automatically rebuild + reload it after code changes\n\n## Usage\n\nAdd the plugin *before* `DefaultPlugins`.\n\n```rust\nApp::new()\n    .add_plugins((\n        LocalStorageAssetReaderPlugin {\n            asset_id: \"local\",\n        },\n        DefaultPlugins,\n    ));\n```\n\nYou can now load assets from local storage like so:\n\n```rust\ncommands.spawn(DynamicSceneBundle {\n    scene: asset_server.load(format!(\"local://example.scn.ron\")),\n    ..default()\n});\n```\n\n## Write to LocalStorage\n\nWrite to local storage like so.\n\n```rust\nuse bevy_local_storage::get_local_storage;\n\n// Get a local storage instance\n// PANICS: if local storage not present\nlet local_storage: web_sys::Storage = get_local_storage();\n// Write to local storage\nlocal_storage.set_item(\"example.scn.ron\", SCENE_DATA).unwrap();\n```\n\nSee [web-sys::Storage](https://rustwasm.github.io/wasm-bindgen/api/web_sys/struct.Storage.html) for more methods.\n\n## Compatible Bevy versions\n\n| `bevy_local_storage` | `bevy` |\n|:---------------------|:-------|\n| `0.2`                | `0.14` |\n| `0.1`                | `0.13` |\n\n## License\n\nDual-licensed under either of\n\n- Apache License, Version 2.0,\n  ([LICENSE-APACHE](https://github.com/robertdodd/bevy_local_storage/blob/master/LICENSE-APACHE) or\n  https://www.apache.org/licenses/LICENSE-2.0)\n- MIT license ([LICENSE-MIT](https://github.com/robertdodd/bevy_local_storage/blob/master/LICENSE-MIT) or\n  https://opensource.org/licenses/MIT)\n\nat your option.\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as\ndefined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertdodd%2Fbevy_local_storage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertdodd%2Fbevy_local_storage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertdodd%2Fbevy_local_storage/lists"}