{"id":19529762,"url":"https://github.com/forlos/vndb_rs","last_synced_at":"2026-06-11T04:31:18.631Z","repository":{"id":57671719,"uuid":"262658043","full_name":"Forlos/vndb_rs","owner":"Forlos","description":"Bare-bones VNDB API","archived":false,"fork":false,"pushed_at":"2020-05-31T15:11:58.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T01:34:16.038Z","etag":null,"topics":["rust","vndb","vndb-api"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Forlos.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-09T21:00:09.000Z","updated_at":"2020-05-31T15:12:00.000Z","dependencies_parsed_at":"2022-08-30T15:41:21.943Z","dependency_job_id":null,"html_url":"https://github.com/Forlos/vndb_rs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Forlos%2Fvndb_rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Forlos%2Fvndb_rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Forlos%2Fvndb_rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Forlos%2Fvndb_rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Forlos","download_url":"https://codeload.github.com/Forlos/vndb_rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240783111,"owners_count":19856776,"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","vndb","vndb-api"],"created_at":"2024-11-11T01:27:22.268Z","updated_at":"2026-06-11T04:31:18.594Z","avatar_url":"https://github.com/Forlos.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"* Vndb_rs\nBare-bones VNDB api\n\nIt is recommended to write higher level wrapper around this library rather than using it directly.\n** Usage\nRequires Rust 1.42\n#+BEGIN_SRC toml\n[dependencies]\nvndb_rs = \"0.1\"\n#+END_SRC\n** Features\n- [X] All api actions\n- [ ] TLS support\n- [ ] Async\n** Examples\nFor now creating TCP stream is on user side. This is subject to change.\n\n*** Login and get db stats\n#+BEGIN_SRC rust\nuse std::net::TcpStream;\nuse vndb_rs::{\n    API_URL,\n    sync::client::Client,\n};\n\nlet mut client = Client::new(TcpStream::connect(API_URL).unwrap());\nlet response = client.login();\nprintln!(\"{:#?}\", response);\nlet response = client.get_dbstats();\nprintln!(\"{:#?}\", response);\n#+END_SRC\n*** Login and get all info about vn with id 1\n#+BEGIN_SRC rust\nuse std::net::TcpStream;\nuse vndb_rs::{\n    API_URL,\n    sync::client::Client,\n    get::vn::VN_FLAGS,\n};\n\nlet mut client = Client::new(TcpStream::connect(API_URL).unwrap());\nlet response = client.login();\nprintln!(\"{:#?}\", response);\nlet response = client.get_vn(\u0026VN_FLAGS, \"(id=1)\".to_owned(), None);\nprintln!(\"{:#?}\", response);\n#+END_SRC\n*** Login using credentials and set vote to 8.5 for VN with id 17\n#+BEGIN_SRC rust\nuse std::net::TcpStream;\nuse vndb_rs::{\n    API_URL,\n    sync::client::Client,\n    common::set::ulist::UListFields,\n};\n\nlet mut client = Client::new(TcpStream::connect(API_URL).unwrap());\nlet response = client.login_with_credentials(\"username\", \"password\");\nprintln!(\"{:#?}\", response);\nlet response = client.set_ulist(\n    \"17\".to_owned(),\n    UListFields::new(None, None, None, Some(85), None),\n);\nprintln!(\"{:#?}\", response);\n#+END_SRC\n\n** References\n- https://vndb.org/d11\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforlos%2Fvndb_rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforlos%2Fvndb_rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforlos%2Fvndb_rs/lists"}