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
8 replies
12 recasts
17 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

Maximonee 🎩 pfp
Maximonee 🎩
@maximonee
The user can view the piece, and then choose to reroll. The reroll button essentially redoes the last step except for fetching the cached stats. Once the user selects the piece they want, they can choose to mint. Using their verified addresses and Farcaster wallet, I ask them which wallet they wish to use.
1 reply
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