CoolFace
Apppublic

Aygun1489/bloom-biosphere-simulator

sourceHugging Facemitupdated 4mo agoView on Hugging Face
0likes
App README

Bloom — Earth Biosphere OS

Bloom is a planetary-scale living biosphere simulator and botanical encyclopedia. Plants evolve, climates change, oceans acidify, species go extinct, civilisations rise, and AI agents monitor it all — in real time.


Version History

VersionFocusStatus
V1Botanical encyclopedia — 130+ species, care guides, SVG illustrations✅ Live
V2Ecosystem simulator — genome engine, pollination network, knowledge graph, biome evolution✅ Live
V3Earth Biosphere OS — full planetary simulation + Claude AI agents✅ Live

V3 — Earth Biosphere OS

V3 transforms the platform into a complete Earth-scale living system. Every subsystem is grounded in peer-reviewed science (IPCC AR6, GCP 2023, NOAA, FAO, IPBES, GFW).

Architecture

Earth Biosphere OS
├── bloom-v3-core.js          Planetary Core
│   ├── AtmosphericChemistry  CO₂/CH₄/O₃ budgets, radiative forcing (Myhre 1998)
│   ├── PlanetaryClimateEngine 72 climate cells, ECS feedback, extreme events
│   ├── OceanSimulation       8 basins, AMOC, pH, plankton, coral, carbon pump
│   ├── GeologicalEngine      8 tectonic plates, volcanism, sea level
│   ├── HydrologyNetwork      7 rivers, glaciers, groundwater, wetlands
│   └── TerrainEngine         10 biome zones, soil carbon (1,500 Gt C)
│
├── bloom-v3-biosphere.js     Biosphere Layer
│   ├── FaunaEcosystemEngine  13 species agents (hunger, migration, breeding, AI)
│   ├── PollinatorMutualismMatrix  8 pollinator guilds × floral families
│   ├── DiseaseEpidemicEngine SIR epidemic model (6 pathogens, climate-driven)
│   ├── FoodWebIntelligence   Directed trophic graph, cascade risk detection
│   ├── FungalMicrobialNetwork Mycorrhizal, N-fixers, methanogens, pathogens
│   └── BiogeochemicalCycles  C/N/P cycles (GPP 120 Gt C/yr, NPP 60 Gt C/yr)
│
├── bloom-v3-evolution.js     Evolutionary Intelligence
│   ├── EvolutionaryGenome    13 quantitative traits, mutation, crossover, fitness
│   ├── ProceduralSpeciesGenerator  Infinite procedural species
│   ├── ExtinctionEventEngine 6 event types (asteroid, supervolcano, pandemic…)
│   ├── EvolutionaryIntelligenceEngine  Lineage tracking, speciation, adaptation
│   ├── PlanetaryKnowledgeGraph  12-node system graph, 9+ relationship edges
│   └── AIPlanetaryIntelligence  Rule-based monitoring, threshold alerts
│
├── bloom-v3-civilization.js  Human Layer
│   ├── CivilizationLayer     Population, energy mix, emissions, land use, policies
│   └── AnthropoceneScenarios 4 scenarios (BAU, Paris 2°C, Net-Zero, Collapse)
│
├── bloom-v3-intelligence.js  Planetary Intelligence Layer  ← NEW
│   ├── MycelialIntelligenceNetwork  Wood-wide web: C/N/P routing, stress signals, defense priming
│   ├── PlanetaryNervousSystem       6 tipping-point proximity meters, cross-system coupling matrix
│   ├── BiogeographicDispersalEngine 7 wildlife corridors, poleward range shifts, invasive vectors
│   ├── TrophicResonanceEngine       Lotka-Volterra oscillators, mesopredator release, biomagnification
│   ├── GaiaFeedbackOrchestrator     Stabilising vs destabilising feedback balance (Lovelock)
│   └── BiosphereHealthIndex         Composite Living Planet Index (0-100) across 8 dimensions
│
└── bloom-v3-renderer.js      Canvas Renderer
    ├── PlanetRenderer        Realistic Earth: lat/lon projected landmasses, depth ocean gradient,
    │                         Rayleigh scattering atmosphere, aurora borealis, bioluminescence,
    │                         mycorrhizal thread glow, biosphere health pulse ring, tipping alerts
    └── BiosphereOverlayCharts  Sparklines + merged Vital Signs quick-stats panel

