# 4ian/gdevelop architecture

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

- Interactive diagram: https://gitdiagram.com/4ian/gdevelop
- Repository: https://github.com/4ian/gdevelop

## Overview

GDevelop is a no-code game creation product: creators edit a project and its event logic, then run or export games for multiple platforms. The repository separates the editor, project/event model, engine, extensions, and JavaScript/WebAssembly bindings. The README documents these product boundaries; source excerpts and the SOURCE INDEX support only selected internal links, so unsampled workflows are not connected speculatively.

Main entry points: [`newIDE/app/src`](https://github.com/4ian/gdevelop/tree/master/newIDE/app/src) (Game editor), [`GDJS/Runtime/gd.ts`](https://github.com/4ian/gdevelop/blob/master/GDJS/Runtime/gd.ts) (Game engine), [`SharedLibs/TileMapHelper/src/render/TileMapManager.ts`](https://github.com/4ian/gdevelop/blob/master/SharedLibs/TileMapHelper/src/render/TileMapManager.ts) (Tile map runtime), [`newIDE/app/src/ExportAndShare/ExportPipeline.flow.js`](https://github.com/4ian/gdevelop/blob/master/newIDE/app/src/ExportAndShare/ExportPipeline.flow.js) (Export pipeline)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_authoring["Editor and authoring"]
  node_editor["Game editor"]
  node_ai["AI assistance"]
  node_tutorials["In-app tutorials"]
  node_preferences["Editor preferences"]
end

subgraph group_core["Project and event core"]
  node_project["Game project model<br/>[Project.cpp]"]
  node_events["Event system<br/>[EventsList.cpp]"]
  node_codegen["Event code generation"]
  node_bindings["JavaScript bindings<br/>[Wrapper.cpp]"]
end

subgraph group_engine["Runtime and extensions"]
  node_runtime["Game engine<br/>[gd.ts]"]
  node_input["Runtime input<br/>[inputmanager.ts]"]
  node_rendering["2D rendering"]
  node_tilemaps["Tile map runtime<br/>[TileMapManager.ts]"]
  node_extensions["Built-in extensions"]
  node_tile_loader["Tile map loader<br/>[TileMapLoader.ts]"]
  node_tile_model["Editable tile map<br/>[TileMapModel.ts]"]
  node_tile_cache["Tile resource cache<br/>[ResourceCache.ts]"]
end

subgraph group_delivery["Build and storage"]
  node_storage["Project storage<br/>[index.js]"]
  node_export["Export pipeline"]
  node_builds["Game and builds"]
end

subgraph group_services["Account and services"]
  node_auth["Authenticated user"]
  node_tutorial_service["Tutorial service<br/>[InAppTutorial.js]"]
end

node_creator(("Game creator"))

node_creator -->|"authors games"| node_editor
node_editor -->|"edits projects"| node_project
node_editor -.->|"uses assistance"| node_ai
node_editor -.->|"offers guidance"| node_tutorials
node_editor -.->|"configures"| node_preferences
node_project -.->|"contains event logic"| node_events
node_events -.->|"generates runtime code"| node_codegen
node_editor -->|"uses bindings"| node_bindings
node_bindings -->|"exposes engine"| node_runtime
node_runtime -.->|"handles input"| node_input
node_runtime -.->|"renders games"| node_rendering
node_runtime -->|"runs extensions"| node_extensions
node_tilemaps -->|"loads tile maps"| node_tile_loader
node_tilemaps -->|"creates tile models"| node_tile_model
node_tilemaps -->|"caches resources"| node_tile_cache
node_editor -.->|"opens and saves"| node_storage
node_editor -->|"exports projects"| node_export
node_export -->|"requests builds"| node_builds
node_export -->|"uses account context"| node_auth
node_editor -.->|"uses account context"| node_auth
node_tutorials -->|"uses tutorial service"| node_tutorial_service

click node_editor "https://github.com/4ian/gdevelop/tree/master/newIDE/app/src"
click node_ai "https://github.com/4ian/gdevelop/blob/master/newIDE/app/src/AiGeneration/AskAiEditorContainer.js"
click node_tutorials "https://github.com/4ian/gdevelop/blob/master/newIDE/app/src/InAppTutorial/InAppTutorialOrchestrator.js"
click node_preferences "https://github.com/4ian/gdevelop/blob/master/newIDE/app/src/MainFrame/Preferences/PreferencesContext.js"
click node_project "https://github.com/4ian/gdevelop/blob/master/Core/GDCore/Project/Project.cpp"
click node_events "https://github.com/4ian/gdevelop/blob/master/Core/GDCore/Events/EventsList.cpp"
click node_codegen "https://github.com/4ian/gdevelop/blob/master/Core/GDCore/Events/CodeGeneration/EventsCodeGenerator.cpp"
click node_bindings "https://github.com/4ian/gdevelop/blob/master/GDevelop.js/Bindings/Wrapper.cpp"
click node_runtime "https://github.com/4ian/gdevelop/blob/master/GDJS/Runtime/gd.ts"
click node_input "https://github.com/4ian/gdevelop/blob/master/GDJS/Runtime/inputmanager.ts"
click node_rendering "https://github.com/4ian/gdevelop/blob/master/GDJS/Runtime/pixi-renderers/pixi-image-manager.ts"
click node_tilemaps "https://github.com/4ian/gdevelop/blob/master/SharedLibs/TileMapHelper/src/render/TileMapManager.ts"
click node_extensions "https://github.com/4ian/gdevelop/tree/master/Extensions"
click node_storage "https://github.com/4ian/gdevelop/blob/master/newIDE/app/src/ProjectsStorage/index.js"
click node_export "https://github.com/4ian/gdevelop/blob/master/newIDE/app/src/ExportAndShare/ExportPipeline.flow.js"
click node_builds "https://github.com/4ian/gdevelop/blob/master/newIDE/app/src/Utils/UseGameAndBuildsManager.js"
click node_auth "https://github.com/4ian/gdevelop/blob/master/newIDE/app/src/Profile/AuthenticatedUserContext.js"
click node_tutorial_service "https://github.com/4ian/gdevelop/blob/master/newIDE/app/src/Utils/GDevelopServices/InAppTutorial.js"
click node_tile_loader "https://github.com/4ian/gdevelop/blob/master/SharedLibs/TileMapHelper/src/load/TileMapLoader.ts"
click node_tile_model "https://github.com/4ian/gdevelop/blob/master/SharedLibs/TileMapHelper/src/model/TileMapModel.ts"
click node_tile_cache "https://github.com/4ian/gdevelop/blob/master/SharedLibs/TileMapHelper/src/render/ResourceCache.ts"

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_editor,node_ai,node_tutorials,node_preferences toneBlue
class node_project,node_events,node_codegen,node_bindings toneAmber
class node_runtime,node_input,node_rendering,node_tilemaps,node_extensions,node_tile_loader,node_tile_model,node_tile_cache toneMint
class node_storage,node_export,node_builds toneRose
class node_auth,node_tutorial_service,node_creator toneIndigo
```

## Components

### Editor and authoring

- [Game editor](https://github.com/4ian/gdevelop/tree/master/newIDE/app/src): `newIDE/app/src`
- [AI assistance](https://github.com/4ian/gdevelop/blob/master/newIDE/app/src/AiGeneration/AskAiEditorContainer.js): `newIDE/app/src/AiGeneration/AskAiEditorContainer.js`
- [In-app tutorials](https://github.com/4ian/gdevelop/blob/master/newIDE/app/src/InAppTutorial/InAppTutorialOrchestrator.js): `newIDE/app/src/InAppTutorial/InAppTutorialOrchestrator.js`
- [Editor preferences](https://github.com/4ian/gdevelop/blob/master/newIDE/app/src/MainFrame/Preferences/PreferencesContext.js): `newIDE/app/src/MainFrame/Preferences/PreferencesContext.js`

### Project and event core

- [Game project model](https://github.com/4ian/gdevelop/blob/master/Core/GDCore/Project/Project.cpp): `Core/GDCore/Project/Project.cpp`
- [Event system](https://github.com/4ian/gdevelop/blob/master/Core/GDCore/Events/EventsList.cpp): `Core/GDCore/Events/EventsList.cpp`
- [Event code generation](https://github.com/4ian/gdevelop/blob/master/Core/GDCore/Events/CodeGeneration/EventsCodeGenerator.cpp): `Core/GDCore/Events/CodeGeneration/EventsCodeGenerator.cpp`
- [JavaScript bindings](https://github.com/4ian/gdevelop/blob/master/GDevelop.js/Bindings/Wrapper.cpp): `GDevelop.js/Bindings/Wrapper.cpp`

### Runtime and extensions

- [Game engine](https://github.com/4ian/gdevelop/blob/master/GDJS/Runtime/gd.ts): `GDJS/Runtime/gd.ts`
- [Runtime input](https://github.com/4ian/gdevelop/blob/master/GDJS/Runtime/inputmanager.ts): `GDJS/Runtime/inputmanager.ts`
- [2D rendering](https://github.com/4ian/gdevelop/blob/master/GDJS/Runtime/pixi-renderers/pixi-image-manager.ts): `GDJS/Runtime/pixi-renderers/pixi-image-manager.ts`
- [Tile map runtime](https://github.com/4ian/gdevelop/blob/master/SharedLibs/TileMapHelper/src/render/TileMapManager.ts): `SharedLibs/TileMapHelper/src/render/TileMapManager.ts`
- [Built-in extensions](https://github.com/4ian/gdevelop/tree/master/Extensions): `Extensions`
- [Tile map loader](https://github.com/4ian/gdevelop/blob/master/SharedLibs/TileMapHelper/src/load/TileMapLoader.ts): `SharedLibs/TileMapHelper/src/load/TileMapLoader.ts`
- [Editable tile map](https://github.com/4ian/gdevelop/blob/master/SharedLibs/TileMapHelper/src/model/TileMapModel.ts): `SharedLibs/TileMapHelper/src/model/TileMapModel.ts`
- [Tile resource cache](https://github.com/4ian/gdevelop/blob/master/SharedLibs/TileMapHelper/src/render/ResourceCache.ts): `SharedLibs/TileMapHelper/src/render/ResourceCache.ts`

### Build and storage

- [Project storage](https://github.com/4ian/gdevelop/blob/master/newIDE/app/src/ProjectsStorage/index.js): `newIDE/app/src/ProjectsStorage/index.js`
- [Export pipeline](https://github.com/4ian/gdevelop/blob/master/newIDE/app/src/ExportAndShare/ExportPipeline.flow.js): `newIDE/app/src/ExportAndShare/ExportPipeline.flow.js`
- [Game and builds](https://github.com/4ian/gdevelop/blob/master/newIDE/app/src/Utils/UseGameAndBuildsManager.js): `newIDE/app/src/Utils/UseGameAndBuildsManager.js`

### Account and services

- [Authenticated user](https://github.com/4ian/gdevelop/blob/master/newIDE/app/src/Profile/AuthenticatedUserContext.js): `newIDE/app/src/Profile/AuthenticatedUserContext.js`
- [Tutorial service](https://github.com/4ian/gdevelop/blob/master/newIDE/app/src/Utils/GDevelopServices/InAppTutorial.js): `newIDE/app/src/Utils/GDevelopServices/InAppTutorial.js`

### Other components

- **Game creator**

## Connections

- Game creator → Game editor: authors games (evidence: `README.md`)
- Game editor → Game project model: edits projects (evidence: `README.md`)
- Game editor → AI assistance: uses assistance (evidence: `newIDE/app/src/MainFrame/EditorTabs/EditorTabsHandler.js`)
- Game editor → In-app tutorials: offers guidance (evidence: `newIDE/app/src/InAppTutorial/useInAppTutorialOrchestrator.js`)
- Game editor → Editor preferences: configures (evidence: `newIDE/app/src/Profile/AuthenticatedUserContext.js`)
- Game project model → Event system: contains event logic
- Event system → Event code generation: generates runtime code
- Game editor → JavaScript bindings: uses bindings (evidence: `README.md`)
- JavaScript bindings → Game engine: exposes engine (evidence: `README.md`)
- Game engine → Runtime input: handles input
- Game engine → 2D rendering: renders games
- Game engine → Built-in extensions: runs extensions (evidence: `README.md`)
- Tile map runtime → Tile map loader: loads tile maps (evidence: `SharedLibs/TileMapHelper/src/render/TileMapManager.ts`)
- Tile map runtime → Editable tile map: creates tile models (evidence: `SharedLibs/TileMapHelper/src/render/TileMapManager.ts`)
- Tile map runtime → Tile resource cache: caches resources (evidence: `SharedLibs/TileMapHelper/src/render/TileMapManager.ts`)
- Game editor → Project storage: opens and saves (evidence: `newIDE/app/src/ProjectsStorage/ProjectStorageProviders.js`)
- Game editor → Export pipeline: exports projects (evidence: `README.md`)
- Export pipeline → Game and builds: requests builds (evidence: `newIDE/app/src/ExportAndShare/ExportPipeline.flow.js`)
- Export pipeline → Authenticated user: uses account context (evidence: `newIDE/app/src/ExportAndShare/ExportPipeline.flow.js`)
- Game editor → Authenticated user: uses account context (evidence: `newIDE/app/src/ProjectsStorage/ProjectStorageProviders.js`)
- In-app tutorials → Tutorial service: uses tutorial service (evidence: `newIDE/app/src/InAppTutorial/useInAppTutorialOrchestrator.js`)
