oib 07f3a87328 docs: restructure website, optimize HTML, gitignore private files
Website docs (website/docs/):
- Delete 6 stale -md.html duplicates
- Rename docs-clients/miners/developers → clients/miners/developers.html
- Unify header/nav across all 15 pages (new .site-header pattern)
- Fix 34 dead href=# links with real targets
- Upgrade Font Awesome v4→v6 in index.html
- Replace search stub with live client-side search (15-page index)
- Extract all inline CSS into shared docs.css (+630 lines)
- Extract inline theme JS into shared theme.js
- Strip inline style= attributes from 10+ pages
- Add .announce-banner, .source-links, .search-results CSS classes
- Add Markdown Source links to clients/miners/developers pages
- Update components.html title to Architecture & Components
- Move browser-wallet.html to website/wallet/, leave redirect
- Update all dates to February 2026

Website root:
- Delete 6 root-level duplicate HTML files (160KB saved)
- Rewire index.html and 404.html links

Root README.md:
- Fix 8 broken doc links to new numbered folder structure
- Update copyright to 2026

.gitignore + .example files:
- Gitignore private files: .aitbc.yaml, .env, deploy scripts,
  GPU scripts, service scripts, infra configs, .windsurf/, website README
- Create 7 .example files for GitHub users with sanitized templates
- Untrack 47 previously committed private files

Live server:
- Push all website files to aitbc-cascade:/var/www/html/
- Clean stale admin.html and index.nginx-debian.html
2026-02-13 23:18:52 +01:00
```
2025-12-29 18:04:04 +01:00
```
2026-01-29 12:28:43 +01:00
```
2026-01-24 15:46:23 +01:00
```
2025-12-28 21:05:53 +01:00
```
2026-01-24 18:34:37 +01:00
```
2026-01-24 15:46:23 +01:00

AITBC — AI Token Blockchain

Decentralized GPU compute marketplace with blockchain-based job coordination, Ollama inference, ZK receipt verification, and token payments.

License: MIT

Overview

AITBC is a full-stack blockchain platform that connects GPU compute providers (miners) with AI workload consumers (clients) through a decentralized marketplace. The system handles job submission, miner matching, GPU inference execution, cryptographic receipt generation, and on-chain payment settlement.

Key capabilities:

  • Blockchain nodes — PoA consensus, gossip relay, WebSocket RPC
  • Coordinator API — Job lifecycle, miner registry, GPU marketplace, payments, billing, governance
  • GPU mining — Ollama-based LLM inference with host GPU passthrough
  • Wallet daemon — Balance tracking, receipt verification, ledger management
  • Trade exchange — Bitcoin/AITBC trading with order book and price ticker
  • ZK circuits — Zero-knowledge receipt verification (Circom/snarkjs)
  • Browser wallet — Firefox extension for AITBC transactions
  • Explorer — Real-time blockchain explorer (blocks, transactions, addresses, receipts)

Architecture

Client ──► Coordinator API ──► Pool Hub ──► Miner (GPU/Ollama)
              │                                    │
              ▼                                    ▼
         Marketplace                         ZK Receipt
              │                                    │
              ▼                                    ▼
        Wallet Daemon ◄──── Blockchain Nodes ◄─── Settlement
              │
              ▼
        Trade Exchange

Directory Structure

aitbc/
├── apps/                    # Core microservices
│   ├── blockchain-node/     # PoA blockchain node (FastAPI + gossip)
│   ├── coordinator-api/     # Job coordination API (FastAPI)
│   ├── explorer-web/        # Blockchain explorer (TypeScript + Vite)
│   ├── marketplace-web/     # GPU marketplace frontend (TypeScript + Vite)
│   ├── pool-hub/            # Mining pool management (FastAPI + Redis)
│   ├── trade-exchange/      # BTC/AITBC exchange (FastAPI + WebSocket)
│   ├── wallet-daemon/       # Wallet service (FastAPI)
│   └── zk-circuits/         # ZK proof circuits (Circom)
├── cli/                     # CLI tools (12 command groups, 90+ subcommands)
├── contracts/               # Solidity smart contracts
├── docs/                    # Documentation (structure, guides, reference, reports)
├── extensions/              # Browser extensions (Firefox wallet)
├── home/                    # Local simulation scripts
├── infra/                   # Infrastructure (nginx, k8s, helm, terraform)
├── packages/                # Shared libraries
│   ├── py/aitbc-crypto/     # Cryptographic primitives
│   ├── py/aitbc-sdk/        # Python SDK
│   └── solidity/aitbc-token/# ERC-20 token contract
├── plugins/ollama/          # Ollama LLM integration
├── scripts/                 # Deployment, GPU, service, and test scripts
├── systemd/                 # Systemd service units
├── tests/                   # Test suites (unit, integration, e2e, security, CLI)
└── website/                 # Public website and HTML documentation

See docs/README.md for the full documentation index.

Quick Start

Prerequisites

  • Python 3.11+
  • Node.js 18+ (for web apps and ZK circuits)
  • PostgreSQL (optional, SQLite for development)
  • Ollama (for GPU inference)

Run Services Locally

# Start all services
./scripts/dev_services.sh

# Or start individually
cd apps/coordinator-api && uvicorn app.main:app --port 8000
cd apps/blockchain-node && python -m aitbc_chain.main
cd apps/wallet-daemon && uvicorn app.main:app --port 8002

Run Tests

# CLI tests (141 unit + 24 integration)
pytest tests/cli/

# Coordinator API tests (billing + GPU marketplace)
pytest apps/coordinator-api/tests/

# Blockchain node tests
pytest tests/test_blockchain_nodes.py

# All tests together (208 passing)
pytest apps/coordinator-api/tests/ tests/cli/

CLI Usage

pip install -e .

# Submit a job
aitbc client submit --type inference --prompt "Hello world"

# Register as a miner
aitbc miner register --gpu RTX4090

# GPU marketplace
aitbc marketplace gpu list
aitbc marketplace gpu book <gpu_id> --hours 1

# Wallet and governance
aitbc wallet balance
aitbc governance propose --type parameter_change --title "Update fee"

Deployment

Services run in an Incus container with systemd units. See systemd/ for service definitions and scripts/deploy/ for deployment automation.

# Deploy to container
./scripts/deploy/deploy-to-container.sh

# Deploy blockchain nodes
./scripts/deploy/deploy-blockchain.sh

Test Results

Suite Tests Source
Blockchain node 50 tests/test_blockchain_nodes.py
ZK integration 8 tests/test_zk_integration.py
CLI unit tests 141 tests/cli/test_*.py (9 files)
CLI integration 24 tests/cli/test_cli_integration.py
Billing 21 apps/coordinator-api/tests/test_billing.py
GPU marketplace 22 apps/coordinator-api/tests/test_gpu_marketplace.py

Documentation

Section Path Description
Getting Started docs/0_getting_started/ Intro, installation, CLI usage
Clients docs/2_clients/ Job submission, wallet, pricing, API
Miners docs/3_miners/ GPU setup, registration, earnings
Blockchain docs/4_blockchain/ Node operation, configuration
Reference docs/5_reference/ CLI reference, architecture specs
Architecture docs/6_architecture/ System flow, component details
Deployment docs/7_deployment/ Remote deployment, backups
Development docs/8_development/ Setup, contributing, examples
Security docs/9_security/ Security architecture, audit

License

MIT — Copyright (c) 2026 AITBC

Description
No description provided
Readme MIT 144 MiB
Languages
Python 65.9%
Shell 16.5%
TypeScript 5.8%
JavaScript 5.8%
HTML 3.1%
Other 2.9%