Skip to content

CastQuest/castquest-frames

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CAST QUEST Frames

Dependency Health Build Status Node Version pnpm Version

CAST QUEST Frames is a Web3-native social photo protocol that feels like Instagram, mints like Zora, extends like Farcaster Frames, and builds like Remix β€” powered by a Smart Brain multi-agent AI.

✨ Core Principles

  • Chain-first: Built on Base with multi-chain EVM support
  • Creator-first: Onchain minting, collecting, royalties, and programmable fees
  • Builder-first: Frames, SDK, and a Remix-style module builder
  • AI-native: Smart Brain agents for pricing, previews, tagging, and system optimization

🧱 Monorepo Structure

apps/ web/ - Next.js app (feed, profiles, frames) admin/ - Next.js admin app (fees, templates, AI settings) mobile/ - React Native / Expo app

packages/ contracts/ - Solidity contracts (Base + EVM) sdk/ - CAST QUEST SDK integration (used here) ai-brain/ - Multi-agent Smart Brain orchestration ui-kit/ - Shared UI components & design system

infra/ api-gateway/ - API entrypoint (frames, mint, collect) indexer/ - Onchain event indexer workers/ - Background jobs (AI, notifications, analytics) k8s/ - Kubernetes manifests

docs/ whitepaper/ - Vision & protocol architecture/- Diagrams & technical design sdk/ - Dev docs & examples product/ - User & admin guides

.github/ - CI/CD, issue templates, PR templates scripts/ - Dev, deploy, Smart Brain operator examples/frames/ - Example frame definitions

🀝 Contributing

See CONTRIBUTING.md.

οΏ½ Prerequisites

Required:

  • Node.js 20+ (to prevent ERR_INVALID_THIS errors)
  • pnpm 9+ (package manager)

Install with nvm:

nvm install 20
nvm use 20
npm install -g pnpm@9

Or use the .nvmrc file:

nvm use  # Automatically uses Node 20.19.6

🎨 Dashboards

CastQuest Frames includes two production-ready dashboards with neo-glow theme for creators and administrators.

πŸ‘€ User Dashboard

Port: 3000 | URL: http://localhost:3000/dashboard

A creator-focused dashboard with AI tools and community features:

  • ✨ AI Frame Builder - Generate frames with natural language
  • πŸ“Š Analytics - Track views, engagement, and revenue
  • πŸͺ Marketplace - Browse and purchase frame templates
  • πŸ’¬ Community Hub - Social feed with interactions
  • 🎯 Frame Management - Create and monitor frames
  • πŸ† Leaderboard - Global rankings and achievements
  • ⚑ Quest System - Daily/weekly challenges
  • πŸ’Ž NFT Mints - Manage collectible mints
# Start user dashboard
cd apps/web && pnpm dev
# Access: http://localhost:3000/dashboard

πŸ‘‘ Admin Dashboard

Port: 3010 | URL: http://localhost:3010/dashboard

A protocol management console with comprehensive monitoring:

  • πŸ’Ž Token Management - Monitor $CAST, $PIC, $VID, $AUDIO
  • πŸ” Permission System - Role-based access control
  • πŸ’° Fee Controls - Adjustable protocol fees
  • πŸ›‘οΈ Risk Management - AI-powered detection (98% accuracy)
  • πŸ“Š Protocol Metrics - TVL, volume, active users
  • πŸ“‘ System Health - Real-time monitoring
  • πŸ–ΌοΈ Frame Monitoring - Track all frame activity
  • πŸ“‹ Activity Logs - Complete audit trail
# Start admin dashboard
cd apps/admin && pnpm dev -- -p 3010
# Access: http://localhost:3010/dashboard

πŸš€ Quick Start - Both Dashboards

# Install dependencies
pnpm install

# Run both dashboards using self-healing script (recommended)
chmod +x scripts/self-healing-ui.sh
./scripts/self-healing-ui.sh

# Or run manually in separate terminals:
# Terminal 1: User Dashboard
cd apps/web && pnpm dev

# Terminal 2: Admin Dashboard  
cd apps/admin && pnpm dev -- -p 3010

πŸ“– Full Documentation: See docs/DASHBOARDS.md for complete setup, configuration, deployment, and troubleshooting guides.

πŸ₯ Repository Health

The CastQuest Frames repository includes a comprehensive dependency health monitoring system to ensure consistency, security, and reliability.

Health Check Commands

# Run comprehensive health check
bash scripts/master.sh health

# Run automated repair
bash scripts/repair-dependencies.sh

# Get AI-powered insights
.smartbrain/oracle.sh analyze

# Get upgrade recommendations
.smartbrain/oracle.sh recommend-upgrades

# Security vulnerability scan
.smartbrain/oracle.sh security-scan

Automated Monitoring

  • CI/CD Health Checks: Automated health checks run on every push, PR, and daily at 6 AM UTC
  • Pre-commit Hooks: Validate changes before they reach the repository
  • Smart Brain Oracle: AI-powered dependency intelligence and predictive maintenance

Key Features

  • βœ… Version Harmonization: TypeScript 5.3.3, @types/node 20.10.6, Next.js 14.2.35 (secure)
  • πŸ”’ Security Scanning: Automated vulnerability detection with pnpm audit
  • πŸ“Š Health Scoring: Real-time repository health metrics
  • πŸ€– AI Insights: Smart Brain Oracle for predictive maintenance
  • πŸ› οΈ Auto-Repair: One-command dependency repair script
  • πŸ“ Comprehensive Reports: JSON output for CI/CD integration

πŸ“– Full Documentation: See docs/DEPENDENCY-HEALTH.md for detailed health monitoring guide.

πŸ’Έ Sponsors & Partners

Site: https://castquest.xyz (placeholder) Docs: https://docs.castquest.xyz (placeholder) Sponsors: GitHub Sponsors / custom page

🌌 Vision

Social feeds will be onchain. Creators will own their rails. Builders will extend everything through Frames and SDKs. AI will act as the invisible Smart Brain across the entire stack.

CastQuest Protocol β€” Operator Console

A sovereign, media‑first automation protocol combining:

  • Frame Template Engine (Module 6 MEGA)
  • Quest Engine (Module 5B MEGA)
  • Mint Engine + Renderer + Automation (Module 7 MEGA)
  • BASE Mock Onchain Layer (Module 4 MEGA)
  • Mobile‑Optimized Admin Console
  • Strategy Worker + Logs Dashboard

Contributors

  • Yosef (Founder / Protocol Architect)
    Vision, architecture, automation engine, operator console design.

  • SMSDAO (Core Contributor)
    Execution, module integration, system orchestration.

  • AI Automation Partner
    Script generation, module scaffolding, error‑resilient workflows.

Modules Installed

Module 4 β€” BASE API + Mobile Admin + Strategy Dashboard

  • /api/base/*
  • /strategy
  • ShellLayout mobile UI

Module 5B β€” Quest Engine MEGA

  • /quests
  • /api/quests/*
  • data/quests.json, quest-steps.json, quest-progress.json, quest-rewards.json

Module 6 β€” Frame Template Engine MEGA

  • /frame-templates
  • /api/frame-templates/*
  • data/frame-templates.json

Module 7 β€” Mint + Render + Automation MEGA

  • /mints
  • /api/mints/*
  • /api/frames/render
  • /api/strategy/worker/*
  • data/mints.json, mint-events.json, frames.json, worker-events.json

Vision

CastQuest is a sovereign automation protocol that turns:

Media β†’ Templates β†’ Frames β†’ Mints β†’ Quests β†’ Strategy β†’ Onchain

into a single expressive pipeline.

You are early.

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •