Skip to content

elegantmonark/brahmanda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brahmanda

An interactive universe simulator for cosmology, quantum fields, collider traces, entropy flow, and audio-reactive geometry.

Live Demo · Demo Video · Architecture · Roadmap


Contents

Overview

Brahmanda is a full-screen browser experiment that turns ideas from cosmology, quantum mechanics, particle physics, thermodynamics, and sound into one interactive simulation surface.

It is built as a static app with vanilla JavaScript, Canvas 2D, and the WebAudio API. There is no backend, no install step, and no build process. Open the demo and start exploring.

Demo

Live: brahmanda.netlify.app

Video: Watch the demo on YouTube

The demo moves through Brahmanda's four main visual states: cosmic structure, quantum field motion, collider-style particle events, and entropy flow.

Features

Interactive physics-inspired canvas

Brahmanda renders a continuously animated universe scene on an HTML canvas. Pointer input affects the simulation, allowing the user to drag through fields, create disturbances, collapse structures, and seed events.

Collider-style event generation

The collider mode generates readable particle-event traces inspired by detector displays. Event presets include Z boson decays, Higgs to four leptons, di-muon events, di-electron events, top-pair events, and QCD jets.

The model uses particle mass, charge, transverse momentum, pseudorapidity, detector layers, missing energy, and stylized curvature. It is visual and educational, not a replacement for a scientific detector simulator.

Live telemetry

The interface displays simulated age, CMB temperature, entropy, redshift, coherence, particle count, and event count. These readouts update as the user changes the current epoch, expansion, quantum fluctuation, and gravity parameters.

Optional sonification

The WebAudio layer maps interaction and simulation state into oscillators, filters, gain envelopes, and short percussive bursts. Audio stays disabled until the user presses Sonify, matching browser autoplay requirements.

Simulation Modes

Mode What it shows
Cosmos A rotating large-scale structure field with cosmic-web style connections.
Quantum A fluctuating vector field with local collapse disturbances.
Collider Standard Model-inspired event traces inside a stylized detector.
Entropy A thermal surface with expanding fronts and information flow.

Controls

Control Purpose
Epoch Moves the simulation between earlier and later universe states.
Expansion Changes the scale and spread of the rendered system.
Quantum Increases field fluctuation, particle density, and disturbance strength.
Gravity Changes pointer pull, clustering, and field response.
Event Chooses the collider event preset used by Inject.
Inject Adds a mode-specific event or disturbance.
Collapse Field Pulls the current field toward the pointer region.
Sonify Enables audio-reactive synthesis.
Reset Reseeds the simulation state.

How It Works

Brahmanda starts from browser cryptographic randomness when available, then advances the state with a deterministic PRNG so each reset produces a coherent but different universe.

The main animation loop:

  1. Reads the current mode, sliders, pointer state, and event queue.
  2. Updates simulation objects such as stars, waves, disturbances, entropy fronts, and collider events.
  3. Draws the selected mode on the main canvas.
  4. Updates the telemetry panel and spectrum display.
  5. Updates WebAudio parameters if sound is enabled.

More detail is available in docs/ARCHITECTURE.md.

Run Locally

Open index.html directly in a modern browser.

No package manager is required.

Project Structure

.
+-- app.js
+-- index.html
+-- style.css
+-- docs/
|   +-- ARCHITECTURE.md
|   +-- ROADMAP.md
+-- README.md

Status

Prototype. Brahmanda is suitable for public viewing, experimentation, screenshots, demos, and GitHub/Netlify hosting.

Current Focus

Brahmanda is being kept as a polished public creative-physics build rather than the centre of my current research direction. The most useful next improvements are presentation-focused: reproducible seeded states, better exported screenshots, and clearer legends for collider and entropy modes.

Roadmap

  • Add a compressed GIF or preview image for the README.
  • Add shareable seeded replay links.
  • Add PNG snapshot export.
  • Explore a Three.js renderer for depth, camera motion, and volumetric scenes.
  • Add a clearer particle/event legend for collider mode.

License

No license has been selected yet. Add one before inviting external reuse or contributions.

About

I built an interactive little universe sandbox/simulator that blends cosmology, quantum fields, collider style particle events, entropy slow, and audo-reactive geometry in a full screen-browser experience.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors