Skip to content
CAI
Software that uses CAICheck a score

ZilvinasKucinskas/FRP-EventSourcing

53.4

Adequate · 9 November 2026

340

lines of production code

Ruby

primary language

10

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is a Ruby gem designed for functional reactive programming within event-sourced architectures. It provides core components for managing event streams, including an event repository for persistence and querying, alongside a Stream class that supports functional transformations like map, filter, and merge. The library also includes a Rails generator for database migrations and executable scripts to streamline local development and testing workflows.

Features

Add reference material for event sourcing and functional programming

Added a PDF document by Gregory Meredith to the sources directory, covering topics such as the concurrency squeeze, functional web design, and parsing requests monadically. This provides external reference material for readers exploring event sourcing and functional programming concepts.

sources · high confidence

Added executable scripts for local development setup and console

New executable scripts have been added to the bin directory to streamline the developer experience. The bin/console script provides an interactive Ruby console with the frp-eventsourcing gem loaded, allowing developers to experiment with the library's features. The bin/setup script automates the initial environment configuration by running bundle install to ensure all dependencies are present.

bin · high confidence

Initial release of the FRP-EventSourcing gem

The repository has been initialized with the core structure for the 'frp-eventsourcing' Ruby gem, enabling functional reactive programming in event sourcing systems. The release includes a comprehensive README detailing installation, usage examples for defining events and streams, and documentation of available reactive operators. Supporting configuration files such as .gitignore, .rspec, .travis.yml, and a Rakefile for testing and building the gem are also included, alongside the MIT license and a basic Gemfile structure.

(repo-wide) · high confidence

Introduce FrpEventsourcing library for event-sourced streams

The FrpEventsourcing library is introduced, providing an event-sourcing framework for Ruby applications. It includes an Event model and repository for persisting and querying events, a Stream class that supports functional-style transformations (each, map, filter, when), and a Rails generator to create the necessary database migration for the event store.

lib/frp-eventsourcing · high confidence

Test coverage

Added test suite for event sourcing components

Added comprehensive RSpec tests for the event repository, stream processing, versioning, and migration generator. The test suite includes a spec helper with database cleaner and ActiveRecord setup, support files for models and event publishing, and specific tests verifying the initialization of the event repository, state transitions in streams (including filter, map, and merge operations), and the generation of migration templates.

spec · high confidence

Dependencies

Initial gemspec and Gemfile for frp-eventsourcing

The project now includes a Gemfile and a frp-eventsourcing.gemspec file, establishing the Ruby gem's structure and dependencies. The gem specifies a runtime dependency on ActiveRecord (\>= 4.0.0) and includes development dependencies for testing and building, such as RSpec, Rake, and Rails 4.2.

(dependencies) · medium confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 53 → 53 (+0.1)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 76 → 76 (+0.0)
  • Architecture 69 → 69 (+0.0)
  • Maturity 54 → 54 (+0.0)
  • Readiness 38 → 38 (+0.0)
  • Security 94 → 95 (+1.3)
  • Domain Modelling 100 → 100 (+0.0)

Resolved (3)

  • Redundant/Confusing naming for similar operations. read_events_forward and read_stream_events_forward appear to perform the same logical operation (reading events from a specific stream). The distinction between 'events' and 'stream events' is unclear, and one requires pagination parameters while the other does not, suggesting inconsistent API design for the same domain concept.
  • Same redundancy as forward reading. read_events_backward and read_stream_events_backward duplicate intent with inconsistent parameter signatures.
  • While distinct from stream-specific reads, the naming convention read_all_streams vs read_stream_events creates a parallel inconsistency with the previous point. If read_stream_events is meant to be the canonical name, these should likely be read_all_stream_events.

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

ZilvinasKucinskas/FRP-EventSourcing was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 9 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit c88a582d1d7de7dd754eb3b952d595fee84c8882 — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.4+preprod-464a0040a931.