# `a` standard library Reference docs for the library `a` adds on top of Lua 5.5. Every module below is a **global**, present in every script with no setup (`require`-ing one by name also works and returns the same table). ## Modules | Module | What it covers | |--------|----------------| | [`utils`](utils.md) | JSON encode/decode, the `NULL` marker, error-trapping (`try`/`tryn`), value `dump`. | | [`math`](math.md) | Additions to stock `math`: `round`, `clamp`, `isFinite`, `sign`, `scale`. | | [`table`](table.md) | Additions to stock `table`: map/filter/reduce, merge, deep-copy, aggregates, lookups, read-only proxy. | | [`os`](os.md) | Sandbox additions: `microtime` (sub-second clock) and async `sleep`. | | [`log`](log.md) | Level-tagged diagnostic logging (`trace`…`error`), gated by `RUST_LOG`. | | [`sqlite`](sqlite.md) | Embedded SQLite: connect, query, parameters, transactions. | | [`http`](http.md) | HTTP/HTTPS client: requests, JSON, auth, cookie-jar sessions. | | [`fs`](fs.md) | Whole-file read/write and directory listing, behind a per-script folder permission system. | | [`tui`](tui.md) | Interactive terminal prompts (confirm/text/select/…), ANSI-styled output, message blocks. | ## Concepts | Page | What it covers | |------|----------------| | [Concurrency](concurrency.md) | How async calls suspend, and running work in parallel with `task.join`. | | [Modules & `require`](require.md) | Splitting scripts into files: search roots, `A_INCLUDE_PATHS`, `.env`, caching, LSP setup. | See the top-level [README](../README.md) for what `a` is and how to build it.