501351981/vue-office

支持word(.docx)、excel(.xlsx,.xls)、pdf、pptx等各类型office文件预览的vue组件集合,提供一站式office文件预览方案,支持vue2和3,也支持React等非Vue框架。Web-based pdf, excel, word, pptx preview library

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 38 minutes ago
Added to GitGenius on September 11th, 2026
Created on November 9th, 2022
Open Issues & Pull Requests: 222 (+0)
GitHub issues: Enabled
Number of forks: 617
Total Stargazers: 5,725 (+0)
Total Subscribers: 24 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 27.0 hours
Mean response time: 51.0 days
90th percentile: 164.9 days
Tracked items: 141

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 99% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 1% of issues opened in the past year have been closed. Three people close 62% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 158
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 562 days
Stale 30+ days: 157
Stale 90+ days: 156

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

vue-office is a Vue component library that provides in-browser preview of multiple office file formats including Word documents, Excel spreadsheets, PDFs, and PowerPoint presentations, with support for both Vue 2 and Vue 3 as well as non-Vue frameworks.

The library solves the problem of displaying office documents directly in web applications without requiring users to download files or use external viewers. It accepts document sources in three forms: CDN URLs, binary data from file uploads, or ArrayBuffer data from API responses. Each file type uses an optimized preview approach—Word files leverage docx-preview, PDFs use pdfjs with virtual scrolling for performance, Excel uses exceljs and x-data-spreadsheet for comprehensive style support, and PowerPoint files use a custom pptx-preview library. Users need only pass a document source to the component's src property to enable preview functionality.

The tool suits projects requiring document preview capabilities without external dependencies or downloads. It works across Vue 2.6 and later versions, with Vue 2.6 and below requiring an additional composition API package. The library is particularly valuable for applications handling file uploads, API-delivered documents, or CDN-hosted files. The README does not compare it to alternative solutions.

The project maintains a substantial base of real-world adopters, as evidenced by the fact that nearly all open issues originate from external users rather than the core team. Maintainers typically respond to new issues and pull requests within a few days.