top | item 20180319

Show HN: GitHub Repository Card for Every Web Site

166 points| nwtgck | 6 years ago |github.com | reply

34 comments

order
[+] t0astbread|6 years ago|reply
Why is everyone so negative again? This is cool!
[+] Crinus|6 years ago|reply
Because since it wasn't made by a big multibillion corporation, it is inherently unsafe, like every other thing not made by big multibillion corporations.

Only big money can be trusted.

(i'm obviously not serious here, but i do find it sad how people are fine trusting projects by FAANG, Microsoft, IBM and others of similar scale but once something is made by someone with a human face it suddenly is a problem unless it is a toy)

[+] floatingatoll|6 years ago|reply
Security note: Please remember that, while this is a great idea, it’s also an excellent platform for causing havoc such as phishing if the operator’s account is ever hacked or turns malicious. For demo purposes it’s obviously fine but do not make this live without hosting your own, or consider the risk of it sending users to e.g. “glthub.com” someday.
[+] albertgoeswoof|6 years ago|reply
How is this any different from hotlinking an image? I don't understand the security risk here? If a bad actor gets control of the domain all they can do is change the svg that you render.

I suppose you could parse that SVG in an insecure way (if for some reason you were parsing it) but that's not a problem with using the service.

[+] ly|6 years ago|reply
The link to the github repo is located in the code you paste on your own website, so you already host that part yourself. The only thing someone could change if the account is hacked is the contents of the image.
[+] davchana|6 years ago|reply
It outputs an not-found image if we click the button Generate with nothing in the text box.

Also, try to find if user pasted the complete github.com url; & strip it before processing it.

[+] philshem|6 years ago|reply
The images don't work for me: Internal error in the request

But a question - once the SVG/PNG is generated, is it updated when the repo stats change?

[+] lioeters|6 years ago|reply
I wonder, is it necessary to depend on a third-party server (gh-cards.dev)? The SVG file could be embedded inline, or downloaded and served locally.

---

By the way, I'm a huge fan of your work!

I'm sure others would find it enjoyable to see the creative and minimalist software: https://nwtgck.github.io/portfolio/

[+] cosmic_quanta|6 years ago|reply
If the SVG was embedded, you would have to periodically re-upload a file to update the stars/fork stats no?
[+] dotdi|6 years ago|reply
This would be awesome with a dark theme.
[+] pronoiac|6 years ago|reply
Ah. GitHub repo cards, for embedding anywhere.

From the title, I thought this was cataloging every web site.

[+] weka|6 years ago|reply
This is really cool. One could easily put these into other repos to show stats.
[+] captn3m0|6 years ago|reply
I was thinking of doing something similar with auto-generated SVG files for open graph images. Does anyone know if FB/Twitter etc support SVG images for open graph content?
[+] bytematic|6 years ago|reply
Should make the ability to do dark mode on that card, I would but I have no experience with that stack
[+] ecares|6 years ago|reply
Seems that private repos trigger a 500 error ;)
[+] teknologist|6 years ago|reply
Please, please wrap that text box and button in a <form> so that when we press "enter" the form submits. HTML 101.
[+] reimertz|6 years ago|reply
FYI, this comment would’ve been completely fine without “HTML 101”.