Live data from Hacker News

Pocketbase: Open-source back end in one file

pocketbase.io

11–20 of 151 posts

Re: Pocketbase: Open-source back end in one file

#12

What minimal front-ends are there that one could combine with this minimal back-end to provide a minimal end-to-end?

I would say

- htmx (https://htmx.org/)

- Alpine.js (https://alpinejs.dev/)

both are minimal and very easy to get started.

Re: Pocketbase: Open-source back end in one file

#13
post #9

It seems to me that redbean is a much simpler, vastly lighter one-file web server + sqlite DB: https://redbean.dev/ As a bonus, the same file runs on basically any OS without any dependencies on the local system, not even libc.

To me it seems as if both tools serve a pretty different purpose.

Redbean doesn't have authentication or the client SDKs at least.

Re: Pocketbase: Open-source back end in one file

#16
post #15

What are realistic bottlenecks to expect from a backend like this? Eg. a web app serving users that write posts simultaneously

More than one server. Sqlite should be thread safe and simple services can scale to thousands of parallal users. If you are OK with some downtime every 6 months when server goes down it will scale well. Deploy/ rollback will be an effort.

Re: Pocketbase: Open-source back end in one file

#18
post #10

I mostly know Python. Is there something similar in Python? Or the backend language is not relevant, because you mostly use this from JavaScript anyway?

Packaging this as a Python lib that could run under WSGI/ASGI and use all the awesome python libs would be amazing. I wonder if that's possible?

Re: Pocketbase: Open-source back end in one file

#19
post #9

It seems to me that redbean is a much simpler, vastly lighter one-file web server + sqlite DB: https://redbean.dev/ As a bonus, the same file runs on basically any OS without any dependencies on the local system, not even libc.

To me it seems as if both tools serve a pretty different purpose. Redbean doesn't have authentication or the client SDKs at least.

The self-described purpose is "opensource backend in one file". They both offer that.

Re: Pocketbase: Open-source back end in one file

#20
post #4

Earlier quoted context omitted.

I use PocketBase for mostly everything where I need a back end now. I came across a situation where I needed to write a custom SQL join (technically I could have just fetched all the data and done it in Node, I suppose). I was shocked at how easy it was to write the query even inserting URL parameters and selecting based on the authenticated user only. Fully recommend for basically everything. Great app. Not sure it…

Interesting! I haven't made anything serious yet with the PocketBase (mostly due to lack of time & not anything to do with PB). I'm curious to know what kind of projects did you build using PB and how was your development experience?

Bits and pieces. A bedtime tracking app for my kid, a microblog, a TikTok clone, a budget app, a text-to-speech app with translation functionality…

Development experience was outstanding. I primarily use SvelteKit and integrate PocketBase for SSR, so I use the SDK almost exclusively and it’s fantastic. Everything just works exactly the way you would expect.

I can’t imagine anything easier to implement, and as yet, I haven’t found any major gaps in what I can do with it, normally with OOB functionality.

Development velocity is very high and the developer is super responsive on GitHub. The documentation is very good and kept up to date pretty well.

My only real concern is that the project has a pretty poor bus factor, otherwise, I’m very impressed.

Post reply on HN