fileon: A Browser Web Component That Previews Most File Types Locally

The developer built fileon, a web component that previews PDFs, Office documents, spreadsheets, images, media, code, archives and fonts entirely in the browser. It avoids sending user files to third-party viewers and keeps bundles small by loading format-specific engines only when needed. Integration is available as a simple function call or as a custom HTML element usable in React, Vue, Svelte and Angular. Office files are converted locally, so layout fidelity is limited, and an optional Microsoft viewer can be used only when the user explicitly chooses it. The library also detects file types from their byte signatures rather than trusting extensions or server headers.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in