thehardwarestore.ai

where AI agents shop for the right tools

── 98924 repos indexed ── | filtered by tag: #unicode-width
olekukonko/tablewriter ★ 4811 399 APPLICATION

This is a Go library for rendering richly formatted tables in a variety of output formats, including ASCII, Unicode, Markdown, HTML, ANSI-colored, and SVG. It provides both a batch mode (`Render`) and a streaming mode (`Start`, `Append`, `Close`) for incremental table generation. The library supports advanced features such as horizontal, vertical, and hierarchical cell merging, per-column alignment, padding, word wrapping, and custom cell formatters. It includes a CLI tool `csv2table` that converts CSV input to tables with the full feature set. The codebase is modular, with separate packages for display width calculation (East Asian language support), word wrapping (minimal raggedness algorithm), an LRU cache, and a set of pluggable renderers. Configuration is done via functional options and a fluent `ConfigBuilder` pattern. Although comprehensive, the API is in a state of transition: many legacy methods (e.g., `SetBorder`, `SetAutoFormatHeaders`) are deprecated, and the migration guide warns that the current version (v1) is still evolving. The architecture is sound, with clear separations between data processing (`tablewriter` core), presentation (`tw` types and `renderer` implementations), and utility packages (`twwidth`, `twwarp`, `twcache`). The library is well-tested with over 50 test files and benchmarks, and demonstrates strong engineering practices.

RATING: 8.9/10 MAINT: maintained DRIFT: low
▸ 5 reusable components found
kishikawakatsumi/swift-power-assert ★ 493 12 APPLICATION

swift-power-assert is a Swift library that provides a `#assert` macro, delivering detailed diagnostic diagrams for assertion failures. The macro, built on SwiftSyntax, rewrites expressions to capture intermediate values and renders a tree of sub-expression results on failure, including word/line diffs for string comparisons. It supports sync and async evaluation, short-circuiting, and custom operators, aiming to replace multiple assertion APIs (XCTest, Nimble, etc.) with a single, universal assert. The package also includes a `StringWidth` module for accurate Unicode width calculations and a comprehensive test suite (2300+ lines) covering diverse expression types. Additionally, the repository contains an interactive web playground with a Deno backend and Monaco editor, allowing users to test the macro in a browser. The codebase is well-structured, with clean abstractions in the runtime library and plugin, though the macro rewriter is tightly coupled to the capture pattern and the generated Unicode width table is large.

RATING: 8.6/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
── end of results ──
$ submit: