A simple tool for passive reading multiple Twitter streams in the terminal.
I don't have a Twitter account but there are some profiles that I like to check up on regularly. What I don't like is getting sucked into an endless vortex of links and n-level deep discussions far removed from the original message that eat away my time and attention. This tool aims to combat this by making the reading part of my daily Twitter rountine easier and intentionally introducing friction everywhere else to disrupt the habit of immediately clicking on things.
Twit will read a list of profile names from profiles.txt
, fetch the contents of their respective pages (using curl
) and render them all together in a convenient format. No additional tweets can be loaded at this point with the exception of those providing context to replies (see example). The default shortened links are replaced with original urls which makes them un-clickable in most cases. Again, this is considered a feature. If something is not worth copying and pasting into the browser in multiple chunks then it shouldn't be clicked in the first place.
The retrieval of data is a synchronous operation because I want to have a loading time penalty for every additional person "followed". It encourages pruning the reading list, taking planned breaks and discourages reading tweets between other tasks.
$ touch profiles.txt
- with Docker
$ docker build -t twit .
Populate profiles.txt
with a list of profiles to fetch. Empty lines and lines starting with #
will be ignored.
Afterwards run
$ ./twit.js
or
$ docker run -ti -v $(pwd):/workdir twit
- movement:
hjkl
orArrow keys
- show context for reply:
o
orEnter
- current stream page up:
^U
orPgUp
- current stream page down:
^D
orPgDn
- exit:
q