Skip to content

meta-light/black-box-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Dawn Black Box Store ๐Ÿš€

A modern CLI tool for managing DePIN (Decentralized Physical Infrastructure Network) nodes. Install and manage your infrastructure nodes through a beautiful local web interface, powered by Docker.

Dawn Black Box Store Interface

โœจ Features

  • ๐Ÿ–ฅ๏ธ Simple CLI: One command to launch the web interface
  • ๐Ÿš€ Easy Installation: Automated setup with dependency management
  • ๐Ÿ“ฆ Pre-configured Apps: Popular DePIN projects ready to install
  • ๐Ÿณ Docker Powered: Automatic container management
  • ๐ŸŽจ Modern UI: Beautiful, responsive web interface
  • ๐Ÿ“Š Real-time Monitoring: Track running/stopped apps with status indicators
  • ๐Ÿ“ Container Logs: View logs directly from the interface
  • ๐Ÿ”„ Full Lifecycle Management: Install, start, stop, and uninstall with one click

๐Ÿ“‹ Prerequisites

Good news! The installer will automatically install missing dependencies for you.

The Black Box Store requires:

  • Node.js 18+ - Auto-installed if missing
  • Docker - Auto-installed if missing
  • Git - Auto-installed if missing

Supported Operating Systems

  • macOS 10.15+ (Catalina and later)
  • Linux - Ubuntu 20.04+ (and derivatives)

The install script will detect your OS and install the appropriate versions automatically.

๐Ÿš€ Installation

Quick Install (Recommended)

macOS:

# Download and run (no sudo needed)
curl -fsSL https://raw.githubusercontent.com/meta-light/black-box-store/main/install.sh | bash

Linux (Ubuntu):

# Download and run with sudo (needed to install system packages)
curl -fsSL https://raw.githubusercontent.com/meta-light/black-box-store/main/install.sh | sudo bash

Or clone and install manually:

macOS:

git clone https://github.com/meta-light/black-box-store.git
cd black-box-store
bash install.sh

Linux:

git clone https://github.com/meta-light/black-box-store.git
cd black-box-store
sudo bash install.sh
  1. Reload your shell:
# macOS (zsh)
source ~/.zshrc

# Linux or macOS (bash)
source ~/.bashrc
  1. Launch the Black Box Store:
dbb-store

The installer will:

  • โœ… Automatically install Node.js, Git, and Docker if missing
  • โœ… Clone the repository to ~/.black-box-store
  • โœ… Install all dependencies
  • โœ… Build the application
  • โœ… Install the dbb-store CLI command

๐Ÿ’ป Usage

Starting the Black Box Store

Simply run:

dbb-store

This will:

  1. Start the Next.js server on http://localhost:3456
  2. Automatically open your browser
  3. Display the Black Box Store interface

Press Ctrl+C to stop the server.

Managing Apps

Once the interface is open, you can:

  • Browse Apps: View all available DePIN applications
  • Install: Click "Install" on any app to deploy it with Docker
  • Start/Stop: Control running applications
  • View Logs: Monitor container logs in real-time
  • Uninstall: Remove apps and their containers
  • Read Docs: Access documentation for each app

Filter Apps

Use the filter buttons to view:

  • All Apps: Every available application
  • Available: Apps ready to install
  • Installed: Apps currently installed (running or stopped)

๐Ÿ“ฑ Supported DePIN Projects

The Black Box Store includes:

  • ๐ŸŒ Pipe Network: Decentralized CDN network
  • ๐Ÿ“ก Nexus: Decentralized compute network
  • ๐Ÿ”’ Arcium: Confidential computing network
  • โšก Grass: Bandwidth sharing network
  • ๐Ÿง  Inference Labs: AI inference network
  • ๐Ÿš€ TapeDrive: Decentralized storage network
  • ๐ŸŒŸ Tashi: High-performance DePIN network
  • โœจ Bless: Decentralized infrastructure network

๐Ÿ› ๏ธ Development

Running in Development Mode

cd ~/.black-box-store
npm run dev

The app will be available at http://localhost:3000

Project Structure

