Skip to content

Open source Bitcoin-powered 3D modeling platform with immersive visualization, blockchain asset storage, and collaborative design tools | By THE BITCOIN CORPORATION LTD

License

Notifications You must be signed in to change notification settings

bitcoin-apps-suite/bitcoin-3d

Repository files navigation

Bitcoin App Boilerplate

A complete Next.js template for building Bitcoin SV applications with exchange functionality, smart contracts, and seamless ecosystem integration.

Bitcoin App

πŸš€ Features

  • πŸ›οΈ Exchange Framework - Built-in trading functionality with order books, market data, and transaction management
  • πŸ“œ Smart Contracts - Deploy and manage Bitcoin Script smart contracts with an intuitive interface
  • πŸͺ™ Token Management - Create, distribute, and manage application tokens with built-in economics
  • πŸ”§ Developer Tools - Comprehensive developer sidebar with tasks, documentation, and GitHub integration
  • πŸ–₯️ Bitcoin OS Compatible - Seamless integration with the Bitcoin OS ecosystem
  • 🎨 Modern UI/UX - Clean, responsive design with Bitcoin-themed styling
  • πŸ”— Ecosystem Integration - Pre-configured links to Bitcoin Apps suite and dock integration

πŸ“‹ Table of Contents

πŸš€ Quick Start

Prerequisites

  • Node.js 18+
  • npm or yarn
  • Git

Installation

  1. Clone the repository

    git clone https://github.com/your-github/bitcoin-app.git
    cd bitcoin-app
  2. Install dependencies

    npm install
  3. Set up environment variables (optional)

    cp .env.example .env.local
    # Edit .env.local with your configuration
  4. Start the development server

    npm run dev
  5. Open your browser Navigate to http://localhost:3000

πŸ“ Project Structure

bitcoin-app/
β”œβ”€β”€ components/                 # Shared components
β”‚   β”œβ”€β”€ Dock.tsx               # Bitcoin OS dock integration
β”‚   β”œβ”€β”€ Taskbar.tsx            # macOS-style menu bar
β”‚   β”œβ”€β”€ DevSidebar.tsx         # Developer tools sidebar
β”‚   β”œβ”€β”€ PocBar.tsx             # Proof of concept banner
β”‚   └── ...
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/                   # Next.js App Router pages
β”‚   β”‚   β”œβ”€β”€ exchange/          # Trading interface
β”‚   β”‚   β”œβ”€β”€ contracts/         # Smart contract management
β”‚   β”‚   β”œβ”€β”€ token/             # Token information & actions
β”‚   β”‚   β”œβ”€β”€ docs/              # Documentation
β”‚   β”‚   └── ...
β”‚   β”œβ”€β”€ components/            # App-specific components
β”‚   β”œβ”€β”€ lib/                   # Utility functions & hooks
β”‚   β”‚   └── utils/
β”‚   β”‚       └── useBitcoinOS.ts # Bitcoin OS integration hook
β”‚   └── ...
β”œβ”€β”€ public/                    # Static assets
└── ...

πŸ›οΈ Core Features

Exchange Framework

The built-in exchange provides:

  • Trading Pairs Management - Support for multiple BSV and token pairs
  • Order Book Display - Real-time buy/sell orders visualization
  • Trade History - Complete transaction records
  • Market Data - Live price feeds and 24h statistics
  • Order Placement - Buy/sell order interface (template)

Location: /src/app/exchange/page.tsx

Smart Contracts

Comprehensive contract management system:

  • Contract Templates - Pre-built templates for common use cases
  • Contract IDE - In-browser editor with syntax highlighting
  • Deployment Tools - One-click deployment to testnet/mainnet
  • Contract Browser - View and interact with deployed contracts

Location: /src/app/contracts/page.tsx

Token Management

Complete token lifecycle management:

  • Token Statistics - Supply, holders, market cap tracking
  • Distribution Visualization - Pie charts and allocation breakdown
  • Utility Documentation - Token use cases and benefits
  • Token Actions - Transfer, stake, and reward claiming interfaces

