# brendanzab/codespan

Beautiful diagnostic reporting for text-based programming languages.

Repository: https://github.com/brendanzab/codespan
Canonical: https://ross.abutalabs.com/products/codespan
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: error-reporting, programming-languages, source-code, rust, diagnostics, terminal
Last push: 2026-02-28T10:33:10+00:00

## Health v2 (maintenance only)
Score: 61/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 69, release rhythm 29, longevity 100
- inputs: {"age_days": 3117, "days_push": 186, "days_rel": 315, "gap_med": 106.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1296, forks 69 (observed 2026-08-28T04:04:16.905827+00:00)

## What it is
A Rust library (codespan-reporting) for rendering beautiful, compiler-style diagnostic error messages for text-based programming languages, plus codespan data structures for tracking source code locations. Inspired by the rich error output of Rust and Elm.

## Use cases
- render rust-style compiler error messages for my language
- pretty print diagnostics with source snippets and labels
- track byte offsets and line/column positions in source code
- build a compiler or interpreter with nice error output
- show annotated source code spans in a terminal

## When to choose
- you are building a compiler, interpreter, or linter in Rust and want high-quality error rendering
- you need source location tracking alongside diagnostic reporting
- you want terminal output similar to rustc or Elm compiler errors

## When to avoid
- you need diagnostics in a language other than Rust
- you only need simple logging rather than source-annotated diagnostics
- you need GUI or web-based diagnostic rendering

## Facets
- artifact type: library
- maturity: active
- function: error-handling, developer-tools, terminal-ui
- domain: programming-languages, developer-tools, parsers
- platform: rust, cli, cross-platform
- tags: diagnostics, error-reporting, compiler-tooling, source-locations, compiler

## Member repositories
- brendanzab/codespan (main) score 61

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:16.905827+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:53:56.575716+00:00, confidence not recorded.
  - readme: https://github.com/brendanzab/codespan (fetched 2026-08-28T04:04:16.905827+00:00, sha 6bd50b1d1845)
  - registry_crates: https://crates.io/api/v1/crates/codespan (fetched 2026-08-29T12:10:26.127648+00:00, sha d8dbc57f8951)
- Data as of 2026-08-30T08:39:29.467469+00:00.
