onevcat/Rainbow
60.9
Adequate · 15 November 2026
2.3k
lines of production code
Swift
primary language
5
measurements over time
What this system is
Rainbow is a Swift library that applies colored and styled text to terminal output using ANSI escape sequences. It supports a wide range of color formats, including 24-bit true color and HSL, and provides conditional styling capabilities. The system is designed for cross-platform compatibility across macOS, iOS, tvOS, and watchOS, with specific fixes for Windows terminal detection.
Features
Add fastlane automation for macOS releases
Introduced fastlane tooling (Fastfile, Pluginfile, Scanfile) to automate the macOS release process. The new 'release' lane handles version bumping, changelog stamping, Git tagging, and publishing to GitHub Releases and CocoaPods, while the 'test' lane runs Swift Package Manager tests and the 'podpush' lane handles pod specification updates.
fastlane · high confidence
Add interactive playground demonstrating Rainbow library features
Introduces a new Playground/main.swift file that serves as a quick-start demonstration for the Rainbow Swift library. It showcases core capabilities including basic and bright foreground/background colors, text styles (bold, dim, etc.), HSL color support via bit24, and a custom ASCII art hero banner with a smooth color gradient tagline.
Playground · high confidence
Added Xcode schemes for macOS, iOS, tvOS, and watchOS
The project now includes dedicated Xcode schemes for macOS, iOS, tvOS, and watchOS platforms. These new schemes configure the build, test, launch, profile, analyze, and archive actions for each platform's respective framework target, enabling developers to build and test the Rainbow framework across all supported Apple platforms directly from Xcode.
Rainbow.xcodeproj/xcshareddata · high confidence
Initial project structure and source file registration
The Xcode project file is created, establishing the build configuration for the Rainbow library. This includes registering core source files such as Rainbow.swift, Color.swift, Style.swift, and their extensions, as well as test targets and framework products, providing the foundational structure for building and testing the library.
Rainbow.xcodeproj · high confidence
Introduce comprehensive conditional styling and advanced color support
Rainbow now supports conditional styling, allowing users to apply colors, background colors, and styles only when specific conditions are met via new \String\ extension methods (e.g., \colorIf\, \backgroundColorWhen\) and a fluent \ConditionalStyleBuilder\. The library also expands its color capabilities to include 8-bit and 24-bit true color support, hex color conversion, and HSL color conversion, alongside named light background colors. Additionally, it introduces environment variable support for \FORCE\_COLOR\ and \NO\_COLOR\ to control output behavior and adds Windows terminal compatibility.
Sources · high confidence
New fastlane action to commit all changes
Added a new \git\_commit\_all\ action that allows users to commit all unsaved changes to git with a single command. The action accepts a \message\ parameter to specify the commit message, which can be provided via the \FL\_GIT\_COMMIT\_ALL\ environment variable or directly in the Fastfile.
fastlane/actions · high confidence
Behavioural changes
Added Xcode workspace configuration files
The project now includes the standard Xcode workspace configuration files: contents.xcworkspacedata, which references the main project file, and IDEWorkspaceChecks.plist, which enables workspace-level build settings checks. These files are required for proper workspace management in modern versions of Xcode.
Rainbow.xcodeproj/project.xcworkspace · high confidence
Updated Bundler configuration for parallel installation
The project's Bundler configuration has been updated to allow up to 8 parallel jobs during gem installation, which can significantly speed up dependency resolution and installation times.
.bundle · high confidence
Fixes
Release 4.2.2: Fixes for Windows terminal detection and ANSI reset ordering
This release addresses two specific issues with ANSI escape sequence handling. First, Windows terminal detection is now more robust, allowing colors to be enabled even when the \TERM\ environment variable is not set. Second, the ordering of reset codes in compound ANSI SGR sequences has been corrected, ensuring that styles are applied and cleared in the intended order without visual artifacts.
(repo-wide) · high confidence
Test coverage
Added comprehensive test coverage for Rainbow's color, styling, and parsing logic; Added test bundle configuration.
Dependencies
Initial project setup with dependency manifests and package definitions
This change introduces the foundational build and dependency configuration for the project. It adds a Ruby Gemfile and lockfile pinning fastlane, fastlane-plugin-changelog, and CocoaPods (\~\>1.2) along with their transitive dependencies (such as activesupport 7.2.3.1, aws-sdk-s3 1.227.0, and excon 1.5.0). It also adds a Swift Package Manager manifest (Package.swift) defining the 'Rainbow' library and its playground/test targets, and a CocoaPods podspec (RainbowSwift.podspec) specifying version 4.2.2, deployment targets (iOS 15.0, macOS 12.0, etc.), and static framework support.
(dependencies) · high confidence
Housekeeping
Initial Support framework project setup
The Support framework has been initialized with a new Info.plist configuration file. This establishes the basic project metadata, including the bundle identifier, package type (FMWK), and versioning (4.2.2, build 291), preparing the component for integration.
Support · 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 63 → 61 (-2.2)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 73 → 62 (-11.2)
- Architecture 94 → 94 (-0.6)
- Maturity 66 → 67 (+1.6)
- Readiness 51 → 50 (-0.5)
- Security 96 → 93 (-2.7)
Resolved (2)
- Duplicated block (7 lines × 2) (Sources/BackgroundColor.swift)
- Hotspot: Sources/CodesParser.swift (Sources/CodesParser.swift)
New (14)
- Duplicated block (7 lines × 2) (Sources/BackgroundColor.swift)
- Edited copy of a member (1 corresponding lines) (Sources/String+Rainbow.swift)
- Edited copy of a member (1 corresponding lines) (Sources/String+Rainbow.swift)
- Edited copy of a member (14 corresponding lines) (Sources/String+Rainbow.swift)
- Edited copy of a member (14 corresponding lines) (Sources/String+Rainbow.swift)
- Edited copy of a member (4 corresponding lines) (Sources/String+Rainbow.swift)
- Edited copy of a member (4 corresponding lines) (Sources/String+Rainbow.swift)
- Edited copy of a member (4 corresponding lines) (Sources/String+Rainbow.swift)
- Edited copy of a member (4 corresponding lines) (Sources/String+Rainbow.swift)
- Edited copy of a member (6 corresponding lines) (Sources/Rainbow.swift)
- Edited copy of a member (7 corresponding lines) (Sources/BackgroundColor.swift)
- Edited copy of a member (8 corresponding lines) (Sources/BackgroundColor.swift)
- High CVE: [GHSA redacted] (Gemfile.lock)
- Medium CVE: [GHSA redacted] (Gemfile.lock)
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
onevcat/Rainbow 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 15 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 b6d790f5487f4673fae2222d04d57ff6d6c621ea — 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.