Skip to content
CAI
Software that uses CAICheck a score

giraffe-fsharp/Giraffe

67.3

Adequate · 13 November 2026

4.2k

lines of production code

F#

primary language

8

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Add EndpointRoutingApp sample demonstrating named route parameters

A new sample application has been added to the samples/EndpointRoutingApp directory, showcasing the Giraffe EndpointRouting library. This sample demonstrates how to define HTTP handlers that accept typed parameters, including specific support for named route parameters (e.g., /pet/%i:petId) alongside standard positional parameters, and includes examples for JSON binding and sub-routing.

samples/EndpointRoutingApp · high confidence

Add F\# sample for Newtonsoft.Json serialization

A new F\# sample application has been added to demonstrate how to integrate Newtonsoft.Json with Giraffe. This sample provides a concrete implementation of the \Json.ISerializer\ interface using Newtonsoft.Json, showing users how to configure dependency injection and handle JSON serialization and deserialization in an F\# web application.

samples/NewtonsoftJson · high confidence

Add ResponseCachingApp sample demonstrating Giraffe response caching

A new sample application has been added to demonstrate how to configure the Giraffe server to use ASP.NET Core's response caching feature. The sample includes a \Program.fs\ that sets up various endpoints (public, private, no-cache, and vary-by-query-keys) to illustrate different caching behaviors, along with a \test-run.fsx\ script and a \README.md\ that provide instructions and expected log outputs for verifying the caching middleware.

samples/ResponseCachingApp · high confidence

Initial project scaffolding and documentation structure

The repository has been initialized with the core Giraffe project structure, including the solution file (Giraffe.slnx), build targets, and a comprehensive documentation suite (README, DOCUMENTATION, CHANGELOG, RELEASE\_NOTES). This entry establishes the foundational configuration for the F\# ASP.NET Core micro web framework, including code formatting rules via .editorconfig, line-ending consistency via .gitattributes, and the official Code of Conduct and Security policies.

(repo-wide) · high confidence

New authentication, authorization, and CSRF protection handlers

Giraffe now includes dedicated modules for security: Auth.fs provides handlers for challenging authentication, signing out, and enforcing authorization via custom predicates, roles, or ASP.NET Core policies; Csrf.fs adds handlers to validate anti-forgery tokens (with optional custom error handling) and generate tokens for views or JSON responses; and Auth.fs also introduces a deprecation warning for evaluateUserPolicy, recommending authorizeUser instead. These additions give developers built-in, composable tools for securing Giraffe applications without relying on external middleware configurations.

src/Giraffe · high confidence

Behavioural changes

1 commit (0 fixes) modifying samples/RateLimiting

A change to existing behaviour in samples/RateLimiting — 1 commit, 3 files: “\[Alpha\] Add new route functions (...WithExtensions) (\#634)” (refs \#634).

samples/RateLimiting · medium confidence · unverified

2 commits (0 fixes) modifying samples/GlobalRateLimiting

A change to existing behaviour in samples/GlobalRateLimiting — 2 commits, 3 files: “chore(deps): bump fantomas from 6.3.16 to 7.0.0 (\#637)”; “add global rate limiting sample (\#622)” (refs \#637, \#622).

samples/GlobalRateLimiting · medium confidence · unverified

Test coverage

Added comprehensive test coverage for authentication, routing, and model binding

Added new test suites in the \tests/Giraffe.Tests\ directory to verify core framework capabilities. \AuthTests.fs\ validates role-based and user-specific authorization handlers (e.g., \requiresRole\, \authorizeUser\). \EndpointRoutingTests.fs\ and \FormatExpressionTests.fs\ cover the new endpoint routing integration, including \routef\ with GUID/integer placeholders, \routeWithExtensions\, and the \QUERY\ HTTP method. \ModelBindingTests.fs\ and \ModelValidationTests.fs\ ensure correct parsing of complex models from query strings and JSON, including nested objects and F\#-friendly serialization. Additional tests in \GuidAndIdTests.fs\ and \DateTimeTests.fs\ verify short GUID/ID conversion and date formatting utilities.

tests · high confidence

Dependencies

Update to .NET 10 and add .NET 9 support

The Giraffe library and its test suite now target .NET 10, with .NET 9 added as a supported framework alongside the existing .NET 6, 7, and 8 targets. This update ensures compatibility with the latest .NET runtime versions and includes corresponding updates to test dependencies like Microsoft.AspNetCore.TestHost and xUnit to support the new frameworks.

(dependencies) · 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 68 → 67 (-1.2)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.

Lenses

  • Code Health 89 → 86 (-2.5)
  • Architecture 100 → 100 (-0.0)
  • Maturity 54 → 50 (-4.2)
  • Readiness 80 → 80 (+0.8)
  • Security 74 → 77 (+3.1)
  • Performance 100 → 100 (+0.0)

Resolved (10)

  • Coverage not measured — no coverage collector is wired up
  • Documentation: no architecture or design documentation
  • Duplicated block (5 lines × 2) (src/Giraffe/EndpointRouting.fs)
  • End-of-life runtime: .NET net9.0 (samples/ResponseCachingApp/ResponseCachingApp.fsproj)
  • IL efficiency: 1 authored method(s) exceed the IL budget (src/Giraffe/ModelParser.fs)
  • Off-boarding risk: anonymized user #1
  • Outdated: FsCheck
  • Outdated: FsCheck.Xunit.v3
  • Outdated: Microsoft.SourceLink.GitHub
  • Outdated: System.Text.Json

New (6)

  • Edited copy of a member (52 corresponding lines) (samples/GlobalRateLimiting/Program.fs)
  • Off-boarding risk: anonymized user #1
  • Outdated: Microsoft.AspNetCore.TestHost
  • Outdated: Microsoft.NET.Test.Sdk
  • Outdated: Microsoft.SourceLink.GitHub (src/Giraffe/Giraffe.fsproj)
  • Outdated: System.Text.Json (src/Giraffe/Giraffe.fsproj)

Changes since last survey

  • 7 commits — 7 feature/other, 0 fixes

By area

  • (root) — 2 commits
  • .config/dotnet-tools.json — 2 commits
  • tests/Giraffe.Tests — 2 commits
  • src/Giraffe — 1 commit

Notable commits

  • change: Bump FsCheck and FsCheck.Xunit.v3 (#789)
  • change: Bump Microsoft.IO.RecyclableMemoryStream from 3.0.1 to 4.0.1 (#792)
  • change: Bump fantomas from 8.0.10 to 8.1.0 (#788)
  • change: Bump fantomas from 8.1.0 to 8.1.1 (#793)
  • change: Bump xunit.v3 from 4.0.2 to 4.0.3 (#794)
  • change: Release 8.4.0
  • change: feat: add forVerbs to endpoint routing (#795)

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

Survey your own repository

giraffe-fsharp/Giraffe 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 13 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 032ea9b6ff31396f1eac33af53234a5b1836106d — the exact code this score is about.
  • Scored under rubric-2026.11.3 — 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.61+preprod-b8b1a43ae4c3.