TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: A GitHub business card generator

210 pointsby scastielover 2 years ago
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.<p>[1] <a href="https:&#x2F;&#x2F;vercel.com&#x2F;docs&#x2F;concepts&#x2F;functions&#x2F;edge-functions&#x2F;og-image-generation" rel="nofollow">https:&#x2F;&#x2F;vercel.com&#x2F;docs&#x2F;concepts&#x2F;functions&#x2F;edge-functions&#x2F;og...</a>

27 comments

zadjiiover 2 years ago
Silly suggestion - show something like the contribution graph along the very bottom of the card, like a border. Those who know what it means will _know_, to everyone else it&#x27;s just decorative.
评论 #33576819 未加载
cobertosover 2 years ago
Huh, `@vercel&#x2F;og` is interesting! It looks like the same approach as `html2canvas` (implement custom rendering for each HTML element + CSS property), with all the tradeoffs that entails, but they actually rightly limited some of the features they&#x27;re willing to support (like external stylesheets). And it looks like it&#x27;ll be more supported than `html2canvas` currently is.<p>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
评论 #33576721 未加载
评论 #33576814 未加载
learndeeplyover 2 years ago
Brilliant way to get thousands of tech people to look at your business card.<p>Edit: This was updated, it used to point to his real Github username. Not that there&#x27;s anything wrong with that! It&#x27;s clever marketing.
评论 #33579701 未加载
strangescriptover 2 years ago
This is cool, but I am not sure how useful following count is on there. As others have pointed out, it would be neat to see some kind of aggregated contributions.
dmakover 2 years ago
Feels weird to be flexing github followers on a business card especially since github is less about social influence.
评论 #33580885 未加载
simonwover 2 years ago
Suggestion: instead of just my GitHub username under my name, it would be nice if it showed github.com&#x2F;simonw
评论 #33576373 未加载
bonney_ioover 2 years ago
Very cool project! What do you think about including a QR code linking back to the user&#x27;s GitHub page on the rendered card?
评论 #33576563 未加载
benatkinover 2 years ago
A repo for the @vercel&#x2F;og API it uses isn&#x27;t here: <a href="https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;@vercel&#x2F;og" rel="nofollow">https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;@vercel&#x2F;og</a><p>...but it&#x27;s easy enough to find on <a href="https:&#x2F;&#x2F;www.jsdelivr.com&#x2F;package&#x2F;npm&#x2F;@vercel&#x2F;og" rel="nofollow">https:&#x2F;&#x2F;www.jsdelivr.com&#x2F;package&#x2F;npm&#x2F;@vercel&#x2F;og</a><p>It looks to be a tiny bit of glue code (minified but with source maps that I didn&#x27;t examine), 2 wasm bundles which are probably open source, and an open source font.<p>Clever but I happen to be looking for documented open source stuff that does this. I guess knowing the names of yoga (which is a library from Facebook I already heard about) and resvg (which I probably already heard about) is a good starting point! <a href="https:&#x2F;&#x2F;github.com&#x2F;facebook&#x2F;yoga" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;facebook&#x2F;yoga</a> <a href="https:&#x2F;&#x2F;github.com&#x2F;yisibl&#x2F;resvg-js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;yisibl&#x2F;resvg-js</a><p>Edit: fonts are here <a href="https:&#x2F;&#x2F;github.com&#x2F;yisibl&#x2F;resvg-js&#x2F;search?q=font" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;yisibl&#x2F;resvg-js&#x2F;search?q=font</a> and the yoga part seems to be here <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=33156130" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=33156130</a> It&#x27;s pretty neat but I think most of this can be had without using facebook stuff :) <a href="https:&#x2F;&#x2F;time.com&#x2F;6217730&#x2F;myanmar-meta-rohingya-facebook&#x2F;" rel="nofollow">https:&#x2F;&#x2F;time.com&#x2F;6217730&#x2F;myanmar-meta-rohingya-facebook&#x2F;</a>
longerpathover 2 years ago
Can we see Paul Allen&#x27;s card?<p>(Does he have a GitHub?)
mthldover 2 years ago
Nice project! Sadly the emojis present in my GitHub bio aren’t being rendered. I can’t see them in the image. :)
评论 #33576535 未加载
DistractionRectover 2 years ago
Seems broken on Firefox for Android (mobile). It displays half the card [0].<p>[0] <a href="https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;CQ7QXkB" rel="nofollow">https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;CQ7QXkB</a>
评论 #33576826 未加载
arriuover 2 years ago
Awesome! Made a change to my profile as a result but I guess the site is caching generated profiles. How long is the cache?
评论 #33576944 未加载
Phelinofistover 2 years ago
Doesn&#x27;t render for me: <a href="https:&#x2F;&#x2F;github-business-card.vercel.app&#x2F;api&#x2F;github?username=31KM" rel="nofollow">https:&#x2F;&#x2F;github-business-card.vercel.app&#x2F;api&#x2F;github?username=...</a>
评论 #33576789 未加载
adolphover 2 years ago
Very beautiful.<p>Suggestion: vcard data in qr code<p><a href="https:&#x2F;&#x2F;www.qr-code-generator.com&#x2F;solutions&#x2F;vcard-qr-code&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.qr-code-generator.com&#x2F;solutions&#x2F;vcard-qr-code&#x2F;</a>
blurrybirdover 2 years ago
This is excellent! Simple, works, fast.<p>It would be neat to see you do a Twitter version!
评论 #33578106 未加载
prependover 2 years ago
Neat idea. It does not render properly for me as I have multiple links, @leebrian.<p>Maybe only use the first link. Or wrap a little bit to allow for multiple lines.
sureglymopover 2 years ago
I&#x27;m interested in your book. Is it available as epub or pdf somewhere? Or do I get those formats when I buy it on Amazon?
评论 #33576552 未加载
btzsover 2 years ago
Ideas: show loading icon while card is being created; allow hotlinking of the image and update its content periodically.
twodaveover 2 years ago
Love it. Integrate this with a printing&#x2F;shipping service and I&#x27;d spend $20 easily.
quickthrower2over 2 years ago
Nice idea. Might be able to make money by linking to a business card company!
andirkover 2 years ago
Fun fact: I have never had a business card with my name on it ever.
评论 #33581037 未加载
_justlilianover 2 years ago
Smart way to promote your work. I like that!
thedenover 2 years ago
I dig it—any plans for generating a dark mode card?
abhaynayarover 2 years ago
I have 40 followers, but it shows 39 on the card.
评论 #33580120 未加载
评论 #33578645 未加载
GtyJJXX666over 2 years ago
Yoo
tapatioover 2 years ago
What&#x27;s a business card?
评论 #33577350 未加载
评论 #33577012 未加载
评论 #33576918 未加载
jansanover 2 years ago
I really like that suble off-white coloring (sorry, someone had to say it).
评论 #33577016 未加载
评论 #33576350 未加载
评论 #33576560 未加载