Overview
ZapDev supports importing from two external sources to accelerate your development:- Figma - Import design files to generate matching UI code
- GitHub - Import existing repositories as a starting point
Importing from Figma
Transform Figma designs into functional code automatically.Prerequisites
- Figma account with access to the designs you want to import
- Design files in Figma (personal or team)
Import Process
Start Figma Import
From the project message form or home page:
- Click the download icon (⬇️)
- Select “Import from Figma”
Authorize ZapDev
On the Figma authorization page:
- Sign in to your Figma account (if not already signed in)
- Review the permissions requested:
- Read access to your files
- File metadata access
- Click “Allow access”
Select Design File
On the import page:
- Browse your Figma files and folders
- Select the design file you want to import
- Choose specific frames or entire pages (optional)
- Click “Import Design”
Processing
ZapDev will:
- Extract design elements (components, layouts, colors, typography)
- Analyze spacing, alignment, and hierarchy
- Generate framework-specific code
- Create components matching your design system
- PENDING - Import queued
- PROCESSING - Analyzing design
- COMPLETE - Code generated
- FAILED - Error occurred
What Gets Imported
Figma import converts:| Design Element | Code Output |
|---|---|
| Frames | Page components |
| Components | Reusable UI components |
| Text Styles | Typography CSS/classes |
| Color Styles | Color variables/theme |
| Auto Layout | Flexbox/Grid layouts |
| Images | Optimized image components |
| Icons | SVG components |
| Spacing | Margin/padding values |
Figma Import Settings
Customize import behavior:Best Practices for Figma Imports
Organize Designs - Use well-structured Figma files with clear component naming and proper Auto Layout.
Design System - Define text styles, color styles, and component variants in Figma for better code generation.
Frame Selection - Import specific frames rather than entire files for faster processing.
Iterate - Start with the basic import, then refine with conversational messages.
Importing from GitHub
Bring existing repositories into ZapDev to continue development with AI assistance.Prerequisites
- GitHub account
- Repository access (public or private)
Import Process
Start GitHub Import
From the message form:
- Click the download icon (⬇️)
- Select “Import from GitHub”
Authorize ZapDev
On the GitHub authorization page:
- Sign in to GitHub (if not already signed in)
- Review permissions:
- Repository access (read)
- File contents (read)
- Select repository access scope:
- All repositories - Access to all your repos
- Selected repositories - Choose specific repos
- Click “Authorize”
Select Repository
On the import page:
- Browse your repositories
- Filter by organization or personal repos
- Search by repository name
- Select the repository to import
- Choose branch (default: main)
Import Configuration
Configure import options:
- Include dependencies - Import package.json/dependencies
- Preserve structure - Maintain directory organization
- Framework detection - Auto-detect framework
Processing
ZapDev will:
- Clone repository contents
- Analyze project structure
- Detect framework and dependencies
- Import into project context
What Gets Imported from GitHub
| Repository Content | Import Behavior |
|---|---|
| Source files | Full import |
| Dependencies | package.json preserved |
| Configuration | Build configs imported |
| Assets | Images, fonts copied |
| .git folder | Excluded |
| node_modules | Excluded (reinstalled) |
| .env files | Excluded (security) |
GitHub Import Metadata
Best Practices for GitHub Imports
Clean Repository - Import well-organized repos with clear structure for best results.
Framework Compatibility - Ensure the repo uses a supported framework (Next.js, React, Vue, Angular, Svelte).
Up-to-date Dependencies - Modern dependency versions work better with AI generation.
Main Branch - Import from your main/master branch for stable code.
Managing Import Connections
View and manage your OAuth connections in project settings:Connected Accounts
See which services you’ve authorized:Revoking Access
To disconnect a service:Import Status Tracking
Monitor import progress:| Status | Meaning | Duration |
|---|---|---|
| PENDING | Queued for processing | 1-5 seconds |
| PROCESSING | Actively importing | 10-60 seconds |
| COMPLETE | Successfully imported | - |
| FAILED | Error during import | - |
Error Handling
If an import fails:- Check permissions - Verify OAuth access is still valid
- Review error message - Specific details in import record
- Retry import - Attempt import again
- Contact support - If issues persist
Unauthorized- OAuth token expired, re-authorizeFile not found- Figma file deleted or movedRepository access denied- GitHub permissions insufficientUnsupported framework- Repository uses unsupported framework
Import Attachments
Imports create attachments linked to messages:- Source icon (Figma/GitHub)
- File/repo name
- Import timestamp
- Link to source
Security and Privacy
Data Handling
- Figma designs - Design data extracted, not stored permanently
- GitHub code - Repository contents imported into project
- Tokens - Encrypted in Convex database
- User consent - Explicit authorization required
Troubleshooting
OAuth Authorization Fails
- Clear cookies - Clear browser cookies and try again
- Check account - Verify Figma/GitHub account is active
- Try different browser - Some extensions block OAuth
Import Stuck in Processing
- Wait - Large files may take time
- Refresh page - Check if status updated
- Retry - Cancel and start new import
Generated Code Doesn’t Match Design
- Iterate with messages - Refine through conversation
- Provide feedback - Describe specific differences
- Upload screenshots - Show expected vs. actual