{"id":15643218,"url":"https://github.com/johanhelsing/bevy_web_asset","last_synced_at":"2025-08-18T16:08:37.533Z","repository":{"id":49818606,"uuid":"407797784","full_name":"johanhelsing/bevy_web_asset","owner":"johanhelsing","description":"Bevy asset loader that transparently supports loading over http(s)","archived":false,"fork":false,"pushed_at":"2025-05-03T21:21:58.000Z","size":109,"stargazers_count":92,"open_issues_count":11,"forks_count":23,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-14T02:59:24.110Z","etag":null,"topics":["bevy","bevy-plugin","rust","wasm"],"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/johanhelsing.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":"2021-09-18T08:06:47.000Z","updated_at":"2025-07-27T06:04:30.000Z","dependencies_parsed_at":"2023-11-19T05:22:31.750Z","dependency_job_id":"538b8ec1-12d6-4df5-84db-759029236d13","html_url":"https://github.com/johanhelsing/bevy_web_asset","commit_stats":{"total_commits":38,"total_committers":2,"mean_commits":19.0,"dds":"0.10526315789473684","last_synced_commit":"8cac30323dea64b7c4aa21a0b2bb1e3e5d14bd17"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/johanhelsing/bevy_web_asset","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johanhelsing%2Fbevy_web_asset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johanhelsing%2Fbevy_web_asset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johanhelsing%2Fbevy_web_asset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johanhelsing%2Fbevy_web_asset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johanhelsing","download_url":"https://codeload.github.com/johanhelsing/bevy_web_asset/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johanhelsing%2Fbevy_web_asset/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271019919,"owners_count":24685768,"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-08-18T02:00:08.743Z","response_time":89,"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":["bevy","bevy-plugin","rust","wasm"],"created_at":"2024-10-03T11:59:30.715Z","updated_at":"2025-08-18T16:08:37.524Z","avatar_url":"https://github.com/johanhelsing.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bevy Web Asset\n\n[![crates.io](https://img.shields.io/crates/v/bevy_web_asset.svg)](https://crates.io/crates/bevy_web_asset)\n![MIT/Apache 2.0](https://img.shields.io/badge/license-MIT%2FApache-blue.svg)\n[![crates.io](https://img.shields.io/crates/d/bevy_web_asset.svg)](https://crates.io/crates/bevy_web_asset)\n[![docs.rs](https://img.shields.io/docsrs/bevy_web_asset)](https://docs.rs/bevy_web_asset)\n\nThis is a tiny crate that that adds the ability to load assets from http and https urls.\n\nSupports both wasm (web-sys) and native.\n\nThis is nice if you want to keep your content on a server, even when developing\nnative games. Use cases can be:\n\n- Tuning game balance post-launch\n- Seasonal events (halloween theme etc.)\n- Downloading dynamic content from 3rd party services (lospec, gltf repositories etc.)\n- Sharing user-created assets/mods over some service (level editor etc.)\n- Keeping initial download size small\n- Testing with different online assets during development\n\n## Usage\n\nNOTE: You need to add the plugin before `AssetPlugin`:\n\n```rust no_run\nuse bevy::prelude::*;\nuse bevy_web_asset::WebAssetPlugin;\n\nfn main() {\n    App::new()\n        // The `WebAssetPlugin` must be inserted before the `AssetPlugin`\n        .add_plugins((\n            WebAssetPlugin::default(),\n            DefaultPlugins\n        ))\n        // ...\n        .run();\n}\n```\n\nBut using it is quite simple, just use http urls instead of regular asset paths.\n\n```rust ignore\nlet font: Handle\u003cFont\u003e = asset_server.load(\"https://example.com/fonts/quicksand-light.ttf\");\n```\n\nOr:\n\n```rust ignore\ncommands.spawn(SpriteBundle {\n    // Simply use a url where you would normally use an asset folder relative path\n    texture: asset_server.load(\"https://johanhelsing.studio/assets/favicon.png\"),\n    ..default()\n});\n```\n\n## Bevy version support\n\nI intend to support the latest bevy release in the `main` branch.\n\n|bevy|bevy_web_asset|\n|----|--------------|\n|0.16|0.11, main    |\n|0.15|0.10,         |\n|0.14|0.9,          |\n|0.13|0.8           |\n|0.12|0.7           |\n|0.9 |0.5           |\n|0.8 |0.4           |\n|0.7 |0.3           |\n|0.6 |0.2           |\n|0.5 |0.1           |\n\n## License\n\n`bevy_web_asset` is dual-licensed under either\n\n- MIT License (./LICENSE-MIT or http://opensource.org/licenses/MIT)\n- Apache License, Version 2.0 (./LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)\n\nat your option.\n\n## Contributions\n\nPRs welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohanhelsing%2Fbevy_web_asset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohanhelsing%2Fbevy_web_asset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohanhelsing%2Fbevy_web_asset/lists"}