Standard Library
Nyx comes with a comprehensive standard library. All modules are tree-shakeable.
| Module | Description |
|---|---|
std.io | Console I/O, file descriptors |
std.fs | File system: read, write, directories |
std.http | HTTP/1.1 & HTTP/2 client and server |
std.json | JSON parsing and serialization |
std.crypto | Hashing (SHA256, MD5), encryption |
std.net | TCP/UDP sockets |
std.db | SQLite with type-safe query builder |
std.ui | Cross-platform widget toolkit (Skia) |
std.math | Numerics, vectors, matrices |
std.concurrency | Channels, mutex, actors |
std.test | Testing framework with assertions |
std.process | External command execution |
std.env | Environment variables, CLI args |
std.path | Path manipulation |
std.encoding | Base64, hex, UTF-8 validation |
std.regex | Regular expressions |
std.vision | Computer vision (OpenCV bindings) |
std.graphics | Vulkan graphics bindings |
std.ml | Machine learning tensor ops |
std.gis | Geospatial data processing |
std.audio | Audio playback |