{"id":15685292,"url":"https://github.com/jnunemaker/ag","last_synced_at":"2025-05-07T16:54:29.344Z","repository":{"id":27356971,"uuid":"30832279","full_name":"jnunemaker/ag","owner":"jnunemaker","description":"Nothing serious or finished, just playing with events, feeds, activities, timelines, wooooooooooo","archived":false,"fork":false,"pushed_at":"2018-12-06T01:10:07.000Z","size":48,"stargazers_count":10,"open_issues_count":6,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-31T12:04:46.538Z","etag":null,"topics":[],"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/jnunemaker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-15T15:58:56.000Z","updated_at":"2023-11-30T02:04:44.000Z","dependencies_parsed_at":"2022-09-02T07:22:27.114Z","dependency_job_id":null,"html_url":"https://github.com/jnunemaker/ag","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnunemaker%2Fag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnunemaker%2Fag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnunemaker%2Fag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnunemaker%2Fag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jnunemaker","download_url":"https://codeload.github.com/jnunemaker/ag/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252921953,"owners_count":21825632,"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":[],"created_at":"2024-10-03T17:24:36.346Z","updated_at":"2025-05-07T16:54:29.296Z","avatar_url":"https://github.com/jnunemaker.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ag\n\nWORK IN PROGRESS...\n\nExperiments in describing feeds/timelines of events in code based on adapters so things can work at most levels of throughput.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem \"ag\"\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install ag\n\n## Usage\n\n```ruby\nrequire \"ag\"\n\nadapter = Ag::Adapters::Memory.new\nclient = Ag::Client.new(adapter)\njohn = Ag::Object.new(\"User\", \"1\")\nsteve = Ag::Object.new(\"User\", \"2\")\npresentation = Ag::Object.new(\"Presentation\", \"1\")\nevent = Ag::Event.new({\n  producer: steve,\n  object: presentation,\n  verb: \"upload_presentation\",\n})\n\n# connect john to steve\npp connect: client.connect(john, steve)\n\n# is john connected to steve\npp connected?: client.connected?(john, steve)\n\n# consumers of steve\npp consumers: client.consumers(steve)\n\n# producers john is connected to\npp producers: client.producers(john)\n\n# produce an event for steve\npp produce: client.produce(event)\n\n# get the timeline of events for john based on the producers john follows\npp timeline: client.timeline(john)\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/jnunemaker/ag/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjnunemaker%2Fag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjnunemaker%2Fag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjnunemaker%2Fag/lists"}