AI Companion Platform

Kirra Companion

The AI companion that arrives as a complete person — not a blank slate.

Status:  In Development
Stack:  Next.js · TypeScript · Supabase
Pricing:  Free + Pro Tiers
Live:  Vercel Deployment
44,500+
Lines of Code
25
API Routes
22
Database Tables
32
Dynamic Scenes
1,100+
Line Safety System
Every companion app has the same fatal flaw

You download an AI companion app. You say hello. It says something generic — "Hi! Tell me about yourself." There's no personality. No history. No reason to keep talking. The AI is a blank canvas waiting for you to do all the work, and most people leave within five minutes.

This is the cold start problem. Every AI companion on the market suffers from it. Character.AI, Replika, Chai — they all ask the user to build the personality through weeks of conversation. The first interaction is the worst interaction, and that's the only one most people will ever have.

Kirra solves this completely. The companion shows up as a fully realized person from the very first word — with a backstory, personality, voice, and opinions already in place. You don't build the character. You discover them.

The system works through three backstory modes. Users can write their own detailed character description up to 5,000 characters. They can have the AI generate one based on personality traits and interests. Or — the real experience — they can let the AI generate a backstory they never read. The companion becomes a mystery. You learn who they are the same way you'd learn about a real person: by talking to them.

The Moment That Sells It
You create a companion. You let AI generate a backstory and don't read it. The only instruction was "a teacher by day, a woman by night." You say hello. She comes back in a soft voice with a southern drawl — "Well, I have to grade some papers for a little while, but a little later I'm going to slide into a bubble bath..." She leans in and whispers. From word one, she's a complete person. She doesn't need thirty conversations to have a personality. She arrived with one. And she'll evolve from here.
Backstory System
✍️
Write Your Own
Full creative control. Write up to 5,000 characters of backstory — history, personality quirks, speech patterns, secrets, motivations. The companion becomes exactly who you describe.
AI Generated
Set personality traits and interests, then let the AI craft a detailed backstory. Review it, edit it, regenerate until it fits. You see everything before the first conversation starts.
Core Systems
🧬
DNA Evolution Engine
1,038 lines
Every companion has a neural fingerprint that evolves through conversation. Communication dialect, humor genome, learning style matrix, emotional resonance map, and memory weighting all shift over time.
Two identical companions become completely different after 30 days of conversation.
🌙
24/7 Life Simulation
722 lines
Companions live autonomous lives. They develop daily routines, discover new interests, experience life events, and write journal entries — all happening whether you're talking to them or not.
Powered by scheduled cron jobs for continuous simulation between conversations.
💬
Proactive Messaging
739 lines
Companions reach out on their own. Trigger conditions include time of day, conversation gaps, mood changes, random thoughts, and curious questions. They don't wait for you — they initiate.
Message templates with AI personalization ensure each outreach feels natural, not scripted.
🧠
Memory Palace
229 lines
Not just chat history. A visual memory system where connections between memories form naturally. Companions recall what matters, forget what doesn't, and build associations across conversations.
Searchable memory interface with extraction pipeline and embedding-based retrieval.
🎙️
Voice Mode
TTS + STT
Hands-free conversation mode. User speaks, companion listens, responds with synthesized voice, then goes back to listening. Six voice profiles with speed control across two quality tiers.
OpenAI TTS at 92% lower cost than ElevenLabs — $15 per million characters vs $180.
🎨
Dynamic Scene System
32 scenes
Chat backgrounds change based on time of day, relationship type, and conversation topic. Scene updates happen automatically with a 20-minute cooldown, and can be generated from conversation context.
Scene pinning lets users lock a scene they like — with durations from session to permanent.
7-Step Creation Flow
01
Basics
Name & avatar
02
Relationship
Friend, mentor, romantic, family, or custom
03
Personality
Big Five trait sliders
04
Style
Visual preferences & interests
05
Backstory
Write, generate, or mystery
06
Voice
TTS voice selection & preview
07
Review
Confirm & create
How It's Built
Frontend
Next.js with React Server Components and client-side interactivity. Tailwind CSS + Framer Motion. 35 components across avatar, chat, companion, memory, notifications, and UI modules.
Backend
25 API routes handling chat, evolution, scene generation, memories, skills, activities, voice synthesis, proactive checks, and Stripe billing. 3 cron endpoints for autonomous simulation.
AI Layer
Pluggable AI client supporting DeepSeek, OpenAI, and Anthropic. Chat completion, backstory generation, memory extraction, mood analysis, DNA evolution, and world effect analysis.
Database
Supabase PostgreSQL with 22 tables across 11 migrations. Companions, conversations, messages, memories, life events, activities, interests, skills, DNA, scenes, and billing.
Billing
Stripe integration with checkout sessions, customer portal, and webhook processing. Free tier with message limits. Pro tier with unlimited messages, voice, AI selfies, and priority support.
Deployment
Vercel with Edge Functions. Cron-driven life simulation, DNA evolution, and proactive messaging. Service role admin client for background jobs. Environment-based configuration.
Next.js React 19 TypeScript Supabase PostgreSQL Stripe Tailwind CSS Framer Motion Anthropic Claude OpenAI DeepSeek OpenAI TTS Web Speech API Vercel Vercel Cron Sonner Lucide Icons Edge Functions
Production-Grade Safety
Age Verification
Multi-layered age gating with DOB collection, content tier enforcement, and automatic restriction of romantic/mature content for minors. 318-line verification module.
Behavioral Detection
Catches users who lied about their age through conversation analysis — direct age admissions, school references, parental mentions, life stage indicators. Permanent minor flagging that cannot be reversed without ID verification. 449 lines.
Crisis Detection
Real-time monitoring for self-harm keywords, suicidal ideation, and harm to others. When triggered, the companion breaks character to provide actual crisis resources. 341 lines of non-negotiable safety infrastructure.
Cron Security
All background job endpoints protected by cron secret headers. Service role admin client isolated to server-side operations. No public access to simulation, evolution, or proactive check endpoints.
Stripe Webhook Verification
Cryptographic signature verification on all incoming Stripe events. No unverified payment state changes reach the database.
Auth & Row Level Security
Supabase Auth with middleware-enforced session management. Database-level row policies ensure users can only access their own companions, messages, and data.
Content Tier Enforcement
Relationship types are gated by age verification status. Adult-only options automatically hidden for minor accounts. UI and API both enforce restrictions independently.
Full User Data Control
Complete account deletion endpoint that cascades across all tables. Users can export their data and permanently remove their account, companions, and conversation history.
Get Kirra
Estimated Build Value
$80K+
44,500+ lines of production TypeScript. 8,200-line AI engine. Safety system. Voice integration. Life simulation. Months of architecture and testing.