Tweetflight was a project that launched ten years ago, to accompany the Brightly single "Preflight Nerves", from the album Beginnings & Endings.
It was a web experiment and music video (a sort of Twitter karaoke) that went so far beyond its humble beginnings, opened so many doors for me, and is still the thing I've made that I'm most proud of.
Tweetflight would grab tweets, in real time, that matched up to the lyrics of the song. With the announcement that Twitter is shutting down free access to their API this site is now an archive, using a final collection of static tweets over and over. All good things must come to an end, and I'm really glad the ride lasted as long as it did.
You can still find the original code, while this static version is powered by Vite.
npm install
npm run dev
It outputs a static build in the dist
folder, which can be deployed wherever you like. By default this set up uses Cloudflare Pages.
npm deploy
Currently the static tweets are in the /public/scripts/controllers/main.js
file, but could be loaded in externally. The data format expected is an array of objects with the following properties:
var tweets = [
{
id: 1,
line: 'It was dark',
time: 1, // this is the second the lyric should display, and at 120bpm as refers to the current bar of the song
tweet: {
text: 'I spooked him big time cuz it was dark and he was hiding on the side of the driveway lol',
link: 'http://twitter.com/2464935918/status/1621427369213935616',
username: 'miztifying',
created_at: '2023-02-03 08:36:24 +0000',
},
},
// ...
]