News for hackers. Stuff that matters.
Re:Show HN: Card Proxy Generator – Generate printable game c... by keerthiko on Monday January 29, 2018 @03:06PM (#16260231)
I like the simplicity of the UX, I would find it much more usable open source so I can adjust the template easily.

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'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.

[0]: https://gitlab.com/keerthik/dicestorm/

Re:Show HN: Card Proxy Generator – Generate printable game c... by hultner on Monday January 29, 2018 @03:23PM (#16260342)
I’d probably create a tex-template for the cards, populate it with data from the json/yml-input and run it through pdf-latex.

You could probably create the entire thing as an bibtex-template and even use that to build the tex.

Re:Show HN: Card Proxy Generator – Generate printable game c... by nothrabannosir on Monday January 29, 2018 @07:09PM (#16261787)
Headless chrome and a print-to-pdf are the way to go, here. There’s a library (whose name eludes me) which wraps it all up very nicely in a JS lib. If you’ve got the html, generating a pdf automatically shouldn’t be more than one screen of code and a docker container.

Edit: the lib is puppeteer. https://github.com/GoogleChrome/puppeteer/

Re:Show HN: Card Proxy Generator – Generate printable game c... by navls on Monday January 29, 2018 @04:59PM (#16261003)
I'm surprised this community is not more adamant about source being shared alongside a "Show HN" post. It seems like a no-brainer to include source when showing a group of software enthusiasts your non-commercial project.
Re:Show HN: Card Proxy Generator – Generate printable game c... by pajop on Monday January 29, 2018 @10:03PM (#16262592)