{"id":28439051,"url":"https://github.com/sweetwisdom/onlyoffice-web-local","last_synced_at":"2026-01-21T13:25:19.485Z","repository":{"id":295713892,"uuid":"991000031","full_name":"sweetwisdom/onlyoffice-web-local","owner":"sweetwisdom","description":"vue-office, Perform common file preview and editing via the web.","archived":false,"fork":false,"pushed_at":"2025-07-21T07:18:07.000Z","size":94703,"stargazers_count":223,"open_issues_count":16,"forks_count":54,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-01-19T22:53:49.619Z","etag":null,"topics":["onlyoffice","vue","wasm","web-office","word"],"latest_commit_sha":null,"homepage":"https://sweetwisdom.github.io/onlyoffice-web-local/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sweetwisdom.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}},"created_at":"2025-05-27T01:24:14.000Z","updated_at":"2026-01-16T12:42:48.000Z","dependencies_parsed_at":"2025-05-27T02:46:55.335Z","dependency_job_id":null,"html_url":"https://github.com/sweetwisdom/onlyoffice-web-local","commit_stats":null,"previous_names":["sweetwisdom/onlyoffice-web-local"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sweetwisdom/onlyoffice-web-local","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sweetwisdom%2Fonlyoffice-web-local","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sweetwisdom%2Fonlyoffice-web-local/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sweetwisdom%2Fonlyoffice-web-local/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sweetwisdom%2Fonlyoffice-web-local/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sweetwisdom","download_url":"https://codeload.github.com/sweetwisdom/onlyoffice-web-local/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sweetwisdom%2Fonlyoffice-web-local/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28633757,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["onlyoffice","vue","wasm","web-office","word"],"created_at":"2025-06-06T02:06:35.206Z","updated_at":"2026-01-21T13:25:19.480Z","avatar_url":"https://github.com/sweetwisdom.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# office-web-local\n\nA purely local project based on OnlyOffice, supporting local `opening and editing` of Office documents.\n\n[Live Demo🪄](https://sweetwisdom.github.io/onlyoffice-web-local/)\n\nA local web-based document editor based on OnlyOffice, allowing you to edit documents directly in your browser without server-side processing, ensuring your privacy and security.\n\n\n[English](README.md) | [中文](readme.zh.md)\n\n\n## ✨ Key Features\n\n- 🔒 **Privacy-First**: All document processing happens locally in your browser, with no uploads to any server\n- 📝 **Multi-Format Support**: Supports DOCX, XLSX, PPTX, and many other document formats\n- ⚡ **Real-Time Editing**: Provides smooth real-time document editing experience\n- 🚀 **No Server Required**: Pure frontend implementation with no server-side processing needed\n- 🎯 **Ready to Use**: Start editing documents immediately by opening the webpage\n\n## 🛠️ Technical Architecture\n\nThis project is built on the following core technologies:\n\n- **OnlyOffice SDK**: Provides powerful document editing capabilities\n- **WebAssembly**: Implements document format conversion through x2t-wasm\n- **Pure Frontend Architecture**: All functionality runs in the browser\n\n## 📄 Opening Remote Files\n\n### Functionality\n\nAutomatically downloads and opens remote Office files (e.g., `.docx`, `.pptx`) via route parameters, converting them into `File` objects for further use (e.g., preview or editing).\n\n### Usage\n\nThe page URL must include the following parameters:\n\n- `url` (required): Remote file address\n- `filename` (optional): File name; if not provided, it will attempt to auto-resolve\n\nExample:\n[00.xlsx](https://sweetwisdom.github.io/onlyoffice-web-local/#/?url=https://sweetwisdom.github.io/react-filePreview/filePreview/00.xlsx)\n\n```\n?filename=00.pptx\u0026url=https://example.com/files/00.pptx\n```\n\n### File Name Retrieval Priority\n\n1. Route parameter `filename`\n2. Parsed from `url`\n3. Extracted from response header `Content-Disposition`\n\nIf the file name cannot be retrieved, the operation will terminate with an error prompt.\n\n## Word\n\n![recording](./.imgs/recording.gif)\n\n## Excel\n\n![image-20250524104950359](./.imgs/image-20250524104950359.png)\n\n## PPT\n\n![image-20250524105044644](./.imgs/image-20250524105044644.png)\n\n## Export Document\n\n![image-20250524104854846](./.imgs/image-20250524104854846.png)\n\n## Development Setup\n\n```sh\npnpm install\n```\n\n### Compile and Hot-Reload for Development\n\n```sh\npnpm dev\n```\n\n### Type-Check, Compile, and Minify for Production\n\n```sh\npnpm build\n```\n\n## Docker Support\n\nBuild a custom image named `vue-local-office` (note: the `.` at the end of the command indicates using the Dockerfile in the current directory; adjust the path as needed):\n\n```sh\ndocker build -t vue-local-office .\n```\n\nMap ports and start the Docker container (8080:80 maps the container's port 80 to the host's port 8080; `local-office` is the custom container name; `vue-local-office` is the custom image name):\n\n```sh\ndocker run -dp 8080:80 --name local-office vue-local-office\n```\n\nAfter executing the above commands, open http://localhost:8080 in a browser to preview.\n\n## Technical Details\n\n- Uses `x2t-wasm` as a replacement for OnlyOffice services\n- Utilizes OnlyOffice WebSDK for editing (sourced from `se-office`)\n\n## References\n\n- [Qihoo360/se-office: A full-featured office productivity suite based on open standards, enabling browser-based preview and editing of Office files.](https://github.com/Qihoo360/se-office)\n- [cryptpad/onlyoffice-x2t-wasm: CryptPad WebAssembly file conversion tool](https://github.com/cryptpad/onlyoffice-x2t-wasm)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsweetwisdom%2Fonlyoffice-web-local","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsweetwisdom%2Fonlyoffice-web-local","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsweetwisdom%2Fonlyoffice-web-local/lists"}