Skip to content

Latest commit

 

History

30 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@superbuilders/prompt

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 (typessrc, defaultdist), emitted per-file by tsc with declarations and source maps.

Scripts

  • pnpm buildtsc -p tsconfig.build.json into dist/
  • pnpm typechecktsc --noEmit
  • pnpm lintbiome check .

Exports

  • @superbuilders/prompt — the component/runtime API
  • @superbuilders/prompt/jsx-runtime, @superbuilders/prompt/jsx-dev-runtime — automatic-runtime entry points consumed via the @jsxImportSource pragma

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages