Documentation

    Documentation

    Documentation

    Ring Platform Logo

    Завантаження документації...

    Підготовка контенту платформи Ring

    Ring Platform Logo

    Завантаження документації...

    Підготовка контенту платформи Ring

    Ring Platform Logo

    Завантаження документації...

    Підготовка контенту платформи Ring

    1. /Getting Started

    Updated Jun 15, 20264 min listen

    1. /Getting Started

    Updated Jun 15, 20264 min listen

    1. /Getting Started

    Updated Jun 15, 20264 min listen

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

    Welcome to Ring
    Quick Reference
    Getting Started
    Prerequisites
    Installation
    First Success Validation
    Next Steps
    Architecture
    Data Model
    Real Time
    Discovery Mutation Sync
    Security
    Backend Services
    k8s-postgres-fcm Mode
    Firebase Integration
    Features
    Authentication
    Email AI-CRM
    Entities
    Opportunities
    Notifications
    Push Notifications with FCM (Ring-Powered)
    Tunnel Protocol
    Wallet & Credit System
    Multi-Vendor Store
    Referral Codes (Refcodes)
    Affiliate & Referral Enablement
    Payments Overview
    PaymentConductor
    SubscriptionConductor
    VideoConductor
    News Module - Digital Newspaper Experience
    Member Blogs
    Public Profile Pages
    Username Reservation System
    Scientific Editor
    Locale System
    Security & Compliance
    NFT Marketplace
    Token Staking System
    Performance Optimization Patterns
    Mobile Experience
    Wallet
    Wallet Security Tips
    API
    Authentication
    Email AI-CRM API
    Entities
    Opportunities
    Messaging API
    Notifications API
    Wallet API
    Store API
    Admin API
    Customization
    Quick Start — Your First Ring Clone
    Customization Guide
    Token Economics Setup
    Payment Gateway Integration
    Reference Ring deployments
    Branding
    Themes
    Web3
    Token launch jurisdictions
    Deployment
    Self-hosted deployment
    Vercel
    Docker
    Monitoring & Analytics
    Performance Optimization
    Backup & Recovery
    Development
    Local Setup
    Code Structure
    Documentation components
    Community tooling
    Ring MCP Server
    Generative Images (ImageConductor)
    Autonomous Newsroom (Grok)
    OSS vs enterprise
    Whitelabel Navigation
    Best Practices
    Workflow
    Code Style
    Performance
    Testing
    Deployment
    Debugging
    Contributing
    MCP
    ring-image-create
    ring-video-create
    Examples
    Quick Start
    White Label
    Real World
    Integrations
    Ethereum wallets (Wagmi v3)

    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)

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

    Welcome to Ring
    Quick Reference
    Getting Started
    Prerequisites
    Installation
    First Success Validation
    Next Steps
    Architecture
    Data Model
    Real Time
    Discovery Mutation Sync
    Security
    Backend Services
    k8s-postgres-fcm Mode
    Firebase Integration
    Features
    Authentication
    Email AI-CRM
    Entities
    Opportunities
    Notifications
    Push Notifications with FCM (Ring-Powered)
    Tunnel Protocol
    Wallet & Credit System
    Multi-Vendor Store
    Referral Codes (Refcodes)
    Affiliate & Referral Enablement
    Payments Overview
    PaymentConductor
    SubscriptionConductor
    VideoConductor
    News Module - Digital Newspaper Experience
    Member Blogs
    Public Profile Pages
    Username Reservation System
    Scientific Editor
    Locale System
    Security & Compliance
    NFT Marketplace
    Token Staking System
    Performance Optimization Patterns
    Mobile Experience
    Wallet
    Wallet Security Tips
    API
    Authentication
    Email AI-CRM API
    Entities
    Opportunities
    Messaging API
    Notifications API
    Wallet API
    Store API
    Admin API
    Customization
    Quick Start — Your First Ring Clone
    Customization Guide
    Token Economics Setup
    Payment Gateway Integration
    Reference Ring deployments
    Branding
    Themes
    Web3
    Token launch jurisdictions
    Deployment
    Self-hosted deployment
    Vercel
    Docker
    Monitoring & Analytics
    Performance Optimization
    Backup & Recovery
    Development
    Local Setup
    Code Structure
    Documentation components
    Community tooling
    Ring MCP Server
    Generative Images (ImageConductor)
    Autonomous Newsroom (Grok)
    OSS vs enterprise
    Whitelabel Navigation
    Best Practices
    Workflow
    Code Style
    Performance
    Testing
    Deployment
    Debugging
    Contributing
    MCP
    ring-image-create
    ring-video-create
    Examples
    Quick Start
    White Label
    Real World
    Integrations
    Ethereum wallets (Wagmi v3)

    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)

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

    Welcome to Ring
    Quick Reference
    Getting Started
    Prerequisites
    Installation
    First Success Validation
    Next Steps
    Architecture
    Data Model
    Real Time
    Discovery Mutation Sync
    Security
    Backend Services
    k8s-postgres-fcm Mode
    Firebase Integration
    Features
    Authentication
    Email AI-CRM
    Entities
    Opportunities
    Notifications
    Push Notifications with FCM (Ring-Powered)
    Tunnel Protocol
    Wallet & Credit System
    Multi-Vendor Store
    Referral Codes (Refcodes)
    Affiliate & Referral Enablement
    Payments Overview
    PaymentConductor
    SubscriptionConductor
    VideoConductor
    News Module - Digital Newspaper Experience
    Member Blogs
    Public Profile Pages
    Username Reservation System
    Scientific Editor
    Locale System
    Security & Compliance
    NFT Marketplace
    Token Staking System
    Performance Optimization Patterns
    Mobile Experience
    Wallet
    Wallet Security Tips
    API
    Authentication
    Email AI-CRM API
    Entities
    Opportunities
    Messaging API
    Notifications API
    Wallet API
    Store API
    Admin API
    Customization
    Quick Start — Your First Ring Clone
    Customization Guide
    Token Economics Setup
    Payment Gateway Integration
    Reference Ring deployments
    Branding
    Themes
    Web3
    Token launch jurisdictions
    Deployment
    Self-hosted deployment
    Vercel
    Docker
    Monitoring & Analytics
    Performance Optimization
    Backup & Recovery
    Development
    Local Setup
    Code Structure
    Documentation components
    Community tooling
    Ring MCP Server
    Generative Images (ImageConductor)
    Autonomous Newsroom (Grok)
    OSS vs enterprise
    Whitelabel Navigation
    Best Practices
    Workflow
    Code Style
    Performance
    Testing
    Deployment
    Debugging
    Contributing
    MCP
    ring-image-create
    ring-video-create
    Examples
    Quick Start
    White Label
    Real World
    Integrations
    Ethereum wallets (Wagmi v3)

    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)
    Docs
    Docs
    Docs

    Getting Started

    Bootstrap a Ring Platform white-label clone on your machine. This hub maps the real dev flow used in the open-source tree (connectplatform/ring) and on ring-platform.org — the community portal for self-hosted enthusiasts.

    Honest time budget
    PathTimeOutcome
    ./install.sh --quick + existing PostgreSQL~20–40 minClone config, deps, env scaffold — you still apply schema + OAuth
    Full Postgres-primary bootstrap45–90 minProduction-parity local stack (k8s-postgres-fcm)
    Prototype (firebase-full)~15–30 minFirestore-only — skips ERP, News Kingdom, PaymentConductor depth

    New to the vision first? Read Welcome to Ring, then return here.

    OSS self-host vs Ringdom-managed

    Self-hosting from GitHub? Follow this section. Ringdom turn-key hosting? Start at ringdom.org — after handoff use Customization guide. The public OSS tree ships install.sh and community scripts; enterprise k8s/CLI tooling stays outside the public boundary (FEATURESET.md).

    What you will configure

    LayerCanonical artifactPurpose
    Clone identityring-config.jsonBranding, feature flags, domains (ring-config.template.json)
    Secrets & backend.env.localDB_BACKEND_MODE, AUTH_*, Firebase FCM, tunnel deploy target
    Application dataPostgreSQL ring_platformdata/schema.sql v4.0.1+ + kingdom migrations
    AuthAuth.js v5 (auth.ts)AUTH_SECRET + at least one OAuth provider for login
    Dev runtimeserver.tsnpm run dev — Next.js 16 + React 19 + native WSS when RING_DEPLOY_TARGET=self-hosted

    Three ways to obtain Ring Platform

    Interactive paths with copyable install commands — self-deploy from GitHub, LegioX-guided customization, or Promptor partnership.

    Recommended bootstrap (Postgres-primary)

    Default for ring-platform.org

    Production and local dev use DB_BACKEND_MODE=k8s-postgres-fcm — PostgreSQL for app data, Firebase Admin only for FCM push when configured.

    Alternative paths

    Skip the installer wizard — same outcome, more control:

    Deep dive: Installation.

    Guides in this section

    Prerequisites

    Node.js 20+, hardware, OS support, Firebase/Google Cloud accounts

    Installation

    Full install paths, env reference, tunnel config, common issues table

    Database migrations

    schema.sql v4.0.1+, kingdom files 002–011, clone DB matrix

    First success validation

    Smoke-test auth, entities, opportunities, and API health

    Related docs

    Customization quick start

    White-label clone checklist beyond first boot

    Database backend selection

    k8s-postgres-fcm vs supabase-fcm vs firebase-full

    Local development setup

    Project structure, testing, Homebrew Postgres bootstrap

    Architecture — backend modes

    BackendSelector, adapters, FCM vs Firestore

    Quick reference — bootstrap commands

    TaskCommand
    One-command installgit clone … && ./install.sh --quick
    Env wizardnpm run setup:env
    Dev env script./scripts/setup-dev.sh
    Apply migration file./scripts/run-migration.sh data/schema.sql
    Dev servernpm run dev
    Type checknpm run type-check
    Portal healthnpm run portal:health
    Repo install guideINSTALL.md
    install.sh vs setup-dev.sh

    install.sh — first-time clone bootstrap (config files + npm install). setup-dev.sh — post-clone environment hardening and optional service wiring. Use npm run setup:env for a non-destructive interactive pass over an existing .env.local.

    Getting Started

    Bootstrap a Ring Platform white-label clone on your machine. This hub maps the real dev flow used in the open-source tree (connectplatform/ring) and on ring-platform.org — the community portal for self-hosted enthusiasts.

    Honest time budget
    PathTimeOutcome
    ./install.sh --quick + existing PostgreSQL~20–40 minClone config, deps, env scaffold — you still apply schema + OAuth
    Full Postgres-primary bootstrap45–90 minProduction-parity local stack (k8s-postgres-fcm)
    Prototype (firebase-full)~15–30 minFirestore-only — skips ERP, News Kingdom, PaymentConductor depth

    New to the vision first? Read Welcome to Ring, then return here.

    OSS self-host vs Ringdom-managed

    Self-hosting from GitHub? Follow this section. Ringdom turn-key hosting? Start at ringdom.org — after handoff use Customization guide. The public OSS tree ships install.sh and community scripts; enterprise k8s/CLI tooling stays outside the public boundary (FEATURESET.md).

    What you will configure

    LayerCanonical artifactPurpose
    Clone identityring-config.jsonBranding, feature flags, domains (ring-config.template.json)
    Secrets & backend.env.localDB_BACKEND_MODE, AUTH_*, Firebase FCM, tunnel deploy target
    Application dataPostgreSQL ring_platformdata/schema.sql v4.0.1+ + kingdom migrations
    AuthAuth.js v5 (auth.ts)AUTH_SECRET + at least one OAuth provider for login
    Dev runtimeserver.tsnpm run dev — Next.js 16 + React 19 + native WSS when RING_DEPLOY_TARGET=self-hosted

    Three ways to obtain Ring Platform

    Interactive paths with copyable install commands — self-deploy from GitHub, LegioX-guided customization, or Promptor partnership.

    Recommended bootstrap (Postgres-primary)

    Default for ring-platform.org

    Production and local dev use DB_BACKEND_MODE=k8s-postgres-fcm — PostgreSQL for app data, Firebase Admin only for FCM push when configured.

    Alternative paths

    Skip the installer wizard — same outcome, more control:

    Deep dive: Installation.

    Guides in this section

    Prerequisites

    Node.js 20+, hardware, OS support, Firebase/Google Cloud accounts

    Installation

    Full install paths, env reference, tunnel config, common issues table

    Database migrations

    schema.sql v4.0.1+, kingdom files 002–011, clone DB matrix

    First success validation

    Smoke-test auth, entities, opportunities, and API health

    Related docs

    Customization quick start

    White-label clone checklist beyond first boot

    Database backend selection

    k8s-postgres-fcm vs supabase-fcm vs firebase-full

    Local development setup

    Project structure, testing, Homebrew Postgres bootstrap

    Architecture — backend modes

    BackendSelector, adapters, FCM vs Firestore

    Quick reference — bootstrap commands

    TaskCommand
    One-command installgit clone … && ./install.sh --quick
    Env wizardnpm run setup:env
    Dev env script./scripts/setup-dev.sh
    Apply migration file./scripts/run-migration.sh data/schema.sql
    Dev servernpm run dev
    Type checknpm run type-check
    Portal healthnpm run portal:health
    Repo install guideINSTALL.md
    install.sh vs setup-dev.sh

    install.sh — first-time clone bootstrap (config files + npm install). setup-dev.sh — post-clone environment hardening and optional service wiring. Use npm run setup:env for a non-destructive interactive pass over an existing .env.local.

    Getting Started

    Bootstrap a Ring Platform white-label clone on your machine. This hub maps the real dev flow used in the open-source tree (connectplatform/ring) and on ring-platform.org — the community portal for self-hosted enthusiasts.

    Honest time budget
    PathTimeOutcome
    ./install.sh --quick + existing PostgreSQL~20–40 minClone config, deps, env scaffold — you still apply schema + OAuth
    Full Postgres-primary bootstrap45–90 minProduction-parity local stack (k8s-postgres-fcm)
    Prototype (firebase-full)~15–30 minFirestore-only — skips ERP, News Kingdom, PaymentConductor depth

    New to the vision first? Read Welcome to Ring, then return here.

    OSS self-host vs Ringdom-managed

    Self-hosting from GitHub? Follow this section. Ringdom turn-key hosting? Start at ringdom.org — after handoff use Customization guide. The public OSS tree ships install.sh and community scripts; enterprise k8s/CLI tooling stays outside the public boundary (FEATURESET.md).

    What you will configure

    LayerCanonical artifactPurpose
    Clone identityring-config.jsonBranding, feature flags, domains (ring-config.template.json)
    Secrets & backend.env.localDB_BACKEND_MODE, AUTH_*, Firebase FCM, tunnel deploy target
    Application dataPostgreSQL ring_platformdata/schema.sql v4.0.1+ + kingdom migrations
    AuthAuth.js v5 (auth.ts)AUTH_SECRET + at least one OAuth provider for login
    Dev runtimeserver.tsnpm run dev — Next.js 16 + React 19 + native WSS when RING_DEPLOY_TARGET=self-hosted

    Three ways to obtain Ring Platform

    Interactive paths with copyable install commands — self-deploy from GitHub, LegioX-guided customization, or Promptor partnership.

    Recommended bootstrap (Postgres-primary)

    Default for ring-platform.org

    Production and local dev use DB_BACKEND_MODE=k8s-postgres-fcm — PostgreSQL for app data, Firebase Admin only for FCM push when configured.

    Alternative paths

    Skip the installer wizard — same outcome, more control:

    Deep dive: Installation.

    Guides in this section

    Prerequisites

    Node.js 20+, hardware, OS support, Firebase/Google Cloud accounts

    Installation

    Full install paths, env reference, tunnel config, common issues table

    Database migrations

    schema.sql v4.0.1+, kingdom files 002–011, clone DB matrix

    First success validation

    Smoke-test auth, entities, opportunities, and API health

    Related docs

    Customization quick start

    White-label clone checklist beyond first boot

    Database backend selection

    k8s-postgres-fcm vs supabase-fcm vs firebase-full

    Local development setup

    Project structure, testing, Homebrew Postgres bootstrap

    Architecture — backend modes

    BackendSelector, adapters, FCM vs Firestore

    Quick reference — bootstrap commands

    TaskCommand
    One-command installgit clone … && ./install.sh --quick
    Env wizardnpm run setup:env
    Dev env script./scripts/setup-dev.sh
    Apply migration file./scripts/run-migration.sh data/schema.sql
    Dev servernpm run dev
    Type checknpm run type-check
    Portal healthnpm run portal:health
    Repo install guideINSTALL.md
    install.sh vs setup-dev.sh

    install.sh — first-time clone bootstrap (config files + npm install). setup-dev.sh — post-clone environment hardening and optional service wiring. Use npm run setup:env for a non-destructive interactive pass over an existing .env.local.

    1. 1

      1 — Clone and run install.sh

      install.sh v2.0 (see INSTALL.md):

      • System requirements check (Node.js 20+, npm 10+)
      • Creates ring-config.json from template (--clone-name for white-label slug)
      • Copies env.local.template → .env.local with generated AUTH_SECRET and WALLET_ENCRYPTION_KEY
      • Runs npm install
      • Optionally materializes next.config.mjs, docker-compose.yml, Dockerfile from templates

      Flags: --quick, --clone-name my-ring, --verbose, --help.

    2. 2

      2 — Provision PostgreSQL

      Start Postgres 16+ and database ring_platform (user ring_user). Options:

      • Docker — one-container dev (see Installation)
      • Ringdom monorepo — docker compose -f docker-compose.dev.yml up -d postgres or ./infrastructure/postgres/bootstrap-brew-dev.sh
      • Existing server — create DB + set DB_HOST / DB_* in .env.local
    3. 3

      3 — Apply schema and kingdom migrations

      Full order, idempotent increments, and Ring-clone matrix: Database migrations. Helper: ./scripts/run-migration.sh when pointed at your ring-postgres-dev container.

    4. 4

      4 — Finish auth and local URLs

      Minimum in .env.local:

      Add Google OAuth redirect: http://localhost:3000/api/auth/callback/google.

      Interactive env wizard (after template copy): npm run setup:env or ./scripts/setup-dev.sh.

    5. 5

      5 — Start dev server and validate

      Expect: Ready on http://localhost:3000 [self-hosted] and native WSS at /api/tunnel/ws.

      Then run First success validation — homepage, /login, entities/opportunities without DB adapter errors. Optional: npm run type-check, npm run portal:health.

      Bootstrap complete

      Visit http://localhost:3000. Customize branding in ring-config.json and explore Next steps.

    Troubleshooting

    FETCH_FAILED, wallet bootstrap, OAuth redirects, diagnostics

    Next steps

    Admin, first entity, opportunities, messaging, deployment pointer

    1. 1

      1 — Clone and run install.sh

      install.sh v2.0 (see INSTALL.md):

      • System requirements check (Node.js 20+, npm 10+)
      • Creates ring-config.json from template (--clone-name for white-label slug)
      • Copies env.local.template → .env.local with generated AUTH_SECRET and WALLET_ENCRYPTION_KEY
      • Runs npm install
      • Optionally materializes next.config.mjs, docker-compose.yml, Dockerfile from templates

      Flags: --quick, --clone-name my-ring, --verbose, --help.

    2. 2

      2 — Provision PostgreSQL

      Start Postgres 16+ and database ring_platform (user ring_user). Options:

      • Docker — one-container dev (see Installation)
      • Ringdom monorepo — docker compose -f docker-compose.dev.yml up -d postgres or ./infrastructure/postgres/bootstrap-brew-dev.sh
      • Existing server — create DB + set DB_HOST / DB_* in .env.local
    3. 3

      3 — Apply schema and kingdom migrations

      Full order, idempotent increments, and Ring-clone matrix: Database migrations. Helper: ./scripts/run-migration.sh when pointed at your ring-postgres-dev container.

    4. 4

      4 — Finish auth and local URLs

      Minimum in .env.local:

      Add Google OAuth redirect: http://localhost:3000/api/auth/callback/google.

      Interactive env wizard (after template copy): npm run setup:env or ./scripts/setup-dev.sh.

    5. 5

      5 — Start dev server and validate

      Expect: Ready on http://localhost:3000 [self-hosted] and native WSS at /api/tunnel/ws.

      Then run First success validation — homepage, /login, entities/opportunities without DB adapter errors. Optional: npm run type-check, npm run portal:health.

      Bootstrap complete

      Visit http://localhost:3000. Customize branding in ring-config.json and explore Next steps.

    Troubleshooting

    FETCH_FAILED, wallet bootstrap, OAuth redirects, diagnostics

    Next steps

    Admin, first entity, opportunities, messaging, deployment pointer

    1. 1

      1 — Clone and run install.sh

      install.sh v2.0 (see INSTALL.md):

      • System requirements check (Node.js 20+, npm 10+)
      • Creates ring-config.json from template (--clone-name for white-label slug)
      • Copies env.local.template → .env.local with generated AUTH_SECRET and WALLET_ENCRYPTION_KEY
      • Runs npm install
      • Optionally materializes next.config.mjs, docker-compose.yml, Dockerfile from templates

      Flags: --quick, --clone-name my-ring, --verbose, --help.

    2. 2

      2 — Provision PostgreSQL

      Start Postgres 16+ and database ring_platform (user ring_user). Options:

      • Docker — one-container dev (see Installation)
      • Ringdom monorepo — docker compose -f docker-compose.dev.yml up -d postgres or ./infrastructure/postgres/bootstrap-brew-dev.sh
      • Existing server — create DB + set DB_HOST / DB_* in .env.local
    3. 3

      3 — Apply schema and kingdom migrations

      Full order, idempotent increments, and Ring-clone matrix: Database migrations. Helper: ./scripts/run-migration.sh when pointed at your ring-postgres-dev container.

    4. 4

      4 — Finish auth and local URLs

      Minimum in .env.local:

      Add Google OAuth redirect: http://localhost:3000/api/auth/callback/google.

      Interactive env wizard (after template copy): npm run setup:env or ./scripts/setup-dev.sh.

    5. 5

      5 — Start dev server and validate

      Expect: Ready on http://localhost:3000 [self-hosted] and native WSS at /api/tunnel/ws.

      Then run First success validation — homepage, /login, entities/opportunities without DB adapter errors. Optional: npm run type-check, npm run portal:health.

      Bootstrap complete

      Visit http://localhost:3000. Customize branding in ring-config.json and explore Next steps.

    Troubleshooting

    FETCH_FAILED, wallet bootstrap, OAuth redirects, diagnostics

    Next steps

    Admin, first entity, opportunities, messaging, deployment pointer