Skip to content
CAI
Software that uses CAICheck a score

nohype-ai/SwiftObserver

59.0

Adequate · 9 November 2026

1.2k

lines of production code

Swift

primary language

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

SwiftObserver is a reactive programming library for Swift that facilitates state observation and data flow management. It provides an \ObservableObject\ protocol and a \@propertyWrapper\ to track changes in values and objects. The system supports both native Swift concurrency and Apple's Combine framework through a dedicated integration module. It is distributed as a Swift Package with comprehensive test coverage for its core observation mechanics.

Features

Add Combine integration for Observable and ObservableCache

The library now exposes a new \CombineObserver\ module that bridges SwiftObserver's \Observable\ and \ObservableCache\ to Apple's Combine framework. By adopting the \Publisher\ protocol, both types now provide a \publisher()\ method, allowing developers to subscribe to observation events using standard Combine operators. This enables reactive, declarative UI updates and data flow management within the Apple ecosystem.

Code/CombineObserver · high confidence

Behavioural changes

Refactored ObservableObject and Observer architecture

The library's core observation model has been restructured to use a new \ObservableObject\ protocol and \Observer\ protocol, replacing the previous implementation. \ObservableObject\ now relies on a \Messenger\ to send \Message\s to \Observer\s, with \Messenger\ and \Receiver\ handling the connection and dispatch logic. This change introduces a more explicit separation between the observable source (\ObservableObject\), the observer (\Observer\), and the message transport (\Messenger\/\Receiver\). Additionally, \Variable\ now implements \ObservableCache\ to provide update messages, and a \@propertyWrapper\ (\ObservableVar\) is provided for easy observation of equatable values. The \AnyAuthor\ type alias is introduced to identify message senders.

Code/SwiftObserver · high confidence

SwiftObserver 7.0: Major API Simplification and Removal of Obsolete Features

SwiftObserver has been updated to version 7.0, marking a significant shift toward simplicity and native Swift features. This release removes several legacy components that are now obsolete or redundant: \Promise\ (replaced by Swift's native concurrency), 'one-shot' observations, \FreeObserver\/global observations, value-type-specific \Var\ extensions, and support for CocoaPods. The \Observable\ protocol has been renamed to \ObservableObject\ to accommodate a new \@Observable\ property wrapper. Additionally, the library now includes \CombineObserver\ for interoperability with Apple's Combine framework, and author filtering now requires non-optional \AnyAuthor\ types.

(repo-wide) · high confidence

Test coverage

Added comprehensive test coverage for SwiftObserver core components; Added unit tests for CombineObserver.

Dependencies

Introduce Swift Package Manager configuration for SwiftObserver

The project now includes a Package.swift file that defines the SwiftObserver and CombineObserver libraries, along with their respective test targets. The package specifies minimum platform versions (iOS 12, macOS 10.15, tvOS 12, watchOS 6) and sets the SwiftyToolz dependency to version 0.5.8.

(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 58 → 59 (+0.9)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 100 → 100 (+0.0)
  • Architecture 69 → 69 (+0.0)
  • Maturity 65 → 69 (+3.6)
  • Readiness 40 → 40 (+0.0)
  • Security 100 → 100 (+0.0)

Resolved (3)

  • Duplicate Operation Intent: Both PublisherOnObservableCache and PublisherOnObservable expose an identical receive(subscriber: S) method and receiver property. The distinction between 'Cache' and 'Observable' is not reflected in the public API surface, suggesting one type is redundant or the naming is misleading.
  • Duplicate Type Intent: CacheOnOptionalMessage appears to be a redundant specialization of Cache that exposes the exact same latestMessage property and constructor signature. There is no discernible behavioral difference in the exposed API surface to justify two separate types.
  • Inconsistent Mutation API: Variable uses an explicit set method for mutation, while the extension provides a custom infix operator <- for the same purpose. Furthermore, the operator takes an optional Var<Value>? while the method takes a non-optional Variable<Value>, creating confusion about which entry point to use for mutation.

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

Survey your own repository

nohype-ai/SwiftObserver 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 09a608ddc1dc4afac0eaa9637e2e28fb616d9e7b — 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.3+preprod-bb0cb800cd0f.