JSX runtime for authoring structured LLM prompts as components. Declare a per-file pragma and write prompts as composable JSX:
/** @jsxImportSource @superbuilders/prompt */
export function SystemPrompt(props: { role: string }) {
return (
<system>
You are {props.role}.
</system>
)
}Built for bare-Node type stripping: internal imports are # subpath imports resolved through the package's conditional map (types → src, default → dist), emitted per-file by tsc with declarations and source maps.
pnpm build—tsc -p tsconfig.build.jsonintodist/pnpm typecheck—tsc --noEmitpnpm lint—biome check .
@superbuilders/prompt— the component/runtime API@superbuilders/prompt/jsx-runtime,@superbuilders/prompt/jsx-dev-runtime— automatic-runtime entry points consumed via the@jsxImportSourcepragma