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: Card Proxy Generator – Generate printable game cards from JSON

162 pointsby konamaconaover 7 years ago

16 comments

konamaconaover 7 years ago
Just got off work and saw all the comments. I wrote this up a few months ago to make custom cards for a mafia&#x2F;werewolf type game I&#x27;ve been playing at work (as some guessed). It&#x27;s 100% client side and uses jsPDF[0]. You can find the (very rough) source on my github[1]. Future plans include better styling and some changes to allow easier clearing of the template. Thanks!<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;MrRio&#x2F;jsPDF" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;MrRio&#x2F;jsPDF</a><p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;konamacona&#x2F;cardproxy" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;konamacona&#x2F;cardproxy</a>
keerthikoover 7 years ago
I like the simplicity of the UX, I would find it much more usable open source so I can adjust the template easily.<p>I wrote a similar thing for my board game site [0], using yml files as data sources with jekyll includes to generate the html and a html2canvas conversion to make printable images of individual cards that I have to manually put on a print-sheet -- not quite as streamlined as this, and I would love to learn from the rest of this person&#x27;s flow architecture on how to generate a pdf, make it downloadable, expose the json editor. I know I could learn each of these on my own, but this is so close to my usecase it would be nice.<p>[0]: <a href="https:&#x2F;&#x2F;gitlab.com&#x2F;keerthik&#x2F;dicestorm&#x2F;" rel="nofollow">https:&#x2F;&#x2F;gitlab.com&#x2F;keerthik&#x2F;dicestorm&#x2F;</a>
评论 #16260342 未加载
评论 #16261787 未加载
评论 #16261003 未加载
shitloadofbooksover 7 years ago
I&#x27;m using Squib (<a href="https:&#x2F;&#x2F;github.com&#x2F;andymeneely&#x2F;squib" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;andymeneely&#x2F;squib</a>) for this at the moment.<p>I have several of my current prototypes in Squib, with CI where it builds the artifacts (PNGs of each card and a PDF).<p>I&#x27;d like to one day set it up so it pushes the artifacts to Tabletopia (<a href="https:&#x2F;&#x2F;tabletopia.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;tabletopia.com&#x2F;</a>), but I haven&#x27;t found the time yet.
twicover 7 years ago
Nice!<p>Boardgamegeek has a list of card design resources:<p><a href="https:&#x2F;&#x2F;boardgamegeek.com&#x2F;thread&#x2F;991506&#x2F;resources-card-game-makers" rel="nofollow">https:&#x2F;&#x2F;boardgamegeek.com&#x2F;thread&#x2F;991506&#x2F;resources-card-game-...</a><p>Most are of the painstakingly-click-and-type variety, though. There are a handful based around a more site-generatorish workflow that look pretty sweet:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;vaemendis&#x2F;hccd&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;vaemendis&#x2F;hccd&#x2F;</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;ghostsquad&#x2F;pycard" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ghostsquad&#x2F;pycard</a><p><a href="http:&#x2F;&#x2F;cardpen.mcdemarco.net&#x2F;doc&#x2F;index.html" rel="nofollow">http:&#x2F;&#x2F;cardpen.mcdemarco.net&#x2F;doc&#x2F;index.html</a>
xixixaoover 7 years ago
There&#x27;s a bunch of (usually pretty arcane) software for generating cards. I like this because it takes JSON, as opposed to having to click around a GUI.<p>The real challenge though is to get a nice design. You should be able to put in some templates&#x2F;generate some templates, and add image URIs&#x2F;upload images. That would be truly awesome.
评论 #16260260 未加载
sonecaover 7 years ago
Awesome! Just the tool I needed. I am developing my own board game and the hustle to create the cards to print and test was getting in the way of actually thinking about the game and the rules.<p>A small suggestion: add a <i>image-top</i> and a <i>image-bottom</i> fields where you put a URL and the PDF includes the image on the card.
评论 #16260611 未加载
clusmoreover 7 years ago
I built something quite similar to this for my brother, who plays Magic: The Gathering. He likes to build decks and test them before he commits to buying the cards in it, so he asked if I could help him generate printable decks to test with. Luckily, somebody has already compiled all of the Magic: The Gathering seasons and published it openly here: <a href="https:&#x2F;&#x2F;github.com&#x2F;mtgjson&#x2F;mtgjson" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mtgjson&#x2F;mtgjson</a>.<p>My previous system was a hacky Python-based HTML pre-renderer that was annoying to maintain - I was in the process of rewriting it but have dropped off on development recently. You can see a WIP of it here: <a href="https:&#x2F;&#x2F;curtislusmore.github.io&#x2F;mtg&#x2F;" rel="nofollow">https:&#x2F;&#x2F;curtislusmore.github.io&#x2F;mtg&#x2F;</a>
trynewideasover 7 years ago
I imagine it&#x27;d be pretty straightforward to convert that JSON into a CSV for InDesign&#x27;s Data Merge feature, once you&#x27;re past prototyping and ready for product-ready printing. <a href="http:&#x2F;&#x2F;blog.ironmarkgames.com&#x2F;creating-prototype-cards-using-adobe-indesign-and-data-merge&#x2F;" rel="nofollow">http:&#x2F;&#x2F;blog.ironmarkgames.com&#x2F;creating-prototype-cards-using...</a>
fiatjafover 7 years ago
Nice app. I guess this is a perfect match for <a href="https:&#x2F;&#x2F;remotestorage.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;remotestorage.io&#x2F;</a> integration. People would be able to save and tweak their card templates without worrying.
DonHopkinsover 7 years ago
A while ago I made a &quot;Micropoly&quot; board game about the Microsoft Monopoly, with cards for various dot-com companies (Copyleft (L) 1999 Free Monopoly Foundation), using an xml file to define the cards and board and an ugly Perl script to render them with PostScript!<p><a href="http:&#x2F;&#x2F;donhopkins.com&#x2F;home&#x2F;Micropoly&#x2F;" rel="nofollow">http:&#x2F;&#x2F;donhopkins.com&#x2F;home&#x2F;Micropoly&#x2F;</a><p>&gt;Update: I&#x27;ve written an ugly &quot;openopoly.pl&quot; Perl script, and a &quot;micropoly.xml&quot; data file, that describes the specifics of the game. The Perl script reads in and parses the XML database, and writes out PostScript and HTML to render the graphics and web pages. It embeds EPS files with images and cartoons in the PostScript file, and then runs it all through GhostScript, to render out PDF and JPG files with the printable images of the board. It currently writes out one HTML file with links to the small and large pictures of all the property cards, and soon it will write out a web page for each property, and link them all together, as well as an image map for the entire board. Most of the logos, cartoons, and other graphics haven&#x27;t been put in yet, but the basic functionality for producing the game is there. This is work in progress, but here&#x27;s a preview of the automatically generated web page index of properties, the full sized board micropoly-board-whole.pdf [1,672k], the paginated board micropoly-board-split.pdf [10,028k, sorry but I&#x27;ll optimize the PostScript not to draw clipped images and it will reduce in size], and the printable cards micropoly-cards.pdf [5087k], as well as the micropoly.xml file from which it was all generated.<p><a href="http:&#x2F;&#x2F;donhopkins.com&#x2F;home&#x2F;Micropoly&#x2F;micropoly.xml" rel="nofollow">http:&#x2F;&#x2F;donhopkins.com&#x2F;home&#x2F;Micropoly&#x2F;micropoly.xml</a><p><a href="http:&#x2F;&#x2F;donhopkins.com&#x2F;home&#x2F;Micropoly&#x2F;micropoly-board-whole.pdf" rel="nofollow">http:&#x2F;&#x2F;donhopkins.com&#x2F;home&#x2F;Micropoly&#x2F;micropoly-board-whole.p...</a><p><a href="http:&#x2F;&#x2F;donhopkins.com&#x2F;home&#x2F;Micropoly&#x2F;micropoly-cards.pdf" rel="nofollow">http:&#x2F;&#x2F;donhopkins.com&#x2F;home&#x2F;Micropoly&#x2F;micropoly-cards.pdf</a><p>The idea (which I never finished but encourage anyone else to pick up and run with) was to develop a fully skinnable parametrizable Monopoly compatible game template (or variants like Anti-Monopoly), that you could print out and glue onto cardboard, or even play online!<p><a href="http:&#x2F;&#x2F;donhopkins.com&#x2F;home&#x2F;Micropoly&#x2F;notes.html" rel="nofollow">http:&#x2F;&#x2F;donhopkins.com&#x2F;home&#x2F;Micropoly&#x2F;notes.html</a><p>Monopoly is essentially the original &quot;Open Source Game&quot; designed by Elizabeth Magie and shared among Atlantic City Quakers. Then it was illegitimately taken over and patented by a giant corporation. Parker Brothers&#x27; story about Charles Darrow was marketing bullshit.<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Lizzie_Magie" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Lizzie_Magie</a><p>There&#x27;s also an interesting story about Ralph Anspach&#x27;s decade-long &quot;Anti-Monopoly&quot; lawsuit:<p><a href="http:&#x2F;&#x2F;www.antimonopoly.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.antimonopoly.com&#x2F;</a><p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Ralph_Anspach" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Ralph_Anspach</a><p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Anti-Monopoly" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Anti-Monopoly</a><p><a href="https:&#x2F;&#x2F;www.washingtoncitypaper.com&#x2F;columns&#x2F;straight-dope&#x2F;article&#x2F;13040530&#x2F;straight-dope-monopolys-anti-capitalist-origins" rel="nofollow">https:&#x2F;&#x2F;www.washingtoncitypaper.com&#x2F;columns&#x2F;straight-dope&#x2F;ar...</a><p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;History_of_the_board_game_Monopoly" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;History_of_the_board_game_Mono...</a><p>&gt;Also in the 1970s, Professor Ralph Anspach, who had himself published a board game intended to illustrate the principles of both monopolies and trust busting, fought Parker Brothers and its then parent company, General Mills, over the copyright and trademarks of the Monopoly board game. Through the research of Anspach and others, much of the early history of the game was &quot;rediscovered&quot; and entered into official United States court records. Because of the lengthy court process, including appeals, the legal status of Parker Brothers&#x27; copyright and trademarks on the game was not settled until 1985. The game&#x27;s name remains a registered trademark of Parker Brothers, as do its specific design elements; other elements of the game are still protected under copyright law. At the conclusion of the court case, the game&#x27;s logo and graphic design elements became part of a larger Monopoly brand, licensed by Parker Brothers&#x27; parent companies onto a variety of items through the present day. Despite the &quot;rediscovery&quot; of the board game&#x27;s early history in the 1970s and 1980s, and several books and journal articles on the subject, Hasbro (Parker Brothers&#x27; current parent company) did not acknowledge any of the game&#x27;s history before Charles Darrow on its official Monopoly website as recently as June 2012. Nor did Hasbro acknowledge anyone other than Darrow in materials published or sponsored by them, at least as recently as 2009.
pimlottcover 7 years ago
Not sure if this supports mobile, but I’m just getting a blank new window when I hit “Save”.
评论 #16260643 未加载
kurnikasover 7 years ago
This is a super cool idea, I know it would be also be super useful for teachers
kyo3over 7 years ago
This is pretty cool!
sleepylookover 7 years ago
it will be great to have utf8 support.
michaericalriboover 7 years ago
what do you use this for?
评论 #16259914 未加载
评论 #16259991 未加载
hartatorover 7 years ago
Okay, not sure why it’s on top of HN.
评论 #16263505 未加载
评论 #16260061 未加载
评论 #16259905 未加载
评论 #16260008 未加载