# ajalt/mordant

Multiplatform text styling for Kotlin command-line applications

Repository: https://github.com/ajalt/mordant
Canonical: https://ross.abutalabs.com/products/mordant
Homepage: https://ajalt.github.io/mordant/
Language: Kotlin
License: Apache-2.0
License Family: permissive
Topics: kotlin, ansi, color, terminal, console, ansi-colors
Last push: 2026-08-18T02:57:21+00:00

## Health v2 (maintenance only)
Score: 74/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 98, release rhythm 28, longevity 100
- inputs: {"age_days": 3265, "days_push": 15, "days_rel": 564, "gap_med": 79.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 1235, forks 49 (observed 2026-08-28T04:04:04.992307+00:00)

## What it is
Mordant is a Kotlin multiplatform library for rendering styled text in the terminal, including ANSI colors, tables, panels, markdown rendering, and widget animations. It automatically detects terminal capabilities and is distributed via Maven Central.

## Use cases
- add colored ANSI output to a Kotlin CLI app
- render tables and panels in the terminal
- show progress bars and animated dashboards in a console app
- render markdown directly in the terminal
- style terminal text with automatic capability detection

## When to choose
- you're building a Kotlin or Kotlin Multiplatform command-line application that needs styled output
- you want terminal widgets like tables, lists, and progress bars with animation support
- you need markdown rendering in a console interface

## When to avoid
- you need a full TUI framework with keyboard input handling and complex layouts
- your project is not on the JVM/Kotlin ecosystem
- you only need simple ANSI color codes in a non-Kotlin language

## Facets
- artifact type: library
- maturity: active
- function: terminal-ui, developer-tools, markdown, animation
- domain: developer-tools, cross-platform
- platform: jvm, cli, cross-platform
- tags: ansi-colors, text-styling, progress-bars, tables, kotlin-multiplatform, command-line

## Member repositories
- ajalt/mordant (main) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:04.992307+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-30T08:22:03.329575+00:00, confidence not recorded.
  - readme: https://github.com/ajalt/mordant (fetched 2026-08-28T04:04:04.992307+00:00, sha da51328b4afd)
  - homepage: https://ajalt.github.io/mordant/ (fetched 2026-08-29T12:21:20.495936+00:00, sha ebb53275ae76)
- Data as of 2026-08-30T08:39:29.467469+00:00.
