{"id":14955993,"url":"https://github.com/deepakmahakale/read-time","last_synced_at":"2026-01-28T14:03:49.066Z","repository":{"id":56891276,"uuid":"143998602","full_name":"deepakmahakale/read-time","owner":"deepakmahakale","description":"Read Time estimates the time required to read the article. Read Time also takes images in account while estimating the time.","archived":false,"fork":false,"pushed_at":"2018-08-20T09:08:33.000Z","size":4,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-10T00:56:18.691Z","etag":null,"topics":["article","blog","gem","plugin","ruby","ruby-on-rails","rubygem"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deepakmahakale.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-08T10:33:49.000Z","updated_at":"2024-03-07T17:37:43.000Z","dependencies_parsed_at":"2022-08-20T15:20:49.240Z","dependency_job_id":null,"html_url":"https://github.com/deepakmahakale/read-time","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/deepakmahakale/read-time","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepakmahakale%2Fread-time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepakmahakale%2Fread-time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepakmahakale%2Fread-time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepakmahakale%2Fread-time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deepakmahakale","download_url":"https://codeload.github.com/deepakmahakale/read-time/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepakmahakale%2Fread-time/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28846058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T13:02:32.985Z","status":"ssl_error","status_checked_at":"2026-01-28T13:02:04.945Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["article","blog","gem","plugin","ruby","ruby-on-rails","rubygem"],"created_at":"2024-09-24T13:12:08.808Z","updated_at":"2026-01-28T14:03:47.176Z","avatar_url":"https://github.com/deepakmahakale.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Read Time\n\n[![Build Status](https://travis-ci.org/deepakmahakale/read-time.svg?branch=master)](https://travis-ci.org/deepakmahakale/read-time)\n\n**Read Time** estimates the time required to read the article. Read Time also takes images in account while estimating the time.\n\n```ruby\n@article.body.readtime  # =\u003e \"1 minute read\"\n```\n\n## Usage\n\n### Install the gem using RubyGems\n\n```bash\ngem install read-time\n```\n\nor:\n\n### Add it to your Gemfile\n\n```ruby\ngem 'read-time'\n```\n\n### Include it in your program\n\n```ruby\nrequire 'read-time'\n```\n\n### Call the method on the text\n\n```ruby\n@article.body.readtime #=\u003e \"2 minute read\"\n```\n\n## Configuration\n\n```ruby\n# config/initializers/read-time.rb\nReadTime.configure do |config|\n  config.reading_speed  = 300\n  config.format         = :default # [:default, :long]\nend\n```\n\nDefault values can be overriden:\n\n```ruby\ntext = 'word ' * 300\ntext.readtime #=\u003e \"2 minute read\"\ntext.readtime(reading_speed: 300) #=\u003e \"1 minute read\"\ntext.readtime(reading_speed: 200, format: :long) #=\u003e \"1 minute 30 second read\"\n```\n\n## TODO\n\n- I18n support\n- Calculation based on images\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepakmahakale%2Fread-time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeepakmahakale%2Fread-time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepakmahakale%2Fread-time/lists"}