Skip to content

Cryptocoatl/flow3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

FLOW3 - Planetary Regeneration Coordination Protocol

AI Creator Economy โ€ข Multi-Chain Payments โ€ข Privacy-Preserving Identity โ€ข DAO Evolution

Deploy with Vercel


๐ŸŒ Vision

FLOW3 is a planetary regeneration coordination protocol where Stewards complete Planetary Missions to regenerate Earth through AI storytelling, real-world actions, and collective coordination.

Core Principles:

  • Peace economy over extraction
  • Regenerative finance over speculation
  • Planetary coordination over competition
  • Privacy-preserving identity
  • Progressive decentralization

๐Ÿ—๏ธ Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                              FLOW3 PLATFORM                                 โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                                                                             โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”       โ”‚
โ”‚  โ”‚   Web App   โ”‚  โ”‚  Telegram   โ”‚  โ”‚    Base     โ”‚  โ”‚   Flow AI   โ”‚       โ”‚
โ”‚  โ”‚   (PWA)     โ”‚  โ”‚  Mini App   โ”‚  โ”‚  Mini App   โ”‚  โ”‚   Studio    โ”‚       โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜       โ”‚
โ”‚         โ”‚                โ”‚                โ”‚                โ”‚               โ”‚
โ”‚         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜               โ”‚
โ”‚                          โ–ผ                                                  โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
โ”‚  โ”‚                         UNIFIED API LAYER                            โ”‚  โ”‚
โ”‚  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”        โ”‚  โ”‚
โ”‚  โ”‚  โ”‚  Credits   โ”‚ โ”‚  Missions  โ”‚ โ”‚ Gamificationโ”‚ โ”‚  Payments  โ”‚        โ”‚  โ”‚
โ”‚  โ”‚  โ”‚  Service   โ”‚ โ”‚  Service   โ”‚ โ”‚   Engine   โ”‚ โ”‚  Service   โ”‚        โ”‚  โ”‚
โ”‚  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜        โ”‚  โ”‚
โ”‚  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”        โ”‚  โ”‚
โ”‚  โ”‚  โ”‚  Referral  โ”‚ โ”‚   Social   โ”‚ โ”‚ ZK Privacy โ”‚ โ”‚    AI      โ”‚        โ”‚  โ”‚
โ”‚  โ”‚  โ”‚  Service   โ”‚ โ”‚ Verify Svc โ”‚ โ”‚  Service   โ”‚ โ”‚  Service   โ”‚        โ”‚  โ”‚
โ”‚  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜        โ”‚  โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
โ”‚                          โ”‚                                                  โ”‚
โ”‚                          โ–ผ                                                  โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
โ”‚  โ”‚                      DATA & IDENTITY LAYER                           โ”‚  โ”‚
โ”‚  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”        โ”‚  โ”‚
โ”‚  โ”‚  โ”‚  Supabase  โ”‚ โ”‚   Privy    โ”‚ โ”‚    EAS     โ”‚ โ”‚  Multichainโ”‚        โ”‚  โ”‚
โ”‚  โ”‚  โ”‚  Postgres  โ”‚ โ”‚  Identity  โ”‚ โ”‚ Attestationโ”‚ โ”‚  Payments  โ”‚        โ”‚  โ”‚
โ”‚  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜        โ”‚  โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
โ”‚                                                                             โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
โ”‚  โ”‚                      BLOCKCHAIN LAYER (BASE)                         โ”‚  โ”‚
โ”‚  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”        โ”‚  โ”‚
โ”‚  โ”‚  โ”‚   $FLOW    โ”‚ โ”‚    DAO     โ”‚ โ”‚    ZK      โ”‚ โ”‚  Multichainโ”‚        โ”‚  โ”‚
โ”‚  โ”‚  โ”‚   Token    โ”‚ โ”‚   Proxy    โ”‚ โ”‚  Attestor  โ”‚ โ”‚   Bridge   โ”‚        โ”‚  โ”‚
โ”‚  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜        โ”‚  โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
โ”‚                                                                             โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿš€ One-Click Deploy

Prerequisites

  • Vercel account
  • Supabase project
  • Privy account
  • Stripe account

Deploy Steps

  1. Clone & Install
git clone https://github.com/flowbond-tech/flow3.git
cd flow3
pnpm install
  1. Setup Supabase
# Create project at supabase.com
# Run migrations
pnpm db:migrate
  1. Configure Environment
cp .env.example .env.local
# Fill in your keys
  1. Deploy
pnpm deploy
# Or click the Vercel button above

๐Ÿ“ Monorepo Structure