black-box-store/
โ”œโ”€โ”€ app/
โ”‚   โ”œโ”€โ”€ api/                  # API routes for app management
โ”‚   โ”‚   โ”œโ”€โ”€ apps/            # App endpoints
โ”‚   โ”‚   โ””โ”€โ”€ docker/          # Docker health checks
โ”‚   โ”œโ”€โ”€ page.tsx             # Main UI
โ”‚   โ”œโ”€โ”€ layout.tsx           # Layout wrapper
โ”‚   โ””โ”€โ”€ types.ts             # TypeScript types
โ”œโ”€โ”€ apps/                     # DePIN app definitions
โ”‚   โ”œโ”€โ”€ interface.ts         # App info interface
โ”‚   โ”œโ”€โ”€ pipe-network/        # Example app
โ”‚   โ”œโ”€โ”€ nexus/              # Example app
โ”‚   โ””โ”€โ”€ [other-apps]/       # More apps
โ”œโ”€โ”€ lib/
โ”‚   โ”œโ”€โ”€ docker.ts           # Docker Compose integration
โ”‚   โ””โ”€โ”€ storage.ts          # Data persistence
โ”œโ”€โ”€ data/                    # Runtime data (auto-created)
โ”‚   โ”œโ”€โ”€ installations.json  # Installation records
โ”‚   โ””โ”€โ”€ compose-files/      # Generated compose files
โ”œโ”€โ”€ docs/                    # Documentation
โ”‚   โ”œโ”€โ”€ ADDING_APPS.md      # Guide for adding apps
โ”‚   โ””โ”€โ”€ [other-docs]/       # More documentation
โ”œโ”€โ”€ bin/
โ”‚   โ””โ”€โ”€ dbb-store           # CLI executable
โ””โ”€โ”€ install.sh              # Installation script

๐Ÿ“– Adding New Apps

Want to add a new DePIN project? See our Adding Apps Guide.

Quick overview:

  1. Create a new folder in apps/[your-app-name]/
  2. Add info.ts with app metadata
  3. Add docker-compose.yaml with Docker configuration
  4. Optionally add docs.md and install.sh
  5. Submit a pull request

๐Ÿ”ง Configuration

Custom Port

To run on a different port, edit ~/.black-box-store/bin/dbb-store and change the PORT variable.

Installation Directory

The application is installed in ~/.black-box-store by default. All app data and configurations are stored there.

๐Ÿ› Troubleshooting

CLI command not found

# Make sure the path is in your shell config
echo 'export PATH="$HOME/.black-box-store/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc

Docker permission denied

# Add your user to the docker group (Linux)
sudo usermod -aG docker $USER
# Log out and back in

Port already in use

If port 3456 is already in use, edit the dbb-store script and change the PORT variable.

Docker not running

Make sure Docker Desktop (macOS) or Docker daemon (Linux) is running:

# Check Docker status
docker info

# macOS: Open Docker Desktop
# Linux: Start Docker
sudo systemctl start docker

Update the Black Box Store

cd ~/.black-box-store
git pull
npm install
npm run build

๐Ÿ—‘๏ธ Uninstallation

To remove the Black Box Store:

# Remove installation directory
rm -rf ~/.black-box-store

# Remove from PATH (edit your shell config)
# Remove the line containing "black-box-store/bin" from:
# - macOS: ~/.zshrc or ~/.bash_profile
# - Linux: ~/.bashrc

๐Ÿ”’ Security Notes

โš ๏ธ Important: This application:

  • Runs locally on your machine (not accessible from the internet)
  • Requires Docker socket access (high privilege)
  • Executes Docker Compose files with full Docker permissions
  • Is intended for personal use in trusted environments

For production or shared environments, consider adding:

  • Authentication layer
  • Rate limiting
  • Network isolation
  • Resource limits

๐Ÿ›’ Get the Dawn Black Box

Want to run these DePIN apps on dedicated hardware? Check out the Dawn Black Box - a powerful device designed specifically for running multiple DePIN nodes:

  • ๐Ÿš€ WiFi 6E Router
  • ๐Ÿง  64GB RAM
  • ๐Ÿ’พ 480GB NVMe + 1TB SSD
  • โšก Intel Core i5 14400 (10 cores)
  • ๐ŸŽฎ GPU options: 6GB to 20GB VRAM
  • ๐Ÿ“ก 10Gbps networking

Shop Dawn Black Box โ†’

๐Ÿ“„ License

MIT

๐Ÿค Contributing

Contributions are welcome! Please check out our Contributing Guide.

๐Ÿ’ฌ Support


Built with โค๏ธ for the DePIN community

About

A DePIN & web3 node app store purpose-built for the DAWN Black Box

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published