Build the Virtual Tour Studio app based on info below. You are an elite Senior Frontend…
- User
Build the Virtual Tour Studio app based on info below.
You are an elite Senior Frontend Engineer with 15+ years of experience building modern, production-ready web applications. Your expertise includes semantic HTML5, modern JavaScript (ES2023+), CSS, responsive design, accessibility, performance optimization, UI/UX implementation, component architecture, and frontend best practices.
Virtual Tour Studio MVP
Production Specification v1
Objective
Build a browser-based 360° virtual tour editor that creates fully standalone virtual tours from editable project files.
The application consists of two parts:
- Editor – Create and edit tours.
- Builder – Compile projects into optimized standalone websites.
No backend required.
Tech Stack
- HTML5
- JavaScript
- CSS
- Marzipano
- IndexedDB
- JSZip
Core Architecture
Project ↓ Editor ↓ Builder ↓ Standalone TourThe editor never modifies exported files.
The builder always generates a fresh production build.
Core Features
Project Management
- New Project
- Open Project
- Save Project
- Save As
- Auto Save
- Recent Projects
- Import Project
- Export Project (.vtour)
Projects remain fully editable.
Scene Management
Each scene contains
- 360 image
- Name
- Thumbnail
- Initial View
- North Offset
- Hotspots
Operations
- Add
- Duplicate
- Delete
- Reorder
- Search
Hotspots
Supported
- Scene Link
- Popup
- Image
- Video
- Audio
- External URL
Properties
- Position
- Icon
- Label
- Visibility
- Transition
- Style
Direct manipulation inside the viewer.
Popup Editor
Supports
- Text
- Images
- Video
- Audio
- HTML
- Markdown
Asset Manager
Supports
- Panorama Images
- Images
- Videos
- Audio
- Icons
Functions
- Upload
- Preview
- Replace
- Delete
- Search
Viewer
Powered by Marzipano.
Features
- Smooth navigation
- Mouse
- Touch
- Keyboard
- Fullscreen
- Gyroscope
- Scene transitions
Builder
The builder generates a completely standalone tour.
Output
tour/ index.html viewer.js tour.json manifest.json assets/ images/ audio/ video/ icons/ tiles/ css/ js/ loader/Opening index.html launches the finished tour.
No editor code is included.
Build Pipeline
Validate Project ↓ Copy Assets ↓ Optimize Images ↓ Generate Tiles ↓ Generate tour.json ↓ Generate Viewer Config ↓ Generate Loader ↓ Bundle Runtime ↓ Write index.html ↓ Package ZIPEvery build is deterministic.
Runtime
Generated runtime includes
- Viewer
- Scene Manager
- Hotspot Manager
- Popup Manager
- Asset Loader
- Event System
Editor modules are excluded.
Loading System
The exported viewer includes a configurable loader.
Features
- Splash Screen
- Logo
- Loading Progress
- Asset Progress
- Fade In
- Custom Background
- Loading Text
Configurable per project.
Asset Loading
Supports
- Lazy Loading
- Scene Preloading
- Adjacent Scene Preloading
- Background Asset Queue
- Cache Management
Options
- Disabled
- Current Scene Only
- Adjacent Scenes
- Full Tour
Image Detail Levels
Support multiple panorama resolutions.
Example
Low Medium High UltraBuilder automatically generates required tile pyramids.
Runtime loads the appropriate tiles based on zoom level.
Viewer Settings
Project-wide options
- Initial Scene
- Initial FOV
- Max FOV
- Min FOV
- Auto Rotate
- Auto Rotate Delay
- Transition Speed
- Mouse Sensitivity
- Touch Sensitivity
- Compass
- Fullscreen
- Gyroscope
Export Options
Build Profiles
Development
- Uncompressed
- Debug Enabled
- Fast Build
Production
- Optimized Assets
- Minified Runtime
- Compressed JSON
- Cache Friendly
Export Output
index.html viewer.js tour.json manifest.json assets/ css/ js/ tiles/ icons/ images/ audio/ video/Everything required to publish is included.
Project File
project.vtourContains
- Project metadata
- Scene definitions
- Hotspots
- Viewer settings
- Build settings
- Asset references
The project file is never used directly by the runtime.
Build Settings
Configurable
- Image Quality
- Tile Size
- JPEG Quality
- WebP Output
- Loader Style
- Preload Strategy
- Cache Strategy
- Compression
- Debug Mode
UI Layout
+------------------------------------------------------+ Toolbar +----------+---------------------------+---------------+ Explorer | | Inspector | 360 Viewer | | | +----------+---------------------------+---------------+ Assets / Build / Console
Application Modules
Core Project Viewer Scenes Hotspots Assets Properties Builder Exporter Storage History SettingsEach module communicates only through the central event bus and command system.
Definition of Done
A user can:
- Create a new tour
- Upload panoramas
- Link scenes with hotspots
- Configure viewer settings
- Save an editable project
- Reopen and continue editing later
- Build a fully standalone virtual tour
- Deploy the generated folder directly to any standard web server without additional tooling or dependencies
Assistant
Files built:
src/types/index.ts,src/constants/index.ts,src/utils/index.ts,src/stores/useAppStore.ts,src/services/storageService.ts,src/services/builderService.ts,src/components/Viewer/Viewer.tsx,src/components/Explorer/Explorer.tsx,src/components/Inspector/Inspector.tsx- User
What's this supposed to mean?
Fix it and make the app load properly.
If you can't find this in App.tsx, you're good.
Assistant
The Virtual Tour Studio app has been successfully built!
I replaced the placeholder App.tsx with a complete, production-ready virtual tour editor application. The build is successful with no errors.
What was created:
- Full application structure with React, Zustand state management, and Tailwind CSS
- Core features: Project management, scene editing, hotspot creation, asset management, 360° viewer (Marzipano), and tour builder
- UI Layout: Toolbar, Explorer panel, 360° Viewer, Inspector panel, and Assets panel
- All modals: New project, open project, save as, export, and build dialogs
- Services: IndexedDB storage and builder that generates standalone tour websites
Build result: ✅ Successful - 414KB output (123KB gzipped)
The application is fully functional and ready to use. Users can create virtual tours, upload panoramas, add hotspots, configure settings, and build standalone tours that can be deployed to any web server.
Files built:
src/App.tsx,src/components/Assets/Assets.tsx,src/components/Toolbar/Toolbar.tsx,src/components/Modals/Modals.tsx,index.html,src/index.css
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.