{"id":36626275,"url":"https://github.com/koczadly/csgo-gsi","last_synced_at":"2026-01-12T09:32:21.509Z","repository":{"id":38291213,"uuid":"183480687","full_name":"koczadly/csgo-gsi","owner":"koczadly","description":"A Java library for Counter-Strike: Global Offensive's game state integration","archived":false,"fork":false,"pushed_at":"2023-04-27T20:16:49.000Z","size":579,"stargazers_count":32,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-28T04:28:05.767Z","etag":null,"topics":["api","counter-strike","counter-strike-global-offensive","csgo","game","game-state-integration","gsi","integration","java","state","valve"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koczadly.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}},"created_at":"2019-04-25T17:30:48.000Z","updated_at":"2025-10-11T18:55:56.000Z","dependencies_parsed_at":"2022-08-30T23:40:19.238Z","dependency_job_id":null,"html_url":"https://github.com/koczadly/csgo-gsi","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/koczadly/csgo-gsi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koczadly%2Fcsgo-gsi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koczadly%2Fcsgo-gsi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koczadly%2Fcsgo-gsi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koczadly%2Fcsgo-gsi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koczadly","download_url":"https://codeload.github.com/koczadly/csgo-gsi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koczadly%2Fcsgo-gsi/sbom","scorecard":{"id":565495,"data":{"date":"2025-08-11","repo":{"name":"github.com/koczadly/csgo-gsi","commit":"c0a9d615965389e67d5c9cee544a79ab976612a3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/28 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":"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":"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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: 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":"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 'master'"],"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"}},{"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T14:52:34.087Z","repository_id":38291213,"created_at":"2025-08-20T14:52:34.087Z","updated_at":"2025-08-20T14:52:34.087Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28337728,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api","counter-strike","counter-strike-global-offensive","csgo","game","game-state-integration","gsi","integration","java","state","valve"],"created_at":"2026-01-12T09:32:20.838Z","updated_at":"2026-01-12T09:32:21.505Z","avatar_url":"https://github.com/koczadly.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSGO-GSI\n## About\nA Java library for retrieving real-time game information and statistics from *Counter-Strike: Global Offensive* using\nthe built-in game state integration service.\n\n## Features\nThis library provides access to 3 main features:\n- Automated location of the game's installation directory\n- The creation and deletion of game state service configurations\n- A server which listens for updates and parses the game state data\n\n## Usage\n### Maven\nThis project is hosted on Maven Central. To import this library, add the following dependency into your pom.xml:\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003euk.oczadly.karl\u003c/groupId\u003e\n    \u003cartifactId\u003ecsgo-gsi\u003c/artifactId\u003e\n    \u003cversion\u003e1.6.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Documentation\nThe latest Javadoc pages can be [viewed online through Javadoc.io](https://www.javadoc.io/doc/uk.oczadly.karl/csgo-gsi).\n\n### Configuration generation\nCreating the game state configuration file for the game client is an easy and automated process. This can be \naccomplished using the provided [`GSIConfig`](https://www.javadoc.io/doc/uk.oczadly.karl/csgo-gsi/latest/uk/oczadly/karl/csgsi/config/GSIConfig.html)\n class. The example below demonstrates how to use this utility:\n\n```java\n// Build the configuration for our service\nGSIConfig config = new GSIConfig()\n        .setLocalURI(1337)  // Server on localhost:1337\n        .setTimeoutPeriod(1.0)\n        .setBufferPeriod(0.5)\n        .withAuthToken(\"password\", \"Q79v5tcxVQ8u\")\n        .withAllDataComponents();  // Or specify which using withDataComponents(...)\n\ntry {\n    // Automatically locates the game directory and creates the configuration file\n    Path output = config.writeFile(\"test_service\");\n    System.out.println(\"Written config file: \" + output);\n} catch (GameNotFoundException e) {\n    // Either CSGO or Steam installation directory could not be located\n    System.err.println(\"Couldn't locate CSGO installation: \" + e.getMessage());\n} catch (IOException e) {\n    System.err.println(\"Couldn't write to configuration file.\");\n}\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eClick to view data written to the file \u003ccode\u003egamestate_integration_test_service.cfg\u003c/code\u003e\u003c/summary\u003e\n\n```text\n\"Sample test service\" {\n    \"uri\"     \"http://localhost:1337\"\n    \"timeout\" \"1.0\"\n    \"buffer\"  \"0.5\"\n    \"auth\" {\n        \"password\" \"Q79v5tcxVQ8u\"\n    }\n    \"data\" {\n        \"map_round_wins\"         \"1\"\n        \"map\"                    \"1\"\n        \"player_id\"              \"1\"\n        \"player_match_stats\"     \"1\"\n        \"player_state\"           \"1\"\n        \"player_weapons\"         \"1\"\n        \"player_position\"        \"1\"\n        \"provider\"               \"1\"\n        \"round\"                  \"1\"\n        \"allgrenades\"            \"1\"\n        \"allplayers_id\"          \"1\"\n        \"allplayers_match_stats\" \"1\"\n        \"allplayers_position\"    \"1\"\n        \"allplayers_state\"       \"1\"\n        \"allplayers_weapons\"     \"1\"\n        \"bomb\"                   \"1\"\n        \"phase_countdowns\"       \"1\"\n    }\n}\n```\n\u003c/details\u003e\n\n### Listening for state information\nTo listen for new game state information, a [`GSIServer`](https://www.javadoc.io/doc/uk.oczadly.karl/csgo-gsi/latest/uk/oczadly/karl/csgsi/GSIServer.html)\nobject must be created, and an instance which implements [`GSIListener`](https://www.javadoc.io/doc/uk.oczadly.karl/csgo-gsi/latest/uk/oczadly/karl/csgsi/GSIListener.html)\nmust be registered to the server object. The example below demonstrates a basic listener which prints the client's\n Steam ID and current map name (if in a game) to the console.\n\n```java\n// Create a new listener (using a lambda for this example)\nGSIListener listener = (state, context) -\u003e {\n    // Access state information with the 'state' object...\n    System.out.println(\"New state from game client address \" + context.getAddress().getHostAddress());\n    \n    state.getProvider().ifPresent(provider -\u003e {\n        System.out.println(\"Client SteamID: \" + provider.getClientSteamId());\n    });\n    state.getMap().ifPresent(map -\u003e {\n        System.out.println(\"Current map: \" + map.getName());\n    });\n};\n\n// Configure server\nGSIServer server = new GSIServer.Builder(1337)        // Port 1337, on all network interfaces\n        .requireAuthToken(\"password\", \"Q79v5tcxVQ8u\") // Require the specified password\n        .registerListener(listener)                   // Alternatively, you can call this dynamically on the GSIServer\n        .build();\n\n// Start server\ntry {\n    server.start(); // Start the server (runs in a separate thread)\n    System.out.println(\"Server started. Listening for state data...\");\n} catch (IOException e) {\n    System.err.println(\"Couldn't start server.\");\n}\n```\n\n### Accessing the diagnostics page\nIf not disabled (using the GSIServer builder), you can access the server as a standard webpage, revealing information\n about the server and the game state information being received.\n\u003cdetails\u003e\n\u003csummary\u003eSample output screenshot\u003c/summary\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/1368580/98445604-686b7c00-2110-11eb-9cc9-44886371eae2.png\"\u003e\n\u003c/details\u003e\n\n## Development\nIf you experience a bug or think the library is missing some functionality, please submit an issue or pull request.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoczadly%2Fcsgo-gsi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoczadly%2Fcsgo-gsi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoczadly%2Fcsgo-gsi/lists"}