nori/codegen/gleam_client
Generates framework-agnostic HTTP request builders as string output.
Produces a Gleam module with request construction functions and response decoders for each API endpoint defined in the CodegenIR.
Values
pub fn generate(
ir: ir.CodegenIR,
module_prefix: String,
) -> String
Generates a complete Gleam client module string from the CodegenIR.
module_prefix is the Gleam module path of the types module (e.g.
"generated" for ./src/generated, or "shared/generated" when the config
splits the output across projects). When non-empty the client imports it so
decoders/encoders resolve; when empty a comment hint is emitted instead.
pub fn to_snake_case(name: String) -> String
Convert a name to snake_case. See naming.to_snake_case.