Fireship · @fireship

PocketBase... The Ultimate Side-Hustle Backend?

Uploaded September 13, 2022 · Length 3:31

PocketBase... The Ultimate Side-Hustle Backend?

Summary

The video compares pocketbase to supabase and firebase, highlighting its potential as a lightweight, self-hostable backend for side projects.

  • pocketbase
  • supabase
  • firebase
  • backend
  • side hustle
  • self-hosted
  • go programming language
  • svelte

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:01

    it is september 13 2022 and you're

  2. 0:04

    watching the code report last friday i

  3. 0:06

    made a video about firebase alternatives

  4. 0:08

    and you guys were quick to let me know

  5. 0:09

    that i left out a very important project

  6. 0:11

    called pocketbase well i tried it out

  7. 0:14

    and it kind of blew my mind

  8. 0:22

    as soon as i landed on the home page and

  9. 0:24

    saw this cool proximity hover effect

  10. 0:26

    where the eyes follow your cursor i was

  11. 0:28

    sold on it at first glance it looks very

  12. 0:29

    similar to supabase something with a

  13. 0:31

    real-time relational database

  14. 0:33

    authentication file storage and so on

  15. 0:35

    that's built entirely with open source

  16. 0:37

    software unlike the godfather firebase

  17. 0:39

    which requires proprietary google

  18. 0:41

    software it looks like other bases at

  19. 0:43

    first glance but it's actually very

  20. 0:44

    different under the hood and i think it

  21. 0:46

    has the potential to be the ultimate

  22. 0:48

    side project back end let's go ahead and

  23. 0:49

    compare it to something like supabase

  24. 0:51

    the first thing you'll notice is that

  25. 0:52

    it's written in the go programming

  26. 0:54

    language as opposed to typescript for

  27. 0:56

    supabase that's mostly superficial but

  28. 0:58

    things in go do tend to be faster it

  29. 1:00

    also uses svelte for its admin ui while

  30. 1:02

    supabase uses react and firebase uses

  31. 1:05

    angular that's totally meaningless but

  32. 1:06

    just kind of interesting for client-side

  33. 1:08

    sdks it supports javascript and dart

  34. 1:10

    which means it's usable on web desktop

  35. 1:12

    and mobile what's really interesting

  36. 1:14

    about pocketbase though is the database

  37. 1:16

    instead of something like postgres or

  38. 1:18

    mysql it directly embeds sql lite into

  39. 1:20

    the executable and runs it in wall mode

  40. 1:22

    which stands for right ahead logging my

  41. 1:24

    initial thought was you can't use sql

  42. 1:26

    light in production but actually that's

  43. 1:28

    a misconception sequel light is an

  44. 1:30

    underappreciated option for small to

  45. 1:32

    medium sized projects surprisingly in

  46. 1:34

    wall mode it actually outperforms other

  47. 1:36

    relational databases especially in a

  48. 1:38

    read heavy app and i'm sure it'll work

  49. 1:39

    perfectly fine for your side project

  50. 1:41

    that's destined to fail but in the off

  51. 1:43

    chance it doesn't fail you might be

  52. 1:44

    wondering does pocket base scale because

  53. 1:47

    the database is embedded into the

  54. 1:48

    runtime itself it can only scale

  55. 1:50

    vertically this differs from nosql

  56. 1:52

    databases like firestore that use

  57. 1:54

    sharding to scale horizontally to an

  58. 1:56

    infinite number of machines when scaling

  59. 1:58

    vertically the only way to handle more