Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
226 commits
Select commit Hold shift + click to select a range
264fe85
Merge pull request #1 from flxnaf/feature/supabase-auth
ShoAdachi01 Oct 26, 2025
280c1d2
Merge pull request #1 from flxnaf/feature/supabase-auth
ShoAdachi01 Oct 26, 2025
18bdaf0
Merge pull request #2 from flxnaf/feature/supabase-auth
ShoAdachi01 Oct 26, 2025
950f0b1
Merge pull request #2 from flxnaf/feature/supabase-auth
ShoAdachi01 Oct 26, 2025
81d2917
Add consent tracking fields and data persistence guide
flxnaf Oct 26, 2025
a10205e
Add consent tracking fields and data persistence guide
flxnaf Oct 26, 2025
f33e80d
Add consent dialog UI and API routes
flxnaf Oct 26, 2025
384dac6
Add consent dialog UI and API routes
flxnaf Oct 26, 2025
ecacef9
Fix build errors - add dynamic exports and Supabase fallbacks
flxnaf Oct 26, 2025
cc31d8c
Fix build errors - add dynamic exports and Supabase fallbacks
flxnaf Oct 26, 2025
30da29e
Fix Railway client-side exception - Add Supabase env validation
flxnaf Oct 26, 2025
b057859
Fix Railway client-side exception - Add Supabase env validation
flxnaf Oct 26, 2025
d1d0616
Fix middleware Supabase error - add env validation
flxnaf Oct 26, 2025
50a175b
Fix middleware Supabase error - add env validation
flxnaf Oct 26, 2025
94db1de
Add database migrations for Supabase PostgreSQL
flxnaf Oct 26, 2025
442c394
Add database migrations for Supabase PostgreSQL
flxnaf Oct 26, 2025
2d7c57f
Update Prisma schema to match UUID-based database schema
flxnaf Oct 26, 2025
097ea07
Update Prisma schema to match UUID-based database schema
flxnaf Oct 26, 2025
2951b55
Feature: Simplified photo capture, context builder tabs, and admin by…
flxnaf Oct 26, 2025
f28e5d7
Feature: Simplified photo capture, context builder tabs, and admin by…
flxnaf Oct 26, 2025
fe504b0
Fix: Skip consent dialog for admin bypass users
flxnaf Oct 26, 2025
66d3af2
Fix: Skip consent dialog for admin bypass users
flxnaf Oct 26, 2025
077028b
Fix: Admin bypass skips user creation and voice training
flxnaf Oct 26, 2025
4662bb7
Fix: Admin bypass skips user creation and voice training
flxnaf Oct 26, 2025
db7a4c1
Fix: Add initial context questions back and change button text
flxnaf Oct 26, 2025
9c1042e
Fix: Add initial context questions back and change button text
flxnaf Oct 26, 2025
5448bc0
Fix: Add admin bypass for photo upload and face processing
flxnaf Oct 26, 2025
c15cd23
Fix: Add admin bypass for photo upload and face processing
flxnaf Oct 26, 2025
4d52681
Feature: Enhanced JSON export and admin chat bypass
flxnaf Oct 26, 2025
f7d1e42
Feature: Enhanced JSON export and admin chat bypass
flxnaf Oct 26, 2025
990ca03
Update: Clarify JSON export includes all training data
flxnaf Oct 26, 2025
72fb7eb
Update: Clarify JSON export includes all training data
flxnaf Oct 26, 2025
c78333c
Feature: Dashboard, username-based auth, and clone browsing
flxnaf Oct 26, 2025
ac6904c
Feature: Dashboard, username-based auth, and clone browsing
flxnaf Oct 26, 2025
3cb1f86
Fix: Update auth to properly handle usernames
flxnaf Oct 26, 2025
10050a9
Fix: Update auth to properly handle usernames
flxnaf Oct 26, 2025
feeee0f
Rebrand: GhostJournal → Replik, focus on clone models
flxnaf Oct 26, 2025
6a64dcf
Rebrand: GhostJournal → Replik, focus on clone models
flxnaf Oct 26, 2025
bb8466c
Fix: Add logout button to consent loading screen
flxnaf Oct 26, 2025
32b8e2f
Fix: Add logout button to consent loading screen
flxnaf Oct 26, 2025
b3b2a31
Fix: Add direct URL for Prisma migrations
flxnaf Oct 26, 2025
b8c73b6
Fix: Add direct URL for Prisma migrations
flxnaf Oct 26, 2025
3acb542
Update env.template with DATABASE_URL and DIRECT_URL examples
flxnaf Oct 26, 2025
c52a438
Update env.template with DATABASE_URL and DIRECT_URL examples
flxnaf Oct 26, 2025
1d2b814
Add CodeRabbit configuration for auto-reviews
flxnaf Oct 26, 2025
4dbaf93
Add CodeRabbit configuration for auto-reviews
flxnaf Oct 26, 2025
956c5d1
Fix: Skip Prisma migrations during build
flxnaf Oct 26, 2025
5480a42
Fix: Skip Prisma migrations during build
flxnaf Oct 26, 2025
8513ea4
Add detailed error logging to consent API
flxnaf Oct 26, 2025
f8c52ca
Add detailed error logging to consent API
flxnaf Oct 26, 2025
6600dab
Fix: Add pgbouncer=true to prevent prepared statement errors
flxnaf Oct 26, 2025
83834da
Fix: Add pgbouncer=true to prevent prepared statement errors
flxnaf Oct 26, 2025
903d500
Fix: Add timeouts and fallback for voice training
flxnaf Oct 26, 2025
1cbcda4
Fix: Add timeouts and fallback for voice training
flxnaf Oct 26, 2025
6a86b5f
feat: Add account deletion and voice re-recording
flxnaf Oct 26, 2025
7840c6c
feat: Add account deletion and voice re-recording
flxnaf Oct 26, 2025
a862491
fix: Add missing error property to all setVoiceTraining calls
flxnaf Oct 26, 2025
d25587e
fix: Add missing error property to all setVoiceTraining calls
flxnaf Oct 26, 2025
1207505
fix: Add detailed error logging and filesystem fallback for storage
flxnaf Oct 26, 2025
8cd6779
fix: Add detailed error logging and filesystem fallback for storage
flxnaf Oct 26, 2025
587a001
debug: Remove storage fallback and add consent check logging
flxnaf Oct 26, 2025
b65b9c3
debug: Remove storage fallback and add consent check logging
flxnaf Oct 26, 2025
e68339a
fix: Add GET endpoint and improve personality data saving
flxnaf Oct 26, 2025
2e7bf7f
fix: Add GET endpoint and improve personality data saving
flxnaf Oct 26, 2025
273697b
fix: Add browser TTS fallback for when Fish Audio is unavailable
flxnaf Oct 26, 2025
68e3df7
fix: Add browser TTS fallback for when Fish Audio is unavailable
flxnaf Oct 26, 2025
8f5f642
fix: Ensure Fish Audio default voice works properly
flxnaf Oct 26, 2025
888ca40
fix: Ensure Fish Audio default voice works properly
flxnaf Oct 26, 2025
f101045
Feat: Add Minecraft export API and integration page
ShoAdachi01 Oct 26, 2025
59f1cb0
Feat: Add Minecraft export API and integration page
ShoAdachi01 Oct 26, 2025
426f343
Feat: Implement Minecraft Fabric mod for digital twin NPCs
ShoAdachi01 Oct 26, 2025
e15c83c
Feat: Implement Minecraft Fabric mod for digital twin NPCs
ShoAdachi01 Oct 26, 2025
35bc0e6
Database Setup
ShoAdachi01 Oct 26, 2025
2590674
Database Setup
ShoAdachi01 Oct 26, 2025
a70dc1c
Database RLS policy update
ShoAdachi01 Oct 26, 2025
6e03491
Database RLS policy update
ShoAdachi01 Oct 26, 2025
35e7b99
feat: Add Minecraft export API and integration page
ShoAdachi01 Oct 26, 2025
bb47ffa
feat: Add Minecraft export API and integration page
ShoAdachi01 Oct 26, 2025
ea33852
feat: Add clone download for Minecraft NPC import
flxnaf Oct 26, 2025
112968a
feat: Add clone download for Minecraft NPC import
flxnaf Oct 26, 2025
6e5c083
feat: Update Minecraft integration for NPC spawn eggs
flxnaf Oct 26, 2025
c53779e
feat: Update Minecraft integration for NPC spawn eggs
flxnaf Oct 26, 2025
adeb3d2
docs: Organize Minecraft mod docs into dedicated folder
flxnaf Oct 26, 2025
6192eef
docs: Organize Minecraft mod docs into dedicated folder
flxnaf Oct 26, 2025
d9ab008
fix: Use Supabase service role key for backend storage uploads
flxnaf Oct 26, 2025
5173b99
fix: Use Supabase service role key for backend storage uploads
flxnaf Oct 26, 2025
5e3f328
API Issue Fix
ShoAdachi01 Oct 26, 2025
a3283a5
API Issue Fix
ShoAdachi01 Oct 26, 2025
bacaed0
Merge remote changes: resolve storage.ts conflicts
ShoAdachi01 Oct 26, 2025
b52b2cb
Merge remote changes: resolve storage.ts conflicts
ShoAdachi01 Oct 26, 2025
fa9bdc5
fix: Handle remote Supabase URLs in voice cloning API
flxnaf Oct 26, 2025
c007ff5
fix: Handle remote Supabase URLs in voice cloning API
flxnaf Oct 26, 2025
f822a81
fix: Remove unused supabase parameter from uploadAudio call
flxnaf Oct 26, 2025
9db84c6
fix: Remove unused supabase parameter from uploadAudio call
flxnaf Oct 26, 2025
e5657b8
feat: Auto-delete audio files after voice training for privacy
flxnaf Oct 26, 2025
3c87b58
feat: Auto-delete audio files after voice training for privacy
flxnaf Oct 26, 2025
806f234
fix: Remove unused supabase parameter from uploadPhotos call
flxnaf Oct 26, 2025
7c1b732
fix: Remove unused supabase parameter from uploadPhotos call
flxnaf Oct 26, 2025
7d82f3b
feat: Add public/private clone visibility system
flxnaf Oct 26, 2025
b2a912b
feat: Add public/private clone visibility system
flxnaf Oct 26, 2025
2b73b55
docs: Add comprehensive clone sharing and download guide
flxnaf Oct 26, 2025
eb4bb61
docs: Add comprehensive clone sharing and download guide
flxnaf Oct 26, 2025
c4db4f2
Merge pull request #4 from flxnaf/minecraft-integration
ShoAdachi01 Oct 26, 2025
0eaa872
Merge pull request #4 from flxnaf/minecraft-integration
ShoAdachi01 Oct 26, 2025
b07c422
feat: Add Minecraft integration with voice playback
ShoAdachi01 Oct 26, 2025
a1a475e
feat: Add Minecraft integration with voice playback
ShoAdachi01 Oct 26, 2025
fb369d1
Merge branch 'main' into minecraft-integration
ShoAdachi01 Oct 26, 2025
aa9ada1
Merge branch 'main' into minecraft-integration
ShoAdachi01 Oct 26, 2025
175efa3
Merge pull request #5 from flxnaf/minecraft-integration
ShoAdachi01 Oct 26, 2025
905dd49
Merge pull request #5 from flxnaf/minecraft-integration
ShoAdachi01 Oct 26, 2025
e4f5601
refactor: Replace all emojis with Lucide React icons for cleaner UI
flxnaf Oct 26, 2025
9ff62d8
refactor: Replace all emojis with Lucide React icons for cleaner UI
flxnaf Oct 26, 2025
59d7ccb
fix: Critical bug fixes for clone visibility and audio recording
flxnaf Oct 26, 2025
b6592fb
fix: Critical bug fixes for clone visibility and audio recording
flxnaf Oct 26, 2025
457ea70
fix: Improve clone card button UI
flxnaf Oct 26, 2025
9573872
fix: Improve clone card button UI
flxnaf Oct 26, 2025
021e4a8
fix: Clone browser layout and button text wrapping
flxnaf Oct 26, 2025
21c8ae1
fix: Clone browser layout and button text wrapping
flxnaf Oct 26, 2025
f22c1f5
refactor: Complete redesign of clone cards for better UX
flxnaf Oct 26, 2025
daa02c6
refactor: Complete redesign of clone cards for better UX
flxnaf Oct 26, 2025
07e4416
fix: Add re-record voice button and fix default voice issue
flxnaf Oct 26, 2025
c6580f3
fix: Add re-record voice button and fix default voice issue
flxnaf Oct 26, 2025
1a63756
feat: Add emotion display badge to 3D face visualization
flxnaf Oct 26, 2025
3022469
feat: Add emotion display badge to 3D face visualization
flxnaf Oct 26, 2025
643329d
debug: Add detailed logging to /api/clones endpoint
flxnaf Oct 26, 2025
8d6c467
debug: Add detailed logging to /api/clones endpoint
flxnaf Oct 26, 2025
9080d73
feat: Display clone owner's name when browsing other clones
flxnaf Oct 26, 2025
54cc028
feat: Display clone owner's name when browsing other clones
flxnaf Oct 26, 2025
78d1584
debug: Add extensive logging to /api/speak for personality data
flxnaf Oct 26, 2025
26ce29b
debug: Add extensive logging to /api/speak for personality data
flxnaf Oct 26, 2025
40b133d
fix: Add personality refresh endpoint and extensive debugging
flxnaf Oct 26, 2025
e5e6c40
fix: Add personality refresh endpoint and extensive debugging
flxnaf Oct 26, 2025
7726f4d
Cleaning up old markdown files to organize documentation.
ShoAdachi01 Oct 26, 2025
31472f3
Cleaning up old markdown files to organize documentation.
ShoAdachi01 Oct 26, 2025
c2b1adf
Added Voice Playback
ShoAdachi01 Oct 26, 2025
e9637fc
Added Voice Playback
ShoAdachi01 Oct 26, 2025
0730d91
Cleaning Up Markdown
ShoAdachi01 Oct 26, 2025
6b5e418
Cleaning Up Markdown
ShoAdachi01 Oct 26, 2025
e1543f3
debug: Add UUID validation and detailed logging to identify invalid u…
flxnaf Oct 26, 2025
48a8d49
feat: Improve Dashboard UX with prominent Re-record Voice button
flxnaf Oct 26, 2025
810d14d
Merge main into minecraft-integration - resolve conflicts
ShoAdachi01 Oct 26, 2025
c8ea30b
Merge main into minecraft-integration - resolve conflicts
ShoAdachi01 Oct 26, 2025
2c0d00d
Merge pull request #6 from flxnaf/minecraft-integration
ShoAdachi01 Oct 26, 2025
d23aab9
feat: Update clone chat message + add extensive Railway debugging
flxnaf Oct 26, 2025
5c24762
fix: Edit Character button now properly skips to CloneTabs when audio…
flxnaf Oct 26, 2025
a080af2
debug: Add comprehensive logging for Railway data loading issues
flxnaf Oct 26, 2025
d07cd95
debug: Add detailed logging to Edit Character button flow
flxnaf Oct 26, 2025
e269408
fix: Remove deprecated serverComponentsExternalPackages from next.con…
flxnaf Oct 26, 2025
faef3eb
feat: Show initial context questions in Build Context tab
flxnaf Oct 26, 2025
920e47a
fix: Upload Fish Audio responses to Supabase Storage instead of files…
flxnaf Oct 26, 2025
0e31eac
fix: Add GET and DELETE handlers to /api/memory endpoint
flxnaf Oct 26, 2025
791c7c2
debug: Add extensive logging to track context flow on Railway
flxnaf Oct 26, 2025
f325c0e
fix: Use RAILWAY_PUBLIC_DOMAIN for internal API calls instead of loca…
flxnaf Oct 26, 2025
12a95b5
fix: Update clone chat messaging to show owner's name
flxnaf Oct 26, 2025
93c41f2
feat: Replace emojis with Lucide icons + fix bugs + add critique feature
flxnaf Oct 26, 2025
25fdc06
fix: Remove ALL remaining emojis - replace with Lucide icons
flxnaf Oct 26, 2025
3c6a7bb
fix: Make context updates (add/delete/critique) take effect immediately
flxnaf Oct 26, 2025
553fe05
fix: Remove ALL user-facing emojis - comprehensive cleanup
flxnaf Oct 26, 2025
17cd233
fix: Make Public button now persists state correctly
flxnaf Oct 26, 2025
427514a
feat: Improve clone download UX and navigation
flxnaf Oct 26, 2025
2f9dd62
feat: Add profile pictures from front-facing photos
flxnaf Oct 26, 2025
eed1f40
fix: Remove duplicate frontPhoto variable declaration
flxnaf Oct 26, 2025
1ea62a2
fix: Add photoUrls to Clone interface for TypeScript
flxnaf Oct 26, 2025
ea6210e
fix: Make AI responses natural and context-appropriate
flxnaf Oct 26, 2025
3f98974
debug: Add extensive logging to diagnose Edit Character and Public st…
flxnaf Oct 26, 2025
039ca30
fix: Check voiceModelId instead of audioUrl for setup completion
flxnaf Oct 26, 2025
3024c46
deploy: Force Railway rebuild to pick up voiceModelId fix
flxnaf Oct 26, 2025
aa19447
Add Minecraft username and skin integration
ShoAdachi01 Oct 26, 2025
85338f3
Remove Java heap dump file and update gitignore
ShoAdachi01 Oct 26, 2025
6f95313
Merge main into minecraft-integration
ShoAdachi01 Oct 26, 2025
372335e
Merge pull request #7 from flxnaf/minecraft-integration
ShoAdachi01 Oct 26, 2025
96d60cd
Update Digital Twin Type
ShoAdachi01 Oct 26, 2025
592ba27
Merge pull request #8 from flxnaf/minecraft-integration
ShoAdachi01 Oct 26, 2025
9a0e315
feat: Add context entry editing and remove duplicate download button
flxnaf Oct 26, 2025
dcd8f5b
docs: Enhance MINECRAFT_SETUP.md with Fish Audio API details
flxnaf Oct 26, 2025
7f4c6d0
Fixed MC Mod Issue
ShoAdachi01 Oct 26, 2025
29abe74
Merge pull request #9 from flxnaf/minecraft-integration
ShoAdachi01 Oct 26, 2025
bd4fd6c
Mod Bug Fix
ShoAdachi01 Oct 26, 2025
de1812e
Merge pull request #10 from flxnaf/minecraft-integration
ShoAdachi01 Oct 26, 2025
7695ac9
Audio fix - Digital Twin
ShoAdachi01 Oct 26, 2025
c8630ed
Fix
ShoAdachi01 Oct 26, 2025
a26deba
Minecraft mod: fix text wrapping, chat persistence, and AI name context
flxnaf Oct 26, 2025
0bf1c49
Fix text wrapping, implement MP3 audio player, improve skin loading
flxnaf Oct 26, 2025
4dfac5b
Fix spawn system with hybrid TwinEntity + fallback
ShoAdachi01 Oct 26, 2025
7f4d420
Merge pull request #11 from flxnaf/minecraft-integration
ShoAdachi01 Oct 26, 2025
584045d
Fix text wrapping, skin rendering, and audio playback
flxnaf Oct 26, 2025
3023afa
PLEASE
ShoAdachi01 Oct 26, 2025
f7c138c
Merge branch 'main' into minecraft-integration
ShoAdachi01 Oct 26, 2025
fcf823a
Merge pull request #12 from flxnaf/minecraft-integration
ShoAdachi01 Oct 26, 2025
94c890f
Fix skin sync with DataTracker and add extensive API debugging
flxnaf Oct 26, 2025
6f09555
Fix Java 17 path in gradle.properties
ShoAdachi01 Oct 26, 2025
f94bfd5
BETTER WORK THIS TIME
ShoAdachi01 Oct 26, 2025
ec00b56
Merge pull request #13 from flxnaf/minecraft-integration
ShoAdachi01 Oct 26, 2025
a393b96
MAJOR FIX: Use Fish Audio TTS API directly instead of pre-generated f…
flxnaf Oct 26, 2025
1c7b8ee
Add username change feature to settings
flxnaf Oct 26, 2025
98d7a1e
Fix username change and settings improvements
flxnaf Oct 26, 2025
db03bf8
REVERT: Use server-generated audio instead of calling Fish Audio API …
flxnaf Oct 26, 2025
71e2fa9
Error
ShoAdachi01 Oct 26, 2025
3aac4f8
Merge pull request #14 from flxnaf/minecraft-integration
ShoAdachi01 Oct 26, 2025
b5ca0af
Fix username persistence across database and Supabase Auth
flxnaf Oct 26, 2025
22ecd3b
Add extensive voice model ID debugging for Minecraft mod
flxnaf Oct 26, 2025
9ee310f
FIX: Use reference_id instead of voice_id for trained voice models
flxnaf Oct 26, 2025
0107441
FIX: Minecraft skin cache using unique hash instead of entity name
flxnaf Oct 26, 2025
8ee05e0
Add Google OAuth, password confirmation, and fix Supabase auth
flxnaf Oct 27, 2025
dca6401
Fix: Auto-create Prisma user record for Google OAuth signups
flxnaf Oct 29, 2025
40b5965
Fix OAuth redirect to use hardcoded production URL
flxnaf Oct 29, 2025
98b7723
Fix callback redirect to use production URL instead of request.url
flxnaf Oct 29, 2025
1420051
Add Inter font from next/font/google
flxnaf Oct 29, 2025
f91d8cb
Simplify Minecraft integration page
ShoAdachi01 Oct 29, 2025
7f26cd1
Clean up documentation and remove outdated references
ShoAdachi01 Oct 29, 2025
11731cf
Organize documentation into docs/ folder
ShoAdachi01 Oct 29, 2025
95ab63b
Remove admin bypass system from application
ShoAdachi01 Oct 29, 2025
de1a546
Merge pull request #16 from ShoAdachi01/main
ShoAdachi01 Oct 29, 2025
fb2e3ab
Add OSS licensing and security documentation
ShoAdachi01 Oct 29, 2025
e772833
Security: Remove hardcoded production URLs
ShoAdachi01 Oct 29, 2025
1938a58
Security: Add authentication to /api/speak endpoint
ShoAdachi01 Oct 29, 2025
995d4af
Update LICENSE to reflect team contribution
ShoAdachi01 Oct 29, 2025
2e91fef
Merge pull request #17 from ShoAdachi01/main
ShoAdachi01 Oct 29, 2025
ecc8a8f
Merge pull request #1 from flxnaf/main
ShoAdachi01 Oct 29, 2025
2758d00
Merge pull request #18 from ShoAdachi01/main
ShoAdachi01 Oct 29, 2025
d38967d
Merge pull request #2 from flxnaf/main
ShoAdachi01 Oct 29, 2025
2b84565
Merge pull request #19 from ShoAdachi01/main
ShoAdachi01 Oct 29, 2025
66d8f98
Fix clone browsing authentication: add better error logging and RLS d…
flxnaf Oct 30, 2025
2359ecb
Allow authenticated users to chat with public clones
flxnaf Oct 30, 2025
17b99ca
Update README.md
eddzhang Nov 4, 2025
0ce88b5
Update README.md
eddzhang Nov 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
language: en-US
early_access: false
reviews:
profile: chill
request_changes_workflow: false
high_level_summary: true
poem: false
review_status: true
collapse_walkthrough: false
auto_review:
enabled: true
drafts: false
base_branches:
- main
- master
- develop
chat:
auto_reply: true

