Content pfp
Content
@
0 reply
0 recast
0 reaction

Maximonee 🎩 pfp
Maximonee 🎩
@maximonee
Hey devs, released my first gen art project Social Graphs. A mint in a frame that uses the minter’s Farcaster social activity to generate a piece based on their casts, engagement, and followers. A lot of work went into this, so I wanted to share how I approached it from a technical PoV https://socialgraphs.vercel.app
7 replies
11 recasts
15 reactions

Maximonee 🎩 pfp
Maximonee 🎩
@maximonee
The frame is built in frames.js which I love as someone who struggles with frontend stuff. On the first button press, I start to fetch the user’s social activity using @neynar APIs. Because this may take longer than the 5 second timeout, I return an in progress view immediately.
1 reply
0 recast
3 reactions

Maximonee 🎩 pfp
Maximonee 🎩
@maximonee
The user can check if the fetch is done periodically by clicking on a button to get an update. A lambda function is running to fetch the stats, store them in DynamoDB, and also update a separate table to serve as a cache. The cache lets me know what was already fetched to ensure duplicate requests aren’t done.
1 reply
0 recast
1 reaction

Maximonee 🎩 pfp
Maximonee 🎩
@maximonee
Once complete, the user can proceed to generate their art piece. This calls a separate Vercel serverless function running p5js on a node server to headlessly generate the art piece. This takes the user’s stats to generate a piece specific to their identity. Once done, it’s uploaded to S3 and returned to the frame.
2 replies
0 recast
1 reaction

David Furlong (hiring devs) pfp
David Furlong (hiring devs)
@df
would love to understand how the user profile is used as a seed into the gen art function. What influences color, shapes etc?
1 reply
0 recast
1 reaction

Maximonee 🎩 pfp
Maximonee 🎩
@maximonee
I shared a bit more in the /gen-art thread, but essentially your FID determines color palettes. And then the size and number of shapes drawn is determined by your count of: followers (avatars), casts/replies (arcs), & likes, replies to your casts, and recasts received (hearts) https://warpcast.com/maximonee/0x2bffe048
0 reply
0 recast
0 reaction