flyfish-dev/file-viewer ? reverse-engineered prompt
Reverse engineered prompt
Build me a self hosted file preview component for internal web apps that opens common office files, PDFs, CAD drawings, archives, email files, diagrams, and a few media and data formats right in the browser.
I want it to work without sending files to a conversion server, and I want the heavy stuff to load only when needed so the first screen stays fast. It should feel like one consistent viewer with the same basic controls for source, toolbar, zoom, search, print, and export across file types.
Please make it usable as a simple embed, and also easy to drop into React, Vue, Svelte, jQuery, or plain web component setups. Keep it friendly for private deployment, with assets and workers able to live on our own network. If you need current docs for any browser APIs or build details, look them up online.
Are you gonna build this?
make sure you review the code using coderabbit