An open API service indexing awesome lists of open source software.

https://github.com/youssof20/godotbase

Docs for GodotBase - Supabase auth & database for Godot 4. Plugin on itch.io.
https://github.com/youssof20/godotbase

addon backend documentation game-development gdscript godot godot-engine plugin postgresql supabase

Last synced: 11 days ago
JSON representation

Docs for GodotBase - Supabase auth & database for Godot 4. Plugin on itch.io.

Awesome Lists containing this project

README

          

# GodotBase

Supabase auth and database for Godot 4, without writing your own HTTPRequest code.

The old community Supabase addon lagged behind Godot 4.3+. GodotBase gives you one autoload: `GodotBase.auth` and `GodotBase.db`, plus signals when each call finishes.

**Download:** https://chuumberry.itch.io/godotbase

## Example

```gdscript
GodotBase.auth.login("player@example.com", "password123")
await GodotBase.auth.auth_success

GodotBase.db.insert("scores", {"player": "Axel", "score": 9500})
await GodotBase.db.insert_success

GodotBase.db.select("scores").order("score", false).limit(10).execute()
await GodotBase.db.select_success
```

## Install

1. Download from https://chuumberry.itch.io/godotbase
2. Copy `addons/godotbase` into your Godot 4.3+ project
3. Enable **Project → Project Settings → Plugins → GodotBase**
4. Paste **godotbase/supabase_url** and **godotbase/supabase_anon_key** in Project Settings
5. Run **Project → Test Supabase Connection** (check Output)
6. Run `addons/godotbase/sql/setup_scores.sql` in the Supabase SQL Editor if you use the example

The download zip includes `START_HERE.txt` and `QUICKSTART.md`.

## Docs

- [Supabase setup](docs/supabase-setup.md)
- [API reference](docs/api-reference.md)
- [Compatibility](docs/compatibility.md)

## Support

Comments on https://chuumberry.itch.io/godotbase or open an issue on this repo. Include your Godot version and `[GodotBase]` lines from Output.

## License

Documentation in this repository is [MIT](LICENSE). The GodotBase plugin is sold on itch.io.