Fireship · @fireship

Supabase in 100 Seconds

Uploaded November 25, 2022 · Length 2:37

Supabase in 100 Seconds

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.

  1. 0:00

    Superbass a complete back end for web

  2. 0:02

    and mobile applications based entirely

  3. 0:04

    on free open source software the biggest

  4. 0:07

    challenge when building an app is not

  5. 0:09

    writing code but rather architecting a

  6. 0:11

    complete system that works at scale

  7. 0:13

    products like Firebase and amplify have

  8. 0:15

    addressed this barrier but there's one

  9. 0:17

    big problem they lock you into

  10. 0:19

    proprietary technology on a specific

  11. 0:21

    Cloud platform Superbass was created in

  12. 0:23

    2019 specifically as an open source

  13. 0:26

    Firebase alternative at a high level it

  14. 0:28

    provides two things on the back end we

  15. 0:30

    have infrastructure like a database file

  16. 0:33

    storage and Edge functions that run in

  17. 0:35

    the cloud on the front end we have

  18. 0:36

    client-side sdks that can easily connect

  19. 0:39

    this infrastructure to your favorite

  20. 0:40

    front-end JavaScript framework react

  21. 0:42

    native flutter and many other platforms

  22. 0:45

    as a developer you can manage your

  23. 0:46

    postgres database with an easy to

  24. 0:48

    understand UI which automatically

  25. 0:50

    generates rest and graphql apis to use

  26. 0:53

    in your code the database integrates

  27. 0:54

    directly with user authentication making

  28. 0:57

    it almost trivial to implement row level

  29. 0:59

    security and like fire base it can

  30. 1:01

    listen to data changes in real time

  31. 1:02

    while scaling to virtually any workload

  32. 1:05

    to get started you can self-host with

  33. 1:06

    Docker or sign up for a fully managed

  34. 1:09

    account that starts with a free tier on

  35. 1:11

    the dashboard you can create tables in

  36. 1:12

    your postgres database with a click of a

  37. 1:14

    button insert columns to build out your

  38. 1:16

    schema then add new rows to populate it

  39. 1:19

    with data by default every project has

  40. 1:21

    an authentication schema to manage users

  41. 1:23

    within the application this opens the

  42. 1:25

    door to row level security where you

  43. 1:27

    write policies to control who has access

  44. 1:29

    to your data in addition the database

  45. 1:31

    supports triggers to react to changes in

  46. 1:33

    your data and postgres functions to run

  47. 1:36

    stored procedures directly on the

  48. 1:38

    database server it's a nice interface

  49. 1:39

    but it also automatically generates

  50. 1:41

    custom API documentation for you from

  51. 1:44

    here we can copy queries tailored to our

  52. 1:46

    database and use them in a JavaScript

  53. 1:48

    project install the Super Bass SDK with

  54. 1:50

    npm then connect to your project and

  55. 1:52

    sign a user in with a single line of

  56. 1:54

    code and now we can listen to any

  57. 1:56

    changes to the authentication state in

  58. 1:58

    real time with on off stage change when