{"id":25319724,"url":"https://github.com/chayleaf/rust-neuro-sama-game-api","last_synced_at":"2025-10-28T22:31:12.818Z","repository":{"id":267544384,"uuid":"901588662","full_name":"chayleaf/rust-neuro-sama-game-api","owner":"chayleaf","description":"A crate that implements the Neuro-sama game API","archived":false,"fork":false,"pushed_at":"2025-01-17T18:51:23.000Z","size":322,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-17T19:45:49.692Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chayleaf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-0BSD","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-12-11T00:08:39.000Z","updated_at":"2025-01-12T19:15:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"46d0d17d-3ea0-41c0-aa47-40042d7217ae","html_url":"https://github.com/chayleaf/rust-neuro-sama-game-api","commit_stats":null,"previous_names":["chayleaf/rust-neuro-sama-game-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chayleaf%2Frust-neuro-sama-game-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chayleaf%2Frust-neuro-sama-game-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chayleaf%2Frust-neuro-sama-game-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chayleaf%2Frust-neuro-sama-game-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chayleaf","download_url":"https://codeload.github.com/chayleaf/rust-neuro-sama-game-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238734068,"owners_count":19521557,"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":[],"created_at":"2025-02-13T20:54:51.809Z","updated_at":"2025-10-28T22:31:12.461Z","avatar_url":"https://github.com/chayleaf.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![crates.io](https://img.shields.io/crates/v/neuro-sama.svg)](https://crates.io/crates/neuro-sama)\n[![docs.rs](https://docs.rs/neuro-sama/badge.svg)](https://docs.rs/neuro-sama)\n\n# neuro_sama, the Rust crate\n\nA Rust crate that implements the [Neuro-sama game\nAPI](https://github.com/VedalAI/neuro-game-sdk). It doesn't handle\nWebSocket communications itself, instead, it works with `tungstenite`\nmessages, which you can handle whichever way you want.\n\nThere's a high-level API and a low-level API available. The low-level\nAPI simply defines the API schema, it's available in the `schema`\nsubmodule. The high-level API is hopefully easier and safer to work\nwith, it's available in the `game` submodule.\n\nOptionally, a `proposals` feature is available that enables proposed\ncommands that have not yet been accepted or implemented - you can use it\nfor testing, but the feature is excluded from semver guarantees.\n\nAnother feature is `strip-trailing-zeroes`, which strips `.0` from round\nfloating point numbers, it may be useful for slightly reducing\nschema/context size.\n\n## Changelog\n\n- 0.1.0 - initial release\n- 0.2.0 - reworked the API a bit to make it easier to work with and more\n  semver-compatible, and added handling for the proposed\n  `actions/reregister_all` command.\n- 0.2.1 - generate a leaner JSON schema that's hopefully less confusing\n- 0.3.0 - add a `proposals` feature.\n- 0.3.1 - don't require `Arc` for `Api::new`\n- 0.4.0 - convert `Api` from a separate object into a sealed trait\n- 0.4.1 - interpret whitespace-only messages as null\n- 0.4.2 - cleanup action schemas in `register_actions_raw`\n- 0.4.3 - add the `strip-trailing-zeroes` feature\n- 0.4.4 - fix invalid name for `action/result`\n- 0.4.5 - consider `null` schemas equivalent to untyped `{}`\n\n## License\n\nTL;DR do whatever you want.\n\nLicensed under either the [BSD Zero Clause License](LICENSE-0BSD)\n(https://opensource.org/licenses/0BSD), the [Apache 2.0\nLicense](LICENSE-APACHE) (http://www.apache.org/licenses/LICENSE-2.0) or\nthe [MIT License](LICENSE-MIT) (http://opensource.org/licenses/MIT), at\nyour choice.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchayleaf%2Frust-neuro-sama-game-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchayleaf%2Frust-neuro-sama-game-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchayleaf%2Frust-neuro-sama-game-api/lists"}