After creating a repository from this template and cloning it, install dependencies with Node 26 and pnpm 10.34.9 (root .npmrc sets manage-package-manager-versions=true so compatible pnpm installations select 10.34.9 automatically; check pnpm --version), then run the setup wizard from the repository root:
pnpm install --frozen-lockfile
pnpm run setup
Include run—pnpm setup without run runs pnpm’s built-in command instead.
How the wizard works
In an interactive terminal, pnpm run setup prompts for eight values: display name, executable/root package slug, GitHub owner/repository, publisher, reverse-domain native identifier, storage namespace, stable local version, and product description. Each default derives from earlier answers and remains editable.
Before writing any file, setup prints the complete identity object and the exact list of files it will modify, then asks you to type yes. Pressing Ctrl+C, sending EOF, or entering anything else cancels with no file changes.
After applying the identity, setup checks installed versions of Node, pnpm, Go, and Wails and runs wails3 doctor inside apps/desktop:
- Native desktop work needs Go 1.26+, Wails CLI 3.1.0, and the target platform’s toolchain. Setup never installs tools or requests elevation.
- Web-only work needs only Node 26 and pnpm 10.34.9. Pass
--skip-doctor to skip doctor and allow unavailable Go/Wails tools; the summary explicitly marks native prerequisites as unverified.
- Exit codes:
0 means normal completion, including dry runs and cancellation. 1 means invalid input, a refused guard check, or a write error (validation refusals write nothing; an interrupted write prints recovery details). 2 means diagnostics failed or timed out after a successful identity apply; the applied identity stays in place. Even when wails3 doctor exits 0, read its output for missing or optional OS dependencies.
Dry runs and non-interactive flags
Preview or automate setup with CLI flags:
# Validate inputs and inspect the file plan (no prompts, no writes, no diagnostics)
pnpm run setup --non-interactive --dry-run --name "Paper Notes" --slug paper-notes --repository example/paper-notes
# Apply explicitly after reviewing the plan
pnpm run setup --non-interactive --yes --name "Paper Notes" --slug paper-notes --repository example/paper-notes --publisher "Example Company" --identifier org.example.papernotes --storage paper-notes --version 1.0.0
# Explicit web-only setup (marks native prerequisites unverified)
pnpm run setup --non-interactive --yes --skip-doctor
# Show all flags and usage notes
pnpm run setup --help
Supported flags and validation rules
| Flag |
Identity field |
Notes |
--name |
displayName |
Also defaults germanDisplayName, siteName, and slug when changed |
--slug |
slug |
Executable name; also defaults packageName, storageNamespace, and repo name |
--repository |
repository |
GitHub OWNER/REPO; determines the Go module path and default identifier |
--publisher |
publisher |
Updates default copyright when it ends with the previous publisher |
--identifier |
identifier |
At least three lowercase reverse-domain segments (a-z, 0-9, e.g. org.example.app) |
--storage |
storageNamespace |
Per-user config/data folder name for future runs |
--version |
version |
Stable X.Y.Z semver with each component 0..65535 (Windows resource limit) |
--description |
description |
Native product description (single-line, max 160 chars) |
--copyright |
copyright |
Native metadata copyright string |
--package-name |
packageName |
Overrides only the root package.json name |
--site-name |
siteName |
Overrides only website branding |
--german-name |
germanDisplayName |
Overrides only the German desktop title |
Slugs, package names, and storage namespaces must use lowercase a-z, 0-9, and hyphens starting with a letter (max 64 characters), and Windows reserved device names (such as con or nul) are rejected.
What setup updates
app.identity.json (schema version 1) is the canonical record of all twelve fields. Repeating setup with unchanged values is a no-op. Setup updates these managed locations together while preserving unrelated edits and formatting:
| Purpose |
Files updated |
| Identity record & root package |
app.identity.json, root package.json (@wailspring/* workspace package names and versions stay independent) |
| Executable name |
apps/desktop/Taskfile.yml (APP_NAME) |
| Native app & window title |
apps/desktop/internal/app/run.go |
| Wails metadata |
apps/desktop/build/config.yml |
| Windows resources & manifest |
apps/desktop/build/windows/info.json, apps/desktop/build/windows/wails.exe.manifest |
| macOS bundles |
apps/desktop/build/darwin/Info.plist and Info.dev.plist (CFBundleExecutable matches APP_NAME) |
| Linux launcher |
apps/desktop/build/linux/desktop |
| Local baseline version |
apps/desktop/internal/buildinfo/version.txt, app.identity.json, and platform dev metadata |
| Storage namespace |
apps/desktop/internal/apppaths/paths.go (AppID) |
| Go module & imports |
apps/desktop/go.mod and tracked Go files under apps/desktop/ |
| Native binding imports |
apps/desktop/frontend/src/host/native.ts (all generated service/model imports, including UpdateService) |
| Branding & locale copy |
en.json / de.json (app.title and test notification body), frontend/index.html, build/bootstrap/index.html (site branding and browser preview version read app.identity.json directly) |
Safety guards and Git requirements
Setup refuses to guess when a repository is in an unexpected state:
- Git checkout required: Run setup from the root of your cloned Git repository. Core native Go files must be tracked in Git, and untracked
.go files under apps/desktop/ cause a refusal so no Go imports are missed.
- Drift and link protection: Managed fields are checked against
app.identity.json before rewriting. Conflicting manual edits, duplicate JSON keys, symlinks, and hardlinks on managed files are refused. Keep app.identity.json aligned if you later edit managed metadata by hand.
- Staged writes and rollback: Each edited file is staged alongside its target, re-verified for concurrent modifications before replacement, and rolled back if a write fails. Rollback will not overwrite a concurrent edit; inspect any recovery message if interrupted mid-run.
- No external side effects: Setup never reads ignored bindings or personal app data, never moves or deletes existing user data directories, and never creates GitHub repositories, pushes commits, generates signing keys, creates tags/releases, or enables updates.
Required next steps
For native development, regenerate bindings after setup changes the Go module path to github.com/OWNER/REPO/apps/desktop (this also removes old generated module folders), then verify the workspace:
pnpm run desktop:bindings
pnpm run build
pnpm run check
pnpm test
pnpm run test:go
pnpm run desktop:build
For web-only work, run pnpm run build, pnpm run check, and pnpm test; defer bindings, Go tests, and native compilation until native tools are installed.
Launch the built desktop binary on your OS to check native persistence, settings, themes, keyboard navigation, and browser preview boundaries.
Manual follow-ups
Setup leaves product assets, data migrations, and release security to you:
- Icons and favicons: Customize the 32-unit frame geometry (
rectangles) in scripts/native-icons.mjs and site favicon assets. Native builds generate ignored apps/desktop/build/appicon.png, apps/desktop/build/windows/icon.ico, and apps/desktop/build/darwin/icons.icns from that script; keep generated binaries out of Git.
- Product copy and example code: Tailor site pages, docs, and the desktop items example (see
apps/desktop/README.md for removing the sample items store). Keep third-party license notices and shared @wailspring/* APIs intact.
- Storage migrations: Once users have installed your app, treat
storageNamespace (AppID) as permanent—or write an explicit migration before changing it.
- Signing and releases: Updates stay disabled by default with no fallback repository or public key. Release builds use
scripts/release.mjs with WAILSPRING_RELEASE_VERSION=X.Y.Z (and optional matching WAILSPRING_RELEASE_TAG=vX.Y.Z), writing generated platform metadata into ignored apps/desktop/bin/generated without modifying source files. Follow Builds and updates when ready to configure a public repository, signing key, and draft releases.
After creating a repository from this template and cloning it, install dependencies with Node 26 and pnpm 10.34.9 (root
.npmrcsetsmanage-package-manager-versions=trueso compatible pnpm installations select10.34.9automatically; checkpnpm --version), then run the setup wizard from the repository root:Include
run—pnpm setupwithoutrunruns pnpm’s built-in command instead.How the wizard works
In an interactive terminal,
pnpm run setupprompts for eight values: display name, executable/root package slug, GitHubowner/repository, publisher, reverse-domain native identifier, storage namespace, stable local version, and product description. Each default derives from earlier answers and remains editable.Before writing any file, setup prints the complete identity object and the exact list of files it will modify, then asks you to type
yes. PressingCtrl+C, sending EOF, or entering anything else cancels with no file changes.After applying the identity, setup checks installed versions of Node, pnpm, Go, and Wails and runs
wails3 doctorinsideapps/desktop:--skip-doctorto skip doctor and allow unavailable Go/Wails tools; the summary explicitly marks native prerequisites as unverified.0means normal completion, including dry runs and cancellation.1means invalid input, a refused guard check, or a write error (validation refusals write nothing; an interrupted write prints recovery details).2means diagnostics failed or timed out after a successful identity apply; the applied identity stays in place. Even whenwails3 doctorexits0, read its output for missing or optional OS dependencies.Dry runs and non-interactive flags
Preview or automate setup with CLI flags:
Supported flags and validation rules
--namedisplayNamegermanDisplayName,siteName, andslugwhen changed--slugslugpackageName,storageNamespace, and repo name--repositoryrepositoryOWNER/REPO; determines the Go module path and defaultidentifier--publisherpublishercopyrightwhen it ends with the previous publisher--identifieridentifiera-z,0-9, e.g.org.example.app)--storagestorageNamespace--versionversionX.Y.Zsemver with each component0..65535(Windows resource limit)--descriptiondescription--copyrightcopyright--package-namepackageNamepackage.jsonname--site-namesiteName--german-namegermanDisplayNameSlugs, package names, and storage namespaces must use lowercase
a-z,0-9, and hyphens starting with a letter (max 64 characters), and Windows reserved device names (such asconornul) are rejected.What setup updates
app.identity.json(schema version1) is the canonical record of all twelve fields. Repeating setup with unchanged values is a no-op. Setup updates these managed locations together while preserving unrelated edits and formatting:app.identity.json, rootpackage.json(@wailspring/*workspace package names and versions stay independent)apps/desktop/Taskfile.yml(APP_NAME)apps/desktop/internal/app/run.goapps/desktop/build/config.ymlapps/desktop/build/windows/info.json,apps/desktop/build/windows/wails.exe.manifestapps/desktop/build/darwin/Info.plistandInfo.dev.plist(CFBundleExecutablematchesAPP_NAME)apps/desktop/build/linux/desktopapps/desktop/internal/buildinfo/version.txt,app.identity.json, and platform dev metadataapps/desktop/internal/apppaths/paths.go(AppID)apps/desktop/go.modand tracked Go files underapps/desktop/apps/desktop/frontend/src/host/native.ts(all generated service/model imports, includingUpdateService)en.json/de.json(app.titleand test notification body),frontend/index.html,build/bootstrap/index.html(site branding and browser preview version readapp.identity.jsondirectly)Safety guards and Git requirements
Setup refuses to guess when a repository is in an unexpected state:
.gofiles underapps/desktop/cause a refusal so no Go imports are missed.app.identity.jsonbefore rewriting. Conflicting manual edits, duplicate JSON keys, symlinks, and hardlinks on managed files are refused. Keepapp.identity.jsonaligned if you later edit managed metadata by hand.Required next steps
For native development, regenerate bindings after setup changes the Go module path to
github.com/OWNER/REPO/apps/desktop(this also removes old generated module folders), then verify the workspace:For web-only work, run
pnpm run build,pnpm run check, andpnpm test; defer bindings, Go tests, and native compilation until native tools are installed.Launch the built desktop binary on your OS to check native persistence, settings, themes, keyboard navigation, and browser preview boundaries.
Manual follow-ups
Setup leaves product assets, data migrations, and release security to you:
rectangles) inscripts/native-icons.mjsand site favicon assets. Native builds generate ignoredapps/desktop/build/appicon.png,apps/desktop/build/windows/icon.ico, andapps/desktop/build/darwin/icons.icnsfrom that script; keep generated binaries out of Git.apps/desktop/README.mdfor removing the sample items store). Keep third-party license notices and shared@wailspring/*APIs intact.storageNamespace(AppID) as permanent—or write an explicit migration before changing it.scripts/release.mjswithWAILSPRING_RELEASE_VERSION=X.Y.Z(and optional matchingWAILSPRING_RELEASE_TAG=vX.Y.Z), writing generated platform metadata into ignoredapps/desktop/bin/generatedwithout modifying source files. Follow Builds and updates when ready to configure a public repository, signing key, and draft releases.