Remix.run Logo
▲ stavros an hour ago

I don't mind people wanting to move off GitHub, but why not go to Forgejo or something? Ah well, to each their own.

Has anyone tried Pocketbase, or another Supabase alternative? Are they good? I want a backend for my small, otherwise static apps and silly games, like https://quarto.stavros.io. What's good that supports websockets/realtime and maybe basic users?

▲vunderba an hour ago | parent | next [-]

Supabase is pretty heavyweight. I personally like PocketBase with one small exception - it doesn't support null as a valid value, even though the backing database is SQLite.

You can work around it (aka a magic constant), but if all floating-point values have a meaning for a given column then you effectively have to create an additional boolean column, `isColumnFilled` to indicate whether the data in there is valid.

▲stavros an hour ago | parent [-]

Huh, that's a pretty weird limitation, I wonder why that decision was made. Still, seems worth trying out, thanks!

▲duzer65657 an hour ago | parent | prev | next [-]

PocketBase is excellent IMO, accelerating the building of a wide class of 3-tier apps and being very simple and straight forward to deploy and manage. A single Go executable with an SQLite database and optional custom extensions registered with hooks gives you the entire backend and management console. There's a frontend SDK too. I've used it with the built-in subscriptions (SSE) for a real(ish) time scoring system and it works fine for light concurrency.

▲stavros an hour ago | parent [-]

Thanks! You've convinced me, I'm deploying it right now.

▲input_sh an hour ago | parent | prev | next [-]

It is my go-to "backend" for every little tool I'm building.

There are some annoyances with its admin interface I have to live with when manually adding/editing records (to give an example, the datetime field uses MM-DD-YYYY and there's no way to change that), but it does the job I want it to do and I never felt the need to look for an alternative.

▲999900000999 an hour ago | parent | prev [-]

All of the Superbase/Firebase alternatives will either have difficult self hosting or strange limited hosted options .

I’d probably use Django and vibe code any custom functions needed.

PS: Carefully evaluate if you really want to add multiplayer to a small game. So many considerations are involved with security and other issues. It can quickly take the fun out of building it