Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
November 22, 2021 12:50 pm GMT

Xplorer, a modern File Explorer that was written using TypeScript, has its performance improved on the recent release

Xplorer dark

Hello devs!

About two months ago, I released the first version of Xplorer and wrote a post about it which makes both of the blog and the repository went into trending . Thanks a lot for it. Please read this blog before continue reading

What is Xplorer? (click to expand)

Xplorer is a file explorer built from ground-up to be fully customizable. And even without any customization, it already looks modern!

Xplorer is a cross-platform application built using Tauri, and you can run it on Windows, MacOS, or Linux without having much trouble. One of the key feature is Xplorer allows you to preview the files you have directly inside Xplorer. And it's not only limited to picture or document preview, but also video preview.

To summarize, Xplorer's features contain:

  • It looks modern
  • Easy to use
  • Cross-platform
  • File Preview, even for videos!
  • Customizable
  • Supports multiple tab
  • Most importantly, Free and Open Source Software(FOSS), which means you can change components inside if you see fit

Xplorer is currently under heavy development. You can give your suggestions and feedbacks in our Discussions page. If you feel comfortable in writing code using Typescript and Rust, we highly encourage you to contribute to this project.

Some Screenshots (click to expand)
Xplorer on Garuda Linux with Light+ theme
Xplorer on Windows with Dark+ theme
Xplorer on macOS with Light+ theme
Xplorer on Windows with Dark theme
Xplorer on Windows with Light theme

During that period, I received many inputs regarding the performance of Xplorer, I actually realized this when first developing Xplorer and have no clue to improve it because I didn't know any other framework for developing desktop application using JS Stack besides Electron at that time until some people suggesting me using Tauri

_One of many suggestions_

And soon, I tried it and boom ! The performance went rocket (although some of the features may be not as fast as the native one) as it now relies on Rust as the backend to handle file operation while it still relies on TypeScript, SCSS, HTML for the frontend. The installer size, memory consumption has drop a lot when the performance increased after migrating it to Tauri.

The new version of Xplorer is now a polygot program as it uses Rust for handling file operation while the HTML, SCSS, and TypeScript (which is transpiled to JS and CSS) still maintain the same for the frontend look.

Pros

  • Improve performance and memory usage
  • Decrease installer size up to 90%
  • Improve startup speeds (from 1.52 s to 1.28 s) (_tested on i7-9700 32GB)
  • Thread safe
  • It's cross platform
  • Non-ASCII drive name supports (thanks to sysinfo crate)

Cons

  • Some features like dragging file from Xplorer to another application has gone as Tauri has no this feature.(https://github.com/tauri-apps/tauri/issues/2593)
  • Opening folder might be slower than on Electron for some cases because Xplorer need to communicate to Rust

Overall, using Tauri is much better than Electron IMO, especially when using the app in less computing capability computers. Also, Tauri also let user to develop cross platform application with webpages (HTML, CSS, JS) just like Electron does but more lightweight.

Another improvement/changes of Xplorer

  • Introduce new icon
  • Add ability to continue the previous session on startup
  • More personalized settings
  • Supports previewing almost all programming languages with syntax highlighting
  • Improve some functions algorithms

More detailed changelog: https://github.com/kimlimjustin/xplorer/releases/tag/v0.2.0

Notable features

  • File PreviewingXplorer supports file previewing
  • Looks ModernXplorer looks modern
  • Support Multiple TabXplorer support multiple tab

Links

GitHub link: https://github.com/kimlimjustin/xplorer
Documentation site: https://xplorer.vercel.app
Discord: https://discord.gg/MHGtSWvfUS
Install it now: https://github.com/kimlimjustin/xplorer/releases/tag/v0.2.0

Any comments will be appreciated, also, don't forget to drop a star on GitHub if you like to :D

Happy coding!


Original Link: https://dev.to/kimlimjustin/xplorer-a-modern-file-explorer-that-was-written-using-typescript-has-its-performance-improved-on-the-recent-release-4f99

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To