DEV Community

Discussion on: What are Headless CMS?

Collapse
 
bias profile image
Tobias Nickel

i like pocketbase as a cms. it describes itself as small database, but is so much more.

Collapse
 
j4acks0n profile image
j4acks0n

what is that?can you explain to me?,use for?

Collapse
 
bias profile image
Tobias Nickel

it is a small software made with golang on the server and a web-ui made using svelte.

because it is made using golang, you can download a single binary executable and run it. (windows, mac, linux, amd, intel, arm i think it run on any machine.)

internally it uses SQLite. so here you see a limitation, it is not made for large scale. But according to the makers, it can handle about 2000requests or queries per second what can get you a long way. also the sqlite db should be good for the first 100gb of data. This can get you a long way and will be plenty for most projects.

when it run, you can open the webUI and create tables and relationships between the tables. You define access rules for users. These rules are so powerful, that you even can build a 'role based access control'. or can make sure that some users can make only certain changes to the data. With these rules, it can cover many usecases where you need in strapi the paid commercial version.

Using the clientside js sdk, you can even listen for data changes. I think it uses websockets for that. this is very good for realtime applications. In the WebUI this feature is used to show you real time statistics about the database.

What I like is, you can have a column of type 'file', that allowes to upload and download files.

on my own server, I installed a cron job with 'crontab -e' (on linux) by adding a line like this:

@reboot   cd pocketbase && ./pocketbase -p 3000
Enter fullscreen mode Exit fullscreen mode

So it is always on when my server is on(allways).

I think you can feel how much I love pocketbase. it is easy to install and I think it only takes about an afternoon to understand the system completely. it is worth it, give it a try 👍