# sclevine/yj

CLI - Convert between YAML, TOML, JSON, and HCL. Preserves map order.

Repository: https://github.com/sclevine/yj
Canonical: https://ross.abutalabs.com/products/yj
Language: Go
License: Apache-2.0
License Family: permissive
Topics: cli, convert, converter, go, golang, hcl, json, toml, yaml
Last push: 2026-05-15T20:39:18+00:00

## Health v2 (maintenance only)
Score: 60/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 82, release rhythm 8, longevity 100
- inputs: {"age_days": 3466, "days_push": 110, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1054, forks 59 (observed 2026-08-28T04:03:24.087568+00:00)

## What it is
yj is a command-line tool written in Go that converts between YAML, TOML, JSON, and HCL data formats while preserving map key order. It is also usable as a Go package for converting these formats into a normalized tree of ordered objects.

## Use cases
- convert yaml to  from the command line
- convert toml to yaml
- convert hcl to
- convert  to toml
- convert config files between formats preserving key order
- pipe format conversion in shell scripts

## When to avoid
- you need conversion to formats beyond YAML, TOML, JSON, or HCL
- you need a stable Go library API for embedding (the Go API is explicitly not stable)
- you need GUI-based or batch directory-wide conversion tooling

## Facets
- artifact type: cli-tool
- maturity: stable
- function: cli, serialization, developer-tools
- domain: developer-tools, files
- platform: cli, cross-platform, windows, go
- tags: yaml, toml, hcl, format-conversion, data-conversion, command-line, macos, linux, docker

## Member repositories
- sclevine/yj (main) score 60

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:24.087568+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-30T06:59:02.754930+00:00, confidence not recorded.
  - readme: https://github.com/sclevine/yj (fetched 2026-08-28T04:03:24.087568+00:00, sha 56bcaa352b9e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
