Use the pkg.pr.new install command in the CodeUI package preview comment on the pull request. It points to a specific commit. The kit preview includes matching previews of @codeui/styles and @codeui/inkstone as dependencies. The Solid 2 kit requires both solid-js@^2 and @solidjs/web@^2.
You can also download the codeui-preview artifact from the Package preview run on the pull request. Extract the ZIP in your consumer project and install all three tarballs together.
npm install ./.codeui-preview/*.tgzThe run summary includes a GitHub CLI command that downloads the tarballs to that directory. The artifact expires after 14 days. Repository maintainers can enable direct install URLs by installing the pkg.pr.new GitHub App for CodeUI.
Run these commands from the repository root.
| Command | What it does |
|---|---|
pnpm dev |
Builds the docs dependencies and starts workspace development tasks. |
pnpm build |
Builds the whole workspace in dependency order. |
pnpm build:kit |
Builds Inkstone, styles, and the Solid kit. |
pnpm build:docs |
Builds the docs and the packages and apps it reads. |
pnpm test |
Builds the kit and runs package tests and Storybook tests. |
pnpm typecheck |
Builds the kit and checks workspace types. |
pnpm build-test |
Builds, tests, and checks types across the workspace. |
pnpm format |
Formats packages and apps with Prettier. |
pnpm changeset |
Creates a changeset. |
pnpm version-packages |
Applies changesets and refreshes the lockfile. |
pnpm release |
Builds the kit and publishes eligible packages to npm. |
pnpm update-deps |
Updates dependencies within their version ranges. |
-
Install Node.js
^24.15.0or>=26.0.0and the pnpm version pinned inpackage.json. -
Install dependencies and Chromium from the repository root. Chromium is required for browser tests.
pnpm install pnpm exec playwright install chromium -
Start the development environment:
pnpm run dev
-
Open the docs at http://localhost:6150 or Storybook at http://localhost:6006.
pnpm dev builds the packages the docs read, including the Solid kit, the demos, and the example apps. It then runs workspace development tasks in parallel.
| Package | Path | Service | URL |
|---|---|---|---|
@codeui/solid |
packages/kit |
tsdown watches and rebuilds dist/. |
No server |
@codeui/docs |
apps/docs |
Documentation site (Vite, TanStack Start) | http://localhost:6150 |
@codeui/examples |
apps/examples |
Example apps (Vite) | http://localhost:6160 |
@codeui/storybook-playground |
packages/storybook |
Storybook | http://localhost:6006 |
Before the docs server starts, apps/docs also generates its props tables, copies the examples and generates the palette CSS.
@codeui/styles, @codeui/inkstone and @codeui/docs-demos have no dev script. After changing styles or Inkstone, run pnpm build:kit. After changing a demo, run pnpm --filter "@codeui/docs-demos..." run build.
If a port is in use, Vite and Storybook move to the next free port. Check the terminal output for the URL in use.
Open the docs and the examples at localhost, not 127.0.0.1. Vite listens on the address that localhost resolves to, which can be the IPv6 address ::1 only.
To start one service only, filter by package name:
pnpm --filter "@codeui/docs^..." run build
pnpm --filter @codeui/docs dev