| 1 | # VibeCodeViewer |
| 2 | |
| 3 | [Español](README.md) · **English** |
| 4 | |
| 5 | Visualize a repository as an interactive 3D city: folders become districts, modules become buildings, and files become luminous cells. |
| 6 | |
| 7 | ## Presentation |
| 8 | |
| 9 | <p align="center"> |
| 10 | <a href="docs/assets/vibecodeviewer-hyperframes-presentation.web.mp4"> |
| 11 | <img src="docs/assets/vibecodeviewer-hyperframes-presentation-readme.gif" alt="VibeCodeViewer presentation" width="900"> |
| 12 | </a> |
| 13 | </p> |
| 14 | |
| 15 | - [Watch narrated MP4 demo](docs/assets/vibecodeviewer-hyperframes-presentation.web.mp4) |
| 16 | - [Open static poster](docs/assets/vibecodeviewer-hyperframes-presentation-poster.png) |
| 17 | |
| 18 | ## Features |
| 19 | |
| 20 | - **Repository city map**: turns the folder structure into a navigable metropolis. |
| 21 | - **Visual search**: find files and locate them with pulses in the city and side tree. |
| 22 | - **Analysis layers**: Basic, Git, Owners, and Blast modes for status, ownership, and impact review. |
| 23 | - **Blast radius**: shows dependencies and downstream impact with animated beams. |
| 24 | - **Local scanning**: opens repositories directly from Chrome/Edge with the File System Access API. |
| 25 | - **Basements for ignored code**: renders files ignored by `.gitignore`, `.dockerignore`, or `.npmignore` below the ground plane. |
| 26 | - **Themes and visual settings**: switch palettes and tune exposure, contrast, glass, labels, ground, fog, and bloom. |
| 27 | - **Bilingual UI**: Spanish and English from the language selector or with `?lang=es` / `?lang=en`. |
| 28 | |
| 29 | ## How to use |
| 30 | |
| 31 | 1. Serve the project: |
| 32 | |
| 33 | ```bash |
| 34 | ./serve.sh |
| 35 | # or a custom port |
| 36 | ./serve.sh 9000 |
| 37 | ``` |
| 38 | |
| 39 | 2. Open the app in your browser: |
| 40 | |
| 41 | ```text |
| 42 | http://localhost:8137/ |
| 43 | # or http://localhost:<port>/ if you used a custom port |
| 44 | ``` |
| 45 | |
| 46 | 3. To analyze local repositories, **always access the app through `localhost`** and use **Open Folder…**. |
| 47 | |
| 48 | > Important: the browser folder-access API requires a secure context. `http://localhost` works; a LAN URL like `http://10.x.x.x:8137` may load the app, but it is not suitable for analyzing local repositories unless you use HTTPS or a secure tunnel. |
| 49 | |
| 50 | 4. Pick a folder/repository and navigate: |
| 51 | |
| 52 | - Drag / wheel: orbit and zoom. |
| 53 | - `F`: fly mode. |
| 54 | - `/`: search files. |
| 55 | - `L`: legend. |
| 56 | - `G`: opaque ground. |
| 57 | - `1`, `2`, `3`: reset, aerial view, and height view. |
| 58 | |
| 59 | ## Privacy |
| 60 | |
| 61 | - The app runs in your browser and does not upload your repository to any server. |
| 62 | - Local analysis uses explicit browser permission to read the folder you select. |
| 63 | - Preferences and analysis cache are stored in this browser's `localStorage`/`IndexedDB` to speed up future opens. |
| 64 | |
| 65 | ## Documentation |
| 66 | |
| 67 | - [Technical documentation](docs/technical-reference.en.md) |
| 68 | - [Code ownership](docs/code-ownership.en.md) |
| 69 | - [Documentación técnica en español](docs/technical-reference.md) |
| 70 | - [Code ownership en español](docs/code-ownership.md) |
| 71 | |
| 72 | ## Quick structure |
| 73 | |
| 74 | ```text |
| 75 | index.html main UI |
| 76 | src/ Three.js app and UI logic |
| 77 | docs/ technical docs and presentation assets |
| 78 | serve.sh local static server |
| 79 | scan.mjs snapshot generator for src/data.js |
| 80 | ``` |
| 81 | |
| 82 | ## License |
| 83 | |
| 84 | Apache-2.0. See [LICENSE](LICENSE). |
| 85 | |
| 86 | ## 110% VibeCoded |
| 87 | |
| 88 | <p align="center"> |
| 89 | <img src="docs/assets/110-percent-vibecoded.png" alt="110% VibeCoded" width="900"> |
| 90 | </p> |