{"id":16078180,"url":"https://github.com/PostSiliconDev/tdn-bevy","last_synced_at":"2026-01-18T03:23:10.247Z","repository":{"id":220776334,"uuid":"752509890","full_name":"PostSiliconDev/tdn-bevy","owner":"PostSiliconDev","description":"TDN plugin for Bevy game engine.","archived":false,"fork":false,"pushed_at":"2024-02-28T04:04:08.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-14T11:35:56.492Z","etag":null,"topics":["bevy-plugin","p2p","websocket"],"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/PostSiliconDev.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}},"created_at":"2024-02-04T03:35:29.000Z","updated_at":"2025-06-04T00:24:16.000Z","dependencies_parsed_at":"2024-10-31T02:40:43.183Z","dependency_job_id":"d5dc2ad3-567b-4b3f-aa17-5129c7f66438","html_url":"https://github.com/PostSiliconDev/tdn-bevy","commit_stats":null,"previous_names":["cympletech/tdn-bevy","postsilicondev/tdn-bevy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PostSiliconDev/tdn-bevy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PostSiliconDev%2Ftdn-bevy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PostSiliconDev%2Ftdn-bevy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PostSiliconDev%2Ftdn-bevy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PostSiliconDev%2Ftdn-bevy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PostSiliconDev","download_url":"https://codeload.github.com/PostSiliconDev/tdn-bevy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PostSiliconDev%2Ftdn-bevy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28528038,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"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-plugin","p2p","websocket"],"created_at":"2024-10-09T10:08:35.425Z","updated_at":"2026-01-18T03:23:10.224Z","avatar_url":"https://github.com/PostSiliconDev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tdn-bevy\nTDN plugin for Bevy game engine.\n\n## Feature\n- Support websocket client\n- Support websocket in browser (wasm)\n- Support http client in browser (wasm)\n- Support P2P network\n- Latest Bevy (0.13+)\n\n## Usage\n```tdn-bevy = \"0.1.2\"```\n\n### Websocket client\n```rust\nuse tdn_bevy::{RecvError, ws::{WsClient, WsClientPlugin, WsConnection}};\n\nfn main() {\n    App::new()\n        .add_plugins(WsClientPlugin)\n        .add_systems(Startup, connect_ws)\n        .add_systems(Update, receive_message)\n        .run();\n}\n\nfn connect_ws(mut commands: Commands, ws_client: Res\u003cWsClient\u003e) {\n    ws_client.connect(\u0026mut commands, \"127.0.0.1:8000\", None);\n}\n\nfn receive_message(mut commands: Commands, connections: Query\u003c(Entity, \u0026WsConnection)\u003e) {\n    for (entity, conn) in connections.iter() {\n        loop {\n            match conn.recv() {\n                Ok(message) =\u003e {\n                    println!(\"message: {}\", message);\n                    conn.send(message);\n                }\n                Err(RecvError::Empty) =\u003e break,\n                Err(RecvError::Closed) =\u003e {\n                    commands.entity(entity).despawn();\n                    break;\n                }\n            }\n        }\n    }\n}\n\n```\n\n### P2P network\nDOING\n\n## License\n\nThis project is licensed under either of\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or\n   http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or\n   http://opensource.org/licenses/MIT)\n\nat your option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPostSiliconDev%2Ftdn-bevy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPostSiliconDev%2Ftdn-bevy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPostSiliconDev%2Ftdn-bevy/lists"}