ilusm.dev
Standard Library

345 Modules

Every module under lib/stdlib/*.ilu ships with the language. Import with use name. Click any module name to read its full documentation.

No modules match your search.

Core & runtime

50 modules
ModuleDescription
Memory allocators
CLI argument parsing
Spawn concurrent tasks, wait for them, run all in parallel, race to first result, sleep.
Benchmarking and performance measurement
Benchmarking utilities
Bootstrap orchestrator
Byte buffer
Minimal plugin CLI command dispatcher
Color utilities
Concurrency primitives
Core dump analysis and memory forensics
Code coverage tracking
debugging, introspection, breakpoints, stack traces, REPL hooks.
Unified compiler output layer
Environment variable management
`{val,err}` + `er` records (`k`,`m`).
simple pub/sub event bus.
ilusm code formatter
Binary min-heap / max-heap with custom comparators.
Host syscall bridge
Infrastructure, deployment, containers, cloud.
Core filesystem I/O surface
structured logging: levels, fields, sinks, formatters.
LRU cache with optional TTL
Memory management
Memory extensions and advanced memory management.
math domain (numeric stdlib).
Observability
lightweight profiling domain (wall-time based).
process domain: exec (`__os_run`), argv, cwd, pid, console stdin/stdout (see `docs/SYSCALL
CPU/memory profiling hooks, flame graph data, hotspot detection.
Boxed mutable references
High-level random: shuffle, sample, weighted choice, distributions.
Ring buffer (circular buffer) with fixed capacity
In-process logical signals
# snap - snapshot/golden file testing.
Stack (LIFO) data structure
# sto - localStorage/sessionStorage wrapper.
Concurrency primitives
raw OS syscall surface. Host: __sys_syscall(nr, args) → {ret: num, errno: num} (errno 0 =
Build constraints and feature tags
Terminal utilities and ANSI escape sequences
Test runner, assertions, coverage, mocking.
Time operations
Tracing domain
list transforms. Pure ilusm prelude.
text transforms. Pure ilusm.
# uid - UUID v4/v7 and ULID generation.
Unsafe opt-in operations
# val - form validation.

Text & data

42 modules
ModuleDescription
Apache Avro schema definition and binary codec
Base64 encoding and decoding
Binary data
Bitwise operations and bit manipulation
BSON encode/decode
Calendar and scheduling
In-process multi-algorithm compression
CRC32/CRC16 checksums for data integrity and network protocols.
CSV parsing and writing (RFC 4180 compatible).
Three-way merge for VCS-style conflict resolution
Line-by-line and word diff
Pure-ilusm encoding utilities
2D/3D geometry, vectors, shapes.
Hash identification, password cracking, rainbow tables, salted hashes, PBKDF2, and timing-
Hash identification, cracking, rainbow tables.
iCalendar (RFC 5545) serialization and parsing.
ICS/SCADA protocol fuzzing and testing, Modbus, DNP3, SCADA.
INI and <code>.env</code> config file support
JSON convenience wrapper
Pure ilusm JSON encoder/decoder
Hash-table style key/value maps over ilusm objects
MIME type lookup and Content-Type handling
MessagePack subset (bytes as str, U+00..FF per char). use mpk as m → m.bin, m.val, ….
Newline-delimited JSON (NDJSON / JSONL)
# path - cross-platform path utilities.
Path utilities (join, split, normalize).
Regex builder DSL with named groups, composition, and testing.
Regular expressions
List-backed sets for small collections
Small in-memory inverted index with TF-IDF scoring
Slice domain over ilusm lists
Sorting algorithms
Curried pipeline operators for <code>|&gt;</code>
tar archive reading/writing (POSIX ustar format).
Object-as-map table helpers
Template engine with Handlebars-style syntax
TOML parser and serialiser
tiny templating domain (${name} replacement).
URL parsing, building, and query-string manipulation
XML parsing, serialization, XPath queries.
YAML parsing and serialization.
Compression, archives, gzip, zlib.

File system & OS

12 modules
ModuleDescription
Ethereum and Web3 client
Narrow big-endian row codec for legacy network packets
Daemon and service management
Filesystem access
File glob pattern matching
Memory-mapped file I/O for high-performance data access.
OS thin wrapper
IPC: named pipes, Unix domain sockets, shared memory regions.
Ilusm package manager, registry, dependency resolver.
Static binary compilation, cross-compilation.
Virtual filesystem overlay
File change detection via SHA-256 digest polling

Networking

37 modules
ModuleDescription
CAN bus and automotive security
DNS operations, tunneling, zone transfers, enumeration.
SMTP mail objects, templates, validation (host `__smtp_*`).
Minimal outbound email surface
FTP/SFTP client: connect, list, get, put, delete.
gRPC client/server, protobuf, streaming.
GSM/3G/LTE hacking, cell tower spoofing, SMS interception.
HTTP/2 client surface
ICMP ping, traceroute, host reachability.
LoRaWAN hacking, gateway simulation, packet decoding.
Modal lifecycle manager
MQTT client for IoT messaging (pub/sub, QoS, retained messages).
HTTP middleware
Full networking stack
NFC/RFID reading, writing, cloning, MIFARE cracking.
NTP time synchronization: query, offset calculation, drift detection.
Natural language processing utilities.
Open Source Intelligence, username enumeration, social recon.
SOCKS/HTTP proxy chains, tunneling, MITM helpers.
SOCKS/HTTP proxy chains, tunneling, MITM helpers.
Radio frequency scanning, jamming detection, signal analysis.
WebRTC, peer connections, data channels.
HTTP path routing, parameter extraction, route matching.
# rtr - SPA router for frontend.
RTL-SDR specific operations, ADS-B, NOAA, P25.
SMTP email client
HTTP server framework, request/response handling.
# sse - Server-Sent Events.
Service-level networking
TLS-oriented HTTP and WebSocket helpers
Extended TLS operations, cipher suites, handshake analysis.
USB device enumeration, communication, HID, bulk/interrupt transfers.
SIP attacks, RTP interception, PBX testing.
WireGuard tunnel management
protobuf-style varints + tags + length-delimited records (no .proto compiler).
WebSocket client
WebSocket server, rooms, broadcasting.

Cryptography & encoding

16 modules
ModuleDescription
ASN.1 DER parser
X.509 certificate management and PKI
crypto: digests, HMAC, CSPRNG, AEAD (AES-GCM + ChaCha20-Poly1305), PBKDF2, wire envelopes.
Advanced cryptography: symmetric/asymmetric config, KDF, cert gen, random, password hashin
extended cryptography: RSA, ECDSA, Ed25519, X25519, ECDH, key derivation, certificates.
FIDO2/WebAuthn, authenticator simulation, attestation.
HMAC computation and constant-time comparison for auth flows.
Hardware Security Module integration, PKCS#11, key operations.
JSON Web Token manipulation, validation, attacks.
Cloud Key Management Service adapters.
One-time pad/token generation, disposable secrets, nonce management.
PEM encode/decode (RFC 7468)
Post-quantum cryptography (ML-KEM, ML-DSA, SLH-DSA).
SAML authentication, XML signatures, SSO testing.
TOTP/HOTP 2FA, authenticator apps, backup codes.
Secret management, credential storage, rotation.

Security & offensive

24 modules
ModuleDescription
Authentication and authorisation
Command &amp; Control framework
Named capability bundles for <code>sbx</code> sandboxes
vulnerability database, exploit lookup, CVSS scoring.
DoS attack patterns, amplification, slowloris, stress testing.
Structured fuzzing, mutation, coverage feedback.
structured fuzzing, mutation, coverage feedback.
low lvl hex, fuzz, hooks, guards.
YARA rules, sandbox analysis, behavior detection.
Memory safety, ownership, borrowing, lifetimes.
policy-as-code: rule evaluation, RBAC/ABAC, decision logging.
Open Source Intelligence, username enumeration, social recon.
email spoofing, link manipulation, landing pages.
permissions, ACL policy evaluation, cap sets for sandboxing (composes with sbx + cry).
automated exploit generation, payload crafting, vulnerability patterns.
Role-based access control: roles, permissions, user-role assignment.
Remote Code Execution patterns, command injection, deserialization attacks.
reverse engineering helpers: CFG recovery, signature matching, decompilation hints.
sandboxed tree-walk eval: fresh env, capability copy from parent, optional fuel/stmt/depth
network scanning, service detection, OS fingerprinting.
SQL injection detection, payloads, union extraction.
Server-Side Request Forgery detection, payload generation, bypasses.
steganography (hide data in images, audio, text).
XSS payload generation, filtering bypass, DOM analysis.

Web & frontend

17 modules
ModuleDescription
Accessibility utilities
Animation and tweening for UI/DOM
CORS middleware for ilusm HTTP servers
CSS-in-JS, styled components, dynamic styles.
Modal dialog component for browser UI
Drag-and-drop utilities for browser UI
Browser DOM manipulation, element selection, event handling.
Form state management: fields, validation, dirty tracking, submission.
hot module reloading for development, file watching, live updates.
Recommender systems: collaborative filtering, content-based, hybrid.
Meta tags, sitemaps, robots.txt, light keyword/link helpers.
SVG utilities (DOM via `dom` + path string fragments).
terminal text UI + ASCII dashboards. Std tier; pure ilusm + __sys_write_stdout (SYSCALLS.m
UI components, reactive state, components framework.
HTML escape and markup utilities
WiFi auditing, WPA cracking, beacon analysis, deauth.
High-level web framework (Express/Rails style).

Databases & storage

11 modules
ModuleDescription
Advanced caching strategies
CQL / Cassandra query builder: select, insert, update, delete, batch.
Database drivers (PostgreSQL, MySQL, MongoDB, SQLite).
Key-value store abstraction: in-memory, TTL, namespaces, persistence.
LDAP/Active Directory client.
Database migration runner
Object-relational mapper, migrations, query builder.
Minimal Redis command helpers (connection-shaped `r` with `.connection`). Prefer `redis` f
Redis client via host `__redis_*` (connect, command, get, close).
Object storage (S3, GCS, Azure Blob, MinIO).
database/sql style host wrappers (sqlite3 CLI based, file-oriented).

Observability & tracing

6 modules
ModuleDescription
HTTP API + embedding-vector shape domain (JSON bodies, optional OpenAI-style responses).
keystroke injection, HID attacks, USB exploitation.
keystroke injection, HID attacks, USB exploitation.
first-class schema descriptors (`{t:&quot;sch&quot;, flds:[…]}`): defaults, diff/patch, wi
Statistics: mean, median, stddev, percentiles, histograms.
Distributed tracing, OpenTelemetry, Jaeger/Zipkin.

Concurrency

2 modules
ModuleDescription
Message queue clients (RabbitMQ, Kafka, SQS, NATS).
Background jobs, workers, scheduling.

AI & ML

11 modules
ModuleDescription
Numeric vectors, small matrices, activations, batching, and prompt token budgeting. Pure i
Analytics
Computer vision: object detection, OCR, face recognition, image analysis.
Shallow object merge and method utilities
Knowledge graphs, RDF, SPARQL, graph databases, reasoning.
LLM/AI integration: OpenAI, Anthropic Claude, Ollama, local models.
Machine learning: regression, classification, clustering, preprocessing.
Natural language processing: tokenization, sentiment, NER, embeddings.
QUANTUM DOMAIN - Quantum computing primitives and algorithms.
Message queue systems and patterns.
Scientific computing, matrices, linear algebra, plotting.

Hardware & IoT

11 modules
ModuleDescription
Android Debug Bridge
Audio processing and synthesis
Bluetooth Low Energy
WebGL, 2D/3D graphics, shaders.
GPIO pin control for embedded/RPi: read, write, PWM, interrupts.
GPS spoofing, jamming, receiver testing.
Image processing, manipulation, formats.
IoT device testing, MQTT, CoAP, Zigbee, Z-Wave.
Intermediate representation
Audio processing, synthesis, playback, recording, effects.
Video processing, encoding, decoding, streaming, effects.

Language tooling

20 modules
ModuleDescription
Inline assembly and x86-64 JIT
Generic abstract syntax tree
Blockchain and distributed ledger
C code generation from an ilusm AST
File-oriented gzip and zlib compression via host tools
ilusm AST compiler
Foreign function interface, call C/Rust/Python/JS.
Generic higher-order utilities
Template file generator
ISA summary and architecture introspection for the <code>pln</code> domain
Ilusm compiler written in Ilusm. Self-hosting compiler.
Interpreter, REPL, debugger, bytecode.
Just-in-time compilation, performance optimization.
lexer for Ilusm (simplified for minimal runtime)
Language Server Protocol, IDE autocomplete, hover, diagnostics.
Test mocking and stubbing
parser for Ilusm
Interactive shell, autocomplete, history.
# tst - toast notifications.
VM detection, hypervisor fingerprinting, container escape testing.

Infrastructure & cloud

13 modules
ModuleDescription
Let's Encrypt / ACME protocol
Arena allocators, bump allocators, object pools, fixed-size block allocators, stack alloca
Backend framework
Build system
Docker API client, container management, images, volumes, networks.
Named operation hooks and message dispatch
Feature flags, toggles, A/B testing, gradual rollouts.
ASCII art text generation.
rate limiting: token bucket, sliding window, leaky bucket.
retry strategies: exponential backoff, jitter, circuit breaker.
Address sanitizer, memory sanitizer, UAF detection.
semantic versioning: parse, compare, range matching (semver 2.0).
ICMP tunneling, DNS tunnels, HTTP covert channels.

Misc & domain-specific

28 modules
ModuleDescription
Anonymity and privacy
Buffered I/O
Chatbot framework
Browser automation and web scraping
3D CAD and parametric geometry
Customer relationship management, leads, opportunities, contacts.
E-commerce: cart, inventory, pricing, orders, products, checkout.
Dependency graph engine
raw Ethernet frame crafting, MAC operations, EtherType handling.
binary exploitation helpers: ROP gadgets, shellcode, format strings, heap exploits.
file carving, timeline analysis, metadata extraction.
Game development: loop, sprites, physics, input, audio.
Stack guards, bounds checking, overflow protection.
Stack guards, bounds checking, overflow protection.
hotkey registration, keyboard shortcuts, key combinations. n by prio.
Heap / Priority Queue.
LoRaWAN hacking, gateway simulation, packet decoding.
Machine learning algorithms and models.
Memory management, pools, garbage, profiling.
Memory safety, ownership, borrowing, lifetimes.
Metrics, telemetry, Prometheus, statsd.
Notifications (Slack, Discord, Teams, Telegram, Email).
Payment processing (Stripe, PayPal, etc).
protocol DSL domain (define protocol rows in ilusm).
Data processing, ETL, streaming, transformations.
Satellite communication hacking, DVB-S, Iridium, Inmarsat.
Simulation: discrete event, Monte Carlo, agent-based modeling.
Speech: recognition, text-to-speech, voice activity detection.

Other

45 modules
ModuleDescription
Rust-style borrow checker and ownership analysis
Box drawing and ASCII art
Linux cgroup and namespace control
High-level CLI framework
Content Management System
cron expression parsing and next-run calculation.
Content Security Policy builder for web security.
Deterministic PRNG and sort utilities
Documentation generator
Diagnostics, structured logging, tracing, performance profiling, error tracking.
Frontend framework, components, state management, routing.
# ftc - fetch/http client for frontend.
GraphQL schema, resolvers, execution engine.
Graph data structure and algorithms.
Touch and gesture handling for browser UI
Internationalization, localization, translations.
Duck-typed interface checking
Bytecode builder surface for the machine (<code>mch</code>) domain
Deadlines, timeouts, and retry
Module linker and bundler
alias for mth (numeric stdlib).
machine / bytecode domain: ILU → mcde, layout, disasm, pack, validate, VM run.
Markdown parser and HTML renderer (CommonMark subset)
Middleware composition
OAuth 2.0, OpenID Connect, token handling.
PDF generation, manipulation, forms.
package ecosystem: semver, manifest/lock shapes, path resolution tree, cache paths,.
execution tiers, bytecode version, ISA summary, light reflection.
HTTP client library (axios/fetch style).
Result type aligned with <code>try</code>
reflection domain (value/type/object introspection).
Interactive shell, autocomplete, history.
RTL-SDR specific operations, ADS-B, NOAA, P25.
network scanning, service detection, OS fingerprinting.
Search engine clients (Elasticsearch, Meilisearch, etc).
SSH client: connect, exec, tunnel, key auth.
Session management, cookies, stores.
State management, Redux-like store, slices.
Reader/writer records
Stream reader/writer records
Support utilities, logging, config, helpers.
Time series, TSDB, metrics storage, forecasting.
Technical Surveillance Countermeasures, bug detection.
WebAssembly compilation, WASI, browser interop.
Test sentinel module