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 generated output directory
(e.g. "generated" for ./src/generated). When non-empty the client
imports the consumer’s types module so decoders/encoders resolve; when
empty a comment hint is emitted instead.
pub fn to_snake_case(name: String) -> String
Convert a PascalCase or camelCase string to snake_case.