{"id":13714535,"url":"https://github.com/brittonhayes/dnd","last_synced_at":"2025-10-13T06:43:09.472Z","repository":{"id":54486601,"uuid":"328138488","full_name":"brittonhayes/dnd","owner":"brittonhayes","description":"Go Client for the D\u0026D 5e REST API ⚔️🔮","archived":false,"fork":false,"pushed_at":"2023-02-25T07:31:24.000Z","size":180,"stargazers_count":15,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-07T11:16:26.602Z","etag":null,"topics":["client","dnd5e","dungeons-and-dragons","golang","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Go","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/brittonhayes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2021-01-09T11:22:54.000Z","updated_at":"2025-03-01T10:53:12.000Z","dependencies_parsed_at":"2024-06-21T17:39:46.632Z","dependency_job_id":"339b1dea-7579-41a8-89ff-a9d4d98a2781","html_url":"https://github.com/brittonhayes/dnd","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brittonhayes%2Fdnd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brittonhayes%2Fdnd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brittonhayes%2Fdnd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brittonhayes%2Fdnd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brittonhayes","download_url":"https://codeload.github.com/brittonhayes/dnd/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252865589,"owners_count":21816309,"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":["client","dnd5e","dungeons-and-dragons","golang","rest-api"],"created_at":"2024-08-03T00:00:27.505Z","updated_at":"2025-10-13T06:43:04.431Z","avatar_url":"https://github.com/brittonhayes.png","language":"Go","funding_links":[],"categories":["API Clients"],"sub_categories":["Go"],"readme":"# DnD\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/brittonhayes/dnd.svg)](https://pkg.go.dev/github.com/brittonhayes/dnd)\n![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/brittonhayes/dnd?color=blue\u0026label=Latest%20Version\u0026sort=semver)\n[![Go Report Card](https://goreportcard.com/badge/github.com/brittonhayes/dnd)](https://goreportcard.com/report/github.com/brittonhayes/dnd)\n![Test](https://github.com/brittonhayes/dnd/workflows/Test/badge.svg)\n[![codecov](https://codecov.io/gh/brittonhayes/dnd/branch/main/graph/badge.svg?token=VN11FU4LBW)](https://codecov.io/gh/brittonhayes/dnd)\n\n\u003cimg width=\"700\" src=\"https://repository-images.githubusercontent.com/328138488/50a49700-522a-11eb-85be-7d8244592f86\"\u003e\u003c/img\u003e\n\n\u003e A Go Client for the Dungeons and Dragons 5e SRD REST API\n\n## Installation\n\nInstall with the go get command\n\n```go\ngo get github.com/brittonhayes/dnd\n```\n\n## Documentation\n\nView the full docs on [pkg.go.dev](https://pkg.go.dev/github.com/brittonhayes/dnd)\n\nView the API here https://www.dnd5eapi.co/\n\n## Usage\n\nUsing the package is as easy as create client, pick the endpoint, and run the method. This applies across every data\ntype, so it is consistent across the board. Here's a simple example of how to fetch a rule from the DnD 5e ruleset.\n\n```go\nfunc main() {\n    // Create a dnd client\n    c := dnd.NewClient()\n    \n    // Fetch DnD rules about adventuring\n    r, _ := c.Rules.Find(\"adventuring\")\n    \n    // Print out the rule's name\n    fmt.Println(\"Name\", r.Name)\n}\n```\n\n## Examples\n\nFor example uses of the package, check out the [example](_example) directory\n\n## Development\n\nIf you'd like to contribute to DnD\\, make sure you have mage installed: https://magefile.org\n\n```shell\n# Download dependencies and run tests\ngo run main.go download\ngo test ./...\n```\n\n---\n\n\u003e Social image by Ashley Mcnamara https://twitter.com/ashleymcnamara 💖\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrittonhayes%2Fdnd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrittonhayes%2Fdnd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrittonhayes%2Fdnd/lists"}