Define a schema once — gengen generates the LLM system prompt and routes the response into your React components.
npm install @moeki0/gengenThe same definition drives your prompt, your parser, and your renderer.
Describe what the LLM should output using the schema DSL. Name fields and pick types.
Call g.prompt() — gengen generates the exact system prompt your LLM needs.
Pass the response to <Gengen>. It routes each block to the right React component.
LLM output on the left, your React component on the right.
Rich types: text, list, codeblock, heading, table, bool, blockquote, and inline markers.
g.prompt() turns your schema into precise LLM instructions automatically.
Matches markdown blocks to renderers by schema specificity, not fragile string patterns.
Describe response structure with prose(), loop(), and pick() for complex outputs.
Custom markers within prose text — styled terms, tooltips, callouts.
Schema types are inferred automatically. Your component gets the right types.
Read the guide or browse the full API reference.