102 changes: 102 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
# ==============================================================================
# REPLIK - Environment Variables Configuration
# ==============================================================================
# Copy this file to .env and fill in your actual values
# NEVER commit .env to git! (.gitignore already excludes it)
# ==============================================================================

# ------------------------------------------------------------------------------
# 🔐 SUPABASE CONFIGURATION (REQUIRED)
# ------------------------------------------------------------------------------
# Get these from: https://supabase.com/dashboard/project/_/settings/api

# Your Supabase project URL
NEXT_PUBLIC_SUPABASE_URL=https://your-project-ref.supabase.co

# Supabase Anon/Public Key (safe for frontend - respects Row Level Security)
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_DEFAULT_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.your-anon-key

# ⚠️ CRITICAL: Service Role Key (NEVER expose to frontend!)
# Only use in API routes server-side code
# This bypasses Row Level Security - handle with extreme care
SUPABASE_SERVICE_ROLE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.your-service-role-key

# ------------------------------------------------------------------------------
# 🗄️ DATABASE CONFIGURATION (REQUIRED)
# ------------------------------------------------------------------------------
# Get these from: https://supabase.com/dashboard/project/_/settings/database

# Database connection URL (pooled - for general use)
DATABASE_URL=postgresql://postgres.your-project-ref:YOUR_PASSWORD@aws-1-us-east-2.pooler.supabase.com:6543/postgres?pgbouncer=true

