$ account JakeWharton
Picnic is a Kotlin multiplatform library for constructing and rendering text-based tables. It provides a Kotlin DSL and Java builder API to define tables with features like borders, padding, text alignment, row/column spans, headers/footers, and multiple border styles (solid, rounded, ASCII). The library is well-architected with a clear separation between the model (Table, Cell, CellStyle), the DSL (dsl.kt), and the rendering engine (textRender.kt). The rendering algorithm performs a two-pass measurement and layout to handle complex cell spans and border merging, using a TextCanvas from the crossword library for drawing. The code is idiomatic Kotlin, fully multiplatform (JVM, JS, Native), and includes comprehensive tests. It is actively maintained with modern tooling (Kotlin 2.4, Gradle 9.6, Renovate for dependency updates).