balajis pfp
balajis
@balajis.eth
Cloud Cartography: $1000 Prize We need maps of the cloud. And Farcaster can start providing those maps, because it's an open state social network. That is: Farcaster's database is public and viewable if running a hub. So here's what I'd like to see: a Python script, hosted at replit.com, that lets you paste in N usernames to generate an in-browser visualization of the social network between those N people, with a slider that visualizes their interconnections as a function of time. As you drag the slider, your code should display various metrics like the number of edges, the adjacency matrix, and the all-pairs-shortest-path matrix (https://coursys.sfu.ca/2020fa-cmpt-307-d1/pages/slides21/view) as a function of time. This will allow you to visualize a network of N people coming together, by connecting, over time. All your code should be open source, your visualizations should be pretty and mobile friendly, and you can add other features so long as you nail the main ones. @bountybot
26 replies
319 recasts
603 reactions

Carl B pfp
Carl B
@carl-b
Here's my solution built in Typescript. It works like this: - Next.js App with an API calling Farcaster - Textarea to enter comma- or space-separated usernames to send to API - Lookup farcaster ID from usernames and store in Nodes array - Compare each FID for follow status (this takes a lot of time to query for many users) - For each user that follows another store in Edges array - Return Nodes and Edges to frontend and display in Network Graph - Filter graph based on Range slider input - Display Metrics for filtered graph in tables (number of edges, adjacency matrix, shortest path) Note: Some issues I wasn't able to solve in time - fetching many users takes a lot of time due to cross-referencing the follow state - after fetching from API, the slider messes up the network graph (not sure why this is happening) https://replit.com/@CarlBarrdahl/farcaster-network-graph
0 reply
0 recast
0 reaction