project-6c64f877

bySolaryn

Act as an expert Full-Stack Engineer, AI Architect, and UI/UX Designer. Your task is to build a comprehensive, production-ready AI Virtual Companion web application. The platform must feature discovery feeds, real-time AI chat, uncensored multimodal generation (NSFW/adult text, image, and video), and user monetization. Here is the exact blueprint for the application: ### 1. Tech Stack & Architecture * **Frontend:** Next.js (React), Tailwind CSS for styling, Framer Motion for smooth UI transitions, and Zustand for state management. * **Backend:** Python (FastAPI) to handle high-performance API routing, WebSockets for real-time chat, and seamless integration with custom AI pipelines (uncensored LLM text routing, Stable Diffusion / Flux image generation, SVD/AnimateDiff/Luma video generation, TTS audio generation). * **Database:** PostgreSQL (with Prisma or Drizzle ORM) for user profiles, character data, and chat history. Redis for session caching, rate-limiting, and managing active WebSocket connections. * **Storage:** AWS S3 or Cloudflare R2 bucket infrastructure to securely host generated image and video assets. * **Payments:** Stripe integration for token purchases and premium subscription tiers. ### 2. UI/UX & Content Guardrails * **Theme:** Deep dark mode with vibrant neon accents (e.g., electric pink, cyan, or purple) to evoke a premium, futuristic aesthetic. * **Age Verification:** A mandatory, secure 18+ splash screen gate on initial entry, setting a localized cookie to store verification status. * **Layout:** Highly responsive. Mobile-first design focusing on swipeable cards and a fixed bottom navigation bar. Desktop view should feature a collapsible sidebar and a central masonry grid for discovery. ### 3. Core Features & Functionality #### A. The Discovery Engine (Home Page) * **Hero Section:** Dynamic banner highlighting "Trending Companions" or "New Arrivals." * **Filter & Search:** A sticky top bar with category pills (e.g., Realistic, Anime, Fantasy, Sci-Fi) and a strict toggle filter for SFW vs. NSFW content. * **Character Cards:** Masonry grid displaying character portraits. Each card must show the character's name, a brief tagline, tags, and a "Chat Now" button. SFW blur overlays should be applied to explicit character profiles until toggled. #### B. Immersive Chat Interface (Multimodal + Uncensored) * **Uncensored Real-time Messaging:** WebSocket-enabled chat window running low-latency text generation. The backend must route to an uncensored LLM backend (e.g., customized Llama-3 or Mistral pipelines configured for open, unfiltered roleplay). Include typing indicators. * **Context Memory:** System architecture to pass the last 10-20 messages plus the character's core persona prompt to the LLM to maintain conversational memory. * **Multimodal Actions:** Include specific premium action buttons within the chat input area: * **Request Image (Uncensored):** A button that prompts the AI to generate a contextual "selfie" or photo (SFW or explicit adult content) based on the current conversation flow via an image generation API. * **Request Video (Dynamic):** A button that calls a Text-to-Video / Image-to-Video API (e.g., generating short 3-5 second video loops or animated clips of the companion). * **Voice Messages:** The ability for the AI to respond with audio clips using a Text-to-Speech (TTS) API. * **Visual Media Gallery:** A drawer or sliding panel within the chat UI where users can view all unlocked images, videos, and voice messages generated during that session. #### C. Character Creator Studio * **Creation Wizard:** A multi-step form for users to build their own companions. * **Inputs:** Name, visual description, personality traits, backstory, and greeting message. * **Advanced Settings:** Fields for custom prompt engineering, allowing creators to define the system prompt, scenario, and specific dialogue examples (Few-Shot prompting). * **Content Tagging:** Strict toggles to label characters as "SFW" or "NSFW/Adult", mapping directly to database fields. * **Visibility:** Toggle for making the character Public or Private. #### D. User Dashboard & Monetization * **Token System:** Implement a virtual wallet. Users spend tokens/credits scaling by request type (e.g., 1 credit per text message, 5 credits per image, 15 credits per video generation). * **Freemium Loop:** Daily login bonuses (free tokens) to drive retention. * **Premium Tiers:** A subscription page offering "Pro" tiers that provide unlimited text chat, faster generation times, higher-quality images, and early access to new features. ### 4. Execution Plan Please generate the foundational code for this platform, starting with: 1. The database schema for Users, Characters, and Messages (including content flags for NSFW tags and Media Types like text, image, voice, video). 2. The Next.js 18+ Age Verification Gate and Layout middleware. 3. The main Discovery Page UI component with placeholder data and SFW/NSFW toggling. 4. The Chat Interface component, including the layout for multimodal buttons (Image, Voice, Video). Ensure all code is modular, well-commented, and ready to hook up to backend streaming endpoints.

AgeGateDiscoveryDashboardCharacterCreatorSubscriptionChat
AgeGate

Comments (0)

No comments yet. Be the first!

System Requirements

System Requirement Document
Page 1 of 5

Project-6c64f877 System Requirements Document

Source Content Inventory

1. Introduction

Project-6c64f877 aims to develop a comprehensive, production-ready AI Virtual Companion web application. This platform will feature discovery feeds, real-time AI chat, uncensored multimodal generation (including NSFW/adult text, image, and video), and user monetization. The application will be built using a specified tech stack and architecture to ensure modular, well-commented code for easy backend integration.

