Skip to main content
Helix has a modular architecture. Each module is a self-contained unit that registers itself with the interpreter at compile time.

How Modules Work

  1. Import the module in your .hx script
  2. Call its functions with module.function(args)
  3. Some modules return native objects with their own methods
import math
result = math.sqrt(144)
print(result)

Available Modules

Compile Flags

Each module is behind a feature flag. Compile only what you need:
# All modules (default)
cargo build --release

# Only specific modules
cargo build --release --no-default-features --features mod_math,mod_json,mod_os
Feature FlagModule
mod_mathmath
mod_jsonjson
mod_osos
mod_envenv
mod_datedate
mod_httphttp
mod_databasedatabase (HelixDB)
mod_database_sqlsql
mod_discorddiscord
mod_openaiopenai
mod_hashhash