{"id":18620851,"url":"https://github.com/exts/artifactdeckcodego","last_synced_at":"2025-06-10T22:06:52.956Z","repository":{"id":114940066,"uuid":"159328028","full_name":"exts/ArtifactDeckCodeGo","owner":"exts","description":"Artifact Card Game Deck Code based on the original api code written in PHP.","archived":false,"fork":false,"pushed_at":"2018-12-21T13:45:13.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-17T04:34:53.026Z","etag":null,"topics":["api","artifact","card-game","golang"],"latest_commit_sha":null,"homepage":"","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/exts.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}},"created_at":"2018-11-27T11:55:05.000Z","updated_at":"2018-12-21T13:44:59.000Z","dependencies_parsed_at":"2023-09-20T18:34:47.378Z","dependency_job_id":null,"html_url":"https://github.com/exts/ArtifactDeckCodeGo","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/exts%2FArtifactDeckCodeGo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exts%2FArtifactDeckCodeGo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exts%2FArtifactDeckCodeGo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exts%2FArtifactDeckCodeGo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/exts","download_url":"https://codeload.github.com/exts/ArtifactDeckCodeGo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exts%2FArtifactDeckCodeGo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259159685,"owners_count":22814498,"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":["api","artifact","card-game","golang"],"created_at":"2024-11-07T04:08:13.013Z","updated_at":"2025-06-10T22:06:52.934Z","avatar_url":"https://github.com/exts.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ArtifactDeckCodeGo\nArtifact Card Game Deck Code Encoder \u0026 Decoder based on the [original api](https://github.com/ValveSoftware/ArtifactDeckCode) code written in PHP.\n\n# Installation\n\n`go get github.com/exts/ArtifactDeckCodeGo`\n\n# Example Decode Usage\n\n```go\n// cardDeck returns a CardDeck struct reference\ncardDeck, err := ArtifactDeckCodeGo.ParseDeck(\"ADCJQEAZX0ivAGABwA4XSXdAUEGQgEFAmIBRF0BDAkYAQUHAwEIBSQBMQFwASgBTw__\")\nif err != nil {\n\t// handle error\n}\n\n// cardDeck.name =\u003e string\n// cardDeck.heroes =\u003e []Card\n// cardDeck.cards =\u003e []Card\n```\n\n# Example Encode Usage\n\nEncoding takes a CardDeck struct reference and spits out a deck code string. So provide the CardDeck struct with a full 40 card deck + 9 items and then 5 heroes and **excluding** signature cards (hero cards) to get a proper deck code back.\n\n```go\n// starter deck\ncodeStr := \"ADCJQEAZX0ivAGABwA4XSXdAUEGQgEFAmIBRF0BDAkYAQUHAwEIBSQBMQFwASgBTw__\"\ncardDeck, err := ArtifactDeckCodeGo.ParseDeck(codeStr)\nif err != nil {\n\t// handle error\n}\n\ndeckCode, err := ArtifactDeckCodeGo.EncodeDeck(cardDeck)\nif err != nil {\n\t// handle error\n}\n\nprintln(codeStr == deckCode) // true\n```\n\n# Notes\n- Use card database to cross reference hero card id's to get the missing hero signature cards (each hero has a certain number of additional cards paired with them)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexts%2Fartifactdeckcodego","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexts%2Fartifactdeckcodego","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexts%2Fartifactdeckcodego/lists"}