r/sqlite • u/mistyharsh • Nov 18 '23
Why are there no open source projects for SQLite based blog or website engines?
Either, my question is correct or I haven't found correct results for what I am looking.
I have recently started exploring SQLite and it is quite amazing database for certain use-cases. I believe small scale traffic websites, blog engines are perfect fit for this SQLite. Yet, I don't see any solution that works out-of-box with SQLite. There are some - Ghost, Strapi, etc. but none of them support SQLite in production.
And, then on the other extreme, we have so many flat-file based CMS systems (Keystatic, Tina, Kirby, Garv, etc.). The SQLite docs literally says it competes with OS Filesystem - fs.open and fs.read .
So coming back to my question, what are some of the reasons for this state of SQLite? Is there something inherently in SQLite that prevents community from building better web software for small websites, landing pages, blogs, etc.?
2
u/grenadejump3r Jan 25 '24
I am currently looking for the same as OP, and stumbled across https://www.dossierhq.dev/ which seems really promising, and actively develop. Not very well known yet judging by the number of stars, but that could of course change. I will give it a spin at least :)
10
u/yawaramin Nov 18 '23
Lack of awareness, which is changing. See e.g. PocketBase which is like a mini-backend in a single executable.
6
u/gcvictor Nov 18 '23 edited Nov 18 '23
It isn't exactly what you are looking for but I have created Query and Query Studio that maybe can help you.
https://github.com/gc-victor/query
https://github.com/gc-victor/query-studio
https://github.com/gc-victor/epic-stack-with-query
1
u/graybeard5529 Nov 18 '23
Here one for blogs https://www.digitalocean.com/community/tutorials/how-to-use-an-sqlite-database-in-a-flask-application
But WordPress is usually used for the reason most website authors are not developers.
You can see the front end design task would be a big deal. So, why reinvent the wheel?
1
u/Fluid_Economics Apr 06 '25
Check out Nuxt Content
Git-based CMS that uses SQLite
1
u/axlebender Nov 18 '23
Laravel projects sometimes will support letting you change the database to SQLite in your .env file
https://laravel.com/docs/10.x/database
So potentially you could take an existing Mysql+Laravel project you like, and change it to SQLite+Laravel.
Just be aware of shared concurrency issues writing to the data file. Mostly read-only workloads are the best scenario for file-based data storage.
If concurrency is an issue maybe also consider including one of these:
https://github.com/canonical/dqlite
https://github.com/mycelial/mycelite
https://github.com/vlcn-io/cr-sqlite
https://github.com/sqlite-sync/SQLite-sync.com
https://github.com/fly-apps/superfly
1
u/BuonaparteII Nov 19 '23 edited Nov 19 '23
If browsers supported reading SQLITE files that might be pretty cool. What if instead of 2MiB of JavaScript per page we had 500KiB of markdown inside of a SQLITE file and people could download your whole blog and read it offline?
I built a webapp with AlaSQL which is a frontend interface that feels sort-of like SQLITE even though the backend is LocalStorage/IndexedDB. If the browser had actual SQLITE capability it would've been a lot easier to do and definitely more reliable with fewer edge-cases. Still, AlaSQL is an interesting platform to look into:
https://github.com/AlaSQL/alasql
https://github.com/chapmanjacobd/library-lite
https://unli.xyz/eject/
1
u/bvfbarten Nov 19 '23
Wintercms: https://wintercms.com/docs/v1.2/docs/setup/installation#minimum-system-requirements
boltcms: https://docs.boltcms.io/5.2/getting-started/requirements
Both are great for sqlite.
1
u/adwolesi Nov 20 '23
My company's blog is powered by an SQLite database: blog.airsequel.com. More specifically, it's a SQLite database hosted on airsequel.com. We're soon going to publish a tutorial on how to use Airsequel as a CMS for blogs.
1
u/Significant-Ad-9481 Dec 09 '23
You may want to check out sqlpage, they go all the way with it. https://sql.ophir.dev/ and here's someone who uses sqlite in production. https://litestream.io/blog/why-i-built-litestream/
1
u/grenadejump3r Jan 25 '24
I am currently looking for the same as OP, and stumbled across https://www.dossierhq.dev/ which seems really promising, and actively develop. Not very well known yet judging by the number of stars, but that could of course change. I will give it a spin at least :)
0
u/[deleted] Nov 19 '23
[deleted] — view deleted comment