Description
Squib is a Ruby DSL for prototyping card and board games. You write a little Ruby, define the stats for your deck, and Squib compiles the game into a series of images ready for print-and-play or print-on-demand. It is data-driven and built on the principle of Don't Repeat Yourself, and the author describes it as nanDeck done the Ruby way. The tool loads PNG and SVG images, renders complex text with Pango, and reads xlsx and csv files for card data. It renders to PNG, PDF and SVG, either as sheets or as individual files. Layouts can be data-driven, using YAML, and the library includes basic shape drawing, blending operators, gradients and unit conversion. Squib is built on the Cairo graphics library. The gem requires Ruby 3.0 or later, and the README shows how to install it with gem install squib and how to create a project with squib new. A learning section points to the docs and to a samples directory, and two example games made with Squib are linked. It is aimed at game designers and hobbyist makers who want to iterate on card designs quickly.…
Highlights
- Compiles card data into PNG, PDF or SVG files
- Reads xlsx and csv data for each card
- Text rendering with Pango, and PNG and SVG image loading
- Data-driven layouts in Ruby or YAML
- Ruby 3.0+ gem with a project generator
Ratings & Reviews
No ratings yet
Be the first to rate Squib.
People also visit

ReignsAgent
Creator, simulation reviewer, and portable player toolchain for binary-choice…
Squib FAQ
What is Squib?
A Ruby DSL for prototyping card and board games. It turns your data into images ready to print.
What formats can it output?
PNG, PDF and SVG, either as sheets or as individual files.
What does it read as input?
xlsx and csv data, plus PNG and SVG images.
How do I install it?
Run gem install squib on Ruby 3.0 or later, then use squib new to create a project.
Where can I learn it?
The docs site and the samples directory in the repository, plus two example games the author made with Squib.
What are the best Squib alternatives?
Popular alternatives to Squib include ReignsAgent, Thedeck and PySolFC. See all Squib alternatives




.png?auto=compress&fit=max&w=128)