Simulation Systems

Planetary Climate Engine
  • —72 climate cells (6 latitude bands × 12 longitude sectors) with per-cell temperature, precipitation, humidity
  • —Seasons drive cell temperature offsets (±8°C swing at temperate latitudes)
  • —Stochastic extreme events: heat waves, hurricanes, droughts — probability scaled by warming
  • —ECS feedback: 0.81°C per W/m² radiative forcing (IPCC AR6 best estimate)
Atmospheric Chemistry

Calibrated to 2024 NOAA baselines:

GasBaselineRise rateFormula source
CO₂421 ppm+2.4 ppm/yrGCP 2023
CH₄1923 ppb+12 ppb/yr netNOAA GML
O₂20.95%stable—
O₃ (ozone)1.0 index (≈300 DU)CFC-driven depletionUNEP
  • —Radiative forcing: RF_CO₂ = 5.35 × ln(C/280) W/m² [Myhre 1998]
  • —Methane forcing: 0.036 × (√C − √C₀) W/m²
  • —Industrial aerosol cooling: −0.5 W/m² (scales with fossil fuel use)
  • —Geoengineering: Stratospheric aerosol injection offsets up to −2.0 W/m²
  • —Permafrost feedback: Non-linear CH₄ pulse above +3°C warming
  • —Volcanic SO₂: Injection events cool climate via aerosol veil
Ocean Simulation
  • —8 major basins with individual temperature, salinity, oxygen
  • —Surface pH: 8.2 − log₂(CO₂/280) × 0.30 [Caldeira & Wickett 2003] — starts at 8.05 (2024)
  • —AMOC: starts at 85% modern strength; weakens −12%/°C above baseline [Caesar 2021]
  • —Coral bleaching: compound thermal + pH stress up to 20%/yr loss rate [GCRMN 2020]
  • —Biological pump: plankton-driven carbon sequestration ~2.5 Gt C/yr
  • —Thermohaline currents: Gulf Stream, Kuroshio, Antarctic Circumpolar, Humboldt + 2 more
Biosphere
  • —Flora biomass: 450 Gt C baseline [IPCC AR6 Ch.5]
  • —GPP: 120 Gt C/yr; logarithmic CO₂ fertilisation; −1%/°C respiration temperature sensitivity [Heskel 2016]
  • —Net NPP: ~60 Gt C/yr (autotrophic respiration ~50%)
  • —Soil carbon: 1,500 Gt C top-1m [Crowther 2016]; Q10 decomposition factor [Bond-Lamberty 2010]
  • —Pollinator mutualism: 8 guilds × 8 floral families; co-extinction cascade risk tracking
  • —Disease epidemics: SIR dynamics (6 named pathogens); R₀ scales with warming and monoculture
  • —Fauna agents: 13 species across 5 guilds (herbivore, predator, pollinator, decomposer, scavenger)
Biogeochemical Cycles

Carbon Cycle (Gt C/yr at 2024 baseline):

Fossil fuels       +10.0 Gt C/yr  (GCP 2023)
Land-use change    + 1.1 Gt C/yr
Land sink          − 3.1 Gt C/yr
Ocean sink         − 2.5 Gt C/yr
────────────────────────────────
Net atmospheric    + 5.5 Gt C/yr → +2.4 ppm/yr CO₂

Nitrogen Cycle: biological fixation 140 Tg N/yr + Haber-Bosch 120 Tg N/yr; denitrification 260 Tg N/yr

