Dataset Viewer
The dataset viewer is not available for this dataset.
Unexpected token '<', "<html> <h"... is not valid JSON

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

Godot GDscript Code Dataset

This dataset contains GDScript code from 5k+ github repositories. Data from each repo has been extracted into a text file. Each text file contains the code from all .gd files & README.md text (if the README was not empty in the original repo).

Original forum post:

https://diffused.to/Thread-Godot-GDscript-Code-Dataset-5k

Dataset collection date

June 2025

Dataset structure:

πŸ“‚ files/
β”œβ”€β”€ repo-name-1.txt
β”œβ”€β”€ repo-name-2.txt
β”œβ”€β”€ repo-name-3.txt
β”œβ”€β”€ ....

Total data:

5,172 (660 MB)

Data format

Each txt file has the following format:

Godot project
### Name: <repo name>

### Godot version: <3/4>

### Directory structure:
β”œβ”€β”€ Assets/
β”‚   β”œβ”€β”€ Rain.glb
β”‚   β”œβ”€β”€ alienB.png
β”‚   β”œβ”€β”€ player.glb
β”‚   β”œβ”€β”€ skin.material
β”œβ”€β”€ Blender/
β”‚   β”œβ”€β”€ RagDoll.blend
β”‚   β”œβ”€β”€ Rain.blend
β”œβ”€β”€ Game.tscn
β”œβ”€β”€ Player/
β”‚   β”œβ”€β”€ Player.gd
β”‚   β”œβ”€β”€ Player.tscn
β”œβ”€β”€ README.md
β”œβ”€β”€ default_env.tres
β”œβ”€β”€ icon.png
β”œβ”€β”€ project.godot

### Files:
File name: README.md
```markdown
<Repo readme here>
```


File name: Player/Player.gd
```gdscript
extends KinematicBody

onready var Camera = get_node("/root/Game/Camera")

var velocity = Vector3()
var gravity = -9.8

```


File name: file2.gd
```gdscript
<...>
```


File name: file3.gd
```gdscript
<...>
```
Downloads last month
11,209