A cross-platform disk space analyzer built with Electron and React. DiskAnalyzer helps you visualize disk usage by scanning directories and displaying file/folder sizes in an intuitive interface.
- 📊 Directory tree scanning with real-time progress
- 📁 Interactive file/folder browser
- 🗑️ Built-in file deletion with confirmation
- 🔍 Open files/folders in system default applications
- 🎯 Lightweight and fast scanning
- 🖥️ Cross-platform support (macOS, Windows, Linux)
Before you begin, ensure you have the following installed:
- Node.js (version 16 or higher) - Download here
- npm (comes with Node.js)
- Git - Download here
git clone https://github.com/your-username/diskanalyzer-electron.git
cd diskanalyzer-electronnpm installTo start the application in development mode:
# Build the React components
npm run build
# Start the Electron application
npm startThe application will open in a new window. You can make changes to the source code and rebuild to see updates.
To create a production build of the React components:
npm run buildThis will create a dist folder with the compiled React application.
To create distribution packages for your platform:
npm run distThis will create platform-specific installers in the release folder:
- macOS:
.dmgfile - Windows:
.exeinstaller (not tested) - Linux:
.AppImageor other formats (not tested)
For macOS specifically, the build process will create a .dmg file that users can:
- Download and mount
- Drag the app to Applications folder
- Launch from Applications or Launchpad
The DMG file will be located in release/ after running npm run dist.
diskanalyzer-electron/
├── src/ # React source files
│ └── App.jsx # Main React component
├── dist/ # Built React files (generated)
├── release/ # Distribution packages (generated)
├── main.js # Electron main process
├── preload.js # Electron preload script
├── index.html # HTML entry point
├── style.css # Global styles
├── Credits.html # Credits window
├── webpack.config.js # Webpack configuration
├── .babelrc # Babel configuration
└── package.json # Project dependencies and scripts
npm start- Run the Electron applicationnpm run build- Build React components with Webpacknpm run dist- Create distribution packages with electron-buildernpm test- Run tests (currently not implemented)
- Electron - Desktop application framework
- React - UI library
- Webpack - Module bundler
- Babel - JavaScript compiler
- electron-builder - Package and build tools
-
Clone and setup:
git clone https://github.com/your-username/diskanalyzer-electron.git cd diskanalyzer-electron npm install -
Development build:
npm run build npm start
-
Production build:
npm run build npm run dist
This project is licensed under the MIT License - see the LICENSE file for details.
Fuat Ulugay
Monitor Consulting OU
For more information or support, please open an issue on the GitHub repository.
