Inspiration
The inspiration was the need to have dynamic og:image, twitter:image, image meta tags for a very large web app.
What it does
What screenshot-generator does is get the specific url and return the screenshot as per some optional arguments specified in the url.
How we built it
It's built using node.js, chrome-aws-lambda, puppeteer-core as fully serverless.
Challenges we ran into
The challenge was to how restrict and receiving the params and adjust the quality, width of the image returned. Figuring caching out in node also expanded some of my knowledge.
Accomplishments that we're proud of
Deploying it easily on vercel so that it's launched like in an instant. Also, writing the code for restricting for domains so that it can be used by a particular domain and not all requests are served as is. Certainly an alternative to heavy rendertron!
Built With
- chrome-aws-lambda
- node.js
- puppeteer-core
- vercel
Log in or sign up for Devpost to join the conversation.