{"id":22066563,"url":"https://github.com/reminjp/cardboard","last_synced_at":"2026-04-16T11:02:48.287Z","repository":{"id":198723376,"uuid":"673828412","full_name":"reminjp/cardboard","owner":"reminjp","description":":construction: A command line tool to generate cards.","archived":false,"fork":false,"pushed_at":"2025-02-21T13:05:15.000Z","size":97,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-05T02:49:09.624Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reminjp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-08-02T14:11:46.000Z","updated_at":"2025-02-21T13:05:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"5eb95162-6cac-488e-9d9f-9ca064bb0a3b","html_url":"https://github.com/reminjp/cardboard","commit_stats":null,"previous_names":["reminjp/cardboard"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/reminjp/cardboard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reminjp%2Fcardboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reminjp%2Fcardboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reminjp%2Fcardboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reminjp%2Fcardboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reminjp","download_url":"https://codeload.github.com/reminjp/cardboard/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reminjp%2Fcardboard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31882886,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T09:23:21.276Z","status":"ssl_error","status_checked_at":"2026-04-16T09:23:15.028Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-30T19:28:31.529Z","updated_at":"2026-04-16T11:02:48.237Z","avatar_url":"https://github.com/reminjp.png","language":"TypeScript","readme":"# Cardboard\n\n**This tool is still experimental.\nNot ready to accept feature requests and pull requests.**\n\nA command line tool to generate cards.\nIt reads a card design template (JSX) and tabular data (CSV or Google Sheets) and outputs documents for desktop publishing (PDF).\n\nカードを生成するコマンドラインツール。\nカードデザインのテンプレート（JSX）と表形式のデータ（CSVまたはGoogleスプレッドシート）を読み込んで印刷用の原稿（PDF）を出力します。\n\n## Installation\n\nRequirements:\n\n- Node.js or Bun\n- fontconfig (`fc-list` command)\n\nInstall:\n\n```sh\nbun install --global github:reminjp/cardboard#npm\n```\n\nUninstall:\n\n```sh\nbun uninstall --global github:reminjp/cardboard#npm\n```\n\n## Usage\n\nCreate a project root directory.\nPlace `cardboard.toml` and other resources in there.\nRun `build` command in the project root directory:\n\n```sh\ncardboard build\n```\n\n### Examples\n\n- [Card game](./examples/card_game)\n\n### Project structure\n\n#### cardboard.toml\n\n**`cardboard.toml`** is a Cardboard project file.\nIt defines build **targets**, which specify references to **tables** and **templates**:\n\n```toml\n[[targets]]\nname = \"card_front\"\ntable = \"card\"\ntemplate = \"card_front\"\n\n[[tables]]\nname = \"card\"\npath = \"./card.csv\"\n\n[[templates]]\nname = \"card_front\"\npath = \"./card_front.jsx\"\nwidth = \"63mm\"\nheight = \"88mm\"\n```\n\n#### Tables\n\nEach row of a table represents parameters for a single card.\nThis tool accepts a CSV file or a reference to Google Sheets as an input source.\n\n#### Templates\n\nA template is an JSX file that designs one type of card.\nIt supports a limited subset of HTML and CSS features.\n\n- Layout\n  - Features supported by [Satori](https://github.com/vercel/satori) (e.g. margin, position, size, flex)\n- Background color, text color\n  - CMYK (`cmyk(0% 0% 0% 100%)`)\n  - RGB (`#000000`)\n- Image\n  - PDF (`\u003cimg src=\"image.pdf\" style={{ width: '10mm', height: '10mm' }}/\u003e`)\n\nThis tool uses [Satori](https://github.com/vercel/satori) internally to convert HTML to intermediate SVG.\nIts documentation may be helpful for troubleshooting.\nFor example, you can specify a locale via the `lang` attribute:\n\n```html\n\u003cdiv lang=\"ja-JP\"\u003e海角骨刃直入\u003c/div\u003e\n```\n\n## Author\n\nRemin\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freminjp%2Fcardboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freminjp%2Fcardboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freminjp%2Fcardboard/lists"}