How httpweez/synapse works
Synapse is an offline-first browser app for building and exploring 3D mind maps. The user opens the app, selects or creates a map, edits and connects nodes, then searches, filters, focuses, and navigates the graph; maps persist in browser storage. The graph, UI, filtering, state, sample-map data, and persistence modules are represented alongside the rendering layer and its bundled Three.js controls. Relationships reflect shown imports and calls or README claims; unsampled implementation details are not inferred.
Main entry points: graph.js Graph Operations · ui.js Map UI · scene.js Scene and Animation · app.js App Entry
Components 14
User Experience
- App Entry
js/app.js - Browser Interface
index.html - Map UI
js/ui.js - Search and Focus
js/filters.js
Graph Core
- Graph Operations
js/graph.js - Shared Graph State
js/state.js - Example Map Data
js/data.js
Map Persistence
- Map Storage
js/storage.js - Browser Storage
3D Rendering
- Scene and Animation
js/scene.js - Three.js Engine
lib/three/three.module.js - Orbit Controls
lib/three/controls/OrbitControls.js - CSS Label Renderer
lib/three/renderers/CSS2DRenderer.js
Other components
- Map Builder
Connections 19
- Map Builder → Browser Interface: opens app
README.md - App Entry → Scene and Animation: initializes and animates
js/app.js - App Entry → Map UI: binds and updates
js/app.js - App Entry → Search and Focus: applies filters
js/app.js - Map UI → Graph Operations: selects and restores
js/ui.js - Map UI → Search and Focus: applies focus and filters
js/ui.js - Map UI → Example Map Data: loads example
js/ui.js - Map UI → Map Storage: loads and saves maps
js/ui.js - Map UI → Scene and Animation: moves camera focus
js/ui.js - Example Map Data → Graph Operations: creates nodes and edges
js/data.js - Search and Focus → Graph Operations: reads neighbors and highlights
js/filters.js - Graph Operations → Shared Graph State: updates graph state
js/graph.js - Graph Operations → Scene and Animation: adds graph objects
js/graph.js - Graph Operations → CSS Label Renderer: creates node labels
js/graph.js - Scene and Animation → Shared Graph State: reads simulation state
js/scene.js - Scene and Animation → Orbit Controls: configures camera controls
js/scene.js - Scene and Animation → CSS Label Renderer: renders labels
js/scene.js - Map Storage → Browser Storage: reads and writes maps
js/storage.js - Map Storage → Graph Operations: clears deleted map graph
js/storage.js