[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115317":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":14,"stars7d":16,"stars30d":16,"stars90d":15,"forks30d":15,"starsTrendScore":17,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":9,"pushedAt":23,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":15,"starSnapshotCount":15,"syncStatus":27,"lastSyncTime":28,"discoverSource":29},115317,"spines","stvlynn\u002Fspines","stvlynn","Turn apps & albums into CD jewel case spines | 把 App 与专辑做成实体 CD 盒侧脊收藏图",null,"TypeScript",140,8,61,1,0,32,14,61.06,false,"main",true,[],"2026-11-18 17:21:49","2026-11-23 04:32:12","\u003Cdiv align=\"center\">\n\n# Spines\n\n**README badges shaped like CD jewel case spines.**\u003Cbr>\n**把技术栈、AI 工具和项目做成 CD 盒侧脊的 README 徽章。**\n\nEnglish · [中文文档](README.zh-CN.md)\n\n\n**Join our Discord group!** ⬇️ **加入我们的 Discord 群组**\n\n[![Discord](https:\u002F\u002Fspine.stv.pm\u002Fbadge\u002Fdiscord.svg)](https:\u002F\u002Fdiscord.gg\u002FPwZDHH4mv3)\n\n\n\n\u003C\u002Fdiv>\n\nOne image URL puts a spine, or a whole shelf, in a README or GitHub profile.\n\n\u003Cimg src=\"docs\u002Fimages\u002Fshelf.jpg\" alt=\"A shelf of CD jewel case spines for AI apps\" width=\"100%\" \u002F>\n\nThis repository holds everything behind it:\n\n| | |\n| --- | --- |\n| [`apps\u002Fweb`](apps\u002Fweb) | The badge site: a Cloudflare Worker that draws SVG on request, and its home page. |\n| [`packages\u002Fspine`](packages\u002Fspine) | The renderer. Pure TypeScript, no dependencies, text set as outlines. |\n| [`art`](art) | Prints: one finished spine image per tool or project. [Contributions welcome](art\u002FREADME.md). |\n| [`skills\u002Fcd-spine-art`](skills\u002Fcd-spine-art) | The agent skill that draws prints with an image model. |\n\nLive at [spine.stv.pm](https:\u002F\u002Fspine.stv.pm).\n\n## The skill\n\n`cd-spine-art` guides an agent from verified brand marks through art direction\nto a cropped, upright spine. It needs an image tool that accepts reference\nimages, plus Python 3 and Pillow for cropping.\n\n```bash\nnpx skills add stvlynn\u002Fspines\n```\n\nThen ask for what you want:\n\n> Use `$cd-spine-art` to make a CD spine for React and add it to `art\u002Fstack\u002F`.\n\n## Use a badge\n\n```md\n![TypeScript](https:\u002F\u002Fspine.stv.pm\u002Fbadge\u002Ftypescript.svg)\n![My stack](https:\u002F\u002Fspine.stv.pm\u002Fbadge\u002Ftypescript,react,docker,claude.svg)\n```\n\nOne name lies down like a badge. Several stand side by side on a shelf.\nAdd `?layout=stack` to lay several down, or `?layout=row` to stand one up.\n\n| URL | Draws |\n| --- | --- |\n| `\u002Fbadge\u002F\u003Cname>,\u003Cname>.svg` | Catalog entries for common AI tools and tech stacks ([the list](apps\u002Fweb\u002Fcatalog\u002Fpresets.json)). Short names work: `ts`, `py`, `k8s`, `next`. |\n| `\u002Fspine\u002F\u003Ctitle>.svg` | Any title, typeset. |\n| `\u002Fgh\u002F\u003Cowner>\u002F\u003Crepo>.svg` | A repository, with its stars and the mark of its main language. |\n| `\u002Fgh\u002F\u003Cowner>.svg` | An account's most-starred repositories on a shelf. `count` 1–12, default 8. |\n| `\u002Fart\u002F\u003Cname>,\u003Cname>.svg` | Prints from [`art`](art). |\n| `\u002Fshelf.svg?s=\u003Citem>&s=\u003Citem>` | Up to 24 of any kind. An item is a title, `badge:name`, `gh:owner\u002Frepo` or `art:name`, each with optional `;key=value` settings. |\n\n| Option | Values | |\n| --- | --- | --- |\n| `theme` | `paper` `clay` `steel` `noir` `grid` `signal` `midnight` `candy` | Picked from the title when omitted. |\n| `sub` | text | The catalog line at the foot of the spine. |\n| `icon` | a [Simple Icons](https:\u002F\u002Fsimpleicons.org) slug, or `none` | The mark at the head. |\n| `paper` `ink` `accent` | hex without `#` | Recolor a theme. Ink adapts to the paper unless given. |\n| `width` | `slim` `regular` `wide` | Thickness of the case. |\n| `layout` | `stack` `row` | Lying down, or standing. |\n| `size` | 120–2400 | Length of a spine in pixels. |\n| `gap` | 0–24 | Space between spines in pixels. |\n\nA catalog badge shows its print from `art\u002F` once someone has drawn it, and is\ntypeset until then. Passing any styling option asks for the typeset version.\nA request that fails still answers with a spine that says why.\n\n## Contribute a print\n\nEach catalog entry wants one image of its own, and any project can have one.\n[`art\u002FWANTED.md`](art\u002FWANTED.md) lists what is missing and\n[`art\u002FREADME.md`](art\u002FREADME.md) explains how to add it.\n\n## Develop\n\nNeeds Node 22 and pnpm.\n\n```bash\npnpm install\n```\n\n```bash\npnpm dev\n```\n\n| Command | |\n| --- | --- |\n| `pnpm test` | Renderer and Worker tests. |\n| `pnpm typecheck` | TypeScript, both packages. |\n| `pnpm lint` | Biome. `pnpm format` fixes. |\n| `pnpm presets` | Validate the catalog and regenerate its static registry. `pnpm presets --check` checks for stale output. |\n| `pnpm art` | Rebuild the web copies of `art\u002F` and `art\u002FWANTED.md`. |\n| `pnpm fonts` | Rebuild the glyph atlases the renderer sets text from. |\n\n## Maintain the badge catalog\n\nEdit [`apps\u002Fweb\u002Fcatalog\u002Fpresets.json`](apps\u002Fweb\u002Fcatalog\u002Fpresets.json) to add or\nupdate a badge. Each entry declares its `slug`, `group` (`ai` or `stack`) and\n`theme`; optional fields are `paint`, `title`, `icon` and `aliases`. `icon` is a\nSimple Icons slug and defaults to the badge slug; `title` defaults to the icon's\ntitle. `paint: \"paper\"` applies the brand color to the paper, while `\"accent\"`\nuses it for the artwork. Array order is the catalog's display order.\n\n```json\n{\n  \"slug\": \"typescript\",\n  \"group\": \"stack\",\n  \"theme\": \"grid\",\n  \"paint\": \"accent\",\n  \"aliases\": [\"ts\"]\n}\n```\n\nRun `pnpm presets` and commit both the JSON and\n`apps\u002Fweb\u002Fsrc\u002Fpresets.generated.ts`. Do not edit the generated registry. The\n[JSON Schema](apps\u002Fweb\u002Fcatalog\u002Fpresets.schema.json) provides editor validation;\nthe generator also verifies themes, installed icon slugs, and uniqueness across\nall badge slugs and aliases. Invalid configuration fails before output is written.\n\nTests, typechecking, `pnpm art`, and Wrangler dev\u002Fdeploy regenerate the registry.\nDuring development Wrangler watches the catalog as well as the source files.\nCI runs `pnpm presets --check` first to catch uncommitted generated changes.\nOnly static icon imports enter the Worker bundle; catalog validation runs at\nbuild time. Prints outside the badge catalog continue to use the art manifest.\n\n## Deploy\n\n```bash\npnpm run deploy\n```\n\nThis runs `wrangler deploy` for [`apps\u002Fweb`](apps\u002Fweb\u002Fwrangler.jsonc). Log in\nfirst with `pnpm --filter @repo\u002Fweb exec wrangler login`. The `spines` Worker\nserves `spine.stv.pm` and uses Workers Builds to deploy pushes to `main`.\nThe build root is `apps\u002Fweb`, the build command is `pnpm -w test`, and the\ndeploy command is `pnpm exec wrangler deploy`. Builds use Node.js 22.\n\n\nThe home page template is `apps\u002Fweb\u002Findex.html`; Wrangler generates the static\n`public\u002Findex.html` before dev or deployment. Set the optional `GTM_ID` build\nenvironment variable to enable Google Tag Manager; leave it unset to omit tracking.\nThe container must have a published Google Analytics tag to collect GA data.\n\nConfigure the GitHub repository variable with:\n\n```bash\ngh variable set GTM_ID --repo stvlynn\u002Fspines --body YOUR_GTM_CONTAINER_ID\n```\n\nCI reads `${{ vars.GTM_ID }}`. Workers Builds runs separately from GitHub Actions,\nso set the same `GTM_ID` under the Worker's **Settings → Builds → Variables and\nsecrets** too (and update both when changing the container). For a local deploy:\n`GTM_ID=\"$(gh variable get GTM_ID --repo stvlynn\u002Fspines)\" pnpm run deploy`.\n\nGitHub routes read the GitHub API without a token, which allows 60 requests an\nhour. To raise that to 5,000, store a token with no scopes:\n\n```bash\npnpm --filter @repo\u002Fweb exec wrangler secret put GITHUB_TOKEN\n```\n\n## Credits\n\nBrand marks come from [Simple Icons](https:\u002F\u002Fsimpleicons.org) and belong to\ntheir owners. The home page follows the\n[Sunbeam](https:\u002F\u002Fgithub.com\u002FAstraFoundry\u002Fdesign) design system (MIT). Spine\ntype is set in Inter, Fraunces, JetBrains Mono, Anton and Fredoka (OFL).\n","Spines 是一个将技术栈、AI 工具、GitHub 项目或个人作品集生成 CD 盒侧脊风格 SVG 图像的工具。核心功能包括动态生成单个徽章（如 TypeScript、React）、多项目并排书架（shelf）、仓库信息脊标（含 star 数与语言标识），以及支持主题、配色、尺寸与布局定制的纯 TypeScript 渲染器。所有图像通过 URL 即时生成，无需本地依赖，适用于 GitHub README、个人主页、技术博客或实体收藏展示等场景。",2,"2026-11-24 04:50:38","CREATED_QUERY"]