Phosphorus Cycle: rock weathering 22 Tg P/yr; mining pressure tracks civilisation intensity

Evolution Engine
  • —8.7 million species tracked [Mora 2011 global estimate]
  • —Background extinction: 0.5 E/MSY (species/million-species-year) [De Vos 2015]
  • —Current human acceleration: up to 500× background at max biodiversity pressure [IPBES 2019]
  • —Speciation timescale: 50,000–500,000 year countdown per lineage [Rabosky 2014]
  • —13 quantitative genome traits: heat tolerance, cold tolerance, drought resistance, disease resistance, body size, growth rate, reproduction rate, toxin production, camouflage, social behaviour, migration tendency, diet breadth, longevity
  • —6 extinction event types: asteroid impact, supervolcano (LIP), rapid climate shift, ocean anoxia, pandemic, invasive species cascade
Planetary Intelligence Network (NEW)
  • —MycelialIntelligenceNetwork: hyphal C transfer (5.2 Gt C/yr), N/P routing, stress signalling, defense priming cascade; network density degrades with deforestation/soil disturbance
  • —PlanetaryNervousSystem: 6 tipping-point proximity meters (Arctic ice, Amazon, AMOC, permafrost, coral, West Antarctic ice sheet); resonance index amplifies when feedbacks cluster
  • —BiogeographicDispersalEngine: 7 corridor integrity values (Amazon-Andes, Serengeti, Atlantic flyway, Gulf Stream, etc.); poleward range shifts ~6.5 km/yr/°C [Chen 2011]; invasive species introduction rates
  • —TrophicResonanceEngine: Lotka-Volterra oscillators for Wolf-Deer, Hare-Lynx, Plankton-Krill, Acacia-Elephant; mesopredator release index; biomagnification factor; pollinator collapse risk
  • —GaiaFeedbackOrchestrator: balances stabilising (vegetation albedo, silicate weathering, DMS, mycorrhizal C pump) against destabilising (ice-albedo, permafrost CH₄, Amazon dieback) feedbacks; Daisyworld balance proxy
  • —BiosphereHealthIndex: 8-dimension weighted composite LPI (0–100) — climate stability, ocean health, terrestrial biomass, soil integrity, biodiversity, mycorrhizal network, pollinator health, atmospheric chemistry
  • —Co-Evolution Matrix: Red Queen arms races for 6 species pairs (Wolf-Deer, Pollinator-Flower, Mycorrhiza-Root, Plant-Herbivore, Parasite-Host, Lion-Prey)
  • —ConvergentEvolutionEngine: tracks independent parallel evolution of 6 convergent traits (echolocation, wing, desert adaptation, etc.)
  • —Genome Epistasis: gene-gene interaction terms in fitness function (size/reproduction trade-off, heat/drought synergy)
Human Civilisation Layer

Calibrated to 2024 baselines (IEA, UN DESA, GCP, EDGAR, GFW, FAO):

MetricBaselineSource
Population8.1 BUN DESA 2024
Growth rate0.9%/yrUN DESA
Primary energy620 EJ/yrIEA WEO 2023
Fossil share80%IEA
CO₂ emissions37 Gt CO₂/yrGCP 2023
CH₄ emissions570 Tg/yrEDGAR 2023
Deforestation0.25%/yr forestGFW 2023
Agricultural land50% habitableFAO 2023
Protected areas17% landCBD Aichi T11

Policy levers: carbon tax (−15% emissions), renewable mandate (+2%/yr renewables), deforestation ban, biodiversity treaty

Scenarios:

  • —Business as Usual — 600 ppm CO₂ by 2100, ~3.5°C warming
  • —Paris 2°C — carbon pricing, rapid renewable transition, 30% protected areas
  • —High Ambition Net-Zero — full decarbonisation 2050, rewilding, CCS, synbio
  • —Societal Collapse — resource wars, agricultural failure, 70% biodiversity loss

