{"id":28028337,"url":"https://github.com/pykeio/vmc","last_synced_at":"2025-05-11T07:09:44.400Z","repository":{"id":187555031,"uuid":"676780279","full_name":"pykeio/vmc","owner":"pykeio","description":"Rust implementation of Virtual Motion Capture protocol","archived":false,"fork":false,"pushed_at":"2025-04-14T08:04:11.000Z","size":155,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-11T07:09:38.684Z","etag":null,"topics":["rust","virtual-motion-capture","vmc","vrm"],"latest_commit_sha":null,"homepage":"https://docs.rs/vmc","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/pykeio.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":"2023-08-10T02:10:11.000Z","updated_at":"2025-05-03T10:16:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"921de7dc-5501-4a1c-a56d-f6640147597c","html_url":"https://github.com/pykeio/vmc","commit_stats":null,"previous_names":["vitri-ent/vmc","pykeio/vmc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pykeio%2Fvmc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pykeio%2Fvmc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pykeio%2Fvmc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pykeio%2Fvmc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pykeio","download_url":"https://codeload.github.com/pykeio/vmc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253528975,"owners_count":21922636,"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":["rust","virtual-motion-capture","vmc","vrm"],"created_at":"2025-05-11T07:09:43.708Z","updated_at":"2025-05-11T07:09:44.385Z","avatar_url":"https://github.com/pykeio.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `vmc`\nAn asynchronous implementation of the [Virtual Motion Capture Protocol](https://protocol.vmc.info/) in Rust.\n\n## Examples\nSee [`examples/`](https://github.com/vitri-ent/vmc/tree/main/examples/) for more detailed examples.\n\n### Performer\n```rs\nuse vmc::{ApplyBlendShapes, BlendShape, ModelState, StandardVRMBlendShape, State, Time};\n\n#[tokio::main]\nasync fn main() -\u003e vmc::Result\u003c()\u003e {\n\tlet socket = vmc::performer!(\"127.0.0.1:39539\").await?;\n\tloop {\n\t\tsocket.send(BlendShape::new(StandardVRMBlendShape::Joy, 1.0)).await?;\n\t\tsocket.send(ApplyBlendShapes).await?;\n\t\tsocket.send(State::new(ModelState::Loaded)).await?;\n\t\tsocket.send(Time::elapsed()).await?;\n\t}\n}\n```\n\n### Marionette\n```rs\nuse tokio_stream::StreamExt;\nuse vmc::Message;\n\n#[tokio::main]\nasync fn main() -\u003e vmc::Result\u003c()\u003e {\n\tlet mut socket = vmc::marionette!(\"127.0.0.1:39539\").await?;\n\twhile let Some(packet) = socket.next().await {\n\t\tlet (packet, _) = packet?;\n\t\tfor message in vmc::parse(packet)? {\n\t\t\tmatch message {\n\t\t\t\tMessage::BoneTransform(transform) =\u003e {\n\t\t\t\t\tprintln!(\"\\tTransform bone: {} (pos {:?}; rot {:?})\", transform.bone, transform.position, transform.rotation)\n\t\t\t\t}\n\t\t\t\t_ =\u003e {}\n\t\t\t}\n\t\t}\n\t}\n\n\tOk(())\n}\n```\n\n## License\n❤️ This crate is based on [`async-osc`](https://github.com/Frando/async-osc) by Franz Heinzmann. Licensed under MIT License or Apache-2.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpykeio%2Fvmc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpykeio%2Fvmc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpykeio%2Fvmc/lists"}