The standard library is loaded automatically: every package below is available in every script without an import. Call a package’s functions with package::name(...).
Each package page starts with a guide and examples, followed by an API reference generated from the docstrings in lib/*.kiwi.
| Package | Purpose |
|---|
csv | Parse CSV into lists or hashmaps, with typed columns. |
json | Parse and produce JSON. |
yaml | Parse and produce YAML. |
xml | Parse, query, build and serialize XML. |
protobuf | Encode and decode Protocol Buffers. |
encode | Base64, hex and URL encoding. |
compress | DEFLATE, GZip, Brotli, Zstandard and ZIP. |
crypto | MD5, SHA and HMAC hashes; secure random bytes and UUIDs. |
| Package | Purpose |
|---|
table | Filter, join, group and display lists of hashmaps. |
text | Line-oriented text pipelines. |
pipeline | Named, step-by-step processing pipelines. |
sqlite | SQLite databases. |
stat | Descriptive statistics. |
math | Mathematical functions and random numbers. |
collections | Heap and Set. |
iter | A cursor for stepping through lists. |
faker | Realistic fake data. |
| Package | Purpose |
|---|
string | String formatting and inspection, as string methods. |
list | List predicates and searches, as list methods. |
date | Date arithmetic and components, as date methods. |
| Package | Purpose |
|---|
fmt | printf-style formatting. |
template | {{placeholder}} templates. |
regex | Regular expressions. |
console | Terminal colors, cursor and key input. |
cli | Messages, tables, prompts and argument parsing for command-line tools. |
log | Leveled logging. |
| Package | Purpose |
|---|
fio | Read, write and manage files and directories. |
path | The Path struct. |
watch | Watch files and directories for changes. |
stdin | Read standard input. |
env | Environment variables and command-line arguments. |
dotenv | Load .env files. |
sys | Run programs and manage processes. |
signal | Handle OS signals. |
ipc | Named-pipe messaging between processes. |
native | Load native extensions written in C, C#, Rust or Zig. |
ffi | Call C functions in shared libraries, and read and write native memory. |
| Package | Purpose |
|---|
http | HTTP client. |
httpserver | HTTP server with routing and middleware. |
web | The interface between web apps and the server: composable middleware, mounting, streaming and a test client. |
curl | HTTP requests through the system curl. |
socket | TCP and TLS sockets (socket and tls). |
udp | UDP datagrams. |
smtp | Send email. |
| Package | Purpose |
|---|
task | Background tasks, channels and mutexes. |
time | The clock, timestamps and calendar helpers. |
stopwatch | Measure elapsed time. |
| Package | Purpose |
|---|
tester | Unit tests. |
bench | Benchmarks. |
error | Structured errors and guards. |
reflector | Runtime introspection. |
hashable | Convert struct instances to hashmaps. |
std | Small general helpers. |
Global helpers such as d(), char(), spawn() and await() are on the Global Functions page.