S
Supabase
Home Free Resources What is Supabase?
For Young Creators

Meet Supabase!

The super-easy tool to store and use data in your games and apps!

Example Code
// Save your high score with Supabase
const saveScore = async (score) => {
  const { data, error } = await supabase
    .from('game_scores')
    .insert([{ score: score, player: "You" }])
  
  if (error) console.log('Oops!', error)
  else console.log('Score saved!', data)
}
Let's Explore

What is Supabase, Anyway?

Think of Supabase as your digital toy box that keeps all your game data safe and organized!

Stores Your Stuff

Save scores, usernames, and game progress so you don't lose them when you close your app!

Shares With Friends

Let your friends see high scores or play together by sharing data between devices!

Super Easy to Use

You don't need to be an expert! Supabase works with simple code that's easy to understand.

See It In Action!

Watch how Supabase can save and show your game scores with just a little code.

Score Keeper Demo

0

Your Current Score

Saved Scores:

No scores saved yet!

How It's Made

// Connect to Supabase
const supabase = window.supabase.createClient(
  'your_url',
  'your_key'
)

// Save score function
async function saveScore(score) {
  const { data, error } = await supabase
    .from('scores')
    .insert([{ value: score }])
  
  if (error) {
    showMessage('Error saving!', 'red')
  } else {
    showMessage('Score saved!', 'green')
    loadScores()
  }
}

// Get all scores
async function loadScores() {
  const { data } = await supabase
    .from('scores')
    .select('*')
    .order('value', { ascending: false })
  
  displayScores(data)
}

Test Your Knowledge!

Take this quick quiz to see what you've learned about Supabase.

1. What can Supabase help you do?

2. Is Supabase easy for beginners to use?

3. What kinds of things can you save with Supabase?