{"id":51151298,"url":"https://github.com/humanbased-ai/linear-cards-system","last_synced_at":"2026-06-26T06:04:17.211Z","repository":{"id":364571625,"uuid":"1268370122","full_name":"humanbased-ai/linear-cards-system","owner":"humanbased-ai","description":"A session-attached workflow UI grammar for rendering complex work as linear rails and generic cards.","archived":false,"fork":false,"pushed_at":"2026-06-13T15:44:59.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-13T16:17:25.851Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/humanbased-ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2026-06-13T12:59:22.000Z","updated_at":"2026-06-13T15:45:03.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/humanbased-ai/linear-cards-system","commit_stats":null,"previous_names":["humanbased-ai/linear-cards-system"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/humanbased-ai/linear-cards-system","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humanbased-ai%2Flinear-cards-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humanbased-ai%2Flinear-cards-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humanbased-ai%2Flinear-cards-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humanbased-ai%2Flinear-cards-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/humanbased-ai","download_url":"https://codeload.github.com/humanbased-ai/linear-cards-system/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humanbased-ai%2Flinear-cards-system/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34805109,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-26T02:00:06.560Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2026-06-26T06:04:16.614Z","updated_at":"2026-06-26T06:04:17.198Z","avatar_url":"https://github.com/humanbased-ai.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Linear Cards System\n\nA session-attached workflow UI grammar for rendering complex work as a mostly linear rail with structured cards and quiet statements.\n\n![Sample rendering of Linear Cards System](docs/assets/sample-rendering.png)\n\n## Purpose\n\nComplex tasks often have the same shape: a sequence of steps, occasional branches, evidence, state changes, outputs, and follow-up actions.\n\nLinear Cards System gives coding agents a constrained UI grammar for that shape. Instead of redesigning workflow UI from scratch, an agent maps the task into a `LinearCardsDocument`, chooses generic information primitives, and lets the renderer own the rail, spacing, surfaces, status styling, and responsive behavior.\n\nThe goal is not to make every item a card. The system intentionally mixes:\n\n- a mostly linear timeline rail\n- framed cards for structured or grouped information\n- unframed statements for lightweight notes and milestones\n- vivid color used only as small state or emphasis signals\n\n## When To Use It\n\nUse Linear Cards System when an interface needs to show process, progress, auditability, or stepwise reasoning:\n\n- coding task progress\n- research workflows\n- evaluation runs\n- operational checklists\n- math or reasoning traces\n- build/deploy pipelines\n- artifact and evidence trails\n- agent-generated work summaries\n\nIt is especially useful when a downstream coding agent should focus on the domain logic and produce UI by filling a schema, not inventing a layout system.\n\n## Quick Start\n\nInstall from npm:\n\n```bash\nnpm install @humanbased/linear-cards-system\n```\n\nUse it in a React app:\n\n```tsx\nimport { LinearCardsTimeline } from \"@humanbased/linear-cards-system\";\nimport type { LinearCardsDocument } from \"@humanbased/linear-cards-system\";\nimport \"@humanbased/linear-cards-system/css\";\n```\n\nRun the local demo from this repo:\n\n```bash\nnpm install\nnpm run dev\n```\n\nOpen the local URL printed by Vite.\n\n## React Usage\n\n```tsx\nimport { LinearCardsTimeline } from \"@humanbased/linear-cards-system\";\nimport type { LinearCardsDocument } from \"@humanbased/linear-cards-system\";\nimport \"@humanbased/linear-cards-system/css\";\n\nconst document: LinearCardsDocument = {\n  title: \"Linear Cards System\",\n  sourceHref: \"https://github.com/humanbased-ai/linear-cards-system\",\n  nodes: [\n    {\n      id: \"capture-intent\",\n      title: \"Capture the intent\",\n      status: \"complete\",\n      rail: { time: \"7:12 PM\", label: \"DEFINED\", markerTone: \"good\" },\n      cards: [\n        {\n          type: \"text\",\n          title: \"User need\",\n          body: \"Represent complex work as a mostly linear workflow.\",\n        },\n        {\n          type: \"statement\",\n          title: \"Statements stay unframed\",\n          body: \"Use statements for lightweight milestones or notes.\",\n          badges: [{ label: \"quiet\", tone: \"muted\" }],\n        },\n      ],\n    },\n  ],\n};\n\nexport function App() {\n  return \u003cLinearCardsTimeline document={document} /\u003e;\n}\n```\n\n## Agent Usage\n\nThis system is meant to be session-attached, not a permanent project rule.\n\nWhen a user asks for Linear Cards, an agent can load:\n\n```txt\nagent/LINEAR_CARDS_SESSION.md\n```\n\nThen for the current task only:\n\n1. Identify workflow nodes.\n2. Assign each node a title, rail label, optional time, and status.\n3. Select generic primitives by information shape.\n4. Fill the card or statement data.\n5. Render through `LinearCardsTimeline`.\n6. Tune tokens only if the visual tone needs adjustment.\n\nIf the downstream harness exposes UI quality skills, ask it to load `impeccable` and its taste/frontend design skill for the current session before finalizing. The intent is a temporary quality pass, not permanent agent configuration.\n\n## Information Primitives\n\nChoose primitives by information shape, not domain meaning:\n\n- `header`: overview, current item, selected item, or workflow summary\n- `grid`: labeled values, stats, properties, comparison cells\n- `text`: explanation, notes, reasoning, summary, observation\n- `list`: ordered or unordered items, checks, subtasks, constraints\n- `split`: input/output, before/after, cause/effect, side-by-side comparison\n- `branch`: local conditional paths, alternatives, fallback routes\n- `reference`: links, files, citations, logs, assets, records\n- `statement`: unframed formatted text for lightweight milestones, observations, or published artifacts\n- `state`: success, warning, failure, blocked, pending, running, partial\n- `action`: commands, approvals, next steps, user choices\n- `disclosure`: collapsed deeper details\n\n## Layout Guidance\n\nUse the rail to create sequence, then mix framed cards with unframed statements:\n\n- Use cards when information needs comparison, grouping, actions, disclosure, or a strong state boundary.\n- Use `statement` when the item is a lightweight milestone, note, observation, artifact announcement, or contextual sentence.\n- Keep one dominant card per node when possible. Add statements before or after it to reduce card fatigue.\n- Let margin create focus: larger gaps between rail nodes, moderate padding inside cards, and narrow text measures for statements.\n- Avoid filling every timeline stop with a full card. Quiet layouts come from contrast between dense modules and open text.\n- Tune spacing through shared CSS tokens and primitives before adding one-off margins.\n\n## Palette Guidance\n\nUse black and white as the main material. Keep surfaces near-white, text near-black, and borders neutral. Use vivid colors only as decoration for state, selection, deltas, markers, and small chips:\n\n- `blue`: primary signal, links, selected tools\n- `violet`: branching, choices, alternatives\n- `lime`: success, completion, healthy state\n- `rose`: risk, failure, destructive state\n- `amber`: warning, attention, pending state\n- `cyan`: references, evidence, informational state\n\nPrefer assigning these through `tone` values instead of writing one-off CSS.\n\n## Development\n\n```bash\nnpm run build\n```\n\nThe demo source lives in `src/linear-cards/examples.ts`.\n\n## Status\n\nThis repository is an early open-source prototype built by Humanbased.\n\nIt includes:\n\n- a React/Vite demo app\n- a typed `LinearCardsDocument` model\n- a reusable timeline/card renderer\n- a CSS token layer for the visual system\n- a session-attached agent guide\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhumanbased-ai%2Flinear-cards-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhumanbased-ai%2Flinear-cards-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhumanbased-ai%2Flinear-cards-system/lists"}