<>ts-stack
Get StartedArchitecturePackagesSpecsGuides
⌘K
Reference
Home
Get StartedOverviewInstallChoose your stackKey concepts
ArchitectureOverviewStack layersBEEF (BRC-62)BRC-100 Wallet InterfaceIdentity & AuthConformance pipeline
PackagesOverviewSDKWalletNetworkOverlaysMessagingMiddlewareHelpers
@bsv/simple@bsv/templates@bsv/did@bsv/wallet-helper@bsv/amountinator@bsv/air-gap@bsv/fund-wallet
InfrastructureOverviewmessage-box-serveroverlay-serveruhrp-server-basicuhrp-server-cloud-bucketwabwallet-infrachaintracks-serverwebrtpay-relay
SpecsOverviewBRC-100 Wallet InterfaceOverlay HTTPMessage-box HTTPAuthsocket (WebSocket)BRC-31 Auth HandshakeBRC-29 Peer PaymentBRC-121 / HTTP 402ARC BroadcastMerkle ServiceStorage AdapterGASP SyncUHRPAir-Gap Optical (BRC-141)
ConformanceOverviewVector catalogTS runnerContributing vectors
GuidesOverviewIdentity, DIDs and credentialsIdentity migrationBuild a wallet-aware appRun an overlay nodePeer-to-peer messagingHTTP 402 payments
ReferenceOverviewBRC indexRepository health
AboutVersioningContributingDoc agentDocumentation sources
npmhttps://www.npmjs.com/package/create-bsv-appv1.3.0API reference (TypeDoc) ↗
Loading…
Edit this page on GitHub
© 2026 BSV Blockchain. ts-stack is open-source.
GitHubContributingVersioning

create-bsv-app

create-bsv-app is the supported CLI and starter catalogue for new BSV applications. It generates React, Express, and full-stack projects, copies governed complete examples, and can add wallet capabilities to an existing project.

Run

bash
npx create-bsv-app new my-app --starter full-stack --yes
cd my-app
npm run dev

The CLI can also create react, express, or catalogue starters and supports interactive, flag, JSON configuration, and local browser-UI inputs. Generated projects record the resolved starter and layout in bsv-scaffold.json. Interactive and browser-UI runs start new projects from React, Express, and every capability; deselect what you do not need.

Generated projects use @bsv/sdk 4. The tx-core capability adds transaction building blocks (TransactionBuilder from @bsv/wallet-helper, script support, BRC-29 self-addresses and payment internalization), helpers that parse and summarize transactions and BEEF, and a Transactions demo page. Adding a capability to an existing project raises an outdated dependency range it needs, leaves devDependencies and unrecognized ranges unchanged, and prints both. A major upgrade is never silent: the interactive terminal asks before raising a @bsv/* package it pins across a major, and --yes, --file and --ui leave it with a warning unless --upgrade-bsv-deps is passed. Any other package that would need a major upgrade is left and reported for manual review. It also adds any capability the selected one requires where the layout uses it (for example wallet-connect for tx-core when the project has a frontend), records it in bsv-scaffold.json, and says so. Select TerraTestNet with --network ttn or the browser configurator; the choice is preserved in generated configuration and bsv-scaffold.json.

Use --skip-install when CI or another tool owns dependency installation. Review generated authentication and nonce-store configuration before production; multi-process services need a shared atomic replay store.

The package publishes an installed create-bsv-app executable for Node.js 22 or newer. Package checks validate the packed CLI in a clean consumer with lifecycle scripts disabled. See the package README for the starter catalogue, modes, flags, merge rules, and security boundaries.

License

Apache License 2.0. See the package license.