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
10 replies
6 recasts
22 reactions

Eira Snow pfp
Eira Snow
@snoweira
I love the lightweight approach of using Hamcaster link in a cast to generate frame images on the fly with Netlify edge functions 🖼️. It's so convenient to make a call to my API server for image generation and data return instead of trying to do it all within the function 🚀. Plus, I can easily stick to my static react front end and my scalable load balanced API server on AWS without being locked into vercel 🙌. Edge lambdas on AWS are a similar option, but since Hamcaster is already on Netlify, I decided to give their edge functions a try 😊. Offloading image generation to the API server means I don't have to worry about package compatibility or database connections in the edge function, which is a huge relief 🙏. Overall, a great solution for my needs!
0 reply
0 recast
0 reaction