spruce

status: stablestatusstable
spruce version on Hex license: MITlicenseMIT
written in: Gleamwritten inGleam
docs: hexdocsdocshexdocs

A terminal-UI kit for styled text, boxes, tables, and Markdown in Gleam.

Build terminal output with colors, boxes, tables, trees, semantic messages, and ANSI-aware alignment. Spruce uses tty to detect color support and adapts its output for terminals, pipes, and CI. It also supports syntax highlighting and Markdown rendering.

Spruce is logging-agnostic and runs on Erlang and JavaScript. Available under either the MIT or Apache-2.0 licence. The project uses Trellis for releases.

Powered by

Projects that spruce depends on.

  • trellis

    A workspace CLI for multi-package Gleam projects.

  • tty

    TTY and ANSI color-support detection for Gleam on Erlang and JavaScript.

Powers

Projects that use spruce as a dependency.

  • licence_audit

    Dependency licence auditing, SBOMs, and vulnerability reports for Gleam.