Wailspring combines a static Astro site, a Wails 3.1.0 desktop app, and shared UI packages in one pnpm workspace.
Prerequisites
For web development, documentation, and the browser preview of the desktop UI, you only need:
- Node.js 26 (root
engines field)
- pnpm 10.34.9 (root
packageManager field; root .npmrc sets manage-package-manager-versions=true and engine-strict=true so compatible pnpm installations select 10.34.9 automatically—verify with pnpm --version, or substitute npx --yes pnpm@10.34.9 if your global pnpm does not switch)
For native desktop compilation, Go tests, and Wails binding generation in apps/desktop, you also need:
- Go 1.26 or newer (see
apps/desktop/go.mod) and Wails CLI 3.1.0
- Windows: builds without CGO (no C compiler required); WebView2 is needed at runtime.
- macOS: Xcode Command Line Tools and macOS 12 or newer.
- Linux: a C compiler plus GTK4 and WebKitGTK 6 development libraries (
build-essential, pkg-config, libgtk-4-dev, libwebkitgtk-6.0-dev).
Install the pinned Wails CLI and ensure Go’s bin directory is on your PATH (use the Wails guide for OS prerequisites only; do not run wails3 init inside this workspace):
go install github.com/wailsapp/wails/v3/cmd/wails3@v3.1.0
wails3 version
To work only on the site, shared styles, or UI layout, skip Go and Wails for now—the desktop browser preview runs with Node and pnpm alone and keeps sample data in session memory.
Install and build shared packages
Install workspace dependencies from the repository root using the single lockfile:
pnpm install --frozen-lockfile
In a new repository created from this template, run pnpm run setup next (include run—pnpm setup is pnpm’s built-in command). The wizard renames app identity, Go module paths, and platform metadata together, previews every file change before writing, and checks installed tools with wails3 doctor. Pass --skip-doctor for explicit web-only setup (marks native prerequisites unverified). See Create an app for flags, dry runs, and manual follow-ups.
Installing dependencies does not compile the shared workspace packages (@wailspring/design-system, @wailspring/icons, @wailspring/ui, and @wailspring/docs). Build their public exports into each package’s ignored dist/ folder before running filtered app scripts directly:
pnpm run design-system:build
Workspace commands
Run these from the repository root:
# Start the Astro site with live reload
pnpm run dev:site
# Start the desktop UI in browser preview mode (session-only memory, no native actions)
pnpm run dev:desktop
# Launch the native Wails desktop app with Vite hot reload (default port 9245)
pnpm run desktop:dev
# Build shared packages, the Astro site, and the desktop browser bundle
pnpm run build
# Type-check packages, Astro pages, and the desktop frontend
pnpm run check
# Run workspace, site, and desktop frontend tests (run build first)
pnpm test
# Run Go backend tests (requires Go 1.26+)
pnpm run test:go
# Preview or generate components, docs, and pages (add --apply to write)
pnpm wailspring --help
# Optional React component workshop (Node and pnpm only)
pnpm run storybook
Root dev:*, build*, check, and Storybook scripts run pnpm run design-system:build automatically. Before running a filtered script directly (such as pnpm --filter @wailspring/site build), build shared exports first.
Add your first documentation page
Create packages/content/docs/my-guide.md (or run pnpm wailspring doc my-guide --site --apply) with a title and description:
---
title: My guide
description: How to use the feature I added.
---
## Try it
Describe the behavior and link to [setup](./getting-started.mdx).
Start the site with pnpm run dev:site and open /docs/my-guide/. The landing page, docs index, table of contents, and previous/next pager include the new file automatically, including pages in nested subdirectories.
See Writing documentation for frontmatter defaults, source-relative links, static MDX components, and doc checks. For scaffolding components, docs, and routes, see Workspace CLI. To trace a full-stack addition, follow Build a feature.
Updating shared styles
Tokens, text styles, and framework-independent recipes live in packages/design-system/src/ and compile at build time with Panda CSS (@pandacss/dev 2.6.0). After editing them:
- Run
pnpm run design-system:build to update built package exports and Panda manifests.
- Rebuild or restart
apps/site, apps/desktop/frontend, or apps/storybook so each app’s panda codegen picks up the new CSS.
Do not run generic Panda CSS init scripts inside an app—the workspace already wires the single Panda foundation for Astro and React. If a running dev server shows stale or missing styles after a package edit, restart it and reload. Both apps bundle @fontsource/inter and @fontsource/jetbrains-mono locally with their SIL OFL notices under public/licenses/, so typography works offline.
Wailspring combines a static Astro site, a Wails 3.1.0 desktop app, and shared UI packages in one pnpm workspace.
Prerequisites
For web development, documentation, and the browser preview of the desktop UI, you only need:
enginesfield)packageManagerfield; root.npmrcsetsmanage-package-manager-versions=trueandengine-strict=trueso compatible pnpm installations select10.34.9automatically—verify withpnpm --version, or substitutenpx --yes pnpm@10.34.9if your global pnpm does not switch)For native desktop compilation, Go tests, and Wails binding generation in
apps/desktop, you also need:apps/desktop/go.mod) and Wails CLI 3.1.0build-essential,pkg-config,libgtk-4-dev,libwebkitgtk-6.0-dev).Install the pinned Wails CLI and ensure Go’s
bindirectory is on yourPATH(use the Wails guide for OS prerequisites only; do not runwails3 initinside this workspace):To work only on the site, shared styles, or UI layout, skip Go and Wails for now—the desktop browser preview runs with Node and pnpm alone and keeps sample data in session memory.
Install and build shared packages
Install workspace dependencies from the repository root using the single lockfile:
In a new repository created from this template, run
pnpm run setupnext (includerun—pnpm setupis pnpm’s built-in command). The wizard renames app identity, Go module paths, and platform metadata together, previews every file change before writing, and checks installed tools withwails3 doctor. Pass--skip-doctorfor explicit web-only setup (marks native prerequisites unverified). See Create an app for flags, dry runs, and manual follow-ups.Installing dependencies does not compile the shared workspace packages (
@wailspring/design-system,@wailspring/icons,@wailspring/ui, and@wailspring/docs). Build their public exports into each package’s ignoreddist/folder before running filtered app scripts directly:Workspace commands
Run these from the repository root:
Root
dev:*,build*,check, and Storybook scripts runpnpm run design-system:buildautomatically. Before running a filtered script directly (such aspnpm --filter @wailspring/site build), build shared exports first.Add your first documentation page
Create
packages/content/docs/my-guide.md(or runpnpm wailspring doc my-guide --site --apply) with atitleanddescription:Start the site with
pnpm run dev:siteand open/docs/my-guide/. The landing page, docs index, table of contents, and previous/next pager include the new file automatically, including pages in nested subdirectories.See Writing documentation for frontmatter defaults, source-relative links, static MDX components, and doc checks. For scaffolding components, docs, and routes, see Workspace CLI. To trace a full-stack addition, follow Build a feature.
Updating shared styles
Tokens, text styles, and framework-independent recipes live in
packages/design-system/src/and compile at build time with Panda CSS (@pandacss/dev2.6.0). After editing them:pnpm run design-system:buildto update built package exports and Panda manifests.apps/site,apps/desktop/frontend, orapps/storybookso each app’spanda codegenpicks up the new CSS.Do not run generic Panda CSS init scripts inside an app—the workspace already wires the single Panda foundation for Astro and React. If a running dev server shows stale or missing styles after a package edit, restart it and reload. Both apps bundle
@fontsource/interand@fontsource/jetbrains-monolocally with their SIL OFL notices underpublic/licenses/, so typography works offline.