v0.1.1 – Initial release
The first public release of @dylanlindgren/storybook-addon-sn-next-ui – develop ServiceNow Next Experience UI components in Storybook with live preview, hot reload, and real instance rendering.
Highlights
- Real Next Experience runtime – components render against the actual ServiceNow runtime and your instance's live theme assets, not mocks.
- ServiceNow Theme toolbar – switch instance themes live while you develop.
- Connection status panel – see your instance connection state at a glance.
- Frictionless credentials – connects via the ServiceNow CLI config + macOS keychain automatically, with environment-variable fallback (
SN_INSTANCE/SN_USER/SN_PASS). Credentials stay server-side and never reach the browser. - Zero-config setup – add one entry to
.storybook/main.mjsand the preset handles SCSS compilation, snabbdom-JSX, and runtime wiring for you.
Requirements
- Storybook 10 (
@storybook/web-components-vite) - Vite 5 / 6 / 7, Sass ≥ 1.50, React ≥ 16.8
- ServiceNow CLI ≥ 27 (CLI-based auth is macOS only; use env vars elsewhere)
Install
pnpm add -D @dylanlindgren/storybook-addon-sn-next-ui \
storybook@^10 @storybook/web-components-vite@^10 \
vite@'^5 || ^6 || ^7' sass@'>=1.50' \
react@'^16.8 || ^17 || ^18 || ^19'See the README for full setup.