{"id":15406651,"url":"https://github.com/inkstak/coverart","last_synced_at":"2025-04-17T22:03:44.786Z","repository":{"id":14567797,"uuid":"17283772","full_name":"inkstak/coverart","owner":"inkstak","description":"A tiny client for the Cover Art Archive web service","archived":false,"fork":false,"pushed_at":"2022-09-22T14:40:04.000Z","size":30,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-03-15T07:05:38.189Z","etag":null,"topics":["api","covertart","musicbrainz","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/inkstak.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":"2014-02-28T11:08:07.000Z","updated_at":"2022-09-22T13:33:06.000Z","dependencies_parsed_at":"2023-01-11T18:50:51.891Z","dependency_job_id":null,"html_url":"https://github.com/inkstak/coverart","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/inkstak%2Fcoverart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inkstak%2Fcoverart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inkstak%2Fcoverart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inkstak%2Fcoverart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inkstak","download_url":"https://codeload.github.com/inkstak/coverart/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249381182,"owners_count":21261252,"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","covertart","musicbrainz","ruby"],"created_at":"2024-10-01T16:24:50.637Z","updated_at":"2025-04-17T22:03:44.753Z","avatar_url":"https://github.com/inkstak.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coverart\n\nA tiny client for the [Cover Art Archive](http://coverartarchive.org) web service.\n\nIt works great with the [Musicbrainz client](http://github.com/inkstak/musicbrainz).\n\n[![Gem Version](https://badge.fury.io/rb/coverart.svg)](https://rubygems.org/gems/coverart)\n[![CI Status](https://github.com/inkstak/coverart/actions/workflows/ci.yml/badge.svg)](https://github.com/inkstak/coverart/actions/workflows/ci.yml)\n[![Maintainability](https://api.codeclimate.com/v1/badges/9bb8b75ea8c66b1a9c94/maintainability)](https://codeclimate.com/github/inkstak/coverart/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/9bb8b75ea8c66b1a9c94/test_coverage)](https://codeclimate.com/github/inkstak/coverart/test_coverage)\n\n### Installation\n\n```bash\nbundle add coverart\n```\n\n### Usage\n\nYou should first read the [JSON API manual](http://wiki.musicbrainz.org/Cover_Art_Archive/API) by Musicbrainz.\n\n```ruby\nrequire \"coverart\"\n\nclient = Coverart::Client.new\nclient.get(\"/release/76df3287-6cda-33eb-8e9a-044b5e15ffdd\")\n```\n\nYou can also use shortcuts :\n\n```ruby\n# Get the front image URL\nclient.front(\"76df3287-6cda-33eb-8e9a-044b5e15ffdd\")\n\n# Get the back image URL\nclient.back(\"99b09d02-9cc9-3fed-8431-f162165a9371\")\n\n# Get the front image URL for a release group\nclient.group(\"76df3287-6cda-33eb-8e9a-044b5e15ffdd\")\n```\n\n### Caching \u0026 middlewares\n\nIn order to perform caching, you can use [faraday_middleware](http://github.com/lostisland/faraday_middleware)\nor your own middlewares:\n\n```ruby\n# FYI: faraday_middleware and active_support are not present in dependencies.\n# Add them to your bundle.\n\nrequire \"coverart\"\nrequire \"faraday_middleware\"\nrequire \"active_support\"\n\nclient = Coverart::Client.new do |connection|\n  connection.response :caching do\n    ActiveSupport::Cache.lookup_store(:file_store, \"./tmp/cache\", namespace: \"covertart\", expires_in: 3600)\n  end\nend\n```\n\n## Contributing\n\n1. Don't hesitate to submit your feature/idea/fix in [issues](https://github.com/inkstak/coverart)\n2. Fork the [repository](https://github.com/inkstak/coverart)\n3. Create your feature branch\n4. Ensure RSpec \u0026 Rubocop are passing\n4. Create a pull request\n\n### Tests \u0026 lint\n\n```bash\nbundle exec rspec\nbundle exec rubocop\n```\n\nBoth can be run with:\n\n```bash\nbundle exec rake\n```\n\n## License \u0026 credits\n\nPlease see [LICENSE](https://github.com/inkstak/coverart/blob/main/LICENSE) for further details.\n\nContributors: [./graphs/contributors](https://github.com/inkstak/coverart/graphs/contributors)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finkstak%2Fcoverart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finkstak%2Fcoverart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finkstak%2Fcoverart/lists"}