Five modules that cover 90% of what APIs need. Built-in, zero config.
Every module compiles to proven Rust crates — Axum for HTTP, rusqlite for databases, jsonwebtoken + bcrypt for auth, dotenvy for environment.
Click any module to see the full API reference, examples, and generated Rust output.
HTTP server, routing, JSON responses. The foundation every AID app builds on.
server := http.new(port: 8080)
server.get("/") => handler
server.start()
Connect, query, execute, migrate. Built on rusqlite with auto column-to-JSON mapping.
db.connect("sqlite://data.db")
db.migrate("migrations/")
items := db.query("SELECT * FROM items")
Environment variables and .env files. Config-driven servers out of the box.
env.load_dotenv()
port := env.get("PORT")
secret := env.require("JWT_SECRET")
JWT tokens, bcrypt passwords, API keys, auth middleware. Production-ready security.
token := auth.jwt_sign(claims, secret)
hash := auth.hash_password("pass")
auth.middleware(handler)
HTML templates with variables, loops, conditionals. Plus static file serving and redirects.
content := html.template("page.html", data)
html.render(content)
html.serve_static("public/")
Why a standard library matters for AID.
Import a module and use it. No package.json, no Cargo.toml, no pip install. The compiler knows what Rust crates to pull.
bcrypt cost factor 12, JWT HS256, parameterized queries. You get production security without thinking about it.
Every module compiles to optimized Rust. No runtime overhead, no interpreter — just fast, safe native code.