Geoengineering: stratospheric aerosol injection (SRM) now physically coupled to radiative budget (up to −2.0 W/m² offset). Ocean iron fertilisation and synthetic biology also available.

Timescale Modes
ModeReal → SimulatedUse case
Real-time1 s = 1 sInstant feedback
Ecological1 s = 1 monthSeasonal dynamics
Evolutionary1 s = 10 yearsPolicy horizons
Geological1 s = 1,000 yearsMass extinction recovery
Planetary1 s = 1 million yearsDeep-time biosphere
Renderer
  • —Single rotating planet — realistic Earth geometry via lat/lon polygon landmass projection
  • —Deep ocean gradient — dark polar navy to vivid tropical teal, realistic depth shading
  • —Rayleigh scattering atmosphere halo — limb brightening, shifts warmer with rising CO₂
  • —Authentic landmasses — North/South America, Europe, Africa, Asia, Australia, Antarctica with biome colouring
  • —Polar ice caps — rendered as latitude-band fills; ice edge recedes with warming
  • —Aurora Borealis / Australis — multi-band polar light waves
  • —Deep-ocean bioluminescence — temperature-driven glow at depth
  • —Mycorrhizal network glow — purple filament threads scaled to network density
  • —Biosphere health pulse ring — colour and pulse speed driven by Living Planet Index
  • —Tipping-point alert markers — flashing arc labels at danger proximity (>65% threshold)
  • —City lights — placed at real mega-city lon/lat positions, population-scaled
  • —Fauna dots — placed on realistic biome anchor coordinates
  • —4 overlay modes: Biosphere health / Temperature / Carbon / Civilization pressure
  • —HUD badges (9): temp, CO₂, population, species, soil health, extinction rate, LPI, tipping count, mycorrhizal density
  • —Merged Vital Signs + History panel — 4 key quick-stats above 5 auto-scaling sparklines

AI Planetary Intelligence Agents (Claude API)

Four Claude-powered agents analyse the live simulation and answer questions in natural language. Each query includes the full planetary state snapshot as context.

Setup

  1. 1.Get an API key at console.anthropic.com
  2. 2.Scroll to the AI Planetary Intelligence section
  3. 3.Paste your key and click Activate Agents
  4. 4.Your key is stored in sessionStorage only — never persisted, never logged

Agents

AgentRoleExample queries
Ecosystem BalancerFood webs, trophic cascades, soil health, pollinator networks"What cascade risks exist?" · "Which species are most at risk?"
Climate PredictorAtmospheric trends, radiative forcing, ocean feedbacks, tipping points"2100 temperature projection?" · "How close to AMOC collapse?"
Evolutionary GeneratorExtinction rates, lineage fitness, speciation, adaptive pressure"Generate a species for current conditions" · "Mass extinction risk?"
Research SandboxFull planetary scientist — any system, any question"Compare Paris vs BAU" · "Explain the nitrogen cycle state"

Each agent receives the complete live simulation snapshot (atmosphere, climate, ocean, biosphere, carbon cycle, evolution, civilization) with every query. Uses Claude Haiku for fast responses.


V1 & V2 Features

Botanical Encyclopedia (V1)

  • —130+ species with detailed care guides, medicinal properties, seasonal availability
  • —Hand-crafted SVG illustrations for every species
  • —Seasonal planning guide (Spring / Summer / Autumn / Winter)
  • —Botanical glossary — 20+ terms
  • —Favourites system — localStorage-backed bookmarking
  • —Search across all species names, families, properties

Ecosystem Simulator (V2)

  • —Genome engine: quantitative trait inheritance, mutation, crossover
  • —Pollination network: temperature/light-dependent activity, network score
  • —Knowledge graph: species × ecosystem × climate × geography × evolution
  • —Soil chemistry: N/P/K dynamic cycling
  • —Population dynamics: logistic growth per species
  • —Real-time dashboard: 25+ live metrics

