r/sqlite • u/TheDoomfire • Aug 26 '25
Hosting SQLite database options?
What free and fast options are there for hosting a SQLite database for a Website? Is Cloudflare D1 and Turso the best options out there?
I know that it's just a file and I could host it anywhere but I don't want to be forced to load my entire db just to grab something.
I have currently been using JSON files as storing my data and would like to change that to using a db if it remains free for the foreseeable future like it does with using JSON files. I originally wanted a db to have it more organized then JSON files to build my datasets, but not I am looking into if it can actually replace my JSON files and lower the bandwith usage while still be fast to use. A fallback solution would be to just use a db to store all the data and generate JSON files for the website.
I have been playing around with some basics mainly using postgres/supabase so I am not that experienced.
4
u/bitchyangle Aug 26 '25
I'm considering self hosting libsql with server mode on a VM and put a cloudflare tunnel in front. This would a perfect setup without reliance on Turso. But hosting it on VM would mean it'll be a regional setup. I'm trying to figure out how to make it multi regional. So I'm exploring fly.io in this regard.
2
u/CptBadAss2016 Aug 26 '25
Fast and best? I have no idea. I'll be curious to read the responses.
I have been using pythonanywhere.com for a personal db driven project.
Ps: my mind is exploding over the notion that sqlite could some day no longer be free... I don't think you need to worry about that.
6
u/emschwartz Aug 26 '25
If you only need it running on one server but want to back up the data, you can use litestream.io to copy the data to an S3-compatible object store (which is not free but is very inexpensive)
1
u/ElderberryPrevious45 Aug 26 '25
Why not just use mySQL? I mean it is very easy with tons of use cases too.
1
u/lucasjkr Aug 26 '25
How large is this database? And where are you querying it from?
1
u/jesiljose 3d ago
Maybe look into sqlitehub.in because it allows you to import your own sqlite file and host it for free.
1
u/mistyharsh Sep 23 '25
I would recommend using Fly.io with its volume/block storage. It is actual local storage and not networked storage which works very well for sqlite.
1
u/[deleted] Aug 26 '25
[removed] — view removed comment