Skip to content
CAI
Software that uses CAICheck a score

tommililja/Farse

63.2

Adequate · 31 October 2026

2.5k

lines of production code

F#

primary language

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Behavioural changes

Internal refactoring of JSON parsing and builder utilities

This change reorganizes internal implementation details within the Farse library. It introduces new internal modules for active patterns (handling JSON element validation and path parsing), builders (providing multiline text and Result-based computation expressions), and common utilities (including JSON document/writer options, type name mapping, and error helpers). These components support the library's internal JSON processing and code generation logic.

src/Farse/Internal · high confidence

Major parser and error handling overhaul

The Farse JSON parsing library has been significantly refactored to improve error reporting and usability. The error model now uses structured \ParseError\ records containing path, element, and details, replacing the previous string-based error messages, and the \Parser\ type is now a struct for better performance. Property access has been unified under the \Prop\ module, allowing parsers to target nested paths (e.g., \"prop.prop2"\) and supporting escaped periods. The \ParserBuilder\ now supports combining up to five parsers simultaneously, collecting all errors rather than failing on the first one. Additionally, extension methods have been added to \Parser\ and \Parse\ for convenient array and dictionary conversions (e.g., \List()\, \HashSet()\, \Map()\), and the \Json\ module provides new utilities for sorting, converting to \JsonNode\/\JsonElement\, and formatting output.

src/Farse · high confidence

Refactor JSON benchmarks to use new Farse parser and updated data models

The benchmark suite in src/Farse.Benchmarks has been restructured to benchmark the Farse parser alongside Thoth.Json and Newtonsoft.Json using a new, more complex data model (User with nested Subscription) instead of the previous simple Base/Benchmark types. The old static JSON fixture files (Benchmarks.json, Benchmarks.100.json) were removed in favor of programmatically generated JSON data via the BenchmarkData module. New helper extensions for JToken and JsonElement were added to support the benchmarking logic, and the entry point was updated to run the new ParserBenchmarks class.

src/Farse.Benchmarks · high confidence

Updated build configuration and solution structure

The build system now enforces stricter compiler settings, including treating warnings as errors, enabling strict F\# features, and raising the warning level to 5. A new warning (104) is suppressed, and sponsorship exemption settings for verification have been added. Additionally, the solution file has been reorganized to explicitly include root-level configuration files (such as Directory.Build.props, global.json, and .editorconfig) within a dedicated solution folder.

src · high confidence

Test coverage

Comprehensive test suite for JSON parsing, manipulation, and error handling

Added a complete test suite in src/Farse.Tests covering the library's core capabilities. The new tests validate JSON parsing for various data types (integers, strings, booleans, dates, custom parsers), parser combinators (bind, map, recover, default values), and property access (Prop.get, Prop.tryGet). It also includes tests for JSON manipulation features such as sorting properties, comparing JSON objects (including handling duplicates and nulls), and generating diffs. Additionally, the suite verifies error handling and message formatting for invalid inputs and missing properties, replacing the previous fragmented test files.

src/Farse.Tests · high confidence

Dependencies

Upgrade to .NET 10 and modernize dependency management

The project has dropped support for .NET 6 and 7, upgrading the benchmark and test projects to target .NET 10 and expanding the main library's target frameworks to include .NET 8, 9, and 10. Centralized package versioning via Directory.Packages.props has been removed in favor of explicit version references in project files. Key dependencies have been updated, including BenchmarkDotNet to 0.15.8, Newtonsoft.Json to 13.0.4, and FSharp.Core to 10.1.401 in test/benchmark contexts, while the main library now references System.Text.Json 9.0.0 and FSharp.Core 8.0.100. The test suite also incorporates NodaTime 3.3.5 and updates testing frameworks like Expecto and xunit.v3.

(dependencies) · high confidence

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

How this codebase got here

Score

  • CAI 62 → 63 (+1.2)

Lenses

  • Code Health 96 → 96 (-0.3)
  • Architecture 96 → 96 (-0.0)
  • Maturity 54 → 59 (+4.8)
  • Readiness 53 → 53 (+0.0)
  • Security 72 → 72 (+0.0)
  • Performance 98 → 98 (+0.0)

Resolved (1)

  • PR-triggered workflow without a permissions block

New (2)

  • Duplicated block (12 lines × 2) (src/Farse/Prop.fs)
  • PR-triggered workflow without a permissions block (.github/workflows/build-and-test.yml)

Changes since last survey

  • 43 commits — 40 feature/other, 3 fixes

By area

  • (root) — 16 commits
  • src/Farse.Tests — 14 commits
  • src/Farse — 12 commits
  • src/Farse.Benchmarks — 1 commit

Notable commits

  • fix: Fix double parsing on error
  • fix: Fix overflow
  • fix: Fix test
  • change: Add Parse.delay
  • change: Add all frameworks to tests
  • change: Add condition for package
  • change: Add error for too large floats
  • change: Add operator tests
  • change: Add remark
  • change: Add remarks
  • change: Add tests
  • change: Change Parse.number impl
  • change: Change null root behavior
  • change: Read once
  • change: Remove
  • change: Remove JsonElement from ParserError
  • change: Remove package
  • change: Remove seq from implementations
  • change: Skip regex for simple paths
  • change: Take Regex as param
  • …and 23 more

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

Survey your own repository

tommililja/Farse 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 31 October 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit dd7d2232cbc25765f49aa89719c16a9796554880 — the exact code this score is about.
  • Scored under rubric-2026.10.5 — the same rubric and the same method as every other entry in this index.
  • Measured by watchdog.canine.dev using codehealth-analyzer measure-2026.10.42+preprod-db4e23a40de1.