How harshchhabra2612-glitch/ai_content_transformation works
ERA is a secure, document-grounded AI transformation platform. Users authenticate, upload a document, choose a transformation, generate and review an output, then edit or save it. The backend also documents isolated retrieval, optional visual extraction, media generation, and security controls. The README describes the processing stages; source-index references and excerpts support several implementation links, but unsampled modules are not treated as inspected.
Main entry points: main.py FastAPI endpoints · WorkspacePreview.tsx Workspace preview · transformation_engine.py Transformation engine · api.ts Frontend API client
Components 22
User experience
- Application routes
src/App.tsx - Workspace preview
src/pages/WorkspacePreview.tsx - Output previews
src/components/previews.tsx - Frontend API client
src/services/api.ts
Identity and workspace
- Workspace state
src/context/AppContext.tsx - Authentication state
src/context/AuthContext.tsx - Firebase services
src/services/firebase.ts - File and output records
src/services/firestoreService.ts
Document processing
- FastAPI endpoints
backend/backend/main.py - Document parser
backend/backend/document_parser.py - Visual extraction
backend/backend/ocr/ocr_engine.py - Vector retrieval
backend/backend/vector_store.py - Document intelligence
backend/services/agents/document_intelligence.py
AI and media generation
- Transformation engine
backend/backend/transformation_engine.py - Transformation prompts
backend/backend/transformation_prompts.py - Presentation generation
backend/backend/presentation_engine.py - Image and video generation
backend/services/gemini_media.py - AI gateway
backend/services/ai_gateway.py
Security and governance
- AI safety checks
backend/backend/security/ai_guardrails.py - File validation
backend/backend/security/file_validator.py - Backend user services
backend/backend/security/users.py
Other components
- User
Connections 24
- User → Application routes: uses
src/App.tsx - Application routes → Workspace preview: routes to
src/App.tsx - Workspace preview → Frontend API client: requests transformations
src/pages/WorkspacePreview.tsx - Workspace preview → Output previews: renders output
src/pages/WorkspacePreview.tsx - Workspace preview → Workspace state: uses workspace state
src/pages/WorkspacePreview.tsx - Workspace state → Frontend API client: calls
src/context/AppContext.tsx - Workspace state → File and output records: saves output
src/context/AppContext.tsx - User → Authentication state: signs in
src/context/AuthContext.tsx - Authentication state → Firebase services: authenticates with
src/context/AuthContext.tsx - Authentication state → Frontend API client: syncs profile
src/context/AuthContext.tsx - Frontend API client → FastAPI endpoints: calls API
README.md - FastAPI endpoints → File validation: validates files
backend/backend/main.py - FastAPI endpoints → Document parser: parses documents
backend/backend/main.py - Document parser → Visual extraction: uses when required
README.md - FastAPI endpoints → Vector retrieval: indexes and retrieves
backend/backend/main.py - FastAPI endpoints → Document intelligence: delegates document work
backend/backend/main.py - FastAPI endpoints → Transformation engine: generates transformations
backend/backend/main.py - Transformation engine → AI safety checks: checks input and output
backend/backend/transformation_engine.py - Transformation engine → Transformation prompts: builds prompt
backend/backend/transformation_engine.py - Transformation engine → AI gateway: requests generation
backend/backend/transformation_engine.py - FastAPI endpoints → Presentation generation: routes presentation work
backend/backend/main.py - Presentation generation → AI gateway: requests generation
backend/backend/presentation_engine.py - FastAPI endpoints → Image and video generation: routes media generation
backend/backend/main.py - FastAPI endpoints → Backend user services: uses user services
backend/backend/main.py