LoraFrame (formerly Invitro Frontend) is a cutting-edge web interface for a professional Generative AI engine. It is designed to empower creators with persistent character identity management, high-fidelity image generation, and motion video synthesis.
The core experience resides in the Studio Dashboard, a cinematic interface for advanced generation tasks:
- TechHUD: Real-time holographic overlay displaying GPU status, neural credits, and job queues.
- Director Panel: A sophisticated command center for inputting prompts and controlling generation parameters.
- Timeline: A visual history of your generated assets (images & videos), allowing for easy review and iteration.
Maintain character consistency across thousands of generations with the Cast Locker:
- Identity Persistence: Upload reference images to create "Cast Members". The system extracts and locks onto facial features.
- Memory Health: Real-time monitoring of "Neural Health" (vector integrity) for each character.
- Auto-Recalibration: Tools to re-extract and fix identity vectors if generation drift occurs.
- Immersive Design: Built on a dark, cyberpunk-inspired aesthetic with glassmorphism, glowing accents, and smooth animations using Framer Motion.
- WebGL Effects: The landing page (
DashFront) features dynamic background layers, deep space starfields, and holographic previews. - Responsive Layout: Fully responsive interface that adapts to various screen sizes.
- Frontend Framework: React 19
- Build Tool: Vite
- Styling:
- TailwindCSS v4 (latest engine)
- Framer Motion (Animation)
- Lucide React (Icons)
- Routing:
react-router-dom(HashRouter for robust client-side routing) - State Management: React Context (
StudioContext) - Notifications:
react-toastify
- Node.js (v18 or higher recommended)
- npm or yarn
-
Clone the repository
git clone <repository-url> cd INVITRO_FRONTEND
-
Install dependencies
npm install
-
Environment Setup Create a
.envfile in the root directory:VITE_API_BASE_URL=http://localhost:8000 # Replace with your backend URL
-
Run Development Server
npm run dev
npm run buildThe robust generateStoryboard function handles the complex lifecycle of an AI job:
- Identity Refresh: Automatically calls
/api/v1/characters/{id}/reextract-identityto ensure the character's face vector is current. - Job Dispatch: Sends the prompt and configuration to
/api/v1/generate. - Polling: Continuously checks
/api/v1/jobs/{id}until the status issuccessorfailed. - Video Synthesis: If video mode is active, it chains a subsequent call to
/api/v1/generate-video-from-imageafter the initial image is ready.
The application uses HashRouter to prevent 404 errors on refresh when hosted on static file servers or environments without server-side rewrite rules.
/: Landing Page (Cinematic Intro)/Tool: Main Studio Dashboard (requiresStudioContext)/auth: Authentication Gate
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Powered by Invitro Engine & DeepCine Technology