# Direct database URL (non-pooled - for migrations and special operations)
DIRECT_URL=postgresql://postgres:YOUR_PASSWORD@db.your-project-ref.supabase.co:5432/postgres

# ------------------------------------------------------------------------------
# 🤖 AI SERVICES (REQUIRED)
# ------------------------------------------------------------------------------

# Fish Audio API Key - For voice cloning and TTS
# Get your key from: https://fish.audio
# ⚠️ Costs: ~$0.15 per 1000 characters of speech
FISH_AUDIO_API_KEY=fa_your_fish_audio_key_here

# Anthropic Claude API Key - For AI personality and conversations
# Get your key from: https://console.anthropic.com/
# ⚠️ Costs: ~$0.015 per request (varies by model and token usage)
ANTHROPIC_API_KEY=sk-ant-your_anthropic_key_here

# ------------------------------------------------------------------------------
# 🎮 MINECRAFT INTEGRATION (OPTIONAL)
# ------------------------------------------------------------------------------

# API key for Minecraft mod to access /api/speak endpoint
# Generate a secure random string (e.g., use: openssl rand -hex 32)
# If not set, Minecraft mod users must be authenticated via Supabase
MINECRAFT_API_KEY=your_secure_random_api_key_for_minecraft_mod

# ------------------------------------------------------------------------------
# 🧠 VECTOR MEMORY (OPTIONAL - Chroma DB)
# ------------------------------------------------------------------------------
# For semantic memory search using ChromaDB
# If not set, will use simple keyword-based memory search

