👉 3.x
A lightweight addon which integrates Supabase APIs for Godot Engine out of the box.
- Authentication (/auth)
- Database (/database)
- Realtime (/realtime)
- Storage (/storage)
A drag&drop UI Library is available at supabase-ui.
A collection of examples and live demos is available at fenix-hub/godot-engine.supabase-examples, both with source code and exported binaries.
A wiki is available here.
Even though it is still not complete, Classes and APIs references are always listed and updated.
Multiple approaches!
Asynchronous (signals)
# method 1 (connecting to `Supabase.auth.signed_in` signal)
func _ready():
Supabase.auth.signed_in.connect(_on_signed_in)
Supabase.auth.sign_in(
"user@supabase.email",
"userpwd"
)
func _on_signed_in(user: SupabaseUser) -> void:
print(user)
# method 2 (using lambdas, connecting to the `AuthTask.completed` signal)
func _ready():
Supabase.auth.sign_in(
"user@supabase.email",
"userpwd"
).completed.connect(
func(authTask: AuthTask) -> void:
print(auth_task.user)
)
Synchronous (await)
func _ready():
var auth_task: AuthTask = await Supabase.auth.sign_in(
"user@supabase.email",
"userpwd"
).completed
print(auth_task.user)