This interactive application simulates the emergent behavior of biological tissue. It uses an Agent-Based Model (ABM) to demonstrate how complex, life-like structures arise from simple, local rules followed by individual cells.
The simulation operates in an autonomous loop. If left idle for 10 seconds, Observation Mode (Demo) engages to cycle through growth, stress, and regeneration phases. Click anywhere to take manual control.
Real organoids are miniaturized versions of organs produced in vitro. They self-organize in three-dimensional culture. This 2D simulation captures four critical dynamics of that process:
Stem Cells (Green) possess the unique ability to divide (mitosis). In this model, they follow "Contact Inhibition" rules: if a cell is too crowded by neighbors, it will refuse to divide even if growth factors are present. This prevents the tissue from becoming infinitely dense, mimicking real tissue pressure.
Differentiated Cells (Blue) represent mature tissue (e.g., neurons in a brain organoid or epithelial cells in a gut organoid). Once a stem cell differentiates, it loses the ability to divide but gains structural stability. This creates a "Terminal Lineage"—once blue, a cell cannot go back to being green.
Necrotic Cells (Red) represent tissue death. In real organoids, cells in the center often die because oxygen cannot diffuse that deep (the "necrotic core"). In this simulation, you can trigger necrosis via the "Toxin" control. These cells gradually lose structural integrity, shrink, and are eventually cleared from the system.
Biological systems are resilient. This simulation is designed to run indefinitely. If a toxic event wipes out most of the colony, surviving stem cells can repopulate the empty space. If the colony is entirely wiped out, a new "seed" cluster is naturally generated, representing the introduction of new biological material.
In-Silico (computer-based) trials are becoming a crucial step in modern biology before In-Vitro (lab) or In-Vivo (animal/human) testing.
This application runs entirely client-side with Zero Dependencies (Vanilla JavaScript).
Current research is moving toward Digital Twins—virtual replicas of specific patients' tumors. Future versions of this software could incorporate:
Generated by Gemini • Single File Solution • No Frameworks