目标不是到处求 Star,而是围绕真实业务问题建立长期入口:
搜得到 -> 看得懂 -> 30 秒愿意试 -> 用完愿意收藏、Star、提 issue 或转发。
发布渠道: L 站、掘金、SegmentFault、微信群 / 技术群。
标题:
做了一个纯前端 File Viewer,想请大家帮忙测测真实文件兼容性
开头:
最近在整理企业后台、OA、知识库和工单系统里的附件预览问题,发现真实业务文件经常不是单一的 PDF 或图片,而是 Word、Excel、PPT、DWG、压缩包、邮件、图片、音视频、代码混在一起。
传统做法通常会引入 LibreOffice / 转码服务 / 队列 / 缓存 / 字体环境,但在内网和私有化交付里,这套链路的维护成本不低。所以我把 File Viewer 的定位收敛成一个纯前端、自托管、可按需裁剪的文件预览组件。
主体结构:
CTA:
如果你手里有不涉密、可脱敏的业务附件,欢迎拿 Demo 试一下。遇到样式不一致、打不开、内网部署路径问题或移动端异常,都可以提 issue,这类反馈比单纯 Star 更有价值。
- Demo: https://demo.file-viewer.app
- Docs: https://doc.file-viewer.app
- GitHub: https://github.com/flyfish-dev/file-viewer
记录指标:
/issues 和 /blob/main/README.md 是否进入 popular content@file-viewer/vue3-full、@file-viewer/react-full、@file-viewer/web-full 下载变化标题:
内网系统如何实现 Word / PDF / CAD 附件预览?我做了一个纯前端方案
大纲:
推荐代码片段:
import FileViewer from '@file-viewer/react-full'
export function Preview() {
return <FileViewer url="/files/contract.docx" style={{ height: 720 }} />
}
标题:
不想维护 LibreOffice 转码服务,前端文件预览能做到什么程度?
大纲:
CTA:
如果你的目标是企业后台里的附件查看和初筛,可以先用 Demo 验证真实文件。复杂样本欢迎脱敏后提 issue,我会优先看能复现的问题。
标题:
Worker / WASM 在私有化文件预览部署里的坑
大纲:
标题:
A browser-native file viewer for internal web apps, without server-side conversion
Opening:
Internal web apps often need to preview real business attachments: Office documents, PDF/OFD files, CAD drawings, archives, email exports, images, media, and source code. A server-side conversion pipeline can work well, but it also adds deployment, queue, cache, font, temporary-file, and permission complexity.
File Viewer is an open-source browser-native file preview component for private and internal web apps. It focuses on self-hosted frontend preview, no server-side conversion, and framework-friendly integration for Vue, React, Svelte, jQuery, and Web Components.
Sections:
CTA:
Try the demo with sanitized files and open compatibility issues when a real document does not render as expected. Those reports are more useful than generic feature requests.
- GitHub: https://github.com/flyfish-dev/file-viewer
- Demo: https://demo.file-viewer.app
- Docs: https://doc.file-viewer.app
每次发布后记录:
### YYYY-MM-DD 渠道 / 标题
- Link:
- Hook:
- GitHub visitors:
- Unique visitors:
- Stars +:
- Issues +:
- Issues with repro files:
- npm downloads:
- Best referrer:
- Popular content:
- What to change next: