{"id":23698566,"url":"https://github.com/madh93/go-hoarder","last_synced_at":"2026-01-25T16:30:18.380Z","repository":{"id":269659606,"uuid":"907163956","full_name":"Madh93/go-hoarder","owner":"Madh93","description":"🔖 Go client for the Hoarder API","archived":false,"fork":false,"pushed_at":"2025-02-03T07:59:37.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-03T08:36:22.045Z","etag":null,"topics":["bookmarks","cli","client","go","golang","hoarder","hoarder-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/Madh93.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":"2024-12-23T01:21:23.000Z","updated_at":"2025-02-03T07:59:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"2e65ae2d-5f51-42e3-8fde-fe6db5b7a1c0","html_url":"https://github.com/Madh93/go-hoarder","commit_stats":null,"previous_names":["madh93/go-hoarder"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Madh93%2Fgo-hoarder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Madh93%2Fgo-hoarder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Madh93%2Fgo-hoarder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Madh93%2Fgo-hoarder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Madh93","download_url":"https://codeload.github.com/Madh93/go-hoarder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239768928,"owners_count":19693763,"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":["bookmarks","cli","client","go","golang","hoarder","hoarder-api"],"created_at":"2024-12-30T07:17:39.788Z","updated_at":"2026-01-25T16:30:18.312Z","avatar_url":"https://github.com/Madh93.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-hoarder\n\n[![Go Version](https://img.shields.io/badge/Go-1.22%2B-blue)](https://go.dev/doc/install)\n[![Latest tag](https://img.shields.io/github/v/tag/Madh93/go-hoarder?label=go%20module)](https://github.com/Madh93/go-hoarder/tags)\n[![Go Reference](https://pkg.go.dev/badge/github.com/Madh93/go-hoarder.svg)](https://pkg.go.dev/github.com/Madh93/go-hoarder)\n[![License](https://img.shields.io/badge/License-MIT-brightgreen)](LICENSE)\n\n[Go](https://go.dev/) client library for [Hoarder](https://hoarder.app).\n\nThe `go-hoarder` client is auto-generated using the\n[`oapi-codegen`](https://github.com/oapi-codegen/oapi-codegen) tool, which allows convert [Hoarder OpenAPI](https://github.com/hoarder-app/hoarder/blob/v0.22.0/packages/open-api/hoarder-openapi-spec.json) specification to Go code.\n\n## Requirements\n\n- [Go 1.22](https://golang.org/dl/) or higher.\n- A valid API key from [Hoarder](https://docs.hoarder.app/screenshots#settings).\n\n## Installation\n\nTo install `go-hoarder`, use `go get`:\n\n```sh\ngo get github.com/Madh93/go-hoarder\n```\n\n## Usage\n\nHere is a basic example of how to use the `go-hoarder` library:\n\n```go\npackage main\n\nimport (\n    \"context\"\n    \"fmt\"\n    \"log\"\n    \"net/http\"\n\n    \"github.com/Madh93/go-hoarder\"\n)\n\nfunc main() {\n    // Basic configuration\n    apiUrl := \"https://\u003cYOUR_HOARDER_HOSTNAME\u003e/api/v1\" // Replace this with your API URL\n    apiKey := \"\u003cYOUR_HOARDER_API_KEY\u003e\"                 // Replace this with your actual token\n\n    // Set up Bearer authentication\n    auth := func(ctx context.Context, req *http.Request) error {\n        req.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n        return nil\n    }\n\n    // Create the Hoarder client\n    client, err := hoarder.NewClient(apiUrl, hoarder.WithRequestEditorFn(auth))\n    if err != nil {\n        log.Fatalf(\"Error creating client: %v\", err)\n    }\n\n    log.Printf(\"Hello world from %s\", client.Server)\n}\n```\n\nFor more code examples, check out the [examples](examples) directory.\n\n## Documentation\n\nFor detailed usage and API documentation, refer to the [GoDoc](https://pkg.go.dev/github.com/Madh93/go-hoarder).\n\nAdditionally, it's recommended to check out the latest [Hoarder API documentation](https://docs.hoarder.app/api) for more information.\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request for any bug fixes or enhancements.\n\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature-branch`).\n3. Commit your changes (`git commit -am 'Add new feature'`).\n4. Push to the branch (`git push origin feature-branch`).\n5. Open a Pull Request.\n\n## License\n\nThis project is licensed under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadh93%2Fgo-hoarder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadh93%2Fgo-hoarder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadh93%2Fgo-hoarder/lists"}