Skip to content
CAI
Software that uses CAICheck a score

FluidGroup/Brightroom

65.2

Adequate · 14 November 2026

27.3k

lines of production code

Swift

primary language

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is a Swift-based image editing engine and UI library that enables parametric, GPU-accelerated photo manipulation on iOS and macOS. It provides a modular architecture for composing static edits over host-owned documents, featuring advanced capabilities like tone curves, color mixing in OKLCh space, brush masks, and LUT support. The system includes comprehensive rendering pipelines for real-time previews and exports, along with utilities for crop geometry, document persistence, and structured logging.

How it got here

2018–2021 — Brightroom v5 engine and v6 architecture

7 changes.

The project overhauled the Brightroom engine with v5, introducing robust crop geometry, GPU-accelerated rendering, and structured logging to improve performance and stability. Concurrently, the codebase was refactored for Brightroom v6 to support static feature composition over host-owned documents, while cleaning up legacy PixelEngine components and updating dependencies for modern iOS support.

2023 — Xcode project modernization and demo apps

6 changes.

The project updated its Xcode configuration to object version 70 and added comprehensive schemes to support the BrightroomEngine, BrightroomUI, and new demo applications. New Parametric Mac and SwiftUI demos were introduced to showcase library capabilities, alongside LUT import and share extensions. The period also included significant test coverage additions for core image processing behaviors and workspace fixes following a project rename.

2024–2026 — Brightroom 6 parametric editing architecture

5 changes.

This period focused on implementing the Brightroom 6 architecture, shifting to a model where edits are composed as static features over host-owned documents. It introduced a comprehensive parametric image editing foundation featuring GPU-accelerated Metal shaders for tone curves and color mixing, alongside brush masks and LUT support. The work also included integrating the Reveal-SDK for debugging and establishing robust test coverage for the new rendering and persistence engines.

Features

Add tone curve and configurable color mixer features

This change introduces new GPU-accelerated color adjustment capabilities by adding Metal shader kernels for tone curves and a configurable color mixer. The tone curve kernel applies scene-linear RGB curves in Display-P3 while preserving original luminance, and the color mixer kernel performs perceptual adjustments to hue, chroma, and lightness in OKLab space. These kernels are compiled via a new SwiftPM build plugin and packaged as platform-specific Metal libraries for iOS, macOS, and Mac Catalyst.

Plugins/BuildColorAdjustmentKernels, Sources/BrightroomColorAdjustmentKernels · high confidence

Added Import LUT and Share LUT extensions

The Dev/Bundle now includes two new macOS/iOS extensions: an 'Import LUT' action that processes web page background colors via JavaScript preprocessing and native Swift handling, and a 'Share LUT' share extension for exporting LUT files. These additions provide the underlying bundle components for importing and sharing LUT data, though the specific UI wiring or main application integration for these features is not present in this location.

Dev/Bundle · high confidence

Added Reveal-SDK submodule

The Reveal-SDK submodule from muukii has been added to the project, pointing to commit 039bf6b. This integration likely enables remote debugging or inspection capabilities for the application, depending on how the SDK is utilized in the main codebase.

submodules · high confidence

Added Xcode schemes for Brightroom components and demo apps

New Xcode schemes have been added for the BrightroomEngine framework, BrightroomEngineTests, BrightroomUI, ParametricMacDemo, and SwiftUIDemo. These schemes configure build, test, launch, and archive actions for their respective targets, enabling developers to run and debug the engine, UI library, and demo applications directly from Xcode.

Dev/Brightroom.xcodeproj/xcshareddata · high confidence

Brightroom 6: compose edits as static features over host-owned documents

The demo application now demonstrates the Brightroom 6 architecture where edits are composed as static features over documents owned by the host application. This includes new demo files (DemoFilters, DemoLUTs, DocumentEditorDemoView, DocumentHostUsageExample) that show how to load images, apply filter presets and LUTs, and manage document state with undo/redo history. Additionally, comprehensive test coverage has been added for canvas composition preview scaling, crop guide pinch gesture handling, aspect ratio locking, minimum crop size enforcement, and scroll-boundary recording behavior.

Sources/BrightroomEngine/Core, Sources/BrightroomEngine/DataSource · high confidence

Introduces parametric image editing foundation with brush masks, color cubes, and color mixer

This change adds the BrightroomParametric module, providing the core infrastructure for parametric image editing. It introduces a shared Metal-based brush rasterizer (BrushStampPipeline) that unifies live canvas previews and export rendering, ensuring consistent brush mask appearance. The module also adds support for loading and applying 3D color lookup tables (LUTs) from .cube files and Hald/CLUT images, alongside a new eight-band Color Mixer feature that adjusts hue, saturation, and luminance per color band using the OKLCh color model. Additionally, it includes a streaming file writer (CIImageStreamingFileWriter) to enable memory-efficient export of large images by rendering them strip-by-strip to disk-backed buffers. Also in this area: Brightroom 6: compose edits as static features over host-owned documents.

