{"id":15724481,"url":"https://github.com/jshrake/hearthstone-json","last_synced_at":"2025-03-31T01:14:44.988Z","repository":{"id":57584703,"uuid":"41467421","full_name":"jshrake/hearthstone-json","owner":"jshrake","description":"A command-line tool for converting the Hearthstone card definitions from XML to JSON","archived":false,"fork":false,"pushed_at":"2015-12-19T04:22:09.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-06T06:26:27.080Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/jshrake.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":"2015-08-27T05:27:56.000Z","updated_at":"2015-08-27T05:28:37.000Z","dependencies_parsed_at":"2022-09-13T08:10:45.078Z","dependency_job_id":null,"html_url":"https://github.com/jshrake/hearthstone-json","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jshrake%2Fhearthstone-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jshrake%2Fhearthstone-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jshrake%2Fhearthstone-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jshrake%2Fhearthstone-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jshrake","download_url":"https://codeload.github.com/jshrake/hearthstone-json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246399798,"owners_count":20770908,"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":[],"created_at":"2024-10-03T22:16:48.494Z","updated_at":"2025-03-31T01:14:44.970Z","avatar_url":"https://github.com/jshrake.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hearthstone-json\r\n\r\nA command-line tool for converting the bundled [Hearthstone](http://us.battle.net/hearthstone/) card definitions from XML to JSON.\r\n\r\n## What\r\n\r\nHearthstone ships with a [unity3d](https://unity3d.com/) asset bundle containing XML files for every supported language. The XML files contain definitions for every card in the game. The default install location for the unity3d asset bundle is:\r\n\r\n- Windows: `C:\\Program Files (x86)\\Hearthstone\\Data\\Win\\cardxml0.unity3d`\r\n- OSX: `/Applications/Hearthstone/Data/OSX/cardxml0.unity3d`\r\n\r\nIn order to extract the XML files from the bundle, we need to use a tool such as [disunity](https://github.com/ata4/disunity), which depends on Java. The purpose of this tool is to transform the extracted XML files to human-readable JSON. The resulting JSON is compatible with the API defined in [http://hearthstonejson.com/](http://hearthstonejson.com/).\r\n\r\n## Usage\r\n\r\n### OSX\r\n```bash\r\ncurl https://raw.githubusercontent.com/jshrake/hearthstone-json/master/osx.sh | sh\r\n```\r\n\r\nThe above performs the heavy lifting discussed in [what](#what), specifically:\r\n\r\n- Checks that java is installed and on your PATH\r\n- Downloads the `hearthstone-json` binary for your platform and architecture\r\n- Downloads [disunity](https://github.com/ata4/disunity)\r\n- Extracts the XML files from the `cardxml0.unity3d` file using disunity\r\n- Runs the `hearthstone-json` binary on each of the XML files\r\n- Writes the resulting JSON output to the `output` directory\r\n\r\n\r\n## Developement\r\n\r\n```bash\r\ngit clone https://github.com/jshrake/hearthstone-json\r\ncd hearthstone-json\r\ngo install\r\n```\r\n\r\nAssuming you've extracted the xml content from the Hearthstone game client cardxml0.unity3d file:\r\n\r\n```bash\r\nhearthstone-json path/to/enUS.txt\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjshrake%2Fhearthstone-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjshrake%2Fhearthstone-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjshrake%2Fhearthstone-json/lists"}