Skip to content

Kiwi Standard Library

The standard library is a collection of packages containing useful functions and structs which Kiwi provides out of the box.

Package Descriptions

Package Description
bench A benchmarking framework for measuring and reporting code performance.
cli Output helpers, tables, progress bars, prompts, and argument parsing for CLI apps.
collections Specialized collection types, including Heap and Set.
compress Functions for compression and decompression.
console An interface that wraps core I/O operations.
crypto Cryptographic functions like MD5 and SHA-2.
csv Functions for parsing CSV data.
curl A thin wrapper around the system curl command for making HTTP requests.
date Extends the built-in date type with arithmetic and component accessor methods.
dotenv Load .env files into the process environment.
encode Encoding and decoding utilities: Base64, hex, and URL.
env For interacting with environment variables.
error Helpers for constructing, throwing, and inspecting structured errors.
faker Realistic fake data for testing and development: names, addresses, emails, lorem, and more.
fio Functions for file system operations.
fmt sprintf-style string formatting with % specifiers.
hashable The Hashable mixin struct for automatic hashmap serialization of instance variables.
http Functions for HTTP requests (GET, POST, etc), including HttpResponse.
httpserver Production-grade HTTP server with routing, middleware, static files, CORS, cookies, and Tomcat-style configuration.
ipc Interprocess communication via named pipes with length-prefixed message framing.
iter An explicit iterator pattern for safely traversing lists.
log Structured logging with severity levels and optional file output.
json Functions for parsing and serializing JSON data.
list Higher-order utility functions for working with lists.
math Common mathematical functions and utilities.
path Contains the definition for the Path struct.
pipeline Named, step-based data pipelines with before/after hooks and error recovery.
protobuf Encode and decode data in Protocol Buffer binary wire format (proto3).
reflector Reflection tools, including Callable.
regex Regular expression matching, searching, splitting, and replacement.
signal OS signal handling for SIGINT, SIGTERM, and SIGHUP.
smtp Send email via SMTP with a fluent Message builder.
socket / tls Low-level asynchronous TCP and TLS networking.
sqlite SQLite database access via the SqliteDb struct.
stat Descriptive statistics: mean, median, variance, correlation, and more.
std General-purpose utility functions for introspection and common operations.
stdin Functions for reading from standard input.
stopwatch A simple elapsed-time stopwatch with lap support.
string String manipulation and transformation utilities.
sys For executing shell commands.
table In-memory tabular data pipeline: filter, join, group, aggregate, and display lists of hashmaps.
task Asynchronous task management, including Channel.
template Lightweight {{key}} string template engine.
tester A simple unit testing framework.
text Fluent line-oriented text processing pipeline with filter, map, match, and split steps.
time Time and date utilities.
udp UDP socket communication for sending and receiving datagrams.
xml XML parser and serializer using a tree of XmlNode structs.
yaml YAML parser and serializer.