# samedifier/anycore-project architecture

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

- Interactive diagram: https://gitdiagram.com/samedifier/anycore-project
- Repository: https://github.com/samedifier/anycore-project

## Overview

ANYCORE is a configurable C runtime for entity scenes, transforms, models, and dynamically loaded application modules. Its runtime initializes manager state, exposes entity and transform/model operations, and assembles a frame stream containing timing, scene, transform, instance, model, and dirty-state data for consumers. The graph includes the documented manager capabilities, but the README is empty and several implementation details are known only through the source index; edges are limited to relationships visible in excerpts or index references.

Main entry points: [`ANYCORE/ANYCORE256/ANYCORE256/include/anycore_vertex_manager_utils.h`](https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/include/anycore_vertex_manager_utils.h) (Model And Stream Data), [`ANYCORE/ANYCORE256/ANYCORE256/src/anycore.c`](https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/src/anycore.c) (Runtime Lifecycle), [`ANYCORE/ANYCORE256/ANYCORE256/include/anycore_scene_manager_utils.h`](https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/include/anycore_scene_manager_utils.h) (Scene Operations), [`ANYCORE/ANYCORE256/ANYCORE256/include/anycore_app_manager_utils.h`](https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/include/anycore_app_manager_utils.h) (Module And Behaviour API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Runtime Core"]
  node_core["Runtime Lifecycle<br/>[anycore.c]"]
  node_api["Public API<br/>[anycore.h]"]
  node_config["Build Configuration<br/>[configuration.h]"]
  node_time["Frame Timing"]
end

subgraph group_entity["Entity Scene"]
  node_scene["Entity Scene"]
  node_scene_utils["Scene Operations"]
end

subgraph group_geometry["Transforms And Models"]
  node_transform["Transform Operations"]
  node_transform_utils["Transform State"]
  node_vertex["Vertex And Model Data"]
  node_vertex_utils["Model And Stream Data"]
end

subgraph group_application["Application Modules"]
  node_app["App And Module Manager"]
  node_app_utils["Module And Behaviour API"]
end

subgraph group_shared["Shared Data"]
  node_stream["Frame Stream<br/>[primitives.h]"]
  node_types["Shared Runtime Types<br/>[primitives.h]"]
end

node_host(("Host Application"))

node_host -.->|"calls runtime"| node_core
node_core -->|"initializes runtime"| node_scene_utils
node_core -->|"initializes runtime"| node_app_utils
node_core -->|"uses timing"| node_time
node_core -->|"uses stream utilities"| node_vertex_utils
node_scene_utils -->|"initializes"| node_transform_utils
node_scene_utils -->|"initializes"| node_vertex_utils
node_scene -->|"implements operations"| node_scene_utils
node_transform -->|"implements operations"| node_transform_utils
node_transform -->|"uses scene state"| node_scene_utils
node_vertex -->|"implements operations"| node_vertex_utils
node_app -->|"implements operations"| node_app_utils
node_vertex_utils -->|"updates frame timing"| node_time
node_vertex_utils -->|"reads scene counts"| node_scene
node_vertex_utils -->|"exports transforms"| node_transform_utils
node_vertex_utils -->|"fills frame stream"| node_stream
node_api -->|"uses shared types"| node_types
node_config -->|"configures types"| node_types
node_app_utils -->|"uses runtime interface"| node_api

click node_core "https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/src/anycore.c"
click node_api "https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/include/anycore.h"
click node_config "https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/configuration.h"
click node_scene "https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/src/anycore_scene_manager.c"
click node_scene_utils "https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/include/anycore_scene_manager_utils.h"
click node_transform "https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/src/anycore_transform_manager.c"
click node_transform_utils "https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/include/anycore_transform_manager_utils.h"
click node_vertex "https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/src/anycore_vertex_manager.c"
click node_vertex_utils "https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/include/anycore_vertex_manager_utils.h"
click node_time "https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/include/anycore_time_manager_utils.h"
click node_app "https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/src/anycore_app_manager.c"
click node_app_utils "https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/include/anycore_app_manager_utils.h"
click node_stream "https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/primitives.h"
click node_types "https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/primitives.h"

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_core,node_api,node_config,node_time toneBlue
class node_scene,node_scene_utils toneAmber
class node_transform,node_transform_utils,node_vertex,node_vertex_utils toneMint
class node_app,node_app_utils toneRose
class node_stream,node_types,node_host toneIndigo
```

## Components

### Runtime Core

- [Runtime Lifecycle](https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/src/anycore.c): `ANYCORE/ANYCORE256/ANYCORE256/src/anycore.c`
- [Public API](https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/include/anycore.h): `ANYCORE/ANYCORE256/ANYCORE256/include/anycore.h`
- [Build Configuration](https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/configuration.h): `ANYCORE/ANYCORE256/ANYCORE256/configuration.h`
- [Frame Timing](https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/include/anycore_time_manager_utils.h): `ANYCORE/ANYCORE256/ANYCORE256/include/anycore_time_manager_utils.h`

### Entity Scene

- [Entity Scene](https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/src/anycore_scene_manager.c): `ANYCORE/ANYCORE256/ANYCORE256/src/anycore_scene_manager.c`
- [Scene Operations](https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/include/anycore_scene_manager_utils.h): `ANYCORE/ANYCORE256/ANYCORE256/include/anycore_scene_manager_utils.h`

### Transforms And Models

- [Transform Operations](https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/src/anycore_transform_manager.c): `ANYCORE/ANYCORE256/ANYCORE256/src/anycore_transform_manager.c`
- [Transform State](https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/include/anycore_transform_manager_utils.h): `ANYCORE/ANYCORE256/ANYCORE256/include/anycore_transform_manager_utils.h`
- [Vertex And Model Data](https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/src/anycore_vertex_manager.c): `ANYCORE/ANYCORE256/ANYCORE256/src/anycore_vertex_manager.c`
- [Model And Stream Data](https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/include/anycore_vertex_manager_utils.h): `ANYCORE/ANYCORE256/ANYCORE256/include/anycore_vertex_manager_utils.h`

### Application Modules

- [App And Module Manager](https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/src/anycore_app_manager.c): `ANYCORE/ANYCORE256/ANYCORE256/src/anycore_app_manager.c`
- [Module And Behaviour API](https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/include/anycore_app_manager_utils.h): `ANYCORE/ANYCORE256/ANYCORE256/include/anycore_app_manager_utils.h`

### Shared Data

- [Frame Stream](https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/primitives.h): `ANYCORE/ANYCORE256/ANYCORE256/primitives.h`
- [Shared Runtime Types](https://github.com/samedifier/anycore-project/blob/main/ANYCORE/ANYCORE256/ANYCORE256/primitives.h): `ANYCORE/ANYCORE256/ANYCORE256/primitives.h`

### Other components

- **Host Application**

## Connections

- Host Application → Runtime Lifecycle: calls runtime
- Runtime Lifecycle → Scene Operations: initializes runtime (evidence: `ANYCORE/ANYCORE256/ANYCORE256/src/anycore.c`)
- Runtime Lifecycle → Module And Behaviour API: initializes runtime (evidence: `ANYCORE/ANYCORE256/ANYCORE256/src/anycore.c`)
- Runtime Lifecycle → Frame Timing: uses timing (evidence: `ANYCORE/ANYCORE256/ANYCORE256/src/anycore.c`)
- Runtime Lifecycle → Model And Stream Data: uses stream utilities (evidence: `ANYCORE/ANYCORE256/ANYCORE256/src/anycore.c`)
- Scene Operations → Transform State: initializes (evidence: `ANYCORE/ANYCORE256/ANYCORE256/include/anycore_scene_manager_utils.h`)
- Scene Operations → Model And Stream Data: initializes (evidence: `ANYCORE/ANYCORE256/ANYCORE256/include/anycore_scene_manager_utils.h`)
- Entity Scene → Scene Operations: implements operations (evidence: `ANYCORE/ANYCORE256/ANYCORE256/src/anycore_scene_manager.c`)
- Transform Operations → Transform State: implements operations (evidence: `ANYCORE/ANYCORE256/ANYCORE256/src/anycore_transform_manager.c`)
- Transform Operations → Scene Operations: uses scene state (evidence: `ANYCORE/ANYCORE256/ANYCORE256/src/anycore_transform_manager.c`)
- Vertex And Model Data → Model And Stream Data: implements operations (evidence: `ANYCORE/ANYCORE256/ANYCORE256/src/anycore_vertex_manager.c`)
- App And Module Manager → Module And Behaviour API: implements operations (evidence: `ANYCORE/ANYCORE256/ANYCORE256/src/anycore_app_manager.c`)
- Model And Stream Data → Frame Timing: updates frame timing (evidence: `ANYCORE/ANYCORE256/ANYCORE256/include/anycore_vertex_manager_utils.h`)
- Model And Stream Data → Entity Scene: reads scene counts (evidence: `ANYCORE/ANYCORE256/ANYCORE256/include/anycore_vertex_manager_utils.h`)
- Model And Stream Data → Transform State: exports transforms (evidence: `ANYCORE/ANYCORE256/ANYCORE256/include/anycore_vertex_manager_utils.h`)
- Model And Stream Data → Frame Stream: fills frame stream (evidence: `ANYCORE/ANYCORE256/ANYCORE256/include/anycore_vertex_manager_utils.h`)
- Public API → Shared Runtime Types: uses shared types (evidence: `ANYCORE/ANYCORE256/ANYCORE256/include/anycore.h`)
- Build Configuration → Shared Runtime Types: configures types (evidence: `ANYCORE/ANYCORE256/ANYCORE256/configuration.h`)
- Module And Behaviour API → Public API: uses runtime interface (evidence: `ANYCORE/ANYCORE256/ANYCORE256/include/anycore_app_manager_utils.h`)
