[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108466":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":14,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":15,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":23,"topics":24,"createdAt":10,"pushedAt":35,"updatedAt":36,"readmeContent":37,"aiSummary":38,"trendingCount":16,"starSnapshotCount":16,"syncStatus":39,"lastSyncTime":40,"discoverSource":41},108466,"office-engine","p10node\u002Foffice-engine","p10node","Open & edit documents in the browser: DOCX, XLSX, PPTX, DOC, XLS, PPT, RTF, ODT, ODS, ODP, CSV, TXT, Markdown, HTML, SVG, Mermaid, PlantUML, Graphviz. View-only: Pages, Keynote, Numbers, Visio (VSDX). Zero deps, no server, real-time collab, saves to original format. One-line React embed.","https:\u002F\u002Fp10node.github.io\u002Foffice-engine\u002F",null,"TypeScript",151,13,1,7,0,14,72,59.64,"MIT License",false,"main",true,[25,26,27,28,29,30,31,32,33,34],"browser","collaboration","document-editor","document-viewer","docx","office","pptx","react","spreadsheet","xlsx","2026-11-23 12:05:25","2026-11-23 08:40:00","# @p10node\u002Foffice-engine\n\n[![npm version](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002F@p10node\u002Foffice-engine)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@p10node\u002Foffice-engine)\n[![npm downloads](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fdm\u002F@p10node\u002Foffice-engine)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@p10node\u002Foffice-engine)\n[![CI](https:\u002F\u002Fgithub.com\u002Fp10node\u002Foffice-engine\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fp10node\u002Foffice-engine\u002Factions\u002Fworkflows\u002Fci.yml)\n[![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fl\u002F@p10node\u002Foffice-engine)](LICENSE)\n\nView + edit **DOCX \u002F XLSX \u002F PPTX** directly in the browser. Loads progressively like Google Docs, handles heavy files, one-line React embed, saves back to the original format.\n\n**[npm](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@p10node\u002Foffice-engine)** · **[Live demo](https:\u002F\u002Fp10node.github.io\u002Foffice-engine\u002Fdemo\u002F)** · **[Docs](https:\u002F\u002Fp10node.github.io\u002Foffice-engine\u002F)**\n\nThe demo has samples, heavy files (300k-row sheet, 305-slide deck), drag & drop your own file, edit and download.\n\n**Real-time collaboration**\n\n![Real-time collaboration: Ann and Bob edit one sheet side by side, Cara joins from a third browser](docs\u002Fscreenshots\u002Fcollab.gif)\n\n**300k-row XLSX open in the browser**\n\n![300k-row XLSX opening in the browser: rows stream in, then a jump to the last row](docs\u002Fscreenshots\u002Fxlsx-300k.gif)\n\n| DOCX editor                               | PPTX editor                               |\n|-------------------------------------------|-------------------------------------------|\n| ![DOCX editor](docs\u002Fscreenshots\u002Fdocx.png) | ![PPTX editor](docs\u002Fscreenshots\u002Fpptx.png) |\n\n## Install\n\n```bash\nbun add @p10node\u002Foffice-engine   # peer: react >= 18, react-dom >= 18\n```\n\n## Usage\n\n```tsx\nimport { DocViewer } from '@p10node\u002Foffice-engine'\n\n\u003CDocViewer src={file} style={{ height: 600 }} \u002F>                 \u002F\u002F File | Blob | ArrayBuffer | Uint8Array\n\u003CDocViewer src=\"https:\u002F\u002Fcdn.example.com\u002Freport.xlsx\" \u002F>          \u002F\u002F URL → Range requests\n\u003CDocViewer src={file} editable onSave={(blob, name) => upload(blob, name)} \u002F>\n```\n\nCSS is auto-injected. Container must have a height.\n\nWithout React:\n\n```html\n\u003Cscript src=\"office-engine.embed.js\">\u003C\u002Fscript>   \u003C!-- dist\u002F, bundles React + worker -->\n\u003Coffice-viewer src=\"\u002Ffiles\u002Freport.docx\" style=\"height:600px\">\u003C\u002Foffice-viewer>\n```\n\n## Docs\n\nAlso online at [p10node.github.io\u002Foffice-engine](https:\u002F\u002Fp10node.github.io\u002Foffice-engine\u002F).\n\n- [Features](docs\u002Ffeatures.md): format coverage, editing, saving, limitations\n- [API](docs\u002Fapi.md): props, custom views, `mount()`, `\u003Coffice-viewer>`, core API, CSP\n- [Real-time collaboration](docs\u002Fcollaboration.md)\n- [Development](docs\u002Fdevelopment.md): playground, architecture, demo deploy, release\n\n## Features\n\n- **Progressive loading**: lazy ZIP, HTTP Range requests, streaming XML parser in a Web Worker → UI never blocks\n- **Virtualized views**: only visible pages, cells and slides render\n- **Editing** with a Google Docs-style toolbar: DOCX text, styles, lists, images, tables; XLSX cells, formulas (134 functions), formats, borders, rows\u002Fcolumns, sheets; PPTX text, shapes, images, slides, slideshow\n- **Fast save**: only edited parts are regenerated, everything else keeps its original bytes\n- **File menu**: new, open (also CSV \u002F text \u002F Markdown \u002F HTML), import CSV, rename, download as PDF \u002F HTML \u002F text \u002F CSV, document details, print\n- **Comments**: threads with replies, resolve, edit \u002F delete, @mentions; on DOCX text, XLSX cells and PPTX slides, stored in the file the way Word, Excel and PowerPoint store them\n- **Real-time collaboration**: live edits, avatars, collaborators' cursors, offline edits sync on reconnect\n- **Dark mode**: `theme=\"dark\"` or `\"auto\"` (follows the OS); documents keep their own colors\n- **Embed anywhere**: React component, hook, vanilla `mount()`, `\u003Coffice-viewer>` web component, single `\u003Cscript>` file\n\nFull list, format coverage and limitations: [Features](docs\u002Ffeatures.md).\n\n| File                     | Size    | First paint | Fully loaded      |\n|--------------------------|---------|-------------|-------------------|\n| DOCX 20k paragraphs      | 1.2 MB  | ~180 ms     | 2073 pages in ~2s |\n| XLSX 300k rows × 12 cols | 24.8 MB | ~330 ms     | ~2s               |\n| PPTX 305 slides          | 0.3 MB  | ~110 ms     | on-demand         |\n\nMeasured in headless Chromium on Apple M-series.\n\n## License\n\n[MIT](LICENSE) © p10node\n","office-engine 是一个基于浏览器的 Office 文档（DOCX\u002FXLSX\u002FPPTX）在线查看与编辑引擎。它支持渐进式加载（利用 HTTP Range 请求和 Web Worker 流式解析）、虚拟化渲染、公式计算（134个Excel函数）、实时协同编辑，并能原格式保存回文件。采用 TypeScript 开发，提供 React 组件和无框架自定义元素两种集成方式，适用于需嵌入文档处理能力的 SaaS 应用、企业内部协作平台或教育类在线办公系统。",2,"2026-11-24 04:34:17","CREATED_QUERY"]