No server is required to run, but to open files from other directories is best if this folder viewer on a server.
firefox index.html
http://example.org/Viewer.js#../path/to/test.odt
http://example.org/Viewer.js#../path/to/test.pdf
Viewer.JS combines a number of excellent open source tools that are built on HTML and javascript. Viewer.JS was funded by NLnet foundation and developed by KO GmbH.
The heavy lifting in Viewer.JS is done by these awesome projects:
WebODF is a JavaScript library created by KO GmbH. It was started by Jos van den Oever at KO and is now developed by a growing team including external collaborators. It makes it easy to add Open Document Format (ODF) support to your website and to your mobile or desktop applications. It uses HTML and CSS to display ODF documents.
PDF.js is a library created by Andreas Gal and others at Mozilla Labs. It is an HTML5 technology experiment that explores building a faithful and efficient Portable Document Format (PDF) renderer without native code assistance.
You can find additional information, some usage guides, and live examples at the project homepage.