2026-02-18 17:39:10 +01:00
# Standard Library Overview
2026-02-18 18:11:21 +01:00
This page provides a quick orientation to the standard library located under [`./lib/` ](../lib/ ).
2026-02-18 17:39:10 +01:00
The stdlib is written in Fun and organized by domain. Below are top-level modules and what they generally cover. Refer to the source for full APIs and examples.
## Module index (selected)
2026-02-18 18:11:21 +01:00
- `crypt/` - cryptographic helpers (hashing, encoding helpers). See also [lib/crypt ](../lib/crypt/ ).
- `encoding/` - text/binary encodings and conversions.
- `io/` - file and stream utilities.
- `net/` - basic networking helpers.
- `regex/` - regular expression utilities (PCRE2 when available).
- `ui/` - UI helpers (e.g., Tk if enabled at build time).
- `utils/` - small reusable helpers and utilities.
2026-02-18 17:39:10 +01:00
2026-02-18 18:11:21 +01:00
Note: Availability of some modules can depend on optional extensions selected at build time (see [build.md ](./build.md )).
2026-02-18 17:39:10 +01:00
## Using modules
```fun
include "utils/strings.fun" as strings
let s = strings.trim(" hello ")
print(s)
```
2026-02-18 18:11:21 +01:00
For search paths and namespacing details, see [includes.md ](./includes.md ) and [cli.md ](./cli.md ) (FUN_LIB_DIR and DEFAULT_LIB_DIR).