{"id":48447781,"url":"https://github.com/parazeeknova/papyrus","last_synced_at":"2026-04-06T18:30:37.760Z","repository":{"id":343071575,"uuid":"1175075319","full_name":"parazeeknova/papyrus","owner":"parazeeknova","description":"spreadsheets, live !","archived":false,"fork":false,"pushed_at":"2026-03-16T02:44:18.000Z","size":1980,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-16T05:44:19.478Z","etag":null,"topics":["collaboration","crdt","realtime","spreadsheets","yjs"],"latest_commit_sha":null,"homepage":"https://sheets.zephyyrr.in","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/parazeeknova.png","metadata":{"files":{"readme":".github/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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-03-07T07:31:46.000Z","updated_at":"2026-03-16T02:44:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/parazeeknova/papyrus","commit_stats":null,"previous_names":["parazeeknova/papyrus"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/parazeeknova/papyrus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parazeeknova%2Fpapyrus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parazeeknova%2Fpapyrus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parazeeknova%2Fpapyrus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parazeeknova%2Fpapyrus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parazeeknova","download_url":"https://codeload.github.com/parazeeknova/papyrus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parazeeknova%2Fpapyrus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31485384,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-06T17:22:55.647Z","status":"ssl_error","status_checked_at":"2026-04-06T17:22:54.741Z","response_time":112,"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":["collaboration","crdt","realtime","spreadsheets","yjs"],"created_at":"2026-04-06T18:30:37.286Z","updated_at":"2026-04-06T18:30:37.755Z","avatar_url":"https://github.com/parazeeknova.png","language":"TypeScript","readme":"## Papyrus\n\nRealtime collaborative spreadsheet with a local-first document model, CRDT-based syncing, worker-driven evaluation, and a virtualized grid built to stay responsive on 10K+ row datasets.\n\n### Links\n\n- Full Feature List: [features](https://github.com/parazeeknova/papyrus/wiki/Features) at github wiki !\n- Live app: [vercel](https://papyrus-sheets.vercel.app) link deployed\n- Loom Video: [video](https://www.loom.com/share/6a8a305a52a9422fbea79584c5a9cd72)\n\n| Home | Find \u0026 Replace | Share menu |\n| --- | --- | --- |\n| ![Home](./assets/home.png) | ![Find \u0026 Replace](./assets/find\u0026replace.png) | ![Share](./assets/share.png) |\n\n### Core\n\n- The workbook is modeled as a Yjs document, so cells, sheets, formats, column metadata, and workbook metadata all live in one conflict-tolerant source of truth.\n- The web client is local-first: IndexedDB persists workbooks for instant reloads, while Firestore acts as the durable cloud snapshot and sharing registry.\n- Realtime collaboration is handled by an Elysia WebSocket service that sends room snapshots on join and incremental Yjs updates after that.\n- Presence is intentionally separate from workbook state. Active users, selections, typing state, and viewer/editor access are transported as ephemeral collaboration metadata.\n- Formula support is deliberately shallow and defendable for assignment scope: cell refs, ranges, arithmetic, and `SUM`, `AVERAGE`, `MIN`, `MAX`, `COUNT`.\n- Large-sheet responsiveness comes from sparse cell storage, TanStack row and column virtualization, and a Web Worker that recalculates formulas off the main thread.\n\n### Architecture\n\n```mermaid\nflowchart TB\n  subgraph Client[\"Next.js Client\"]\n    UI[\"Dashboard + Spreadsheet UI\"]\n    Store[\"Zustand Store\\nhydration, commands, write state\"]\n    YDoc[\"Yjs Workbook Doc\\ncells, sheets, formats, meta\"]\n    Worker[\"Formula Worker\\ndependency graph + recompute\"]\n    IDB[(\"IndexedDB\\nlocal persistence\")]\n  end\n\n  subgraph Realtime[\"Sync Layer\"]\n    WS[\"Elysia WebSocket Room\\nsnapshot, presence, incremental Yjs fanout\"]\n    Cache[(\"Room Cache\\nserver-side persisted room state\")]\n  end\n\n  subgraph Cloud[\"Firebase\"]\n    Auth[\"Firebase Auth\\nGoogle / session identity\"]\n    Snapshots[(\"Firestore\\nworkbook snapshots\")]\n    Sharing[(\"Firestore\\nsharedWorkbooks policy\")]\n  end\n\n  UI --\u003e Store\n  Store \u003c--\u003e YDoc\n  Store \u003c--\u003e Worker\n  YDoc \u003c--\u003e IDB\n\n  Store -- initial bootstrap / merge --\u003e Snapshots\n  Store -- debounced durable sync --\u003e Snapshots\n  Store -- collaborator identity --\u003e Auth\n\n  Store -- snapshot seed + incremental updates --\u003e WS\n  WS -- snapshot / sync / presence --\u003e Store\n  WS \u003c--\u003e Cache\n  WS -- access validation --\u003e Sharing\n  Auth -- owner token --\u003e WS\n```\n\n### More Info\n\n- Logical row capacity is `100,000`, with the visible window virtualized instead of rendering the full sheet into the DOM.\n- A 10K+ row CSV is a strong path for this architecture because import stores only populated cells, the grid renders only visible rows and columns, and recalculation stays off the main React thread.\n- The live collaboration path and the durable cloud path are intentionally split: Yjs + WebSocket handles low-latency edits and conflict-friendly merging, while Firestore handles debounced persistence, durable restore, and sharing metadata.\n- Firestore writes are lease-guarded to reduce remote snapshot clobbering when multiple authenticated clients are open on the same workbook.\n- Structural operations like insert, delete, and reorder are supported, but they are heavier than plain editing because they rewrite sparse cell maps and formula references.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparazeeknova%2Fpapyrus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparazeeknova%2Fpapyrus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparazeeknova%2Fpapyrus/lists"}