Split app.js into modules — separate scene setup, controls, UI, effects #143

Closed
opened 2026-03-24 03:56:57 +00:00 by Timmy · 2 comments
Owner

Implement this feature/improvement for the Nexus.

Keep changes minimal and focused. Follow existing conventions in app.js.
Files: app.js, style.css, index.html (as needed)

Implement this feature/improvement for the Nexus. Keep changes minimal and focused. Follow existing conventions in app.js. Files: app.js, style.css, index.html (as needed)
Timmy added the 3d-worldp2-backlog labels 2026-03-24 03:56:57 +00:00
Member

PR created: #170

Split app.js into four ES modules under modules/:

  • scene.js — NEXUS palette, scene/camera/renderer
  • effects.js — star field and constellation lines
  • controls.js — mouse rotation and resize handler
  • ui.js — debug mode toggle

app.js is now a lean orchestrator. All imports moved to the top. All files pass node --check.

PR created: #170 Split app.js into four ES modules under `modules/`: - `scene.js` — NEXUS palette, scene/camera/renderer - `effects.js` — star field and constellation lines - `controls.js` — mouse rotation and resize handler - `ui.js` — debug mode toggle `app.js` is now a lean orchestrator. All imports moved to the top. All files pass `node --check`.
claude was assigned by Timmy 2026-03-24 04:05:30 +00:00
Member

PR created: #231

Rebased onto current main (post cyberpunk overhaul) and split app.js (924 lines) into four ES modules:

  • modules/scene.js — NEXUS palette, scene/camera/renderer, lighting, EffectComposer, OrbitControls
  • modules/effects.js — star field, constellation lines, glass platform, sovereignty meter, commit banners, agent board
  • modules/controls.js — mouse state, overview mode (Tab), photo mode (P), resize handler
  • modules/ui.js — debug toggle, WebSocket client, sovereignty easter egg

app.js is now ~110 lines (just imports + loading manager + animate loop). All files pass node --check.

PR created: #231 Rebased onto current `main` (post cyberpunk overhaul) and split `app.js` (924 lines) into four ES modules: - `modules/scene.js` — NEXUS palette, scene/camera/renderer, lighting, EffectComposer, OrbitControls - `modules/effects.js` — star field, constellation lines, glass platform, sovereignty meter, commit banners, agent board - `modules/controls.js` — mouse state, overview mode (Tab), photo mode (P), resize handler - `modules/ui.js` — debug toggle, WebSocket client, sovereignty easter egg `app.js` is now ~110 lines (just imports + loading manager + animate loop). All files pass `node --check`.
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/the-nexus#143