Sources/BrightroomParametric · high confidence

New Parametric Mac and SwiftUI demo applications

Added new demo applications (\ParametricMacDemo\ and \SwiftUIDemo\) that showcase the library's capabilities. The Mac demo provides a feature editor for parametric image processing with drag-and-drop reordering and real-time preview, while the SwiftUI demo includes a comprehensive navigation interface for testing various editing modes (including PhotosUI integration, face detection, and remote image loading), parametric feature previews, video rendering playgrounds, and PencilKit reference sandboxes.

Dev/Sources · high confidence

Removals

Removal of PixelEngine Xcode project and scheme files

The PixelEngine Xcode project configuration (project.pbxproj) and the associated user scheme management file (xcschememanagement.plist) have been deleted. This removes the local build settings, target definitions, and scheme ordering for the PixelEngine framework from the repository.

PixelEngine.xcodeproj · high confidence

Removal of PixelEngine public header

The public header file for the PixelEngine framework has been removed. This eliminates the exported version symbols and the umbrella header that previously aggregated public imports, effectively stripping the framework's public interface definition from this location.

PixelEngine · high confidence

Behavioural changes

4 commits (1 fix) modifying Resources

A change to existing behaviour in Resources — 4 commits (1 fix), 3 files.

Resources · medium confidence · unverified

Brightroom Engine v5: New core geometry, sanitization, and logging infrastructure

The BrightroomEngine library has been updated to version 5, introducing a new set of core source files that redefine how image processing and user interaction are handled. A new \CropGeometry\ enum provides robust coordinate conversion and aspect-ratio fitting logic, including specific support for straightening and quarter-turn rotations, which improves the accuracy of crop selections. The engine now includes an \EngineSanitizer\ to detect and report runtime errors (such as failed image resizing) via a configurable callback, enhancing stability. Additionally, a new \EngineLog\ system using \os\_log\ provides structured debug and error logging, and a \PixelAspectRatio\ struct ensures consistent hashing and equality based on the actual proportion rather than raw dimensions. These changes form the foundational layer for the engine's updated editing capabilities. Also in this area: Brightroom 6: compose edits as static features over host-owned documents.

Sources/BrightroomEngine/Library · high confidence

Crop editing state and layout utilities for Brightroom v5

This change introduces new utility files in the BrightroomUI shared utils to support the v5 crop editing experience. AutoLayout.swift provides a helper for anchoring content views. CropEditingState+.swift adds critical logic for the crop scroll view, including conversions between image and platter coordinates, calculation of zoom scales with a minimum output side length constraint (128pt) to prevent sub-pixel brush issues in masking tools, and handling of output rotation for guide layout. EditorLog.swift sets up structured OSLog categories for debugging crop views and canvas performance. PixelEditorCodeBasedView.swift enforces code-only initialization for specific views and adds an assertion helper to ensure the EditingStack is in a loaded state when UIKit views are created from SwiftUI. Also in this area: Image Editor preserves host-provided custom effects during reset; Brightroom 6: compose edits as static features over host-owned documents.

Sources/BrightroomUI · high confidence

Engine rendering pipeline refactored for GPU performance and parametric exports

The engine's rendering architecture has been overhauled to improve performance and support a new parametric export system. The new \BrightRoomImageRenderer\ now delegates to \ParametricExportRenderer\, enabling async rendering and unified document evaluation for both exports and previews. To eliminate CPU-to-GPU upload bottlenecks during interactive editing, \EditingSourcePreparation\ now uploads source images to persistent GPU textures (using \rgba8Unorm\ or \rgba16Float\ based on bit depth), allowing the canvas to sample directly from the GPU. Additionally, \CoreGraphics+\ extensions have been updated to handle complex bitmap info and color space conversions robustly, and \RenderCrop\ now separates pixel-aligned crop selection from output rotation to prevent quarter-turn truncation artifacts. Also in this area: Brightroom 6: compose edits as static features over host-owned documents.

Sources/BrightroomEngine/Engine · high confidence

Fixes

Resolved workspace reference to renamed project

The Xcode workspace configuration has been updated to correctly reference the project file after it was renamed from PixelEngine to Brightroom. This change fixes the workspace's internal file reference, ensuring that the project opens and builds correctly without broken links to the underlying project file.

Dev/Brightroom.xcodeproj/project.xcworkspace · high confidence

Test coverage

Added test coverage for BrightroomParametric rendering and document persistence; Added tests for blur radius resolution, brush mask rasterization, and crop geometry.

Dependencies

