Code Monkey home page Code Monkey logo

docx-reader's Introduction

Docx Reader v0.0.0

This is desktop app built with Tauri and Svelte. You can open .docx files in it. Although many features are missing, like font, color, editing, etc, it opens documents much faster than word (~3x in dev server, ~28x faster after build). This means it can open a 4 MB Kritique Masterfile in ~1 second.

Features

  • Bold, underline, highlight, font size
  • Outline
  • Blazingly fast startup
  • Zoom
  • Search
  • Multi-window support

Unfeatures

Features it doesn't have

  • Ability to edit
  • Pages
  • Font, color, highlight color

Download

MacOS

  1. Click here to download the dmg
  2. Double click the dmg
  3. Drag the app into Applications folder
  4. Right click and click open (it won't let you open otherwise)

Windows & Linux

Not supported right now (even though Tauri is literally cross platform)

Or build from source

This will work for Macos, Windows and Linux

  1. Set up Tauri dependencies
  2. Clone this repository and install packages
git clone https://github.com/Ashwagandhae/docx-reader
cd docx-reader
npm install
  1. Start the development server (will be slow the first time because of rust packages)
npm run tauri dev
  1. Or actually build the app (will be slow all the time)
npm run tauri build

Dependencies explained

Why Tauri?

Tauri is basically a newer Electron, but with much better performance. The fact that it uses Rust in the backend allows it to parse the docx files fast.

Why Svelte?

My Vue is that Svelte is more Reactive, and it's easier to Express my ideas. I can see the Angle of it being a pretty new framework, but I think it's the Next big thing, and will probably become the Backbone of web development.

Why quick_xml?

quick_xml is the fastest rust XML parsing library I could find. Instead of making a struct representation of the XML, it streams them as events. Docx files are actually just zipped up folders of XML files, you can read more here.

Why zip?

zip is the first unzipping library I found. Docx files are actually just zipped up folders of XML files, so I needed to unzip them.

docx-reader's People

Contributors

ashwagandhae avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.