| Layer | Technologies |
|---|---|
| The Brain | |
| The ML Engine | |
| The Face | |
| The Graph |
- User Authentication: Secure JWT-based register/login system with password hashing via bcrypt.
- Persistent Analysis Storage: Save, load, and manage multiple lore analyses per user in PostgreSQL.
- Multiversal Clustering: Characters are automatically grouped into "Solar Systems" based on their source work (e.g., FNAF 1 vs. FNAF 2).
- Star Magnitude: Characters with more connections glow brighter and appear larger using Degree Centrality metrics.
- Bridge Detection: Characters appearing in multiple works are rendered with Multi-Segment Segmented Coronas, visually showing their multiversal history.
- AI Case Files: Click a node to decrypt a character's dossier, including an AI-generated biography and mission history, rendered with rich Markdown support.
- π€ ML Relationship Predictor: AI-powered relationship type prediction using Random Forest classifier (87.5% accuracy on 20 relationship types). When creating new connections, the system suggests the most likely relationship type with confidence scoring.
- π Analytics Dashboard: Databricks SQL dashboards showing KPI metrics, character connectivity analysis, relationship type distribution, work comparisons, user activity timelines, and centrality distributions.
- Fluid Physics Engine: Real-time collision detection and spring-forces create a "liquid" movement feel when adding new lore.
- Procedural Starfield: A native 20,000-point 3D background for a cinematic immersive experience.
- Python 3.10+
- Node.js 18+
- Docker & Docker Compose
- Google Gemini API key
-
Clone & Setup Backend:
cd backend python -m venv venv venv\Scripts\activate # Windows pip install -r requirements.txt
-
Setup Environment Variables:
# backend/.env GEMINI_API_KEY=your_gemini_key_here # Optional: Databricks Analytics DATABRICKS_HOST=your_workspace_url DATABRICKS_HTTP_PATH=your_cluster_path DATABRICKS_TOKEN=your_pat_token DATABRICKS_CATALOG=lore_graph DATABRICKS_SCHEMA=analytics DATABASE_URL=postgresql://loreuser:lorepass@localhost:5432/loredb SECRET_KEY=your-secret-key-change-in-production
-
Start PostgreSQL Docker Container:
docker-compose up -d
-
Run Backend Server:
cd backend uvicorn main:app --reload -
Setup Frontend:
cd frontend npm install npm run dev -
Access Application:
- Frontend: http://localhost:5173
- API Docs: http://127.0.0.1:8000/docs
- While editing: Click "Add Connection" under a character's dossier
- Select target: Choose another character from the dropdown
- View prediction: The AI suggests the relationship type with a confidence percentage
- Modify if needed: Accept the suggestion or choose a different relationship type
- Confirm: Click "Create Connection" to add it to your graph
- Go to Databricks Workspace: Access your Databricks SQL Warehouse
- View SQL Queries: 6 pre-built queries available in the workspace
- Track Metrics: Monitor character connectivity, analysis trends, and graph growth over timeect Gutenberg by ID
- View the 3D Graph as characters and relationships materialize
- Click nodes to view character dossiers
- Delete systems by clicking the β next to their name
- Click "πΎ Save Analysis" after building your graph
- Name your analysis and add notes
- Click "π Load Analysis" to browse your saved work
- Load an analysis to restore it and continue exploring
id- UUID primary keyusername- Unique username
- lore_analyses - Analysis metadata synced from PostgreSQL (user_id, names, total_characters, total_relationships)
- lore_characters - Character data with graph metrics (analysis_id, name, degree_centrality, work_source, description)
- lore_relationships - Relationship data for analytics (analysis_id, source_id, target_id, relationship_type, work_source)
email- Unique email addresshashed_password- Bcrypt hashcreated_at- Timestamp
id- UUID primary keyuser_id- Foreign key to usersname- Analysis titledescription- User notesnodes- JSON array of graph nodeslinks- JSON array of graph edgeswork_meta- JSON object with system metadata (colors, positions)created_at,updated_at- Timestamps
and custom scrollbars
- β NEW: ML Relationship Predictor with 87.5% accuracy on 20 relationship types
- β NEW: Databricks Analytics with Delta Lake table syncing and 6 SQL dashboard queries
- β NEW: Async/Non-blocking Backend - Databricks writes happen in background threads, API never hangs
- β Full 3D force-directed graph visualization with 20k-point starfield
- β Character extraction & relationship mapping via Google Gemini 2.5 Flash
- β Interactive node selection with smooth camera transitions
- β Rich character dossiers (showing ML predictions in action)
- π Deployment (Backend to Render/Railway, Frontend to Vercel)
- π± Mobile responsiveness (lower priority)
- π Advanced analytics queries and visualization customization
Developed Solo in 36 Hours for Hacklytics 2026 - Entertainment Track *Featuring AI-powered lore extraction, graph visualization, and ML relationship prediction.
- β Cyberpunk UI with Tailwind theming
- β Comprehensive error handling and user feedback
- π¬ Demo video walkthrough
- π Deployment (Backend to Render/Railway, Frontend to Vercel)
- π± Mobile responsiveness (lower priority)
- π Optional: Databricks integration for advanced analytics
Developed Solo in 36 Hours for Hacklytics 2026.