flow3/
โ”œโ”€โ”€ apps/
โ”‚   โ”œโ”€โ”€ web/                     # Next.js PWA (Main Platform)
โ”‚   โ”œโ”€โ”€ api/                     # Serverless API Routes
โ”‚   โ”œโ”€โ”€ telegram-miniapp/        # Telegram WebApp
โ”‚   โ”œโ”€โ”€ base-miniapp/            # Base/Coinbase Wallet Mini App
โ”‚   โ””โ”€โ”€ flow-ai-studio/          # AI Video Generation
โ”‚
โ”œโ”€โ”€ packages/
โ”‚   โ”œโ”€โ”€ shared-ui/               # Shared React Components
โ”‚   โ”œโ”€โ”€ shared-types/            # TypeScript Types
โ”‚   โ”œโ”€โ”€ flow3-sdk/               # Client SDK
โ”‚   โ”œโ”€โ”€ prompt-engine/           # AI Prompt Templates
โ”‚   โ””โ”€โ”€ brand-universe-sdk/      # Sponsor Brand System
โ”‚
โ”œโ”€โ”€ services/
โ”‚   โ”œโ”€โ”€ credits-service/         # Narrative Energy Ledger
โ”‚   โ”œโ”€โ”€ missions-service/        # Planetary Missions
โ”‚   โ”œโ”€โ”€ referral-service/        # Referral & Rewards
โ”‚   โ”œโ”€โ”€ social-verification/     # Social Platform Verify
โ”‚   โ”œโ”€โ”€ gamification-engine/     # XP, Levels, Badges
โ”‚   โ”œโ”€โ”€ zk-privacy-service/      # Privacy Commitments
โ”‚   โ””โ”€โ”€ payments-service/        # Multi-chain Payments
โ”‚
โ”œโ”€โ”€ contracts/
โ”‚   โ”œโ”€โ”€ FlowToken.sol            # $FLOW Token
โ”‚   โ”œโ”€โ”€ DaoAttestationProxy.sol  # DAO Governance
โ”‚   โ””โ”€โ”€ ZkAutoAttestor.sol       # ZK Verification
โ”‚
โ”œโ”€โ”€ infra/
โ”‚   โ”œโ”€โ”€ supabase/                # Database Migrations
โ”‚   โ”œโ”€โ”€ vercel.json              # Deployment Config
โ”‚   โ””โ”€โ”€ docker-compose.yml       # Local Development
โ”‚
โ”œโ”€โ”€ docs/
โ”‚   โ”œโ”€โ”€ architecture.md
โ”‚   โ”œโ”€โ”€ protocol-manifesto.md
โ”‚   โ”œโ”€โ”€ privacy.md
โ”‚   โ”œโ”€โ”€ gamification.md
โ”‚   โ””โ”€โ”€ decentralization-roadmap.md
โ”‚
โ”œโ”€โ”€ turbo.json
โ”œโ”€โ”€ package.json
โ””โ”€โ”€ README.md

๐ŸŽฎ Steward Progression

Role XP Required Abilities
Explorer 0 Basic missions, AI generation
Creator 1,000 Create campaigns, referrals
Amplifier 5,000 Viral multipliers, squad creation
Curator 25,000 Content curation, sponsor relations
Mythic Steward 100,000 DAO voting, governance

๐Ÿช™ Narrative Energy (Credits)

Credits power all platform actions:

Action Cost Earn
AI Video Generation (Standard) 200 -
AI Video Generation (Ultra) 800 -
Complete Mission - 50-500
Referral (inviter) - 100
Referral (invitee) - 50
Daily Login - 10
Viral Content Bonus - 10-1000

๐Ÿ’ณ Payment Methods

Method One-Time Subscription Chains
Stripe โœ… โœ… Fiat, USDC
Reown AppKit โœ… โœ… Solana, Base, ETH, Polygon
TON Connect โœ… โณ TON, USDT-TON
Coinbase Commerce โœ… - BTC, ETH, USDC

๐Ÿ” Privacy Model

FLOW3 uses privacy-preserving identity:

  1. No PII On-Chain - Only commitment hashes
  2. Encrypted Storage - AES-GCM for all sensitive data
  3. Selective Disclosure - ZK proofs for verification
  4. User Sovereignty - Users control their data
commitment = keccak256(platform || username || secretSalt)

๐Ÿ›๏ธ Decentralization Roadmap

Phase Mode Attestation
Phase 1 Central Backend relayer signs EAS
Phase 2 DAO Safe multisig via DaoAttestationProxy
Phase 3 ZK zkVerify contract auto-attests

๐Ÿ› ๏ธ Development

# Install dependencies
pnpm install

# Start all apps in dev mode
pnpm dev

# Run specific app
pnpm dev --filter=web

# Run tests
pnpm test

# Build all
pnpm build

# Database migrations
pnpm db:migrate

# Generate types
pnpm generate:types

๐Ÿ“š Documentation


๐Ÿ”‘ Environment Variables

# Privy (Auth)
NEXT_PUBLIC_PRIVY_APP_ID=
PRIVY_APP_SECRET=

# Supabase
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=
SUPABASE_SERVICE_ROLE_KEY=

# Stripe
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=

# Reown/WalletConnect
NEXT_PUBLIC_REOWN_PROJECT_ID=

# TON
TON_API_KEY=
TON_PAYMENT_WALLET=

# Multi-chain Wallets
SOLANA_RPC_URL=
SOLANA_PAYMENT_WALLET=
BASE_RPC_URL=
BASE_PAYMENT_WALLET=

# AI Services
RUNWAY_API_KEY=

# EAS (Base)
EAS_CONTRACT_ADDRESS=
FLOW3_SCHEMA_UID=

# Encryption
ENCRYPTION_KEY=

# Mode
DECENTRALIZATION_MODE=central

๐Ÿค Contributing

See CONTRIBUTING.md


๐Ÿ“„ License

MIT - See LICENSE


Built with ๐Ÿ’š for planetary regeneration

FlowBond Tech โ€ข flowbond.tech

About

FLOW3 Platform - Planetary Regeneration Protocol for the FlowBond ecosystem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors