This is the STUN (Secure Trusted Unified Network) monorepo - a distributed AI compute network on blockchain.
- Node.js 18+
- pnpm 8+
- Python 3.10+ (for provider client)
- Git
# Install pnpm if you don't have it
npm install -g pnpm
# Install dependencies
pnpm install# Run all dev servers
pnpm dev
# Build all packages
pnpm build
# Run tests
pnpm test
# Lint code
pnpm lintstun/
├── apps/ # Applications
│ ├── web/ # Web dashboard (Next.js)
│ ├── provider-client/ # GPU provider client (Python)
│ └── docs/ # Documentation site
│
├── packages/ # Shared packages
│ ├── contracts/ # Smart contracts (Solidity)
│ ├── sdk/ # TypeScript SDK
│ ├── sdk-python/ # Python SDK
│ ├── shared/ # Shared utilities & types
│ ├── ui/ # UI components
│ └── api/ # API client
│
├── services/ # Backend services
│ ├── orchestrator/ # Task scheduler
│ ├── api-gateway/ # API gateway
│ └── quality-assurance/ # QA system
│
└── tools/ # Development tools
- Monorepo structure created
- pnpm workspace configured
- Turborepo set up
- TypeScript configuration
- ESLint & Prettier
- CI/CD pipeline
- Contracts package setup
- STUN token contract
- Marketplace contract
- Reputation contract
- Deployment scripts
- Shared types
- Shared utilities
- UI components
- TypeScript SDK
- Python SDK
- Next.js setup
- Provider dashboard
- Developer dashboard
- Client setup
- GPU detection
- Task execution
- Orchestrator service
- API gateway
- QA service
- BUILD_PROMPTS.md - Step-by-step build prompts
- QUICK_START.md - Quick start guide
- MONOREPO_STRUCTURE.md - Structure details
- TECHNICAL_ARCHITECTURE.md - Architecture
- Monorepo: Turborepo + pnpm
- Frontend: Next.js 14+, React, TypeScript, Tailwind CSS
- Backend: Node.js, TypeScript, Express/Fastify
- Blockchain: Solidity, Hardhat
- Provider Client: Python
- Database: PostgreSQL, Redis
- Set up smart contracts package (see BUILD_PROMPTS.md - Prompt 2.1)
- Create STUN token contract
- Build marketplace contract
- Continue with shared packages
See BUILD_PROMPTS.md for detailed prompts.
Building STUN step by step 🚀