Technology Stack

LayerTechnology
FrontendVanilla JavaScript ES2022, HTML5, CSS3
SimulationCustom class-based ECS-inspired engine
RenderingHTML5 Canvas 2D
AI AgentsAnthropic Claude API (Haiku model)
DataStatic JSON, localStorage, sessionStorage
BuildNone — runs directly in any modern browser

Scientific References

SystemKey references
CO₂ forcingMyhre et al. 1998; IPCC AR6 Ch.7
Climate sensitivityIPCC AR6 WGI 7.5; ECS = 3°C/doubling
Carbon cycleGlobal Carbon Project 2023
Ocean pHCaldeira & Wickett 2003; SOCAT 2023
AMOCCaesar et al. 2021; Boers 2021
CoralHughes et al. 2017; GCRMN 2020
Soil carbonCrowther et al. 2016; IPCC AR6 Ch.5
Soil respirationBond-Lamberty & Thomson 2010
Glacier massZemp et al. 2019
BiodiversityMora et al. 2011; IPBES 2019
Extinction ratesDe Vos et al. 2015; Ceballos et al. 2017
SpeciationRabosky 2014
Civilisation energyIEA World Energy Outlook 2023
EmissionsGCP 2023; EDGAR 2023
DeforestationGlobal Forest Watch 2023
PopulationUN DESA World Population Prospects 2024
AgricultureFAO 2023

Species Library (V1 core — 31 curated species)

#Common NameLatin NameFamilyClimate
1RoseRosa damascenaRosaceaeTemperate
2LavenderLavandula angustifoliaLamiaceaeMediterranean
3LotusNelumbo nuciferaNelumbonaceaeTropical
4OrchidPhalaenopsis amabilisOrchidaceaeTropical
5Aloe VeraAloe barbadensisAsphodelaceaeArid
6RanunculusRanunculus asiaticusRanunculaceaeMediterranean
7NasturtiumTropaeolum majusTropaeolaceaeSubtropical
8Bleeding HeartLamprocapnos spectabilisPapaveraceaeTemperate
9EdelweissLeontopodium nivaleAsteraceaeAlpine
10PlumeriaPlumeria rubraApocynaceaeTropical
11Water HyacinthEichhornia crassipesPontederiaceaeTropical
12SunflowerHelianthus annuusAsteraceaeTemperate
13IrisIris germanicaIridaceaeMediterranean
14DahliaDahlia pinnataAsteraceaeSubtropical
15HibiscusHibiscus rosa-sinensisMalvaceaeTropical
16DelphiniumDelphinium elatumRanunculaceaeTemperate
17ChrysanthemumChrysanthemum morifoliumAsteraceaeTemperate
18PassionflowerPassiflora incarnataPassifloraceaeSubtropical
19LupineLupinus polyphyllusFabaceaeTemperate
20MagnoliaMagnolia grandifloraMagnoliaceaeSubtropical
21CrocusCrocus sativusIridaceaeMediterranean
22JasmineJasminum officinaleOleaceaeSubtropical
23GypsophilaGypsophila paniculataCaryophyllaceaeTemperate
24AnemoneAnemone coronariaRanunculaceaeMediterranean
25AgapanthusAgapanthus africanusAmaryllidaceaeSubtropical
26EchinaceaEchinacea purpureaAsteraceaeTemperate
27FritillaryFritillaria imperialisLiliaceaeTemperate
28CalendulaCalendula officinalisAsteraceaeMediterranean
29AcaciaAcacia dealbataFabaceaeSubtropical
30DianthusDianthus caryophyllusCaryophyllaceaeMediterranean
31SalviaSalvia officinalisLamiaceaeMediterranean

Plus 100+ procedurally generated species from taxonomy-data.js spanning 20+ families, all climates and lifecycle types.