Location: /src/app/token/page.tsx

Developer Tools

Integrated development environment:

  • Task Management - GitHub issue integration
  • Documentation Hub - Centralized docs and guides
  • Quick Actions - Common development shortcuts
  • Status Monitoring - Real-time app health indicators

Component: DevSidebar.tsx

🎨 Customization

1. App Branding

Update your app name and metadata in /src/app/layout.tsx:

export const metadata: Metadata = {
  title: "Your App Name",
  description: "Your app description",
  // ... other metadata
};

2. Token Configuration

Modify token details in /src/app/token/page.tsx:

const tokenStats = {
  name: '$YOURTOKEN',
  symbol: 'YOURTOKEN', 
  totalSupply: '1,000,000,000',
  // ... other properties
};

3. Trading Pairs

Configure available trading pairs in /src/app/exchange/page.tsx:

const tradingPairs = [
  { pair: 'YOUR_TOKEN/BSV', price: '0.001', change: '+2.4%', volume: '1.2M' },
  // ... add your pairs
];

4. Theme Colors

Update the color scheme in /src/app/globals.css:

:root {
  --color-primary: #your-primary-color;
  --color-accent: #your-accent-color;
  /* ... other variables */
}

5. GitHub Integration

Update repository links throughout the codebase:

  • Replace https://github.com/your-github/bitcoin-app with your repository URL
  • Update issue tracking links in DevSidebar.tsx
  • Modify external documentation links

πŸš€ Deployment

Vercel (Recommended)

  1. Connect your repository to Vercel
  2. Configure build settings:
    • Build Command: npm run build
    • Output Directory: .next
  3. Set environment variables in Vercel dashboard
  4. Deploy - automatic deployments on git push

Other Platforms

The app is compatible with any platform supporting Next.js:

  • Netlify - Static export support
  • Railway - Full-stack deployment
  • AWS - Using AWS Amplify
  • Self-hosted - Docker support available

Build Commands

# Development
npm run dev

# Production build
npm run build

# Start production server  
npm start

# Lint code
npm run lint

🧩 Bitcoin OS Integration

This boilerplate includes seamless Bitcoin OS integration:

  • Auto-detection - Automatically adapts UI when running in Bitcoin OS
  • Theme synchronization - Matches Bitcoin OS theme preferences
  • Message passing - Communication with OS for notifications and navigation
  • App lifecycle - Proper initialization and cleanup

The integration is handled by the useBitcoinOS hook in /src/lib/utils/useBitcoinOS.ts.

πŸ”— Ecosystem Integration

Bitcoin Apps Dock

Your app automatically appears in the Bitcoin Apps ecosystem dock with:

  • App icon and branding
  • Current app indicator when active
  • Quick navigation to other Bitcoin apps
  • Status indicators for connectivity and health

TaskBar Integration

The taskbar provides:

  • Bitcoin Suite access - Quick links to all ecosystem apps
  • Menu system - Organized feature navigation
  • User status - Authentication and connection indicators
  • Mobile responsiveness - Adaptive mobile menu

🀝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Workflow

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Code Style

  • TypeScript for type safety
  • ESLint for code linting
  • Prettier for code formatting
  • Conventional Commits for commit messages

πŸ“š Documentation

πŸ†˜ Support

πŸ“„ License

This project is licensed under the Open BSV License Version 5.

See the LICENSE file for details.

πŸ™ Acknowledgments


Ready to build your Bitcoin app? πŸš€

Fork this repository and start building the future of Bitcoin applications!

Deploy with Vercel Deploy on Railway


⭐ Star this repository β€’ 🍴 Fork this repository β€’ πŸ› Report issues

About

Open source Bitcoin-powered 3D modeling platform with immersive visualization, blockchain asset storage, and collaborative design tools | By THE BITCOIN CORPORATION LTD

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •