Show HN: A GitHub business card generator (github-business-card.vercel.app)
I built this small app for fun, to play with image generation thanks to Vercel’s new library [1]. You enter your GitHub username (or anyone’s), and it generates an image with a few info about your account.
[1] https://vercel.com/docs/concepts/functions/edge-functions/og...
58 comments
[ 2.6 ms ] story [ 130 ms ] threadhttps://vercel.fyi/og-image-with-emoji-font
I’m planning on adding a few customization options to the generation. I may add the QR code as one :)
[0] https://imgur.com/a/CQ7QXkB
I quite like `dom-to-image-more` (sorta active fork of `dom-to-image`) that renders a SVG with a foreignElement that is a data URL of an XHTML page to a canvas. It also led me to rewriting my own image rendering stuff to just build an SVG in DOM, use toDataURL on it, and then render that in a canvas. So much simpler
[1]: https://github.com/metabolize/react-flexbox-svg
Edit: for a React-less implementation, see https://blog.scottlogic.com/2015/02/02/svg-layout-flexbox.ht...
Edit: well, not that easy :) https://github.com/servo/servo/discussions/28070
Maybe only use the first link. Or wrap a little bit to allow for multiple lines.
https://api.github.com/users/abhaynayar
It would be neat to see you do a Twitter version!
(Does he have a GitHub?)
But then again, people now have spam following/followers on Github so it indeed is stupid. A better way to showcase influence would be via the most starred repo perhaps?
Suggestion: vcard data in qr code
https://www.qr-code-generator.com/solutions/vcard-qr-code/
Edit: This was updated, it used to point to his real Github username. Not that there's anything wrong with that! It's clever marketing.