个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证View & edit DOCX, XLSX, PPTX in the browser. Progressive loading, formulas, real-time collab, saves to original format.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗View + edit DOCX / XLSX / PPTX directly in the browser. Loads progressively like Google Docs, handles heavy files, one-line React embed, saves back to the original format.
The demo has samples, heavy files (300k-row sheet, 305-slide deck), drag & drop your own file, edit and download.
Real-time collaboration
300k-row XLSX open in the browser
| DOCX editor | PPTX editor |
|---|---|
bun add @p10node/office-engine # peer: react >= 18, react-dom >= 18
import { DocViewer } from '@p10node/office-engine'
<DocViewer src={file} style={{ height: 600 }} /> // File | Blob | ArrayBuffer | Uint8Array
<DocViewer src="https://cdn.example.com/report.xlsx" /> // URL → Range requests
<DocViewer src={file} editable onSave={(blob, name) => upload(blob, name)} />
CSS is auto-injected. Container must have a height.
Without React:
<script src="office-engine.embed.js"></script> <!-- dist/, bundles React + worker -->
<office-viewer src="/files/report.docx" style="height:600px"></office-viewer>
Also online at p10node.github.io/office-engine.
mount(), <office-viewer>, core API, CSPmount(), <office-viewer> web component, single <script> fileFull list, format coverage and limitations: Features.
| File | Size | First paint | Fully loaded |
|---|---|---|---|
| DOCX 20k paragraphs | 1.2 MB | ~180 ms | 2073 pages in ~2s |
| XLSX 300k rows × 12 cols | 24.8 MB | ~330 ms | ~2s |
| PPTX 305 slides | 0.3 MB | ~110 ms | on-demand |
Measured in headless Chromium on Apple M-series.
MIT © p10node