Start
Source setup
Clone the NatUI repository and install its pnpm workspace prerequisites.
Prerequisites
- Node.js 22 or newer
- pnpm 11
- Git
- The platform tools described in the macOS or Windows guide
git clone https://github.com/floklein/natui.git
cd natui
corepack enable
pnpm install
pnpm build
pnpm typecheckpnpm build emits the natui package into packages/natui/dist. The examples resolve the package through the pnpm workspace, so build the package before running a standalone typecheck.
Package entrypoints
The workspace exposes three entrypoints:
natuifor components,run, and advanced protocol exportsnatui/componentsfor component-only bundles that avoid Node built-insnatui/inprocfor the embedded host entrypoint
NatUI is not documented as a public registry package. Keep installation and examples tied to a source checkout until a packaging workflow exists.