TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Supershields.io – smart, Lua-powered SVG status badges

97 点作者 rlonn大约 3 年前

11 条评论

rlonn大约 3 年前
Hi, I built supershields.io as an alternative to shields.io.<p>If you&#x27;re interested in reading about the somewhat unorthodox product development process, I&#x27;ve written a blog article about it here: <a href="https:&#x2F;&#x2F;supershields.io&#x2F;blog&#x2F;1" rel="nofollow">https:&#x2F;&#x2F;supershields.io&#x2F;blog&#x2F;1</a>
评论 #30452022 未加载
评论 #30454597 未加载
motyar大约 3 年前
Great idea, Working on something for PNGs only.<p>but only for static data passed into query parameters.<p><a href="https:&#x2F;&#x2F;bruzu.com" rel="nofollow">https:&#x2F;&#x2F;bruzu.com</a>
评论 #30452156 未加载
评论 #30459917 未加载
HatchedLake721大约 3 年前
Any reason why the website is not mobile friendly?<p>Unless some css didn’t load up, I’ve got a huge horizontal bar.
评论 #30453453 未加载
vlaaad大约 3 年前
Nice, I wanted something like that to create badges for git deps in Clojure. Here is my attempt to do it using Supershields:<p><a href="https:&#x2F;&#x2F;supershields.io&#x2F;d1a18b018347defeec7b" rel="nofollow">https:&#x2F;&#x2F;supershields.io&#x2F;d1a18b018347defeec7b</a><p>Two questions:<p>1. text doesn&#x27;t fit, how to fix that?<p>2. quote characters — «&quot;» — get escaped as «&amp;#34;», how to avoid that?
评论 #30453068 未加载
captn3m0大约 3 年前
Does GitHub let you embed and keep these as smart? (SVG auto-updates for eg?) My understanding was that Github proxies all SVGs and renders them as PNG&#x2F;JPG at their end.
评论 #30452306 未加载
评论 #30452992 未加载
评论 #30454313 未加载
majkinetor大约 3 年前
You implemented all the missing stuff with badges and its awesome.<p>I wouldn&#x27;t ever pay for stuff like this tho, but I hope that is just me.
评论 #30452006 未加载
oefrha大约 3 年前
IMO the horizontal margins around text are way too wide, which makes the badges look ugly (subjective) and space-inefficient when placed in a row (objective). Faithfully copying the shields.io style would be a lot better. Their layout appears to be<p><pre><code> 6px LHS 4px | 4px RHS 6px</code></pre>
评论 #30453147 未加载
bebna大约 3 年前
Hi cool project. Congrats on finishing.<p>Some questions about lua:<p>- What dev environment do u prefer? When I looked last time I didn&#x27;t really see a dedicated IDE for lua, mostly just plugins for vim&#x2F;emacs.<p>- Did you consider lua in nginx? (Or what are you thoughts on it).<p>- Did you consider moonscript? (Or what are you thoughts on it)
评论 #30453244 未加载
andrenotgiant大约 3 年前
Something I&#x27;ve always wondered about these shields... How do you ensure the platforms where users embed them don&#x27;t cache the images in their CDNs?<p>Is it just a matter of setting headers?
评论 #30454764 未加载
cdelsolar大约 3 年前
How&#x27;d you sandbox Lua?
评论 #30455326 未加载
npigrounet大约 3 年前
Why Lua?
评论 #30453031 未加载