{"id":22326218,"url":"https://github.com/aircastdev/trovo-rs","last_synced_at":"2025-09-10T08:34:19.014Z","repository":{"id":43818792,"uuid":"383090731","full_name":"AircastDev/trovo-rs","owner":"AircastDev","description":"A https://trovo.live api \u0026 chat client written in and for rust","archived":false,"fork":false,"pushed_at":"2024-06-12T14:13:28.000Z","size":69,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-13T05:22:59.896Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://crates.io/crates/trovo","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/AircastDev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-07-05T09:48:12.000Z","updated_at":"2024-06-12T14:13:31.000Z","dependencies_parsed_at":"2024-06-12T20:01:23.474Z","dependency_job_id":"24b06da5-43cd-477e-8486-2354b323dd0f","html_url":"https://github.com/AircastDev/trovo-rs","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.125,"last_synced_commit":"16f0910ed193b36400a1aad291dd67804c08576f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AircastDev/trovo-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AircastDev%2Ftrovo-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AircastDev%2Ftrovo-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AircastDev%2Ftrovo-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AircastDev%2Ftrovo-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AircastDev","download_url":"https://codeload.github.com/AircastDev/trovo-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AircastDev%2Ftrovo-rs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267718284,"owners_count":24133448,"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-07-29T02:00:12.549Z","response_time":2574,"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":[],"created_at":"2024-12-04T02:16:20.980Z","updated_at":"2025-07-29T16:33:51.649Z","avatar_url":"https://github.com/AircastDev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Crates.io](https://img.shields.io/crates/l/trovo)\n[![Crates.io](https://img.shields.io/crates/v/trovo)](https://crates.io/crates/trovo)\n[![Docs.rs](https://docs.rs/trovo/badge.svg)](https://docs.rs/trovo)\n[![Workflow Status](https://github.com/AircastDev/trovo-rs/workflows/main/badge.svg)](https://github.com/AircastDev/trovo-rs/actions?query=workflow%3A%22main%22)\n\n# trovo-rs\n\nA Rust api \u0026 chat client for [Trovo](https://trovo.live).\n\nIt currently doesn't support all of the trovo api, feel free to open a PR adding new endpoints.\n\n### Example\n\nFind a user by username and then connect to their chat.\n\n```rust\nuse futures::prelude::*;\nuse std::{env, error::Error};\nuse trovo::ClientId;\n\n#[tokio::main]\nasync fn main() -\u003e Result\u003c(), Box\u003cdyn Error\u003e\u003e {\n    let client_id = env::var(\"CLIENT_ID\").expect(\"missing CLIENT_ID env var\");\n    let username = env::var(\"USER_NAME\").expect(\"missing USER_NAME env var\");\n\n    let client = trovo::Client::new(ClientId::new(client_id));\n\n    println!(\"looking up user '{}'\", username);\n    let user = client\n        .user(username)\n        .await?\n        .expect(\"no user found for the given username\");\n    println!(\"found user {:#?}\", user);\n\n    let mut messages = client.chat_messages_for_channel(\u0026user.channel_id).await?;\n    println!(\"listening for chat messages\");\n    while let Some(msg) = messages.next().await {\n        let msg = msg?;\n        println!(\"[{}] {}\", msg.nick_name, msg.content);\n    }\n\n    Ok(())\n}\n```\n\n## License\n\nLicensed under either of\n\n-   Apache License, Version 2.0\n    ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n-   MIT license\n    ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faircastdev%2Ftrovo-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faircastdev%2Ftrovo-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faircastdev%2Ftrovo-rs/lists"}