{"id":20948620,"url":"https://github.com/fabricio-191/valve-server-query","last_synced_at":"2025-09-15T18:04:49.178Z","repository":{"id":43807646,"uuid":"295282596","full_name":"Fabricio-191/valve-server-query","owner":"Fabricio-191","description":"An implementation of valve protocols (server, master servers and RCON)","archived":false,"fork":false,"pushed_at":"2024-01-10T03:14:20.000Z","size":3251,"stargazers_count":39,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-01T06:14:16.695Z","etag":null,"topics":["game-server-query","master-server-query","ping","protocol","query","steam","valve"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Fabricio-191.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2020-09-14T02:28:06.000Z","updated_at":"2025-08-10T03:27:31.000Z","dependencies_parsed_at":"2025-06-07T01:04:38.528Z","dependency_job_id":"20ec4033-6cd3-4db2-a999-df21590cb4fb","html_url":"https://github.com/Fabricio-191/valve-server-query","commit_stats":{"total_commits":237,"total_committers":2,"mean_commits":118.5,"dds":0.1561181434599156,"last_synced_commit":"45bb6a50a17f065a4ac7ebe8f97eca5f7be585c3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Fabricio-191/valve-server-query","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fabricio-191%2Fvalve-server-query","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fabricio-191%2Fvalve-server-query/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fabricio-191%2Fvalve-server-query/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fabricio-191%2Fvalve-server-query/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fabricio-191","download_url":"https://codeload.github.com/Fabricio-191/valve-server-query/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fabricio-191%2Fvalve-server-query/sbom","scorecard":{"id":48911,"data":{"date":"2025-08-11","repo":{"name":"github.com/Fabricio-191/valve-server-query","commit":"b5f2c4f3120f61f61909563817e500b7d425ac3f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-14T23:20:01.933Z","repository_id":43807646,"created_at":"2025-08-14T23:20:01.934Z","updated_at":"2025-08-14T23:20:01.934Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275297347,"owners_count":25439798,"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-09-15T02:00:09.272Z","response_time":75,"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":["game-server-query","master-server-query","ping","protocol","query","steam","valve"],"created_at":"2024-11-19T00:22:27.948Z","updated_at":"2025-09-15T18:04:49.150Z","avatar_url":"https://github.com/Fabricio-191.png","language":"TypeScript","funding_links":["https://www.buymeacoffee.com/Fabricio191","https://paypal.me/Fabricio191"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://fabricio-191.github.io/docs/valve-server-query/\" rel=\"prefetch\"\u003e\n\t\t\u003cimg src=\"https://raw.githubusercontent.com/Fabricio-191/docs/main/src/static/docs1.png\"\u003e\n\t\u003c/a\u003e\n\u003c/p\u003e\n\n\u003ca href=\"https://www.buymeacoffee.com/Fabricio191\" target=\"_blank\"\u003e\n\t\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-orange.png\" alt=\"Buy Me A Coffee\" height=\"20\" width=\"100\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://discord.gg/zrESMn6\" target=\"_blank\"\u003e\n\t\u003cimg src=\"https://img.shields.io/discord/555535212461948936?color=7289da\" alt=\"Discord\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://paypal.me/Fabricio191\" target=\"_blank\"\u003e\n\t\u003cimg src=\"https://img.shields.io/badge/Donate-PayPal-001570\" alt=\"PayPal\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/Fabricio-191/simplest.db/actions/workflows/node.js.yml\" target=\"_blank\"\u003e\n\t\u003cimg src=\"https://github.com/Fabricio-191/simplest.db/actions/workflows/node.js.yml/badge.svg\"\u003e\n\u003c/a\u003e\n\n\u003c/br\u003e\n\nThis module allows you to:\n\n* Easily make queries to servers running valve games\n* Make queries to valve master servers\n* Use a remote console to control your server remotely\n\n## Links\n\n* [Full Docs](https://fabricio-191.github.io/docs/valve-server-query/)\n* [GitHub](https://github.com/Fabricio-191/valve-server-query)\n* [Discord](https://discord.gg/zrESMn6)\n\n## An implementation of valve protocols\n\n```js\nconst { Server, RCON, MasterServer } = require('@fabricio-191/valve-server-query');\n```\n\n**Some** of the games where it works with are:\n\n* Counter-Strike\n* Counter-Strike: Global Offensive\n* Garry's Mod\n* Half-Life\n* Team Fortress 2\n* Day of Defeat\n* The ship\n\n## Examples\n\n#### Server\n\n```js\nconst server = new Server({\n  ip: '0.0.0.0',\n  port: 27015,\n  timeout: 3000,\n});\n\nconst info = await server.getInfo();\nconsole.log(info);\n\nconst players = await server.getPlayers();\nconsole.log(players);\n\nconst rules = await server.getRules();\nconsole.log(rules);\n\nconsole.log(server.lastPing);\n```\n\n#### Master Server\n\n```js\nconst servers = await MasterServer({\n  quantity: 1000,\n  region: 'US_EAST',\n  timeout: 3000,\n});\n\n//servers is an array if 'ip:port' strings, see the docs\nconsole.log(servers);\n```\n\n#### RCON\n\n```js\nconst rcon = await RCON({\n  ip: '0.0.0.0',\n  port: 27015, //RCON port\n  password: 'your RCON password'\n});\n\nrcon.on('disconnect', async (reason) =\u003e {\n  console.log('disconnected', reason);\n  try{\n    await rcon.reconnect();\n  }catch(e){\n    console.log('reconnect failed', e.message);\n  }\n});\n\nrcon.on('passwordChanged', async () =\u003e {\n  const password = await getNewPasswordSomehow();\n  try{\n    await rcon.authenticate(password);\n  }catch(e){\n    console.error('Failed to authenticate with new password', e.message);\n  }\n});\n\nconst response = await rcon.exec('sv_gravity 1000');\n```\n\n#### [Full docs](https://fabricio-191.github.io/docs/valve-server-query/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabricio-191%2Fvalve-server-query","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabricio-191%2Fvalve-server-query","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabricio-191%2Fvalve-server-query/lists"}