i'm a dev and a journalist πŸ³οΈβ€πŸŒˆ
posting css and svg toys and art

posts from @joee tagged #javascript

also: #js

colorschemez
@colorschemez
diaconal electric purple#aa23ff
widest dark blue grey#1f3b4d
ammophilous blue grey#607c8e

joee
@joee

I just finished bringing my bot @colorschemez (twitter) to cohost with some new features: Images are now SVG and the hex codes are included in the post using the details tag.

It's set up to post once per day (but occasionally will post more if I'm working on it, like today).

tech details

The old version was written in python several years ago, so I rewrote it today using JavaScript. It felt hacky but I decided to use d3 because it can interact with a virtual DOM and it applies everything inline.

The old python version is still running (via digitalocean vm) on Twitter! This new one uses GitHub actions and cohost.js to publish new posts.

GitHub


Β