# pausegui/free-360-panoramic-viewer-virtual-tour-html architecture

> Architecture diagram of the GitHub repository pausegui/free-360-panoramic-viewer-virtual-tour-html, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pausegui/free-360-panoramic-viewer-virtual-tour-html
- Repository: https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html

## Overview

#### Purpose and Entry Points
A browser-only builder and player for interactive 360° virtual tours. It requires no backend, database, or build process: users open a standalone HTML file locally or serve it as static content. The language-specific entry points are:
- `index.html` — English builder/exporter
- `index_es.html` — Spanish builder/exporter

#### Single-File Application Boundary
Each entry HTML file contains the application UI, client-side logic, and dependencies needed to author tours. The repository has no separate source modules, server code, asset directories, or deployment manifests. Consequently, editing, rendering, persistence, and export are all coupled within each standalone document:
- `index.html`
- `index_es.html`

#### Tour Authoring Model
The author imports 2:1 equirectangular panorama images and configures a tour as a collection of rooms/scenes. Authoring controls support:
- scene-to-scene arrow links and entry-camera orientation;
- titles, room descriptions, logo, branding colors;
- informational hotspots;
- an optional uploaded floor-plan/minimap with location/radar markers.

The editor sidebar is described as the primary authoring surface, while the panorama viewport provides visual placement and preview:
- `index.html`
- `index_es.html`

#### Panorama Rendering and Navigation
Pannellum is the WebGL panorama runtime. It renders the active equirectangular scene, accepts camera orientation changes, and supports navigation through configured room connections. Entry direction is either explicitly authored (“landing view”) or calculated to preserve a north-oriented spatial view. This renderer is entirely client-side and embedded/loaded by the HTML applications:
- `index.html`
- `index_es.html`

#### Local Processing and Project State
Image processing occurs in the browser after drag-and-drop or upload. Tour configuration and uploaded media must remain available in browser memory and/or serialized project data so users can continue editing and generate deliverables. There is no repository evidence of remote storage, authentication, APIs, or collaboration services:
- `index.html`
- `index_es.html`

#### Export Pipeline
The application produces two portable deliverables: a clean static tour-player HTML for viewers and an editable administrator project HTML retaining the editing sidebar/configuration. JSZip provides browser-side archive generation where packaging is required. Exported tours can be opened locally, emailed, or deployed unchanged to static hosting:
- `index.html`
- `index_es.html`

#### Runtime and Deployment
Runtime requirements are a modern browser with WebGL and local file capabilities. Key external libraries are Pannellum, Tailwind CSS, and JSZip. The generated player is static and can be hosted on GitHub Pages, Vercel, S3, Firebase Hosting, Netlify, or conventional shared hosting; none are required for authoring:
- `index.html`
- `index_es.html`

Main entry points: [`index.html`](https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index.html) (Tour project state), [`index_es.html`](https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index_es.html) (Spanish builder/exporter)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_authoring["Standalone authoring apps"]
  node_en_entry["English builder/exporter<br/>standalone HTML app<br/>[index.html]"]
  node_es_entry["Spanish builder/exporter<br/>standalone HTML app<br/>[index_es.html]"]
  node_editor_sidebar["Editor sidebar<br/>authoring UI<br/>[index.html]"]
  node_panorama_viewport["Panorama viewport<br/>visual editor<br/>[index.html]"]
end

subgraph group_browser["Browser runtime"]
  node_media_import["Image import<br/>browser file input<br/>[index.html]"]
  node_local_processing["Local image processing<br/>browser processing<br/>[index.html]"]
  node_tour_project["Tour project state<br/>in-memory / serialized data<br/>[index.html]"]
  node_scene_model["Scene connections<br/>tour navigation model<br/>[index.html]"]
  node_pannellum{{"Pannellum<br/>WebGL panorama runtime<br/>[index.html]"}}
  node_hotspots_minimap["Hotspots and minimap<br/>tour overlays<br/>[index.html]"]
  node_export_builder["Export builder<br/>client-side generator<br/>[index.html]"]
  node_jszip{{"JSZip<br/>browser archive library<br/>[index.html]"}}
end

subgraph group_delivery["Portable deliverables"]
  node_player_html["Static tour player<br/>generated HTML<br/>[index.html]"]
  node_admin_html["Editable admin project<br/>generated HTML<br/>[index.html]"]
  node_static_hosting["Local file or static host<br/>deployment target"]
end

