
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@bitcoin-os/bapps
Advanced tools
Create new Bitcoin apps with Next.js and full Bitcoin OS integration.
npm install -g @bitcoin-os/bapps
# Create a new Bitcoin app
npx @bitcoin-os/bapps my-bitcoin-app
# Or use the global command
create-bapp my-bitcoin-app
create-bapp
The CLI will guide you through:
create-bapp my-app --template basic --yes
Options:
-t, --template <template> - Choose template without prompt-y, --yes - Skip prompts and use defaults-h, --help - Show helpEvery Bitcoin app created includes:
my-bitcoin-app/
├── src/
│ ├── app/
│ │ ├── layout.tsx # Bitcoin OS provider setup
│ │ ├── page.tsx # Main app component
│ │ └── globals.css # Global styles
├── public/ # Static assets
├── .env.local.example # Environment template
├── package.json # Dependencies and scripts
└── README.md # App documentation
create-bapp bitcoin-docs --template writer
cd bitcoin-docs
npm run dev
create-bapp bitcoin-trader --template exchange
cd bitcoin-trader
npm run dev
create-bapp my-app
# Interactive prompts for:
# - Display name: "My Bitcoin App"
# - Template: Custom App
# - Color: Orange (#f97316)
# - Auth: Yes
# - Blockchain: Yes
# - Payments: No
All apps get the full Bitcoin OS experience:
import { BitcoinOSProvider } from '@bitcoin-os/bridge'
const config = {
context: {
appName: 'My Bitcoin App',
exchangeUrl: 'https://my-app-exchange.vercel.app',
branding: {
name: 'My Bitcoin App',
color: '#f97316'
}
},
showDevSidebar: true,
showDock: true,
showPocBar: true
}
<BitcoinOSProvider config={config}>
{children}
</BitcoinOSProvider>
import { HandCashConnect } from '@handcash/handcash-connect'
const handcashConnect = new HandCashConnect({
appId: process.env.NEXT_PUBLIC_HANDCASH_APP_ID,
appSecret: process.env.NEXT_PUBLIC_HANDCASH_APP_SECRET
})
const authToken = await handcashConnect.requestPermissions()
const account = handcashConnect.getAccountFromAuthToken(authToken)
const profile = await account.profile.getCurrentProfile()
import { Bsv } from 'bsv'
// Bitcoin SV operations
const privateKey = Bsv.PrivateKey.fromRandom()
const publicKey = privateKey.toPublicKey()
const address = publicKey.toAddress()
All generated apps are ready for deployment:
npx vercel
npm run build
# Deploy the 'out' folder
npm run build
npm start
Generated apps include environment templates:
# .env.local
NEXT_PUBLIC_HANDCASH_APP_ID=your-app-id
NEXT_PUBLIC_HANDCASH_APP_SECRET=your-app-secret
Get credentials from HandCash Dashboard.
git clone https://github.com/bitcoin-corp/bitcoin-OS.git
cd bitcoin-OS/packages/bapps
npm install
npm link
# Test app creation
create-bapp test-app --template basic --yes
cd test-app
npm run dev
create-bapp minimal --template custom --yes
Generates a basic Bitcoin app with just the OS integration.
create-bapp feature-rich --template writer
# Select: Auth=Yes, Blockchain=Yes, Payments=Yes
Generates an app with all integrations enabled.
This package is part of the Bitcoin OS project. See the main repository for contribution guidelines.
Open-BSV-4.0 © The Bitcoin Corporation Ltd
Ready to build Bitcoin apps?
npx @bitcoin-os/bapps my-awesome-app
Visit bitcoin-os.vercel.app for more information.
FAQs
Create new Bitcoin apps with Next.js and Bitcoin OS integration
The npm package @bitcoin-os/bapps receives a total of 3 weekly downloads. As such, @bitcoin-os/bapps popularity was classified as not popular.
We found that @bitcoin-os/bapps demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.