Fireship · @fireship
Supabase in 100 Seconds
Uploaded November 25, 2022 · Length 2:37
Summary
Supabase explained as an open source Firebase alternative for web and mobile apps with free tier.
- supabase
- firebase alternative
- open source
- backend as a service
- database management
- edge functions
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
Superbass a complete back end for web
- 0:02
and mobile applications based entirely
- 0:04
on free open source software the biggest
- 0:07
challenge when building an app is not
- 0:09
writing code but rather architecting a
- 0:11
complete system that works at scale
- 0:13
products like Firebase and amplify have
- 0:15
addressed this barrier but there's one
- 0:17
big problem they lock you into
- 0:19
proprietary technology on a specific
- 0:21
Cloud platform Superbass was created in
- 0:23
2019 specifically as an open source
- 0:26
Firebase alternative at a high level it
- 0:28
provides two things on the back end we
- 0:30
have infrastructure like a database file
- 0:33
storage and Edge functions that run in
- 0:35
the cloud on the front end we have
- 0:36
client-side sdks that can easily connect
- 0:39
this infrastructure to your favorite
- 0:40
front-end JavaScript framework react
- 0:42
native flutter and many other platforms
- 0:45
as a developer you can manage your
- 0:46
postgres database with an easy to
- 0:48
understand UI which automatically
- 0:50
generates rest and graphql apis to use
- 0:53
in your code the database integrates
- 0:54
directly with user authentication making
- 0:57
it almost trivial to implement row level
- 0:59
security and like fire base it can
- 1:01
listen to data changes in real time
- 1:02
while scaling to virtually any workload
- 1:05
to get started you can self-host with
- 1:06
Docker or sign up for a fully managed
- 1:09
account that starts with a free tier on
- 1:11
the dashboard you can create tables in
- 1:12
your postgres database with a click of a
- 1:14
button insert columns to build out your
- 1:16
schema then add new rows to populate it
- 1:19
with data by default every project has
- 1:21
an authentication schema to manage users
- 1:23
within the application this opens the
- 1:25
door to row level security where you
- 1:27
write policies to control who has access
- 1:29
to your data in addition the database
- 1:31
supports triggers to react to changes in
- 1:33
your data and postgres functions to run
- 1:36
stored procedures directly on the
- 1:38
database server it's a nice interface
- 1:39
but it also automatically generates
- 1:41
custom API documentation for you from
- 1:44
here we can copy queries tailored to our
- 1:46
database and use them in a JavaScript
- 1:48
project install the Super Bass SDK with
- 1:50
npm then connect to your project and
- 1:52
sign a user in with a single line of
- 1:54
code and now we can listen to any
- 1:56
changes to the authentication state in
- 1:58
real time with on off stage change when


