AI-Powered 3D Product & Packaging Design Platform
Transform ideas into production-ready 3D models and custom packaging in minutes.
CRAFTO is an end-to-end AI design platform that bridges the gap between imagination and production. Using cutting-edge generative AI, it transforms simple text descriptions into:
- 3D Product Models โ Generate photorealistic 3D assets from text or images
- Custom Packaging โ Design professional packaging with AI-generated panel textures
- Interactive Previews โ Real-time 3D visualization with lighting and material controls
Whether you're a designer prototyping concepts, a marketer creating product mockups, or an entrepreneur visualizing ideas โ CRAFTO makes professional 3D design accessible to everyone.
- Text-to-3D Pipeline: Describe any product and watch it materialize in 3D
- Multi-Angle Synthesis: AI generates multiple views for accurate 3D reconstruction
- Iterative Editing: Refine models with natural language instructions
- Export Ready: Download production-ready GLB files
- Parametric Templates: Box and cylinder packaging with custom dimensions
- Industry Presets: Pre-configured sizes for common products (shoes, bottles, electronics)
- Panel-by-Panel AI Generation: Generate unique textures for each packaging face
- Live Dieline Editor: Visual feedback with UV-mapped texture placement
- 3D Preview: Real-time package visualization with product integration
- Trellis 3D Integration: State-of-the-art image-to-3D reconstruction via fal.ai
- Gemini Vision AI: Multi-modal image generation with style consistency
- Context-Aware Editing: AI maintains design coherence across iterations
- Caching System: Smart asset caching for instant load times
- Redis State Management: Seamless session persistence and recovery
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ CRAFTO Platform โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ Frontend (Next.js 15 + TypeScript + Three.js) โ
โ โโ Product Creation Flow โ
โ โโ Packaging Design Studio โ
โ โโ 3D Model Viewer (React Three Fiber) โ
โ โโ Real-time Chat Interface โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ Backend (FastAPI + Python) โ
โ โโ Product Pipeline Service โ
โ โ โโ Gemini Image Generation (Multi-View) โ
โ โ โโ Trellis 3D Model Synthesis โ
โ โ โ
โ โโ Packaging Generation Service โ
โ โ โโ Panel Texture Generation โ
โ โ โโ Dieline Processing โ
โ โ โโ UV Mapping & Export โ
โ โ โ
โ โโ State Management (Redis) โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ AI Services โ
โ โโ Google Gemini 3 Image (Multi-angle views) โ
โ โโ Trellis 3D Reconstruction (fal.ai) โ
โ โโ Context-aware prompt engineering โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Tech Stack:
- Frontend: Next.js 15, React Three Fiber, Radix UI, TailwindCSS
- Backend: FastAPI, Pydantic, Redis
- AI: Google Gemini 3 Image, Trellis (fal.ai)
- 3D: Three.js, GLB/GLTF, trimesh
- Infrastructure: Docker, Docker Compose
- Node.js 18+ and npm/yarn
- Python 3.11+
- Redis (local or cloud instance)
- API Keys:
- Google Gemini API Key (Get one here)
- fal.ai API Key (Get one here)
1. Clone the repository
git clone https://github.com/yourusername/CRAFTO.git
cd CRAFTO2. Backend Setup
cd backend
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Configure environment
cp env.example .env
# Edit .env with your API keys:
# FAL_KEY=your_fal_api_key
# GEMINI_API_KEY=your_gemini_api_key
# REDIS_URL=redis://localhost:6379/0
# Start the backend
uvicorn main:app --host 0.0.0.0 --port 8000 --reload3. Frontend Setup
cd frontend
# Install dependencies
npm install
# Start development server
npm run dev4. Access the Application
- Frontend: http://localhost:3000
- Backend API: http://localhost:8000
- API Docs: http://localhost:8000/docs
-
Navigate to Home: Enter a product description
"A modern ceramic coffee mug with a matte finish" -
Generate: Click "Create" and watch the AI work:
- ๐ผ๏ธ Generates multi-angle product views
- ๐จ Reconstructs 3D geometry from images
- โจ Produces a downloadable 3D model
-
Refine: Use the chat panel to edit:
"Make it blue with gold trim" "Add a geometric pattern"
- Select Package Type: Choose box or cylinder
- Set Dimensions: Use presets or custom measurements
- Generate Textures: Describe each panel:
"Minimalist design with brand logo and product showcase" - Preview in 3D: See your packaging in real-time
- Export: Download UV maps and 3D models
Backend (backend/.env):
# Required
FAL_KEY=your_fal_api_key_here
GEMINI_API_KEY=your_gemini_api_key_here
REDIS_URL=redis://localhost:6379/0
# Optional - Model Selection
GEMINI_PRO_MODEL=gemini-3-pro-image-preview
GEMINI_FLASH_MODEL=gemini-2.5-flash-image
GEMINI_IMAGE_SIZE=1K # Options: 1K, 2K, 4K
# Optional - Quality Settings
SAVE_ARTIFACTS_LOCALLY=false # Save all generations locally
DEMO_MOCK_MODE=false # Enable for presentations (no API calls)Frontend (frontend/next.config.ts):
// API endpoints auto-configured for localhost development
// Update for production deploymentRun the entire stack with Docker Compose:
cd backend
# Configure .env file first
cp env.example .env
# Edit .env with your API keys
# Start all services
docker-compose up -d
# View logs
docker-compose logs -f
# Stop services
docker-compose downServices:
- Backend API: http://localhost:8000
- Frontend: Configure separately or add to compose
CRAFTO/
โโโ backend/ # FastAPI backend
โ โโโ app/
โ โ โโโ core/ # Config, Redis, utilities
โ โ โโโ endpoints/ # API routes
โ โ โ โโโ product/ # Product generation API
โ โ โ โโโ packaging/ # Packaging design API
โ โ โ โโโ trellis/ # 3D generation API
โ โ โโโ integrations/ # External AI services
โ โ โ โโโ gemini.py # Google Gemini integration
โ โ โ โโโ trellis.py # Trellis 3D integration
โ โ โโโ models/ # Pydantic models
โ โ โโโ services/ # Business logic
โ โโโ tests/ # Test suite
โ โโโ main.py # FastAPI app entry
โ โโโ requirements.txt # Python dependencies
โ
โโโ frontend/ # Next.js frontend
โ โโโ app/ # App router pages
โ โ โโโ product/ # Product creation flow
โ โ โโโ packaging/ # Packaging designer
โ โ โโโ page.tsx # Home page
โ โโโ components/ # React components
โ โ โโโ ModelViewer.tsx
โ โ โโโ package-viewer-3d.tsx
โ โ โโโ dieline-editor.tsx
โ โ โโโ AIChatPanel.tsx
โ โโโ lib/ # API clients & utilities
โ โ โโโ product-api.ts
โ โ โโโ packaging-api.ts
โ โ โโโ model-cache.ts
โ โโโ package.json
โ
โโโ docs/ # Documentation
โโโ Packaging.plan.md
โโโ product_backend_plan.md
POST /product/createโ Generate new 3D productPOST /product/editโ Refine existing productPOST /product/trellis-onlyโ Convert pre-generated images to 3DGET /productโ Get current product stateGET /product/statusโ Poll generation status
POST /packaging/initializeโ Start packaging sessionPOST /packaging/panels/generateโ Generate panel texturePOST /packaging/panels/bulk-generateโ Generate multiple panelsGET /packaging/stateโ Get current packaging statePOST /packaging/exportโ Export packaging files
GET /healthโ Health checkGET /โ API welcome message
Full API documentation: http://localhost:8000/docs
cd backend
# Run all tests
pytest
# Run with coverage
pytest --cov=app tests/
# Run specific test file
pytest tests/test_product_pipeline.py -v- Text-to-3D product generation
- Iterative AI editing
- Box and cylinder packaging
- Panel-by-panel texture generation
- Real-time 3D preview
We welcome contributions! Here's how:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open a Pull Request
Please ensure:
- Code follows existing style conventions
- Tests pass (
pytestfor backend,npm testfor frontend) - Documentation is updated
- Google Gemini โ Multi-modal AI image generation
- Trellis (fal.ai) โ State-of-the-art image-to-3D reconstruction
- Three.js โ 3D rendering engine
- FastAPI โ High-performance Python web framework
- Next.js โ React framework for production
- Issues: GitHub Issues
- Discussions: GitHub Discussions
Built with โค๏ธ by the CRAFTO Team
Powering Your Imagination with AI