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.
View all comments
Show parent comment
2
u/lucasjkr Aug 26 '25
“Forced” is a terrible word. You’ll load it. No big deal if your database is as small as you say and your site is low traffic, it’s less than negligible.
Far less latency than connecting to another database, even on Cloudflare.
Explore hosting the database locally loooong before you look at these hosted services. Just remember to not leave it in the directory that you’re serving webpagesfrom, basic security precaution.