Brightroom Swift Package updated to v6.3 with iOS 17+ support

The Brightroom Swift Package has been updated to use Swift 6.3 language mode and now requires iOS 17 or macOS 14 as minimum deployment targets. The package structure now explicitly defines three products: BrightroomParametric, BrightroomEngine, and BrightroomUI. The dependency on Verge has been replaced by swift-state-graph (v0.17.0), which is now a direct dependency for both the Engine and UI targets. Additionally, a new build plugin, BuildColorAdjustmentKernels, has been added to handle Metal kernel compilation for color adjustments.

(dependencies) · high confidence

Housekeeping

Xcode project configuration updated to object version 70

The Brightroom Xcode project file has been regenerated with objectVersion 70, reflecting an update to the Xcode project format. This change ensures the project structure is compatible with newer versions of Xcode and includes the standard resource and framework build file references required for the BrightroomEngine and BrightroomUI targets.

Dev/Brightroom.xcodeproj · high 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 65 → 65 (+0.5)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 80 → 76 (-4.4)
  • Architecture 90 → 92 (+1.9)
  • Maturity 66 → 67 (+1.5)
  • Readiness 53 → 52 (-1.5)
  • Security 99 → 97 (-1.3)
  • Performance 79 → 100 (+21.1)

Resolved (4)

  • Duplicated block (4–8 lines × 4) (Sources/BrightroomParametric/BrushMaskImageProcessor.swift)
  • Duplicated block (8 lines × 2) (Sources/BrightroomParametric/Debug/FeatureTreeNode.swift)
  • Hotspot: Sources/BrightroomUI/ImageEditor/ImageEditorContent.swift (Sources/BrightroomUI/ImageEditor/ImageEditorContent.swift)
  • No ADRs found

New (24)

  • Duplicated block (4–8 lines × 4) (Sources/BrightroomParametric/BrushMaskImageProcessor.swift)
  • Edited copies of one member (3 members, 11+ corresponding lines) (Sources/BrightroomParametric/BuiltInFeatureRecipes.swift)
  • Edited copies of one member (3 members, 8+ corresponding lines) (Sources/BrightroomUI/Canvas/EditingCanvasStroke.swift)
  • Edited copy of a member (10 corresponding lines) (Sources/BrightroomParametric/ColorMixer/ColorMixerRecipe.swift)
  • Edited copy of a member (11 corresponding lines) (Sources/BrightroomUI/Canvas/EditingCanvasStroke.swift)
  • Edited copy of a member (12 corresponding lines) (Sources/BrightroomEngine/Library/Orientation.swift)
  • Edited copy of a member (13 corresponding lines) (Dev/Sources/SwiftUIDemo/MetalImageView.swift)
  • Edited copy of a member (14 corresponding lines) (Sources/BrightroomParametric/MaskKernels.swift)
  • Edited copy of a member (16 corresponding lines) (Sources/BrightroomParametric/ColorMixer/ColorMixerRenderPlan.swift)
  • Edited copy of a member (16 corresponding lines) (Sources/BrightroomUI/Canvas/EditingCanvasMTKView.swift)
  • Edited copy of a member (19 corresponding lines) (Sources/BrightroomUI/Canvas/EditingCanvasView.swift)
  • Edited copy of a member (21 corresponding lines) (Sources/BrightroomUI/Canvas/EditingCanvasRenderer.swift)
  • Edited copy of a member (21 corresponding lines) (Sources/BrightroomUI/ImageEditor/ImageEditorContent.swift)
  • Edited copy of a member (22 corresponding lines) (Dev/Sources/SwiftUIDemo/RenderingDemoView.swift)
  • Edited copy of a member (3 corresponding lines) (Dev/Sources/SwiftUIDemo/ParametricFeaturePreviewView.swift)
  • Edited copy of a member (3 corresponding lines) (Dev/Sources/SwiftUIDemo/ParametricFeaturePreviewView.swift)
  • Edited copy of a member (3 corresponding lines) (Sources/BrightroomParametric/ColorMixer/ColorMixerRecipe.swift)
  • Edited copy of a member (4 corresponding lines) (Sources/BrightroomParametric/ColorMixer/ColorMixerFeature.swift)
  • Edited copy of a member (42 corresponding lines) (Dev/ParametricMacDemo/ParametricMacDemoView.swift)
  • Edited copy of a member (5 corresponding lines) (Dev/Sources/SwiftUIDemo/PencilKitReferenceSandboxView.swift)
  • …and 4 more

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

Survey your own repository

FluidGroup/Brightroom 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 14 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 13b3797d69be30c0bc56f3322585b015d489d39d — the exact code this score is about.
  • Scored under rubric-2026.11.4 — 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.65+preprod-3c33c1882dc1.