2. System Overview

The AI Virtual Companion web application will provide users with an immersive experience through real-time interactions with AI-generated companions. The system will support various features such as discovery feeds, multimodal chat interfaces, character creation, and user monetization. The application will be designed with a focus on responsiveness, security, and user engagement.

2a. Source Content Inventory

  • Reference Platform: Candy.ai for feature inspiration and enhancement.
  • Tech Stack & Architecture: Next.js, Tailwind CSS, Framer Motion, Zustand, FastAPI, WebSockets, PostgreSQL, Redis, AWS S3/Cloudflare R2, Stripe.
  • UI/UX & Content Guardrails: Deep dark mode with neon accents, age verification, responsive layout.
  • Core Features: Discovery engine, immersive chat interface, character creator studio, user dashboard, and monetization.
Page 2 of 5

3. Functional Requirements as Story Points

  • As a User, I should be able to view a dynamic banner highlighting "Trending Companions" or "New Arrivals" on the home page.
  • As a User, I should be able to filter and search for companions using category pills and toggle filters for SFW vs. NSFW content.
  • As a User, I should be able to view character cards displaying portraits, names, taglines, tags, and a "Chat Now" button.
  • As a User, I should be able to engage in uncensored real-time messaging with AI companions.
  • As a User, I should be able to request images, videos, and voice messages from the AI during chat sessions.
  • As a User, I should be able to create custom companions using a multi-step form.
  • As a User, I should be able to experience enhanced features inspired by Candy.ai, such as advanced personalization and interaction options.
  • As a User, I should be able to manage my virtual wallet and spend tokens on various requests.
  • As a User, I should be able to subscribe to premium tiers for additional benefits.

4. User Personas

  • Regular User: Engages with AI companions for entertainment and interaction.
  • Creator: Builds and customizes AI companions for personal use or sharing.
  • Subscriber: Accesses premium features and benefits through subscription tiers.

5. Core User Flows

  • User visits the home page -> views dynamic banner -> filters companions -> selects a companion -> initiates chat.
  • User engages in chat -> requests image/video/voice -> views generated media in the gallery.
  • User accesses the character creator studio -> completes the creation wizard -> saves or shares the companion.
  • User manages tokens -> purchases premium subscription -> accesses additional features.
Page 3 of 5

6. Visuals Colors and Theme

  • primary: #0D0D0D (Deep Black)
  • primary_light: #1A1A1A (Charcoal)
  • secondary: #FF007F (Electric Pink)
  • accent: #00FFFF (Cyan)
  • highlight: #FF00FF (Vibrant Purple)
  • bg: #121212 (Dark Gray)
  • surface: rgba(18, 18, 18, 0.8)
  • text: #FFFFFF (White)
  • text_highlight: #FFD700 (Gold) for special features inspired by Candy.ai
  • text_muted: #B0B0B0 (Muted Gray)
  • border: rgba(255, 255, 255, 0.2)

7. Signature Design Concept

Page 4 of 5

Interactive Neon Grid

The homepage will feature an interactive neon grid that responds to user interactions. As users hover over different sections, the grid will illuminate with vibrant neon colors, creating a dynamic and engaging experience. The grid will serve as a navigation tool, guiding users to different parts of the application.

Landing Hero Motion Brief: The hero section will showcase a dynamic transformation of a digital companion evolving through user interactions. Using motion/react, the animation will depict a companion's journey from creation to interaction, highlighting the application's core features. The animation will loop every 10 seconds, with interactive elements allowing users to explore different companion traits and features.

8. Interaction Model & Motion Direction

8. Interaction Model & Motion Direction

  • Intended Interaction Model: Parallax
  • Description: The landing page will use layered depth via scroll, with decorative neon elements translating at different speeds to create a visually rich first impression. Interactive elements will have hover transitions and spring physics for a polished user experience.

9. Non-Functional Requirements

  • The system must ensure secure data handling and storage, especially for NSFW content.
  • The application should be highly responsive and perform well on both mobile and desktop devices.
  • The platform must comply with legal requirements for age verification and content moderation.
Page 5 of 5

10. Tech Stack

  • Frontend: Next.js, Tailwind CSS, Framer Motion, Zustand
  • Backend: Python (FastAPI), WebSockets
  • Database: PostgreSQL, Redis
  • Storage: AWS S3 or Cloudflare R2
  • Payments: Stripe
  • Feature Enhancements: Integration of Candy.ai inspired features for advanced personalization and interaction.

11. Assumptions and Constraints

  • The application will primarily target users in the US, adhering to local regulations and standards.
  • The platform will require a stable internet connection for real-time interactions.
  • The tech stack is fixed as specified, with no substitutions allowed.

12. Glossary

  • NSFW: Not Safe For Work, referring to adult content.
  • LLM: Large Language Model, used for AI text generation.
  • TTS: Text-to-Speech, used for generating audio responses.
  • SFW: Safe For Work, referring to non-explicit content.
AgeGate design preview
AgeGate: Verify Age
Discovery: Browse Inspiration
CharacterCreator: Start Wizard
CharacterCreator: Set Persona
CharacterCreator: Set Prompts
CharacterCreator: Tag Content
CharacterCreator: Set Visibility
CharacterCreator: Save Companion
Chat: Test Companion
Dashboard: Manage Companions
Dashboard: View Tokens