node_en_entry -->|"contains"| node_editor_sidebar
node_es_entry -.->|"localized equivalent"| node_editor_sidebar
node_en_entry -->|"contains"| node_panorama_viewport
node_editor_sidebar -->|"imports media"| node_media_import
node_media_import -->|"processes locally"| node_local_processing
node_local_processing -->|"stores media and config"| node_tour_project
node_editor_sidebar -->|"edits"| node_tour_project
node_tour_project -->|"defines"| node_scene_model
node_scene_model -->|"drives navigation and camera"| node_pannellum
node_tour_project -->|"configures"| node_hotspots_minimap
node_pannellum -->|"renders"| node_panorama_viewport
node_hotspots_minimap -->|"overlays"| node_panorama_viewport
node_tour_project -->|"exports"| node_export_builder
node_export_builder -->|"packages when needed"| node_jszip
node_export_builder -->|"generates"| node_player_html
node_export_builder -->|"generates"| node_admin_html
node_player_html -->|"opens or deploys unchanged"| node_static_hosting
node_admin_html -->|"opens locally or deploys"| node_static_hosting

click node_en_entry "https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index.html"
click node_es_entry "https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index_es.html"
click node_editor_sidebar "https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index.html"
click node_panorama_viewport "https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index.html"
click node_media_import "https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index.html"
click node_local_processing "https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index.html"
click node_tour_project "https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index.html"
click node_scene_model "https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index.html"
click node_pannellum "https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index.html"
click node_hotspots_minimap "https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index.html"
click node_export_builder "https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index.html"
click node_jszip "https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index.html"
click node_player_html "https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index.html"
click node_admin_html "https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index.html"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_en_entry,node_es_entry,node_editor_sidebar,node_panorama_viewport toneBlue
class node_media_import,node_local_processing,node_tour_project,node_scene_model,node_pannellum,node_hotspots_minimap,node_export_builder,node_jszip toneAmber
class node_player_html,node_admin_html,node_static_hosting toneMint
```

## Components

### Standalone authoring apps

Each HTML document contains its own UI, logic, and embedded dependencies.

- [English builder/exporter](https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index.html): standalone HTML app · `index.html`
- [Spanish builder/exporter](https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index_es.html): standalone HTML app · `index_es.html`
- [Editor sidebar](https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index.html): authoring UI · Primary surface for scene and branding configuration. · `index.html`
- [Panorama viewport](https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index.html): visual editor · Places links and hotspots while previewing scenes. · `index.html`

### Browser runtime

All processing, rendering, state, and export occur locally.

- [Image import](https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index.html): browser file input · Accepts dropped or uploaded equirectangular panoramas and floor plans. · `index.html`
- [Local image processing](https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index.html): browser processing · `index.html`
- [Tour project state](https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index.html): in-memory / serialized data · Stores scenes, media, links, hotspots, minimap, and branding. · `index.html`
- [Scene connections](https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index.html): tour navigation model · Defines room links and landing camera orientation. · `index.html`
- [Pannellum](https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index.html): WebGL panorama runtime · Renders active equirectangular scenes and applies camera navigation. · `index.html`
- [Hotspots and minimap](https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index.html): tour overlays · Provides information points plus optional floor-plan location and radar markers. · `index.html`
- [Export builder](https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index.html): client-side generator · Creates clean player and editable administrator HTML outputs. · `index.html`
- [JSZip](https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index.html): browser archive library · Packages exports when an archive is required. · `index.html`

### Portable deliverables

Generated files require only static hosting or local opening.

- [Static tour player](https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index.html): generated HTML · Viewer-only portable tour. · `index.html`
- [Editable admin project](https://github.com/pausegui/free-360-panoramic-viewer-virtual-tour-html/blob/main/index.html): generated HTML · Retains the editor sidebar and project configuration. · `index.html`
- **Local file or static host**: deployment target · No server, API, database, or authentication is required.

## Connections

- English builder/exporter → Editor sidebar: contains
- Spanish builder/exporter → Editor sidebar: localized equivalent
- English builder/exporter → Panorama viewport: contains
- Editor sidebar → Image import: imports media
- Image import → Local image processing: processes locally
- Local image processing → Tour project state: stores media and config
- Editor sidebar → Tour project state: edits
- Tour project state → Scene connections: defines
- Scene connections → Pannellum: drives navigation and camera
- Tour project state → Hotspots and minimap: configures
- Pannellum → Panorama viewport: renders
- Hotspots and minimap → Panorama viewport: overlays
- Tour project state → Export builder: exports
- Export builder → JSZip: packages when needed
- Export builder → Static tour player: generates
- Export builder → Editable admin project: generates
- Static tour player → Local file or static host: opens or deploys unchanged
- Editable admin project → Local file or static host: opens locally or deploys
