{"id":15353796,"url":"https://github.com/westonganger/devise_whos_here","last_synced_at":"2026-01-07T12:03:56.343Z","repository":{"id":66556477,"uuid":"97037982","full_name":"westonganger/devise_whos_here","owner":"westonganger","description":"Devise extension for logging current active users logged in using only the fast Rails cache and not your database","archived":false,"fork":false,"pushed_at":"2018-06-05T18:32:54.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T02:03:32.678Z","etag":null,"topics":["active-users","devise","rails","ruby","users"],"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/westonganger.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-07-12T18:01:37.000Z","updated_at":"2020-01-04T23:27:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"2d55b67d-80d3-4cae-80bf-f7a3233a9623","html_url":"https://github.com/westonganger/devise_whos_here","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"c12f8eba6411c951d6c3cee796a5745a014d3ded"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonganger%2Fdevise_whos_here","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonganger%2Fdevise_whos_here/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonganger%2Fdevise_whos_here/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonganger%2Fdevise_whos_here/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/westonganger","download_url":"https://codeload.github.com/westonganger/devise_whos_here/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245908414,"owners_count":20692101,"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":["active-users","devise","rails","ruby","users"],"created_at":"2024-10-01T12:15:16.335Z","updated_at":"2026-01-07T12:03:56.246Z","avatar_url":"https://github.com/westonganger.png","language":"Ruby","funding_links":["https://ko-fi.com/A5071NK'"],"categories":[],"sub_categories":[],"readme":"# Devise Who's Here\n\u003ca href='https://ko-fi.com/A5071NK' target='_blank'\u003e\u003cimg height='32' style='border:0px;height:32px;' src='https://az743702.vo.msecnd.net/cdn/kofi1.png?v=a' border='0' alt='Buy Me a Coffee' /\u003e\u003c/a\u003e \n\nDevise extension for logging current active users using only the fast Rails cache. This gem is for if you don't want long-term storage of this information and don't want to write to your database all the time.\n# Install \n\n```ruby\n# Gemfile\n\ngem 'devise_whos_here'\n```\n\n# Usage\n\n```ruby\n# app/models/user.rb\n\ndevise :database_authenticatable, :confirmable, :whos_here\n```\n\nThis will keep track of your logged in users with a variable in the Rails cache. Note all below times are returned as Time objects, not strings.\n\n```ruby\nUser.last_active_since(30.minutes.ago) # returns an array of User objects\n\nuser = User.first\n\nuser.last_here_at # returns last known request time\n```\n\nWhenever you want to clear the cache simply run\n\n```ruby\nUser.clear_whos_here!\n```\n\n# Credits\nCreated by Weston Ganger - @westonganger\n\n\u003ca href='https://ko-fi.com/A5071NK' target='_blank'\u003e\u003cimg height='32' style='border:0px;height:32px;' src='https://az743702.vo.msecnd.net/cdn/kofi1.png?v=a' border='0' alt='Buy Me a Coffee' /\u003e\u003c/a\u003e \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwestonganger%2Fdevise_whos_here","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwestonganger%2Fdevise_whos_here","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwestonganger%2Fdevise_whos_here/lists"}