tokmd-analysis-format
Formatting and rendering for tokmd analysis receipts.
Overview
This is a Tier 3 crate that renders analysis results in multiple formats. It transforms AnalysisReceipt structures into human-readable or machine-processable outputs.
Installation
[]
= "1.3"
# Enable fun outputs (OBJ, MIDI)
[]
= "1.3"
= ["fun"]
Usage
use ;
use AnalysisFormat;
let output = render?;
match output
Supported Formats
| Format | Output | Description |
|---|---|---|
Md |
Text | Markdown with tables and sections |
Json |
Text | Pretty-printed JSON |
Jsonld |
Text | JSON-LD with semantic markup |
Xml |
Text | XML serialization |
Svg |
Text | SVG visualization |
Mermaid |
Text | Mermaid diagram syntax |
Obj |
Text | 3D code city (OBJ format) |
Midi |
Binary | Audio representation |
Tree |
Text | Directory tree visualization |
Html |
Text | Self-contained HTML report |
Markdown Output
Sections rendered when data is present:
- Archetype with evidence
- Topics with TF scores
- Entropy suspects table
- License findings table
- Churn trends table
- Corporate domains table
- Git metrics (hotspots, bus factor, freshness)
- COCOMO estimates
- Distribution statistics
- Top offenders
Tables limited to top 10 items by default.
Feature Flags
[]
= ["tokmd-fun"] # Enable OBJ, MIDI outputs
Output Types
License
MIT OR Apache-2.0