Exploring Tweets with SQLite and WASM
divu.in
divu.in
It's probably impractical because the sqlite.wasm file is a couple megs, but it's a fun proof of concept.
(Steampipe is an open source CLI to query cloud APIs using SQL. No DB required!)
It would be pretty epic
I am pretty sure I can make this upload to s3 or something to emulate that
But a part of this experiment was its offline nature, where you can play around with tweets etc without having them uploaded to a server.
Interesting idea though about having them “sync”
I did use this to delete a lot of old tweets though.
SELECT substr(date,1,7) as d, count(*), min(likes+retweets) FROM tweets GROUP BY d ORDER BY d DESC;
Yep, looks like you mostly tossed tweets over a year old that didn't meet some threshold. Very cool to play with in the browser.This is also a great way to backup tweets etc.
Of course I have multiple SQLite files with all the data, whenever I want to delete “more”, I just take a new Twitter dump.
"Aesthetics and Web Developers" https://hacks.mozilla.org/2010/06/beyond-html5-database-apis...
Which means to be safe from the host system you have to virtualize the execution somehow - WASM is exactly that. Therefore if you wanted sqlite in a browser, you can simply compile it to wasm.