Fireship · @fireship
PocketBase... The Ultimate Side-Hustle Backend?
Uploaded September 13, 2022 · Length 3:31
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.
- 0:01
it is september 13 2022 and you're
- 0:04
watching the code report last friday i
- 0:06
made a video about firebase alternatives
- 0:08
and you guys were quick to let me know
- 0:09
that i left out a very important project
- 0:11
called pocketbase well i tried it out
- 0:14
and it kind of blew my mind
- 0:22
as soon as i landed on the home page and
- 0:24
saw this cool proximity hover effect
- 0:26
where the eyes follow your cursor i was
- 0:28
sold on it at first glance it looks very
- 0:29
similar to supabase something with a
- 0:31
real-time relational database
- 0:33
authentication file storage and so on
- 0:35
that's built entirely with open source
- 0:37
software unlike the godfather firebase
- 0:39
which requires proprietary google
- 0:41
software it looks like other bases at
- 0:43
first glance but it's actually very
- 0:44
different under the hood and i think it
- 0:46
has the potential to be the ultimate
- 0:48
side project back end let's go ahead and
- 0:49
compare it to something like supabase
- 0:51
the first thing you'll notice is that
- 0:52
it's written in the go programming
- 0:54
language as opposed to typescript for
- 0:56
supabase that's mostly superficial but
- 0:58
things in go do tend to be faster it
- 1:00
also uses svelte for its admin ui while
- 1:02
supabase uses react and firebase uses
- 1:05
angular that's totally meaningless but
- 1:06
just kind of interesting for client-side
- 1:08
sdks it supports javascript and dart
- 1:10
which means it's usable on web desktop
- 1:12
and mobile what's really interesting
- 1:14
about pocketbase though is the database
- 1:16
instead of something like postgres or
- 1:18
mysql it directly embeds sql lite into
- 1:20
the executable and runs it in wall mode
- 1:22
which stands for right ahead logging my
- 1:24
initial thought was you can't use sql
- 1:26
light in production but actually that's
- 1:28
a misconception sequel light is an
- 1:30
underappreciated option for small to
- 1:32
medium sized projects surprisingly in
- 1:34
wall mode it actually outperforms other
- 1:36
relational databases especially in a
- 1:38
read heavy app and i'm sure it'll work
- 1:39
perfectly fine for your side project
- 1:41
that's destined to fail but in the off
- 1:43
chance it doesn't fail you might be
- 1:44
wondering does pocket base scale because
- 1:47
the database is embedded into the
- 1:48
runtime itself it can only scale
- 1:50
vertically this differs from nosql
- 1:52
databases like firestore that use
- 1:54
sharding to scale horizontally to an
- 1:56
infinite number of machines when scaling
- 1:58
vertically the only way to handle more


