{"id":51789818,"url":"https://github.com/developer-1px/dogfooding-sheet","last_synced_at":"2026-07-20T21:04:12.346Z","repository":{"id":359253622,"uuid":"1234704616","full_name":"developer-1px/dogfooding-sheet","owner":"developer-1px","description":"개밥먹기 프로젝트 - 구글시트","archived":false,"fork":false,"pushed_at":"2026-07-15T16:18:46.000Z","size":2454,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-15T18:14:27.069Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/developer-1px.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":"2026-05-10T14:35:11.000Z","updated_at":"2026-07-15T16:20:26.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/developer-1px/dogfooding-sheet","commit_stats":null,"previous_names":["developer-1px/dogfooding-sheet"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/developer-1px/dogfooding-sheet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer-1px%2Fdogfooding-sheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer-1px%2Fdogfooding-sheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer-1px%2Fdogfooding-sheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer-1px%2Fdogfooding-sheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developer-1px","download_url":"https://codeload.github.com/developer-1px/dogfooding-sheet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer-1px%2Fdogfooding-sheet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35699593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"ssl_error","status_checked_at":"2026-07-20T02:08:09.736Z","response_time":111,"last_error":"SSL_read: 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":"2026-07-20T21:04:10.123Z","updated_at":"2026-07-20T21:04:12.340Z","avatar_url":"https://github.com/developer-1px.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spredsheet\n\nBrowser-only spreadsheet built on top of two local packages — used as their dogfood:\n\n- **`@interactive-os/aria`** — current APG pattern runtime; grid focus/navigation uses this.\n- **`@interactive-os/aria-kernel`** — legacy gestures and remaining dialog/menu/tabs adapters during migration.\n- **[`@interactive-os/json-document`](https://github.com/developer-1px/json-document)** — single-document JSON-Patch CRUD with undo/redo over a Zod schema.\n\nA 10-column × 20-row sheet with 200+ formulas, conditional formatting, validation, multiple tabs, and end-to-end undo. ~5k LOC under `src/`.\n\n## Architecture\n\n```\nsrc/app/                       ← entry, app shell, previews, and devtools wiring\nsrc/shared/                    ← domain-free utilities, hooks, and test support\nsrc/entities/                  ← stable sheet data interfaces and pure transforms\nsrc/features/                  ← spreadsheet use cases grouped by slice and role\nsrc/widgets/                   ← visible spreadsheet composition surfaces\npackages/                      ← reusable headless engines and contracts\n```\n\nApp-owned code follows `layer \u003e slice \u003e segment(role)`. For example,\n`src/features/validation/hooks` owns the validation runtime hook, while\n`src/widgets/sheet-grid/ui` owns the visible grid surface. Packages never import\nfrom `src/`. `pnpm check:boundaries` enforces package isolation, feature-slice\nindependence, and downward-only layer imports.\n\n### Standardization candidates\n\n- `packages/formula/` is registered as the seed for an Excel-like interactive\n  formula engine candidate. See\n  [`docs/standardization/formula-engine.md`](docs/standardization/formula-engine.md).\n\n### SSOT (single source of truth)\n\nEverything persisted lives in **one** `useJSONDocument(SheetSchema)`:\n`cells / notes / styles / formats / validation / condFormat / freeze / hidden / colWidths / tabs`.\n\nConsequence: **undo/redo covers every state change** — bold a cell, add a note, drag a column, switch tabs — all reverse via Cmd+Z.\n\n### Multi-sheet\n\nEach tab owns its own `TabBundle` (cells + notes + styles + …). `tabActions.switchTab` snapshots the active bundle into `tabs.saved[active]` and hydrates the target's bundle in a single `ops.reset`.\n\n### Native modal-free\n\nNo `window.prompt` / `window.confirm` / `window.alert`. All interactions route through `usePrompt` / `useConfirm` hooks built on aria-kernel legacy dialog adapters.\n\n## Dev\n\n```sh\npnpm install\npnpm dev          # vite dev server\npnpm check        # lint + boundaries + production build + all tests\npnpm check:boundaries\npnpm build        # package builds + tsc -b + vite build\npnpm test         # app + grid + formula tests\n```\n\n## Open issues filed during dogfooding\n\n- aria-kernel#137 — `useDialogPattern` controlled-mode Escape doesn't reach parent (added `onOpenChange`)\n- json-document#57 — `ops.replace` invalidates references for unrelated paths (structural-sharing proposal)\n- json-document#58 — expose `undoDepth` / `redoDepth` for indicator UIs\n- json-document#59 — coalesce rapid ops into a single undo entry (drag interactions)\n\n## ARIA-punt absorption (kernel ↔ spredsheet)\n\nAd-hoc 코드를 kernel 책임선 아래로 옮긴 5건. 각 1대1 매핑이 ds repo `/lab` 라우트에 PoC + 25 black-box test 로 가시화돼 있다.\n\n| Was (ad-hoc) | Now (kernel API) | File |\n|---|---|---|\n| `\u003cdiv className=\"dialog-backdrop\" onClick={close}/\u003e` | `useDialogPattern` `backdropProps` (self-target guard) | `src/widgets/dialogs/ui/HelpDialog.tsx` |\n| `data.entities[name].selected = name === active` mutation | `useTabsPattern({ active })` | `src/features/tabs/ui/Tabs.tsx` |\n| `useEffect(()=\u003edocument.addEventListener('mousedown',...))` | `useMenuPattern({ onInteractOutside })` | `src/widgets/context-menu/ui/ContextMenu.tsx` |\n| `\u003cinput onKeyDown={...Enter/Shift+Enter}\u003e` | `useDialogPattern({ on: { Enter, 'shift+Enter' } })` | `src/features/find/ui/Find.tsx` |\n| F2/Enter handler in `useShortcuts` | `useGridPattern` emits `editStart` (GRID_EDIT_CHORDS = [F2, Enter]) | `src/widgets/sheet-grid/hooks/useSheetGrid.ts` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper-1px%2Fdogfooding-sheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveloper-1px%2Fdogfooding-sheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper-1px%2Fdogfooding-sheet/lists"}