Home Page
App Generation Modal
BigBox is a mobile-first Progressive Web App (PWA) that enables users to generate and run HTML micro-apps through an AI chat interface. Apps are executed in secure sandboxed iframes and stored locally using IndexedDB. The platform features an Android-style home screen interface optimized for mobile devices with full offline capabilities.
- AI-Generated Apps: Chat interface to create fully functional web apps
- Android-Style Interface: Mobile-optimized home screen with app grid
- Secure Sandbox Environment: Apps run in isolated iframes
- Offline-First: Full functionality without internet connection
- Progressive Web App: Installable on any device with modern browsers
- Local Storage: All data remains on device using IndexedDB
The project is organized as a monorepo with the following structure:
BigBox/
├── packages/
│ ├── bigbox-pwa/ # Main PWA Application
│ └── sandbox-manager/ # Core SDK for sandbox management
└── docs/ # Documentation
- HomeShell UI: Android-style interface with wallpapers, app grid, and dock
- SandboxManager SDK: Core library for managing and running sandboxed applications
- Service Worker: PWA capabilities and offline caching
- IndexedDB: Local storage for app data and generated content
- Frontend: React 18 + TypeScript + Vite
- Styling: Custom CSS with Android-inspired design
- PWA: Workbox Service Worker + Web Manifest
- Storage: IndexedDB with
idblibrary - Package Manager: pnpm workspace
- Build Tools: Vite with PWA plugin
- Installable: Add to home screen on any device
- Offline Support: Works without internet connection
- App-Like Experience: Fullscreen mode, no browser chrome
- Fast Loading: Service worker caching for assets
- Background Sync: Ready for future API integration
- Node.js 18+
- pnpm (recommended) or npm
# Clone the repository
git clone https://github.com/yourusername/BigBox.git
cd BigBox
# Install dependencies
pnpm install
# Start development server
pnpm --filter bigbox-pwa dev
# Access the app at http://localhost:5174/# Build for production
pnpm --filter bigbox-pwa build
# Preview production build
pnpm --filter bigbox-pwa previewBigBox comes with two modes for generating apps:
-
Demo Mode: Works without API keys and provides basic app templates
- Calculator
- Todo List
- Timer
-
Full AI Mode: Requires OpenAI API key
- Generates custom apps based on user prompts
- Full HTML/CSS/JavaScript capabilities
- Supports complex interactions and functionality
The core SDK (@bigbox/sandbox-manager) provides functionality for:
- Creating and storing sandboxes
- Running apps in secure iframes
- Managing lifecycle (start, pause, resume, stop)
- Content hashing for deduplication
- Event system for real-time updates
BigBox is designed mobile-first with:
- Responsive design with mobile breakpoints
- Touch-optimized interactions
- Android-style navigation and UI elements
- Fullscreen mode for app-like experience
- Install prompt for adding to home screen
- Sandbox Isolation: Apps run in iframes with restricted permissions
- Content Security: No external resource access by default
- Local Storage: All data stays on device
- Content Hashing: Integrity verification for generated apps
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.