This is an in-progress tooklit to take a twitter archive and plot it in 2D, like so:
To use it:
-
Get your twitter archive and copy
data/tweets.js
to the root of this project astweets.j 6647 son
. Modify it to be JSON and not JS -
Copy .env.example as .env and add an OpenAI API key.
-
npm install in root directory
-
Run
npx ts-node embed_tweets.ts
to embed the tweets. -
Run
node elbowCluster.js
to cluster the tweets. -
Pick one of the cluster sets and rename it to
clustered_tweets.json
-
Run
node makeGraph.js
to generate the graph data -
Open a terminal and cd to
packages/demo
and npm install and npm start
It should work! If it doesn't, please open an issue.