OpportunitiesEntities
Docs
    Ring Platform

    Decentralized Self-building Future

    Sign In
    Entities
    Opportunities
    Store
    Docs
    Platform Concepts
    RING EconomySonoratek LLCGlobal ImpactAI Meets Web3
    Get Started
    Quick StartCalculatorRoadmap
    Privacy|Contact
    v1.104.17|Sonoratek LLC

    Documentation

    Concepts, value, and typical clone scenarios — less code.

    Welcome to Ring
    Quick Reference
    Getting Started
    Prerequisites
    Installation
    First Success Validation
    Next Steps
    Features
    Multi-Vendor Store
    Inventory & Stock
    Vendor Management
    Commissions & Settlements
    SubscriptionConductor
    PaymentConductor
    Ring Oracle
    Payments Overview
    Public Pools & DAO Jars
    WayForPay Payment Integration
    Wallet & Credit System
    WalletConductor
    Affiliate & Referral Enablement
    Referral Codes (Refcodes)
    NFT Exhibition Marketplace
    Solana NFT Gates
    Token Staking System
    Owner Project Lab
    Entities
    Opportunities
    Real-Time Messaging
    Ring Tasks
    WebRTC Calls & STUNner TURN
    Peer Games
    News Module
    Member Blogs
    Public Profile Pages
    Profile Account Widgets
    Ring File Cabinet
    Username Reservation System
    Scientific Editor
    Notifications
    Push Notifications with FCM (Ring-Powered)
    Email AI-CRM
    Ring Mailer & RingdomX Mail
    Tunnel Protocol
    VideoConductor
    MediaConductor
    Generative Gallery
    Authentication
    Security & Compliance
    Admin console
    Admin Wiki
    Manage via Telegram
    Locale System
    Mobile Experience
    Performance Optimization Patterns
    Examples
    Quick Start
    Basic Setup
    White Label
    Custom Branding
    Web3 Integration
    Real World
    Advanced Features
    Customization
    Quick Start — Your First Ring Clone
    Customization Guide
    Vertical Presets (SSOT)
    Ringization playbook
    Branding
    Themes
    Features
    Localization
    Token Economics Setup
    Payment Gateway Integration
    Reference Ring deployments
    Project configuration
    Public environment variables
    Order Lab secrets
    WalletConnect Project ID (Reown Cloud)
    Supported services
    NODUS wiki (project knowledge)
    Configuration playbook
    Web3
    Token launch jurisdictions
    Wallet
    Wallet Security Tips
    Integrations
    Ethereum wallets (Wagmi v3)
    RingFileBase (object storage API)
    Ring CDN (RingFileBase edge)
    Deployment
    Self-hosted deployment
    Vercel Deployment
    Docker
    Environment Configuration
    Monitoring & Analytics
    Performance Optimization
    Backup & Recovery
    Architecture
    Data Model
    Security
    Real Time
    Discovery Mutation Sync
    PaymentConductor architecture
    WalletConductor architecture
    Backend Services
    Firebase Integration
    Development
    Ring MCP Server

    Quick entry (CTOs · auditors · agents)

    Welcome — mission & audiences
    Quick Reference
    Getting started
    Architecture & Auth.js
    Backend modes & databases (DB_BACKEND_MODE)
    Self-hosted
    Ring MCP Tools
    Ring MCP Server
    Token economics
    Token launch jurisdictions
    Deploy (Docker · k8s)
    Security & compliance reads
    ringdom.org — LegioX homebase
    Source — MIT license (GitHub)

    Documentation

    Concepts, value, and typical clone scenarios — less code.

    Welcome to Ring
    Quick Reference
    Getting Started
    Prerequisites
    Installation
    First Success Validation
    Next Steps
    Features
    Multi-Vendor Store
    Inventory & Stock
    Vendor Management
    Commissions & Settlements
    SubscriptionConductor
    PaymentConductor
    Ring Oracle
    Payments Overview
    Public Pools & DAO Jars
    WayForPay Payment Integration
    Wallet & Credit System
    WalletConductor
    Affiliate & Referral Enablement
    Referral Codes (Refcodes)
    NFT Exhibition Marketplace
    Solana NFT Gates
    Token Staking System
    Owner Project Lab
    Entities
    Opportunities
    Real-Time Messaging
    Ring Tasks
    WebRTC Calls & STUNner TURN
    Peer Games
    News Module
    Member Blogs
    Public Profile Pages
    Profile Account Widgets
    Ring File Cabinet
    Username Reservation System
    Scientific Editor
    Notifications
    Push Notifications with FCM (Ring-Powered)
    Email AI-CRM
    Ring Mailer & RingdomX Mail
    Tunnel Protocol
    VideoConductor
    MediaConductor
    Generative Gallery
    Authentication
    Security & Compliance
    Admin console
    Admin Wiki
    Manage via Telegram
    Locale System
    Mobile Experience
    Performance Optimization Patterns
    Examples
    Quick Start
    Basic Setup
    White Label
    Custom Branding
    Web3 Integration
    Real World
    Advanced Features
    Customization
    Quick Start — Your First Ring Clone
    Customization Guide
    Vertical Presets (SSOT)
    Ringization playbook
    Branding
    Themes
    Features
    Localization
    Token Economics Setup
    Payment Gateway Integration
    Reference Ring deployments
    Project configuration
    Public environment variables
    Order Lab secrets
    WalletConnect Project ID (Reown Cloud)
    Supported services
    NODUS wiki (project knowledge)
    Configuration playbook
    Web3
    Token launch jurisdictions
    Wallet
    Wallet Security Tips
    Integrations
    Ethereum wallets (Wagmi v3)
    RingFileBase (object storage API)
    Ring CDN (RingFileBase edge)
    Deployment
    Self-hosted deployment
    Vercel Deployment
    Docker
    Environment Configuration
    Monitoring & Analytics
    Performance Optimization
    Backup & Recovery
    Architecture
    Data Model
    Security
    Real Time
    Discovery Mutation Sync
    PaymentConductor architecture
    WalletConductor architecture
    Backend Services
    Firebase Integration
    Development
    Ring MCP Server

    Quick entry (CTOs · auditors · agents)

    Welcome — mission & audiences
    Quick Reference
    Getting started
    Architecture & Auth.js
    Backend modes & databases (DB_BACKEND_MODE)
    Self-hosted
    Ring MCP Tools
    Ring MCP Server
    Token economics
    Token launch jurisdictions
    Deploy (Docker · k8s)
    Security & compliance reads
    ringdom.org — LegioX homebase
    Source — MIT license (GitHub)

    Documentation

    Concepts, value, and typical clone scenarios — less code.

    Welcome to Ring
    Quick Reference
    Getting Started
    Prerequisites
    Installation
    First Success Validation
    Next Steps
    Features
    Multi-Vendor Store
    Inventory & Stock
    Vendor Management
    Commissions & Settlements
    SubscriptionConductor
    PaymentConductor
    Ring Oracle
    Payments Overview
    Public Pools & DAO Jars
    WayForPay Payment Integration
    Wallet & Credit System
    WalletConductor
    Affiliate & Referral Enablement
    Referral Codes (Refcodes)
    NFT Exhibition Marketplace
    Solana NFT Gates
    Token Staking System
    Owner Project Lab
    Entities
    Opportunities
    Real-Time Messaging
    Ring Tasks
    WebRTC Calls & STUNner TURN
    Peer Games
    News Module
    Member Blogs
    Public Profile Pages
    Profile Account Widgets
    Ring File Cabinet
    Username Reservation System
    Scientific Editor
    Notifications
    Push Notifications with FCM (Ring-Powered)
    Email AI-CRM
    Ring Mailer & RingdomX Mail
    Tunnel Protocol
    VideoConductor
    MediaConductor
    Generative Gallery
    Authentication
    Security & Compliance
    Admin console
    Admin Wiki
    Manage via Telegram
    Locale System
    Mobile Experience
    Performance Optimization Patterns
    Examples
    Quick Start
    Basic Setup
    White Label
    Custom Branding
    Web3 Integration
    Real World
    Advanced Features
    Customization
    Quick Start — Your First Ring Clone
    Customization Guide
    Vertical Presets (SSOT)
    Ringization playbook
    Branding
    Themes
    Features
    Localization
    Token Economics Setup
    Payment Gateway Integration
    Reference Ring deployments
    Project configuration
    Public environment variables
    Order Lab secrets
    WalletConnect Project ID (Reown Cloud)
    Supported services
    NODUS wiki (project knowledge)
    Configuration playbook
    Web3
    Token launch jurisdictions
    Wallet
    Wallet Security Tips
    Integrations
    Ethereum wallets (Wagmi v3)
    RingFileBase (object storage API)
    Ring CDN (RingFileBase edge)
    Deployment
    Self-hosted deployment
    Vercel Deployment
    Docker
    Environment Configuration
    Monitoring & Analytics
    Performance Optimization
    Backup & Recovery
    Architecture
    Data Model
    Security
    Real Time
    Discovery Mutation Sync
    PaymentConductor architecture
    WalletConductor architecture
    Backend Services
    Firebase Integration
    Development
    Ring MCP Server

    Quick entry (CTOs · auditors · agents)

    Welcome — mission & audiences
    Quick Reference
    Getting started
    Architecture & Auth.js
    Backend modes & databases (DB_BACKEND_MODE)
    Self-hosted
    Ring MCP Tools
    Ring MCP Server
    Token economics
    Token launch jurisdictions
    Deploy (Docker · k8s)
    Security & compliance reads
    ringdom.org — LegioX homebase
    Source — MIT license (GitHub)
    Ring Logo

    Loading documentation...

    Preparing Ring content

    Ring Logo

    Loading documentation...

    Preparing Ring content

    Ring Logo

    Loading documentation...

    Preparing Ring content

    Database Backend Selection

    Executive summary

    Production Ring clones use DB_BACKEND_MODE=k8s-postgres-fcm — PostgreSQL for application data, Firebase Admin only for FCM push when configured. Legacy DATABASE_MODE is removed. Pick a mode before first boot.

    Backend modes (architecture)

    Adapters, FCM vs Firestore, DB_HYBRID_MODE

    Database migrations

    schema.sql + kingdom migration order

    Quick Start

    First clone with Postgres

    DB_BACKEND_MODE decision

    The three modes

    DB_BACKEND_MODEApplication dataFirestore for DB?Push
    k8s-postgres-fcmPostgreSQL (self-hosted, k3s, Docker)NoFCM + Apple when configured
    supabase-fcmPostgreSQL on SupabaseNoSame FCM pattern
    firebase-fullFirestore pathsYesFull Firebase stack

    Implementation: lib/database/backend-mode-config.ts, lib/database/DatabaseService.ts, lib/database/BackendSelector.ts.

    ConnectPlatform (connect-brand.com) is realtime collaboration — not a DB_BACKEND_MODE adapter. See Tunnel protocol.

    Setup by mode

    Recommended default

    OSS self-host, k3s, Ringdom handoff, PaymentConductor, News Kingdom, data/schema.sql v4.

    1. 1

      Set mode and connection in .env.local:

      Optional: DB_POOL_SIZE, DB_TIMEOUT, DB_RETRIES.

    2. 2

      Provision PostgreSQL 14+ (18 recommended locally) — Docker docker-compose.dev.yml, Homebrew bootstrap, or your cluster.

    3. 3

      Apply schema and migrations:

      Full order: Database migrations.

    4. 4

      FCM (optional): set NEXT_PUBLIC_FIREBASE_* + service account from env.local.template. App data stays on Postgres.

    What not to use

    Legacy / invalidReplacement
    DATABASE_MODE=firebase_only / postgresql_onlyDB_BACKEND_MODE values above
    npm run db:migrate / db:backup./scripts/run-migration.sh, pg_dump
    DB_HYBRID_MODE as primary switchDB_BACKEND_MODE — see architecture page

    Changing modes later

    1. 1

      Export data from source (Firestore export or pg_dump).

    2. 2

      Provision target Postgres; apply migrations.

    3. 3

      Update DB_BACKEND_MODE and connection secrets on staging.

    4. 4

      Smoke-test auth, store, payments, news before production cutover.

    Pre-launch checklist (Postgres-primary):

    • DB_BACKEND_MODE set — app starts clean
    • data/schema.sql + kingdom migrations applied
    • Backups configured (pg_dump, CNPG, provider snapshots)
    • FCM vars only if push required
    • 004_payment_transactions.sql if using payments

    Environment config

    Secret groupings and locale vars

    Payment integration

    Requires Postgres ledger

    Quick Start (new clone)

    One deployment per customer — Ringdom pattern

    Database Backend Selection

    Executive summary

    Production Ring clones use DB_BACKEND_MODE=k8s-postgres-fcm — PostgreSQL for application data, Firebase Admin only for FCM push when configured. Legacy DATABASE_MODE is removed. Pick a mode before first boot.

    Backend modes (architecture)

    Adapters, FCM vs Firestore, DB_HYBRID_MODE

    Database migrations

    schema.sql + kingdom migration order

    Quick Start

    First clone with Postgres

    DB_BACKEND_MODE decision

    The three modes

    DB_BACKEND_MODEApplication dataFirestore for DB?Push
    k8s-postgres-fcmPostgreSQL (self-hosted, k3s, Docker)NoFCM + Apple when configured
    supabase-fcmPostgreSQL on SupabaseNoSame FCM pattern
    firebase-fullFirestore pathsYesFull Firebase stack

    Implementation: lib/database/backend-mode-config.ts, lib/database/DatabaseService.ts, lib/database/BackendSelector.ts.

    ConnectPlatform (connect-brand.com) is realtime collaboration — not a DB_BACKEND_MODE adapter. See Tunnel protocol.

    Setup by mode

    Recommended default

    OSS self-host, k3s, Ringdom handoff, PaymentConductor, News Kingdom, data/schema.sql v4.

    1. 1

      Set mode and connection in .env.local:

      Optional: DB_POOL_SIZE, DB_TIMEOUT, DB_RETRIES.

    2. 2

      Provision PostgreSQL 14+ (18 recommended locally) — Docker docker-compose.dev.yml, Homebrew bootstrap, or your cluster.

    3. 3

      Apply schema and migrations:

      Full order: Database migrations.

    4. 4

      FCM (optional): set NEXT_PUBLIC_FIREBASE_* + service account from env.local.template. App data stays on Postgres.

    What not to use

    Legacy / invalidReplacement
    DATABASE_MODE=firebase_only / postgresql_onlyDB_BACKEND_MODE values above
    npm run db:migrate / db:backup./scripts/run-migration.sh, pg_dump
    DB_HYBRID_MODE as primary switchDB_BACKEND_MODE — see architecture page

    Changing modes later

    1. 1

      Export data from source (Firestore export or pg_dump).

    2. 2

      Provision target Postgres; apply migrations.

    3. 3

      Update DB_BACKEND_MODE and connection secrets on staging.

    4. 4

      Smoke-test auth, store, payments, news before production cutover.

    Pre-launch checklist (Postgres-primary):

    • DB_BACKEND_MODE set — app starts clean
    • data/schema.sql + kingdom migrations applied
    • Backups configured (pg_dump, CNPG, provider snapshots)
    • FCM vars only if push required
    • 004_payment_transactions.sql if using payments

    Environment config

    Secret groupings and locale vars

    Payment integration

    Requires Postgres ledger

    Quick Start (new clone)

    One deployment per customer — Ringdom pattern

    Database Backend Selection

    Executive summary

    Production Ring clones use DB_BACKEND_MODE=k8s-postgres-fcm — PostgreSQL for application data, Firebase Admin only for FCM push when configured. Legacy DATABASE_MODE is removed. Pick a mode before first boot.

    Backend modes (architecture)

    Adapters, FCM vs Firestore, DB_HYBRID_MODE

    Database migrations

    schema.sql + kingdom migration order

    Quick Start

    First clone with Postgres

    DB_BACKEND_MODE decision

    The three modes

    DB_BACKEND_MODEApplication dataFirestore for DB?Push
    k8s-postgres-fcmPostgreSQL (self-hosted, k3s, Docker)NoFCM + Apple when configured
    supabase-fcmPostgreSQL on SupabaseNoSame FCM pattern
    firebase-fullFirestore pathsYesFull Firebase stack

    Implementation: lib/database/backend-mode-config.ts, lib/database/DatabaseService.ts, lib/database/BackendSelector.ts.

    ConnectPlatform (connect-brand.com) is realtime collaboration — not a DB_BACKEND_MODE adapter. See Tunnel protocol.

    Setup by mode

    Recommended default

    OSS self-host, k3s, Ringdom handoff, PaymentConductor, News Kingdom, data/schema.sql v4.

    1. 1

      Set mode and connection in .env.local:

      Optional: DB_POOL_SIZE, DB_TIMEOUT, DB_RETRIES.

    2. 2

      Provision PostgreSQL 14+ (18 recommended locally) — Docker docker-compose.dev.yml, Homebrew bootstrap, or your cluster.

    3. 3

      Apply schema and migrations:

      Full order: Database migrations.

    4. 4

      FCM (optional): set NEXT_PUBLIC_FIREBASE_* + service account from env.local.template. App data stays on Postgres.

    What not to use

    Legacy / invalidReplacement
    DATABASE_MODE=firebase_only / postgresql_onlyDB_BACKEND_MODE values above
    npm run db:migrate / db:backup./scripts/run-migration.sh, pg_dump
    DB_HYBRID_MODE as primary switchDB_BACKEND_MODE — see architecture page

    Changing modes later

    1. 1

      Export data from source (Firestore export or pg_dump).

    2. 2

      Provision target Postgres; apply migrations.

    3. 3

      Update DB_BACKEND_MODE and connection secrets on staging.

    4. 4

      Smoke-test auth, store, payments, news before production cutover.

    Pre-launch checklist (Postgres-primary):

    • DB_BACKEND_MODE set — app starts clean
    • data/schema.sql + kingdom migrations applied
    • Backups configured (pg_dump, CNPG, provider snapshots)
    • FCM vars only if push required
    • 004_payment_transactions.sql if using payments

    Environment config

    Secret groupings and locale vars

    Payment integration

    Requires Postgres ledger

    Quick Start (new clone)

    One deployment per customer — Ringdom pattern

    1. Docs
    2. /Customization
    3. /Database Backend Selection

    Updated Jun 12, 20262 min listen

    1. Docs
    2. /Customization
    3. /Database Backend Selection

    Updated Jun 12, 20262 min listen

    1. Docs
    2. /Customization
    3. /Database Backend Selection

    Updated Jun 12, 20262 min listen