StandardLedger marks ActiveRecord models as immutable, append-only journal entries with idempotency-by-unique-index, provides a StandardLedger.post helper that returns a Result (optionally the host's own Result type), a Projection base class for host-side projectors, and StandardLedger.refresh! for host-owned PostgreSQL materialized views (including concurrently: :auto).
View-model base class for Rails: typed, immutable presentation objects via Literal::Data, composable traits, opt-in Rails helper mixins, fragment-cache key generation, and a background-job-friendly fake view context.
Inquirex lets you define multi-step questionnaires as directed graphs with conditional branching, using a conversational DSL (ask, say, mention) and an AST-based rule system (contains, equals, greater_than, all, any). The engine walks the graph, collects structured answers, and serializes everything to JSON — making it the ideal backbone for cross-platform intake forms where the frontend is a chat widget, a terminal, or a mobile app. Framework-agnostic, no third-party dependencies, thread-safe immutable definitions.
Cyclotone provides rational-time spans, immutable pattern events, and composable pattern primitives for building live coding music tools in Ruby.
Recursively freeze entire object graphs (hashes, arrays, strings, structs, Data) to create truly immutable data structures. Includes deep_dup, deep_frozen?, deep_equal?, deep_diff, deep_freeze_all, deep_clone, and freeze_hash_keys. Handles circular references and selective key exclusion.
Immutable models, first-class changesets, value-based programming
Define data classes with typed fields, default values, validation rules, and pattern matching support. Immutable by default with keyword-only construction, JSON/Hash serialization, and runtime type checking.
Access deeply nested hash values using dot notation (config.database.host) with nil-safe traversal that never raises on missing keys. Supports path-based get/set, YAML/JSON loading, and immutable updates.
Provides versioned prompt storage with immutable versions, tagged releases, template rendering, and a playground for testing prompts.
Run headless browser checks against a URL using Playwright and receive a structured, immutable Ruby report object — framework-agnostic, no persistence.
Immutable audit logging with SHA-256 hash chain for LegionIO execution decisions
records - frozen / immutable structs with copy on updates
FuhenRecord is a Rails extension that makes ActiveRecord models immutable.
A modular, deterministic chess engine built around immutable objects. Cleanly expresses chess concepts in code and designed for easy integration with any UI. > ⚠️ Note: This is not a competitive chess engine like Stockfish. While AI features could be added in the future, the core purpose of this project is to provide a ruby gem for cleanly representing chess in code.
SimpleFlow provides a clean and flexible architecture for orchestrating multi-step workflows with middleware support, flow control, parallel execution, and immutable results. Perfect for building data processing pipelines with cross-cutting concerns like logging and instrumentation.
Helps convert hashes to immutable objects.
CGSN (Chess Game Status Notation) implementation for Ruby. Provides a rule-agnostic vocabulary for identifying game statuses in abstract strategy board games with symbol-based identifiers and immutable sets.
Dorm (Data ORM) is a lightweight, functional ORM built on Ruby's Data class. Features immutable records, monadic error handling inspired by dry-monads, and a functional programming approach to database operations.
LCN (Location Condition Notation) provides a rule-agnostic format for describing location conditions in abstract strategy board games. This gem implements the LCN Specification v1.0.0 with a modern Ruby interface featuring immutable condition objects and functional programming principles. LCN enables standardized representation of environmental constraints on board locations using reserved keywords ("empty", "enemy") and QPI piece identifiers with CELL coordinate system integration. Perfect for movement validation, pre-condition checking, constraint evaluation, and rule-agnostic game logic requiring precise location state requirements across multiple game types and traditions.
Whodunit Chronicles records CDC change events as immutable ledger entries. It provides a tiny Chronicler processor, a Ledger abstraction, and simple ledger implementations without owning replication, runtime execution, or orchestration.
SIN (Style Identifier Notation) implementation for Ruby. Provides a rule-agnostic format for identifying player styles in abstract strategy board games with immutable identifier objects and functional programming principles.
GuideRail transforms various data sources into safe, immutable `Data` objects. By leveraging the robust validation capabilities of `dry-schema`, it provides a clear and declarative way to define, validate, and instantiate your data structures.
PIN (Piece Identifier Notation) implementation for Ruby. Provides a rule-agnostic format for identifying pieces in abstract strategy board games with immutable identifier objects and functional programming principles.
PNN (Piece Name Notation) provides a rule-agnostic, scalable naming system for identifying abstract strategy board game pieces. This gem implements the PNN Specification v1.0.0 with a modern Ruby interface featuring immutable piece name objects and functional programming principles. PNN uses canonical ASCII names with optional state modifiers and optional terminal markers (e.g., "KING", "queen", "+ROOK", "-pawn", "KING^", "+GENERAL^") to unambiguously refer to game pieces across variants and traditions. Ideal for engines, protocols, and tools that need clear and extensible piece identifiers.
SNN (Style Name Notation) implementation for Ruby. Provides a rule-agnostic format for identifying game styles in abstract strategy board games with immutable style name objects and functional programming principles.
A clean, immutable Ruby interface for working with piece identifiers in PNN format. PNN provides a consistent and rule-agnostic notation for representing pieces in abstract strategy board games like chess, shogi, and xiangqi. Features include state modifiers for enhanced/diminished/intermediate pieces, ownership changes, and comprehensive validation. Perfect for game engines, analysis tools, and educational applications.
Immutable representations of database entities
When using the class method `attributes` in a class you get: - an initialize method with attributes as kwd params and the respective defaults - immutable instances - a to_h method using all attributes - an update method to create new imutable instances - a destruct_keys method aliased to to_h for pattern matching