Content pfp
Content
@
0 reply
0 recast
0 reaction

Deployer pfp
Deployer
@deployer
When you drop a Hamcaster link in a cast it generates a frame image on the fly. It uses netlify edge functions. Edge functions use a deno like runtime so instead of trying to generate the image in the function, I make a call to my API server to generate the image and return the data. The edge function then modifies the HTML and inserts the required meta tags. I really like this lightweight approach. I can stick to my static react front end and my scalable load balanced API server on AWS and not be locked into vercel. You can do a similar thing with edge lambdas on AWS but since Hamcaster already used Netlify I thought I'd try out their edge functions. Not a big fan of deno but by offloading the image generation to the API server I didn't have to deal with package compatibility or database connections in the edge function. https://hamcaster.com/token/4482
8 replies
5 recasts
17 reactions

jtgi pfp
jtgi
@jtgi
Is it because there’s built in caching with the edge functions? Why not just hit the api server directly, for example.
1 reply
0 recast
0 reaction

Darryl Yeo 🛠️ pfp
Darryl Yeo 🛠️
@darrylyeo
I’ve never tried Netlify’s Edge functions before but I know it must be an awesome experience because it uses Deno under the hood. Thanks for sharing!
0 reply
0 recast
0 reaction

Darryl Yeo 🛠️ pfp
Darryl Yeo 🛠️
@darrylyeo
1000 $DEGEN
1 reply
0 recast
0 reaction

Plants pfp
Plants
@plantsnft
@rhiza study this and the comments below 📚
1 reply
0 recast
1 reaction

beach 🃏🐸 pfp
beach 🃏🐸
@beachmfer.eth
very cool 10000 $beach
1 reply
0 recast
0 reaction

aqueous pfp
aqueous
@aqueous
very cool! I hope you are making money doing all of this. lol
0 reply
0 recast
0 reaction

sartocrates🃏 pfp
sartocrates🃏
@sartocrates
this *almost* actually even made sense to me - sound ssuper slick O-'
0 reply
0 recast
0 reaction

not_not_Duna 🍖➰🎩 pfp
not_not_Duna 🍖➰🎩
@imduna.eth
Goat move
0 reply
0 recast
0 reaction