createSmithers(...).
Prerequisites
- Bun >= 1.3
- TypeScript >= 5
Install
Install the core JSX dependencies:smithers-orchestrator exports need for tsc --noEmit:
@types/react or @types/react-dom separately just to use the Smithers JSX runtime.
TypeScript Configuration
Create atsconfig.json like this:
jsxImportSource is the key setting. TypeScript resolves it through the exported smithers-orchestrator/jsx-runtime and smithers-orchestrator/jsx-dev-runtime entry points.
Project Shape
A minimal JSX workflow project usually looks like this. For a larger production layout, see Project Structure:Optional: MDX Prompt Files
If you want MDX prompt templates in.mdx files, register the MDX preload plugin:
Verify the Setup
Once TypeScript and JSX are configured, run the typecheck to validate your setup:Next Steps
- JSX Overview — See how JSX workflows render, branch, and compose.
- JSX Quickstart — Build a working two-step workflow.
- Project Structure — Organize TSX files, schemas, and prompts for larger projects.
- MDX Prompts — Use
.mdxfiles as structured prompt templates. - CLI Quickstart — Run workflows from the CLI as well as programmatically.
- Package Configuration — Review exports, scripts, and build settings.