{"id":31542607,"url":"https://github.com/stuffbymax/game-dependencies-db","last_synced_at":"2025-10-04T11:59:41.092Z","repository":{"id":306280758,"uuid":"1025650085","full_name":"stuffbymax/game-dependencies-db","owner":"stuffbymax","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-22T12:49:11.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-22T14:49:46.962Z","etag":null,"topics":["data","database","game","games-list","json","mit-license"],"latest_commit_sha":null,"homepage":"","language":null,"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/stuffbymax.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":"2025-07-24T15:22:54.000Z","updated_at":"2025-08-22T12:49:15.000Z","dependencies_parsed_at":"2025-07-24T20:19:29.317Z","dependency_job_id":"d9346d99-8370-4d1e-a369-99f2e36f39af","html_url":"https://github.com/stuffbymax/game-dependencies-db","commit_stats":null,"previous_names":["stuffbymax/game-dependencies-db"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stuffbymax/game-dependencies-db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuffbymax%2Fgame-dependencies-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuffbymax%2Fgame-dependencies-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuffbymax%2Fgame-dependencies-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuffbymax%2Fgame-dependencies-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stuffbymax","download_url":"https://codeload.github.com/stuffbymax/game-dependencies-db/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuffbymax%2Fgame-dependencies-db/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278308618,"owners_count":25965654,"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-10-04T02:00:05.491Z","response_time":63,"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":["data","database","game","games-list","json","mit-license"],"created_at":"2025-10-04T11:59:30.522Z","updated_at":"2025-10-04T11:59:41.084Z","avatar_url":"https://github.com/stuffbymax.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## 🎮 Game Compatibility Helper JSON\n\nThis JSON file serves as a **reference database for fixing compatibility issues** with popular PC games, particularly when launching older titles or resolving common runtime errors. It provides detailed metadata for each game including:\n\n### ✅ What It Contains\n\nFor each game entry, the JSON includes:\n\n* **Game Name \u0026 Cover Image**\n  A visual and name identifier for easy reference.\n\n* **DirectX Version**\n  Indicates the required DirectX version (e.g., DirectX 9.0c, 11, or 12).\n\n* **Visual C++ Redistributables (`vcredist`)**\n  Lists the Microsoft VC++ versions needed (e.g., 2008, 2015–2022).\n\n* **.NET Framework Version**\n  Specifies the required version of the .NET Framework.\n\n* **Critical DLL Dependencies**\n  Lists DLL files that the game depends on. These are often the root cause of startup errors.\n\n* **Download Links**\n  Direct links to official Microsoft sources for:\n\n  * DirectX Redistributables\n  * VC++ Redistributables\n  * .NET Framework installers\n\n* **Common Fixes**\n  A list of practical steps users can follow to resolve compatibility problems (e.g., running as administrator, using compatibility mode, disabling overlays).\n\n### 🧩 Purpose\n\nThis JSON is designed to help users:\n\n* Troubleshoot and fix game launch issues.\n* Quickly locate and download missing dependencies.\n* Set up classic or modern games on Windows systems more reliably.\n\n### 🛠 Example Use Cases\n\n* Building a **troubleshooting assistant tool** or launcher that reads this JSON and checks for missing components.\n* Creating a **mod manager or patch installer** that ensures all runtimes are correctly installed.\n* Publishing a **website or app** that recommends fixes based on known game compatibility problems.\n\n---\n\n# Fetch JSON from GitHub in Different Languages\n\n---\n\n## JavaScript\n\n### Node.js (with `fetch`)\n\n```js\nimport fetch from 'node-fetch'; // in Node.js \u003c 18, otherwise fetch is global\n\nasync function fetchGames() {\n  const url = 'https://raw.githubusercontent.com/stuffbymax/game-dependencies-db/refs/heads/main/games.json';\n  const response = await fetch(url);\n  if (!response.ok) throw new Error(`HTTP error! Status: ${response.status}`);\n  const data = await response.json();\n  console.log(data);\n}\n\nfetchGames().catch(console.error);\n```\n\n### Browser\n\n```js\nasync function fetchGames() {\n  const url = 'https://raw.githubusercontent.com/stuffbymax/game-dependencies-db/refs/heads/main/games.json';\n  const response = await fetch(url);\n  if (!response.ok) {\n    console.error('Network response was not ok', response.statusText);\n    return;\n  }\n  const data = await response.json();\n  console.log(data);\n}\nfetchGames();\n```\n\n---\n\n## Python\n\n```python\nimport requests\n\ndef fetch_games():\n    url = 'https://raw.githubusercontent.com/stuffbymax/game-dependencies-db/refs/heads/main/games.json'\n    resp = requests.get(url)\n    resp.raise_for_status()\n    data = resp.json()\n    print(data)\n\nif __name__ == \"__main__\":\n    fetch_games()\n```\n\n---\n\n## C (using libcurl + cJSON)\n\n```c\n#include \u003cstdio.h\u003e\n#include \u003cstdlib.h\u003e\n#include \u003ccurl/curl.h\u003e\n#include \"cJSON.h\"\n\nstruct MemoryBlock {\n    char *data;\n    size_t size;\n};\n\nstatic size_t write_callback(void *contents, size_t size, size_t nmemb, void *userp) {\n    size_t realsize = size * nmemb;\n    struct MemoryBlock *mem = (struct MemoryBlock *) userp;\n\n    char *new_mem = realloc(mem-\u003edata, mem-\u003esize + realsize + 1);\n    if (!new_mem) return 0;\n\n    mem-\u003edata = new_mem;\n    memcpy(\u0026(mem-\u003edata[mem-\u003esize]), contents, realsize);\n    mem-\u003esize += realsize;\n    mem-\u003edata[mem-\u003esize] = 0;\n\n    return realsize;\n}\n\nint main(void) {\n    CURL *curl = curl_easy_init();\n    struct MemoryBlock chunk = { .data = NULL, .size = 0 };\n    const char *url = \"https://raw.githubusercontent.com/stuffbymax/game-dependencies-db/refs/heads/main/games.json\";\n\n    if (!curl) {\n        fprintf(stderr, \"Failed to init curl\\n\");\n        return EXIT_FAILURE;\n    }\n\n    curl_easy_setopt(curl, CURLOPT_URL, url);\n    curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_callback);\n    curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)\u0026chunk);\n    CURLcode res = curl_easy_perform(curl);\n\n    if (res != CURLE_OK) {\n        fprintf(stderr, \"curl failed: %s\\n\", curl_easy_strerror(res));\n        curl_easy_cleanup(curl);\n        return EXIT_FAILURE;\n    }\n\n    curl_easy_cleanup(curl);\n\n    cJSON *json = cJSON_Parse(chunk.data);\n    if (!json) {\n        fprintf(stderr, \"JSON parse error: %s\\n\", cJSON_GetErrorPtr());\n        free(chunk.data);\n        return EXIT_FAILURE;\n    }\n\n    char *printed = cJSON_Print(json);\n    printf(\"%s\\n\", printed);\n\n    free(printed);\n    cJSON_Delete(json);\n    free(chunk.data);\n\n    return EXIT_SUCCESS;\n}\n```\n\n⚠️ Requires linking against `libcurl` and `cJSON`.\n\n---\n\n## C# (using `HttpClient` + `System.Text.Json`)\n\n```csharp\nusing System;\nusing System.Net.Http;\nusing System.Text.Json;\nusing System.Threading.Tasks;\n\npublic class Game {\n    public string name { get; set; }\n    public string image { get; set; }\n    public string directx { get; set; }\n    public string[] vcredist { get; set; }\n    public string dotnet { get; set; }\n    public string[] dlls { get; set; }\n    public Downloads downloads { get; set; }\n    public string[] fixes { get; set; }\n    public string[] manuals { get; set; }\n}\n\npublic class Downloads {\n    public string directx { get; set; }\n    public System.Collections.Generic.Dictionary\u003cstring, string\u003e vcredist { get; set; }\n    public string dotnet { get; set; }\n}\n\npublic class Program {\n    public static async Task Main(string[] args) {\n        var url = \"https://raw.githubusercontent.com/stuffbymax/game-dependencies-db/refs/heads/main/games.json\";\n        using var client = new HttpClient();\n        var json = await client.GetStringAsync(url);\n        var options = new JsonSerializerOptions { PropertyNameCaseInsensitive = true };\n        var games = JsonSerializer.Deserialize\u003cGame[]\u003e(json, options);\n\n        foreach (var game in games) {\n            Console.WriteLine($\"Name: {game.name}, DirectX: {game.directx}\");\n        }\n    }\n}\n```\n\n---\n\n## Summary\n\n| Language       | Tooling Used                      | Notes                            |\n| -------------- | --------------------------------- | -------------------------------- |\n| **JavaScript** | `fetch` (browser/Node.js)         | Modern and built-in              |\n| **Python**     | `requests` + `json()`             | Simple and widely used           |\n| **C**          | `libcurl` + `cJSON`               | Low-level, needs extra libraries |\n| **C#**         | `HttpClient` + `System.Text.Json` | Async, clean, strongly typed     |\n\n---\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuffbymax%2Fgame-dependencies-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstuffbymax%2Fgame-dependencies-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuffbymax%2Fgame-dependencies-db/lists"}