# r74ncom/sandboxels-mods architecture

> Architecture diagram of the GitHub repository r74ncom/sandboxels-mods, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/r74ncom/sandboxels-mods
- Repository: https://github.com/r74ncom/sandboxels-mods

## Overview

This repository is a community mod catalog for Sandboxels, a browser-based falling-sand simulator—not the simulator itself. Its principal workflow is that contributors submit JavaScript mods, which players can then use with Sandboxels. The catalog spans chemistry, biology, food, machinery, creatures, and other content; sampled files define or extend game elements and behaviors. Mod-manager files add ways to browse or inspect mods. The tree and excerpts do not show a central submission service or how Sandboxels loads these files, so those runtime connections are not drawn.

Main entry points: [`mods/betterModManager.js`](https://github.com/r74ncom/sandboxels-mods/blob/main/mods/betterModManager.js) (Mod manager), [`mods/orchidsmodmanager.js`](https://github.com/r74ncom/sandboxels-mods/blob/main/mods/orchidsmodmanager.js) (Mod inspector)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Mod catalog"]
  node_acd["Food additions<br/>[aChefsDream.js]"]
  node_machines["Machines<br/>[ExtraMachines.js]"]
  node_jaydstuff["Jayds content<br/>[jaydstuff.js]"]
  node_cubes["Cube content<br/>[cubesstuff.js]"]
end

subgraph group_science["Science content"]
  node_chem["Chemistry<br/>[chem.js]"]
  node_chemlegacy["Legacy chemistry<br/>[chemLegacy.js]"]
  node_morechem["More chemistry<br/>[morechemistry.js]"]
  node_biology["Biology<br/>[biology.js]"]
  node_genetics["Genetics<br/>[genetics.js]"]
end

subgraph group_world["World content"]
  node_moss["Moss content<br/>[mossstuff.js]"]
  node_mobs["Mobs<br/>[mobs.js]"]
  node_noita["Noita content<br/>[noita.js]"]
  node_scp["SCP content<br/>[scp.js]"]
end

subgraph group_tools["Player tools"]
  node_manager["Mod manager"]
  node_elementmanager["Element editor<br/>[elementsManager.js]"]
  node_orchids["Mod inspector"]
end

node_contributors(("Contributors"))
node_players(("Players"))
node_sandboxels["Sandboxels"]
node_github["GitHub tree API"]

node_contributors -->|"submit mods"| node_sandboxels
node_sandboxels -->|"makes mods usable"| node_players
node_manager -->|"fetches mod list"| node_github
node_orchids -->|"inspects enabled mods"| node_sandboxels

click node_acd "https://github.com/r74ncom/sandboxels-mods/blob/main/mods/aChefsDream.js"
click node_machines "https://github.com/r74ncom/sandboxels-mods/blob/main/mods/ExtraMachines.js"
click node_jaydstuff "https://github.com/r74ncom/sandboxels-mods/blob/main/mods/jaydstuff.js"
click node_cubes "https://github.com/r74ncom/sandboxels-mods/blob/main/mods/cubesstuff.js"
click node_chem "https://github.com/r74ncom/sandboxels-mods/blob/main/mods/chem.js"
click node_chemlegacy "https://github.com/r74ncom/sandboxels-mods/blob/main/mods/chemLegacy.js"
click node_morechem "https://github.com/r74ncom/sandboxels-mods/blob/main/mods/morechemistry.js"
click node_biology "https://github.com/r74ncom/sandboxels-mods/blob/main/mods/biology.js"
click node_genetics "https://github.com/r74ncom/sandboxels-mods/blob/main/mods/genetics.js"
click node_moss "https://github.com/r74ncom/sandboxels-mods/blob/main/mods/mossstuff.js"
click node_mobs "https://github.com/r74ncom/sandboxels-mods/blob/main/mods/mobs.js"
click node_noita "https://github.com/r74ncom/sandboxels-mods/blob/main/mods/noita.js"
click node_scp "https://github.com/r74ncom/sandboxels-mods/blob/main/mods/scp.js"
click node_manager "https://github.com/r74ncom/sandboxels-mods/blob/main/mods/betterModManager.js"
click node_elementmanager "https://github.com/r74ncom/sandboxels-mods/blob/main/mods/elementsManager.js"
click node_orchids "https://github.com/r74ncom/sandboxels-mods/blob/main/mods/orchidsmodmanager.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_acd,node_machines,node_jaydstuff,node_cubes toneBlue
class node_chem,node_chemlegacy,node_morechem,node_biology,node_genetics toneAmber
class node_moss,node_mobs,node_noita,node_scp,node_github toneMint
class node_manager,node_elementmanager,node_orchids toneRose
class node_contributors,node_players,node_sandboxels toneIndigo
```

## Components

### Mod catalog

- [Food additions](https://github.com/r74ncom/sandboxels-mods/blob/main/mods/aChefsDream.js): `mods/aChefsDream.js`
- [Machines](https://github.com/r74ncom/sandboxels-mods/blob/main/mods/ExtraMachines.js): `mods/ExtraMachines.js`
- [Jayds content](https://github.com/r74ncom/sandboxels-mods/blob/main/mods/jaydstuff.js): `mods/jaydstuff.js`
- [Cube content](https://github.com/r74ncom/sandboxels-mods/blob/main/mods/cubesstuff.js): `mods/cubesstuff.js`

### Science content

- [Chemistry](https://github.com/r74ncom/sandboxels-mods/blob/main/mods/chem.js): `mods/chem.js`
- [Legacy chemistry](https://github.com/r74ncom/sandboxels-mods/blob/main/mods/chemLegacy.js): `mods/chemLegacy.js`
- [More chemistry](https://github.com/r74ncom/sandboxels-mods/blob/main/mods/morechemistry.js): `mods/morechemistry.js`
- [Biology](https://github.com/r74ncom/sandboxels-mods/blob/main/mods/biology.js): `mods/biology.js`
- [Genetics](https://github.com/r74ncom/sandboxels-mods/blob/main/mods/genetics.js): `mods/genetics.js`

### World content

- [Moss content](https://github.com/r74ncom/sandboxels-mods/blob/main/mods/mossstuff.js): `mods/mossstuff.js`
- [Mobs](https://github.com/r74ncom/sandboxels-mods/blob/main/mods/mobs.js): `mods/mobs.js`
- [Noita content](https://github.com/r74ncom/sandboxels-mods/blob/main/mods/noita.js): `mods/noita.js`
- [SCP content](https://github.com/r74ncom/sandboxels-mods/blob/main/mods/scp.js): `mods/scp.js`

### Player tools

- [Mod manager](https://github.com/r74ncom/sandboxels-mods/blob/main/mods/betterModManager.js): `mods/betterModManager.js`
- [Element editor](https://github.com/r74ncom/sandboxels-mods/blob/main/mods/elementsManager.js): `mods/elementsManager.js`
- [Mod inspector](https://github.com/r74ncom/sandboxels-mods/blob/main/mods/orchidsmodmanager.js): `mods/orchidsmodmanager.js`

### Other components

- **Contributors**
- **Players**
- **Sandboxels**
- **GitHub tree API**

## Connections

- Contributors → Sandboxels: submit mods
- Sandboxels → Players: makes mods usable
- Mod manager → GitHub tree API: fetches mod list (evidence: `mods/betterModManager.js`)
- Mod inspector → Sandboxels: inspects enabled mods (evidence: `mods/orchidsmodmanager.js`)