CHROMA_HOST=localhost
CHROMA_PORT=8000

# ------------------------------------------------------------------------------
# 🌐 AUTONOMOUS AGENTS (OPTIONAL - Fetch.ai)
# ------------------------------------------------------------------------------
# For AI agent marketplace integration (experimental feature)

FETCH_AI_API_KEY=your_fetch_ai_key_here

# ------------------------------------------------------------------------------
# 🚀 DEPLOYMENT (OPTIONAL)
# ------------------------------------------------------------------------------

# Base URL of your deployed application
# Used for OAuth redirects and external API calls
# Development: http://localhost:3000
# Production: https://your-domain.com
NEXT_PUBLIC_BASE_URL=http://localhost:3000

# Railway Public Domain (auto-set by Railway during deployment)
# Don't manually set this - Railway will inject it automatically
# RAILWAY_PUBLIC_DOMAIN=your-app.railway.app

# ------------------------------------------------------------------------------
# 📝 NOTES & SECURITY WARNINGS
# ------------------------------------------------------------------------------

# 1. NEVER commit this file with real values to git
# 2. Service Role Key should NEVER be exposed to the frontend
# 3. All NEXT_PUBLIC_* variables are exposed to the browser (public)
# 4. API keys have rate limits and costs - monitor your usage
# 5. Rotate keys regularly for production deployments
# 6. Use different keys for development vs production

# 📚 For more information:
# - Setup Guide: See README.md
# - Security: See SECURITY.md
# - Supabase Setup: See docs/SUPABASE_SETUP.md
31 changes: 31 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,34 @@ next-env.d.ts
# Test scripts with hardcoded API keys (NEVER commit these!)
test_fish*.sh

# Gradle (Minecraft mod build artifacts)
minecraft-mod/.gradle/
minecraft-mod/build/
minecraft-mod/.gradle/build/
minecraft-mod/*.jar
minecraft-mod/gradle/build/
.gradle/
.gradletasknamecache

# Python cache (for scripts)
__pycache__/
*.py[cod]
*$py.class
*.so
.Python

# Supabase local (if running locally)
.supabase/

# macOS additional files
.AppleDouble
.LSOverride
._*
Thumbs.db

# Additional sensitive file types
*.key
*.p12

*.hprof
AGENTS.md
167 changes: 0 additions & 167 deletions LANDING_PAGE_SUMMARY.md

This file was deleted.

21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2025 Replik Team

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading