{"id":15563067,"url":"https://github.com/dkam/openlib","last_synced_at":"2025-07-30T00:33:26.047Z","repository":{"id":136204826,"uuid":"257789153","full_name":"dkam/openlib","owner":"dkam","description":"Tiny Openlibrary gem.","archived":false,"fork":false,"pushed_at":"2021-07-03T02:53:24.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T05:13:06.361Z","etag":null,"topics":["openlibrary","ruby"],"latest_commit_sha":null,"homepage":null,"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/dkam.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-04-22T04:14:07.000Z","updated_at":"2021-07-03T02:53:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"7f786176-c5dc-46f7-b8cf-bad4d3e4d2f8","html_url":"https://github.com/dkam/openlib","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"5b1de8a9b10a43aebc4a5b0f890976b8a1d20453"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dkam/openlib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkam%2Fopenlib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkam%2Fopenlib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkam%2Fopenlib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkam%2Fopenlib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkam","download_url":"https://codeload.github.com/dkam/openlib/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkam%2Fopenlib/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267785795,"owners_count":24144122,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["openlibrary","ruby"],"created_at":"2024-10-02T16:17:18.781Z","updated_at":"2025-07-30T00:33:26.021Z","avatar_url":"https://github.com/dkam.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Openlib\n\nThis is a tiny client to the Open Library's [Books API](https://openlibrary.org/dev/docs/api/books). If this client doesn't meet your needs, try the other [Openlibrary client](https://github.com/jayfajardo/openlibrary).\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'openlib'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install openlib\n\n## Usage\n\nThis library will use Openlibrary's *view* or *data* endpoint as appropriate to the requested attribute.  You can access the raw responses with *Book#view* or *Book#data*.\n\n```\n\u003e book = Openlib::Book.new(id: '9780316030571')\n\u003e book.title\n=\u003e \"Cryptonomicon\"\n\u003e book.authors\n=\u003e [\"Neal Stephenson\"]\n\u003e book.subjects\n=\u003e [\"Fiction\", \"World War, 1939-1945\", \"World War, 1939-1945 in fiction\", \"Data encryption (Computer science)\", \"Cryptography\", \"Literature\", \"Science Fiction\", \"Long Now Manual for Civilization\", \"Code and cipher stories\"]\n```\n\nYou can query via ISBN, OCLC, LCCN or Openlibrary's OLID.\n\n```\n\u003e b = Openlib::Book.new(id: 'OL7360862M', id_kind: :olid)\n\u003e b.title\n=\u003e \"Ranger's Apprentice\"\n\u003e b.authors\n=\u003e [\"John Flanagan\"]\n\u003e b.identifiers\n=\u003e {\"isbn_13\"=\u003e[\"9780142406632\"], \"openlibrary\"=\u003e[\"OL7360862M\"], \"isbn_10\"=\u003e[\"0142406635\"], \"goodreads\"=\u003e[\"60400\"], \"librarything\"=\u003e[\"173672\"]}\n````\n\n\n\n## Openlibrary\n\nFor more information on Openlibrary, check their [Developer center](https://openlibrary.org/developers) and the [Books API documentation](https://openlibrary.org/dev/docs/api/books).\n\nOpenlibrary has a [GitHub](https://github.com/internetarchive/openlibrary) repository.\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/dkam/openlib.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkam%2Fopenlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkam%2Fopenlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkam%2Fopenlib/lists"}