{"id":15527255,"url":"https://github.com/samdvr/eventsourcer","last_synced_at":"2026-03-04T01:16:02.517Z","repository":{"id":56844993,"uuid":"115830781","full_name":"samdvr/eventsourcer","owner":"samdvr","description":"A helper library for event sourcing Rails ActiveRecord model changes","archived":false,"fork":false,"pushed_at":"2018-01-16T00:10:01.000Z","size":26,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-01T08:31:25.719Z","etag":null,"topics":["activerecord","kafka","ruby","ruby-on-rails"],"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/samdvr.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":"2017-12-30T23:23:09.000Z","updated_at":"2018-03-22T05:42:22.000Z","dependencies_parsed_at":"2022-09-17T11:20:57.356Z","dependency_job_id":null,"html_url":"https://github.com/samdvr/eventsourcer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/samdvr/eventsourcer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdvr%2Feventsourcer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdvr%2Feventsourcer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdvr%2Feventsourcer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdvr%2Feventsourcer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samdvr","download_url":"https://codeload.github.com/samdvr/eventsourcer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdvr%2Feventsourcer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30067983,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T01:03:42.280Z","status":"ssl_error","status_checked_at":"2026-03-04T01:03:23.410Z","response_time":61,"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":["activerecord","kafka","ruby","ruby-on-rails"],"created_at":"2024-10-02T11:05:14.025Z","updated_at":"2026-03-04T01:16:02.502Z","avatar_url":"https://github.com/samdvr.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Eventsourcer\n\nA helper library for event sourcing Rails ActiveRecord model changes to Kafka(more brokers coming soon).\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'eventsourcer'\n```\n\nAnd then execute:\n\n    $ bundle\n\n## Usage\n\nIn initializer configure Eventsourcer:\n```ruby\n  Eventsourcer.configure do |config|\n    config.broker = :kafka #required\n    config.kafka_seed_brokers = [\"localhost:9092\"] #optional\n    config.kafka_max_queue_size = 10000 #optional\n  end\n```\n\nAdd Eventsourcer to a model you would like to track:\n```ruby\n  require \"eventsourcer\"\n  class User \u003c ApplicationRecord\n    include Eventsourcer\n  end\n```\n\n## Kafka Broker\nEvents generated for Kafka are published to ActiveRecord Model's table_name topic.\nFor example\n```ruby\n  require \"eventsourcer\"\n  class User \u003c ApplicationRecord\n    include Eventsourcer\n  end\n```\nwill publish messages to \"users\" topic.\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` 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/samdvr/eventsourcer.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamdvr%2Feventsourcer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamdvr%2Feventsourcer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamdvr%2Feventsourcer/lists"}