Ring Platform Logo

    Loading Documentation Hub...

    Scanning documentation library

    Documentation

    Welcome — mission & audiences

    Welcome to Ring Platform - Gateway Between Humanity and the Quantum World

    Library hub

    Welcome to Ring Platform - Gateway Between Humanity and the Quantum World

    Getting Started

    Index
    Prerequisites
    Installation
    Database migrations
    First Success Validation
    Troubleshooting
    Next Steps

    Architecture

    Index
    Backend modes and databases
    Data Model
    Authentication Architecture
    Email AI-CRM Architecture
    PaymentConductor architecture
    Refcodes architecture
    News Kingdom architecture
    Proxy and internationalization
    Real Time
    Security

    Features

    Platform Features
    Authentication
    Email AI-CRM System
    Entities
    Opportunities
    Notifications
    Push Notifications with FCM (Ring-Powered)
    Web3 Wallet
    Multi-Vendor Store
    Ring ERP
    Inventory & Stock

    API

    Index
    Authentication
    Email AI-CRM API
    Entities
    Opportunities
    Messaging API
    Notifications API
    Wallet
    Store API

    CLI

    Ring CLI (enterprise only)

    Customization

    Index
    Branding
    Features
    Localization
    Themes
    Components

    Deployment

    Index
    Self-hosted deployment
    Vercel
    Docker
    Environment Configuration
    Monitoring & Analytics
    Performance Optimization
    Backup & Recovery

    Development

    Index
    Local Setup
    Code Structure
    Community tooling
    Ring MCP Server
    Generative Images (ImageConductor)
    Autonomous Newsroom (Grok)
    OSS vs enterprise

    Roadmap

    Platform Roadmap (Technical)

    Examples

    Index
    Quick Start
    Authentication
    Email AI-CRM Tutorial
    Api Integration
    Web3 Integration
    White Label
    Real World

    Integrations

    Ethereum wallets (Wagmi v3)

    Quick entry (CTOs · auditors · agents)

    Library hub
    Welcome — mission & audiences
    Getting started
    Architecture & Auth.js
    Backend modes & databases (DB_BACKEND_MODE)
    Self-hosted
    Ring MCP
    Deploy (Docker · k8s)
    Security & compliance reads
    Ring Platform Logo

    Loading Documentation Hub...

    Scanning documentation library

    Documentation

    Welcome — mission & audiences

    Welcome to Ring Platform - Gateway Between Humanity and the Quantum World

    Library hub

    Welcome to Ring Platform - Gateway Between Humanity and the Quantum World

    Getting Started

    Index
    Prerequisites
    Installation
    Database migrations
    First Success Validation
    Troubleshooting
    Next Steps

    Architecture

    Index
    Backend modes and databases
    Data Model
    Authentication Architecture
    Email AI-CRM Architecture
    PaymentConductor architecture
    Refcodes architecture
    News Kingdom architecture

    Features

    Platform Features
    Authentication
    Email AI-CRM System
    Entities
    Opportunities
    Notifications
    Push Notifications with FCM (Ring-Powered)
    Web3 Wallet

    API

    Index
    Authentication
    Email AI-CRM API
    Entities
    Opportunities
    Messaging API
    Notifications API
    Wallet
    Store API

    CLI

    Ring CLI (enterprise only)

    Customization

    Index
    Branding
    Features
    Localization
    Themes
    Components

    Deployment

    Index
    Self-hosted deployment
    Vercel
    Docker
    Environment Configuration
    Monitoring & Analytics
    Performance Optimization
    Backup & Recovery

    Development

    Index
    Local Setup
    Code Structure
    Community tooling
    Ring MCP Server
    Generative Images (ImageConductor)
    Autonomous Newsroom (Grok)
    OSS vs enterprise

    Roadmap

    Platform Roadmap (Technical)

    Examples

    Index
    Quick Start
    Authentication
    Email AI-CRM Tutorial
    Api Integration
    Web3 Integration
    White Label
    Real World

    Integrations

    Ethereum wallets (Wagmi v3)

    Quick entry (CTOs · auditors · agents)

    Library hub
    Welcome — mission & audiences
    Getting started
    Architecture & Auth.js
    Backend modes & databases (DB_BACKEND_MODE)
    Self-hosted
    Ring MCP
    Deploy (Docker · k8s)
    Security & compliance reads
    Ring Platform Logo

    Loading Documentation Hub...

    Scanning documentation library

    Documentation

    Welcome — mission & audiences

    Welcome to Ring Platform - Gateway Between Humanity and the Quantum World

    Library hub

    Welcome to Ring Platform - Gateway Between Humanity and the Quantum World

    Getting Started

    Index
    Prerequisites
    Installation
    Database migrations
    First Success Validation
    Troubleshooting
    Next Steps

    Architecture

    Index
    Backend modes and databases
    Data Model
    Authentication Architecture
    Email AI-CRM Architecture
    PaymentConductor architecture
    Refcodes architecture
    News Kingdom architecture

    Features

    Platform Features
    Authentication
    Email AI-CRM System
    Entities
    Opportunities
    Notifications
    Push Notifications with FCM (Ring-Powered)
    Web3 Wallet

    API

    Index
    Authentication
    Email AI-CRM API
    Entities
    Opportunities
    Messaging API
    Notifications API
    Wallet
    Store API

    CLI

    Ring CLI (enterprise only)

    Customization

    Index
    Branding
    Features
    Localization
    Themes
    Components

    Deployment

    Index
    Self-hosted deployment
    Vercel
    Docker
    Environment Configuration
    Monitoring & Analytics
    Performance Optimization
    Backup & Recovery

    Development

    Index
    Local Setup
    Code Structure
    Community tooling
    Ring MCP Server
    Generative Images (ImageConductor)
    Autonomous Newsroom (Grok)
    OSS vs enterprise

    Roadmap

    Platform Roadmap (Technical)

    Examples

    Index
    Quick Start
    Authentication
    Email AI-CRM Tutorial
    Api Integration
    Web3 Integration
    White Label
    Real World

    Integrations

    Ethereum wallets (Wagmi v3)

    Quick entry (CTOs · auditors · agents)

    Library hub
    Welcome — mission & audiences
    Getting started
    Architecture & Auth.js
    Backend modes & databases (DB_BACKEND_MODE)
    Self-hosted
    Ring MCP
    Deploy (Docker · k8s)
    Security & compliance reads

    Generative Images (ImageConductor)

    Ring Platform ships a provider-agnostic ImageConductor — the same facade pattern as PaymentConductor and file(). Generated assets upload to ring-filebase and return a permanent CDN URL.

    Architecture

    text
    
    Surface (MCP / admin UI / server code)
      → ImageConductor.generate(ctx)
        → provider (xai | google)
        → file().upload(generated/…)
        → optional DB row in generated_images
      → { success, images: [{ url, … }] }
    LayerPath
    Typeslib/images/conductor/types.ts
    Configlib/images/image.config.ts
    Providerslib/images/providers/xai.provider.ts, google.provider.ts
    Facadelib/images/conductor/image-conductor.ts
    Public APIlib/images/index.ts

    Surfaces

    SurfaceEntry
    MCPring-image-create → POST /api/mcp/v1/images/generate
    Admin session APIPOST /api/images/generate (Auth.js admin)
    UIcomponents/media/generate-image-dialog.tsx in news editor + rich text editor

    See Ring MCP — Image generation for MCP operator examples.

    Request body

    json
    
    {
      "prompt": "professional tech banner, vibrant gradient",
      "provider": "xai",
      "aspectRatio": "16:9",
      "resolution": "2k",
      "n": 1,
      "purpose": "news-featured",
      "refCode": "optional-tracking-id",
      "seed": 42
    }
    FieldRequiredNotes
    promptYesNatural-language description
    providerNoxai (default) or google
    aspectRatioNoxAI: flexible; Google: 1:1, 3:4, 4:3, 9:16, 16:9
    resolutionNo1k or 2k (xAI)
    nNoNumber of images (default 1)
    purposeNoStorage path segment, e.g. og, news-featured
    actorIdMCP/sessionSet automatically from actor or session

    OG preset: aspectRatio: "2:1" on xAI (~1200×630). For Google Imagen use 16:9 as nearest OG ratio.

    Environment

    Add to .env.local (see env.local.template):

    bash
    
    IMAGE_GEN_PROVIDER=xai
    IMAGE_GEN_STORAGE_PREFIX=generated
    IMAGE_GEN_POLL_TIMEOUT_MS=120000
    
    XAI_API_KEY=your_key
    XAI_API_BASE_URL=https://api.x.ai/v1
    XAI_IMAGE_MODEL=grok-imagine-image-quality
    XAI_IMAGE_RESOLUTION=2k
    XAI_IMAGE_ASPECT_RATIO=1:1
    
    # Optional Google Imagen fallback
    GOOGLE_GENAI_API_KEY=
    GOOGLE_GENAI_BASE_URL=https://generativelanguage.googleapis.com/v1beta
    GOOGLE_IMAGE_MODEL=imagen-4.0-generate-001
    GOOGLE_IMAGE_SIZE=2K
    GOOGLE_IMAGE_ASPECT_RATIO=1:1

    Requires ring-filebase (FILE_BACKEND=ringbase, RINGBASE_API_URL, RINGBASE_API_TOKEN) or your configured storage backend.

    Database

    Migration data/migrations/006_generated_images_schema.sql adds generated_images audit rows (provider, model, prompt, URL). Mirror exists in data/schema.sql.

    Programmatic usage

    typescript
    
    import { ImageConductor } from '@/lib/images/conductor/image-conductor'
    
    const result = await ImageConductor.generate({
      prompt: 'Ring Platform community meetup photo',
      purpose: 'news-featured',
      aspectRatio: '16:9',
      actorId: userId,
    })
    
    if (result.success && result.images?.[0]?.url) {
      const featuredImage = result.images[0].url
    }

    Troubleshooting

    SymptomCheck
    XAI_API_KEY is not configuredKey in .env.local, restart npm run dev
    Upload failedRINGBASE_API_TOKEN, FILE_BACKEND=ringbase
    TimeoutRaise IMAGE_GEN_POLL_TIMEOUT_MS (default 120000)
    Empty imageProvider quota, prompt policy, or model name drift

    Related: Autonomous newsroom uses ImageConductor for featured images.

    Generative Images (ImageConductor)

    Ring Platform ships a provider-agnostic ImageConductor — the same facade pattern as PaymentConductor and file(). Generated assets upload to ring-filebase and return a permanent CDN URL.

    Architecture

    text
    
    Surface (MCP / admin UI / server code)
      → ImageConductor.generate(ctx)
        → provider (xai | google)
        → file().upload(generated/…)
        → optional DB row in generated_images
      → { success, images: [{ url, … }] }
    LayerPath
    Typeslib/images/conductor/types.ts
    Configlib/images/image.config.ts
    Providerslib/images/providers/xai.provider.ts, google.provider.ts
    Facadelib/images/conductor/image-conductor.ts
    Public APIlib/images/index.ts

    Surfaces

    SurfaceEntry
    MCPring-image-create → POST /api/mcp/v1/images/generate
    Admin session APIPOST /api/images/generate (Auth.js admin)
    UIcomponents/media/generate-image-dialog.tsx in news editor + rich text editor

    See Ring MCP — Image generation for MCP operator examples.

    Request body

    json
    
    {
      "prompt": "professional tech banner, vibrant gradient",
      "provider": "xai",
      "aspectRatio": "16:9",
      "resolution": "2k",
      "n": 1,
      "purpose": "news-featured",
      "refCode": "optional-tracking-id",
      "seed": 42
    }
    FieldRequiredNotes
    promptYesNatural-language description
    providerNoxai (default) or google
    aspectRatioNoxAI: flexible; Google: 1:1, 3:4, 4:3, 9:16, 16:9
    resolutionNo1k or 2k (xAI)
    nNoNumber of images (default 1)
    purposeNoStorage path segment, e.g. og, news-featured
    actorIdMCP/sessionSet automatically from actor or session

    OG preset: aspectRatio: "2:1" on xAI (~1200×630). For Google Imagen use 16:9 as nearest OG ratio.

    Environment

    Add to .env.local (see env.local.template):

    bash
    
    IMAGE_GEN_PROVIDER=xai
    IMAGE_GEN_STORAGE_PREFIX=generated
    IMAGE_GEN_POLL_TIMEOUT_MS=120000
    
    XAI_API_KEY=your_key
    XAI_API_BASE_URL=https://api.x.ai/v1
    XAI_IMAGE_MODEL=grok-imagine-image-quality
    XAI_IMAGE_RESOLUTION=2k
    XAI_IMAGE_ASPECT_RATIO=1:1
    
    # Optional Google Imagen fallback
    GOOGLE_GENAI_API_KEY=
    GOOGLE_GENAI_BASE_URL=https://generativelanguage.googleapis.com/v1beta
    GOOGLE_IMAGE_MODEL=imagen-4.0-generate-001
    GOOGLE_IMAGE_SIZE=2K
    GOOGLE_IMAGE_ASPECT_RATIO=1:1

    Requires ring-filebase (FILE_BACKEND=ringbase, RINGBASE_API_URL, RINGBASE_API_TOKEN) or your configured storage backend.

    Database

    Migration data/migrations/006_generated_images_schema.sql adds generated_images audit rows (provider, model, prompt, URL). Mirror exists in data/schema.sql.

    Programmatic usage

    typescript
    
    import { ImageConductor } from '@/lib/images/conductor/image-conductor'
    
    const result = await ImageConductor.generate({
      prompt: 'Ring Platform community meetup photo',
      purpose: 'news-featured',
      aspectRatio: '16:9',
      actorId: userId,
    })
    
    if (result.success && result.images?.[0]?.url) {
      const featuredImage = result.images[0].url
    }

    Troubleshooting

    SymptomCheck
    XAI_API_KEY is not configuredKey in .env.local, restart npm run dev
    Upload failedRINGBASE_API_TOKEN, FILE_BACKEND=ringbase
    TimeoutRaise IMAGE_GEN_POLL_TIMEOUT_MS (default 120000)
    Empty imageProvider quota, prompt policy, or model name drift

    Related: Autonomous newsroom uses ImageConductor for featured images.

    Generative Images (ImageConductor)

    Ring Platform ships a provider-agnostic ImageConductor — the same facade pattern as PaymentConductor and file(). Generated assets upload to ring-filebase and return a permanent CDN URL.

    Architecture

    text
    
    Surface (MCP / admin UI / server code)
      → ImageConductor.generate(ctx)
        → provider (xai | google)
        → file().upload(generated/…)
        → optional DB row in generated_images
      → { success, images: [{ url, … }] }
    LayerPath
    Typeslib/images/conductor/types.ts
    Configlib/images/image.config.ts
    Providerslib/images/providers/xai.provider.ts, google.provider.ts
    Facadelib/images/conductor/image-conductor.ts
    Public APIlib/images/index.ts

    Surfaces

    SurfaceEntry
    MCPring-image-create → POST /api/mcp/v1/images/generate
    Admin session APIPOST /api/images/generate (Auth.js admin)
    UIcomponents/media/generate-image-dialog.tsx in news editor + rich text editor

    See Ring MCP — Image generation for MCP operator examples.

    Request body

    json
    
    {
      "prompt": "professional tech banner, vibrant gradient",
      "provider": "xai",
      "aspectRatio": "16:9",
      "resolution": "2k",
      "n": 1,
      "purpose": "news-featured",
      "refCode": "optional-tracking-id",
      "seed": 42
    }
    FieldRequiredNotes
    promptYesNatural-language description
    providerNoxai (default) or google
    aspectRatioNoxAI: flexible; Google: 1:1, 3:4, 4:3, 9:16, 16:9
    resolutionNo1k or 2k (xAI)
    nNoNumber of images (default 1)
    purposeNoStorage path segment, e.g. og, news-featured
    actorIdMCP/sessionSet automatically from actor or session

    OG preset: aspectRatio: "2:1" on xAI (~1200×630). For Google Imagen use 16:9 as nearest OG ratio.

    Environment

    Add to .env.local (see env.local.template):

    bash
    
    IMAGE_GEN_PROVIDER=xai
    IMAGE_GEN_STORAGE_PREFIX=generated
    IMAGE_GEN_POLL_TIMEOUT_MS=120000
    
    XAI_API_KEY=your_key
    XAI_API_BASE_URL=https://api.x.ai/v1
    XAI_IMAGE_MODEL=grok-imagine-image-quality
    XAI_IMAGE_RESOLUTION=2k
    XAI_IMAGE_ASPECT_RATIO=1:1
    
    # Optional Google Imagen fallback
    GOOGLE_GENAI_API_KEY=
    GOOGLE_GENAI_BASE_URL=https://generativelanguage.googleapis.com/v1beta
    GOOGLE_IMAGE_MODEL=imagen-4.0-generate-001
    GOOGLE_IMAGE_SIZE=2K
    GOOGLE_IMAGE_ASPECT_RATIO=1:1

    Requires ring-filebase (FILE_BACKEND=ringbase, RINGBASE_API_URL, RINGBASE_API_TOKEN) or your configured storage backend.

    Database

    Migration data/migrations/006_generated_images_schema.sql adds generated_images audit rows (provider, model, prompt, URL). Mirror exists in data/schema.sql.

    Programmatic usage

    typescript
    
    import { ImageConductor } from '@/lib/images/conductor/image-conductor'
    
    const result = await ImageConductor.generate({
      prompt: 'Ring Platform community meetup photo',
      purpose: 'news-featured',
      aspectRatio: '16:9',
      actorId: userId,
    })
    
    if (result.success && result.images?.[0]?.url) {
      const featuredImage = result.images[0].url
    }

    Troubleshooting

    SymptomCheck
    XAI_API_KEY is not configuredKey in .env.local, restart npm run dev
    Upload failedRINGBASE_API_TOKEN, FILE_BACKEND=ringbase
    TimeoutRaise IMAGE_GEN_POLL_TIMEOUT_MS (default 120000)
    Empty imageProvider quota, prompt policy, or model name drift

    Related: Autonomous newsroom uses ImageConductor for featured images.

    Vendor Management
    Commissions & Settlements
    Referral Codes (Refcodes)
    Payment Integration
    PaymentConductor
    WayForPay Payment Integration
    News Module - Digital Newspaper Experience
    Member Blogs
    Scientific Editor
    Locale System
    Security & Compliance
    NFT Marketplace
    Token Staking System
    Performance Optimization Patterns
    Mobile Experience
    Admin API
    Whitelabel Navigation
    Best Practices
    Workflow
    Code Style
    Performance
    Testing
    Deployment
    Debugging
    Contributing
    Api Examples
    ringdom.org — LegioX homebase
    Source — MIT license (GitHub)
    Proxy and internationalization
    Real Time
    Security
    Multi-Vendor Store
    Ring ERP
    Inventory & Stock
    Vendor Management
    Commissions & Settlements
    Referral Codes (Refcodes)
    Payment Integration
    PaymentConductor
    WayForPay Payment Integration
    News Module - Digital Newspaper Experience
    Member Blogs
    Scientific Editor
    Locale System
    Security & Compliance
    NFT Marketplace
    Token Staking System
    Performance Optimization Patterns
    Mobile Experience
    Admin API
    Whitelabel Navigation
    Best Practices
    Workflow
    Code Style
    Performance
    Testing
    Deployment
    Debugging
    Contributing
    Api Examples
    ringdom.org — LegioX homebase
    Source — MIT license (GitHub)
    Proxy and internationalization
    Real Time
    Security
    Multi-Vendor Store
    Ring ERP
    Inventory & Stock
    Vendor Management
    Commissions & Settlements
    Referral Codes (Refcodes)
    Payment Integration
    PaymentConductor
    WayForPay Payment Integration
    News Module - Digital Newspaper Experience
    Member Blogs
    Scientific Editor
    Locale System
    Security & Compliance
    NFT Marketplace
    Token Staking System
    Performance Optimization Patterns
    Mobile Experience
    Admin API
    Whitelabel Navigation
    Best Practices
    Workflow
    Code Style
    Performance
    Testing
    Deployment
    Debugging
    Contributing
    Api Examples
    ringdom.org — LegioX homebase
    Source — MIT license (GitHub)
    Back
    Back
    Back