📱 Now available as a Progressive Web App (PWA)! Install on your mobile device for easy access anywhere.
Figura is a web application that helps photographers, artists, and directors plan their shots. By uploading a reference image and specifying the number of male and female subjects, Figura uses advanced AI to overlay a clean, minimalist white line art sketch onto your scene, providing a perfect posing guide without altering the original background.
- 📱 Progressive Web App: Install on your mobile device and use it like a native app
- 📸 Camera Integration: Take photos directly from your device camera
- 🖼️ Image Upload: Upload any reference photo or background scene
- 👥 Subject Specification: Choose the exact number of male and female subjects you want in the scene
- 🎨 AI-Powered Line Art: Generates a non-intrusive, white line sketch of the subjects posing naturally in your environment
- 🌄 Original Scene Preservation: The AI is strictly instructed to preserve your original background and lighting, only adding the pose instructions
↔️ Side-by-Side Comparison: Compare your original image with the generated posing guide- 💾 Download: Save the generated posing guide directly to your device
- ⚡ Offline Ready: Service worker caches assets for faster loading
- Frontend: React 19, Vite, Tailwind CSS, Framer Motion, Lucide React
- Backend: Node.js, Express (API Proxy)
- PWA: vite-plugin-pwa, Workbox (Service Worker)
- AI Models: Atlas Cloud API
- Nano Banana Pro (default)
- Nano Banana 2 (alternative option)
- Node.js (v18 or higher recommended)
- An Atlas Cloud API Key
-
Clone the repository:
git clone https://github.com/Alisa0808/Figura.git cd Figura -
Install dependencies:
npm install
-
Set up environment variables: Create a
.envfile in the root directory and add your Atlas Cloud API key:ATLAS_API_KEY=your_atlas_api_key_here
(Note: You can also enter your API key directly in the app's UI via the settings menu at the bottom of the screen).
-
Start the development server:
npm run dev
-
Open the app: Navigate to
http://localhost:3000in your browser.
- Click the upload area to select a background image, or tap "Take Photo" to use your camera.
- Use the "+" and "-" buttons to set the desired number of male and female subjects.
- Click "Generate Posing Guide".
- Wait for the AI to process the image.
- View the result, compare it with the original, and click "Download Guide" to save it.
Figura can be installed on your mobile device like a native app!
- Open the app in Safari
- Tap the Share button (square with arrow)
- Scroll and tap "Add to Home Screen"
- Tap "Add" - Figura will appear on your home screen!
- Open the app in Chrome
- Tap the menu (three dots)
- Tap "Add to Home screen" or "Install app"
- Confirm by tapping "Install"
Once installed, you can use Figura offline and access your device camera directly!
For detailed PWA information, see PWA-GUIDE.md.
This project is open-source and available under the MIT License.