Skip to content

Commit 99cbc31

Browse files
initial commit
0 parents  commit 99cbc31

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+14877
-0
lines changed

.gitignore

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
12+
13+
# testing
14+
/coverage
15+
16+
# next.js
17+
/.next/
18+
/out/
19+
20+
# production
21+
/build
22+
23+
# misc
24+
.DS_Store
25+
*.pem
26+
27+
# debug
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*
31+
.pnpm-debug.log*
32+
33+
# env files (can opt-in for committing if needed)
34+
.env*
35+
36+
# vercel
37+
.vercel
38+
39+
# typescript
40+
*.tsbuildinfo
41+
next-env.d.ts

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["tauri-apps.tauri-vscode", "rust-lang.rust-analyzer"]
3+
}

LICENSE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright 2025 Cole Brooks
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# DiskSense
2+
3+
DiskSense is a modern disk space analyzer that helps you visualize and manage storage space on your computer. Built with Tauri, React, and Next.js, it provides an interactive treemap visualization of your directory structure, making it easy to identify large files and folders consuming valuable disk space.
4+
5+
## Features
6+
7+
- **Interactive Treemap Visualization**: Easily navigate through your directory structure with a color-coded treemap interface
8+
- **Fast & Comprehensive Scan Modes**: Choose between quick estimation or detailed analysis of directory sizes
9+
- **Progress Tracking**: Real-time progress updates during directory scanning
10+
- **File Management**: Built-in context menu for common file operations (open, delete, view properties)
11+
- **Customizable Scanning**:
12+
- Adjustable scan depth (1-4 levels)
13+
- Option to skip hidden files
14+
- Choice between fast and comprehensive scanning modes
15+
- **Cross-Platform**: Works on Windows, macOS, and Linux
16+
17+
## Getting Started
18+
19+
### Prerequisites
20+
21+
- Node.js (v16 or later)
22+
- Rust (latest stable version)
23+
- Tauri CLI
24+
25+
### Installation
26+
27+
1. Clone the repository:
28+
29+
```bash
30+
git clone https://github.com/ScriptedButton/disksense.git
31+
cd disksense
32+
```
33+
34+
2. Install dependencies:
35+
36+
```bash
37+
npm install
38+
# or
39+
yarn install
40+
```
41+
42+
3. Run the development version:
43+
44+
```bash
45+
npm run tauri dev
46+
# or
47+
yarn tauri dev
48+
```
49+
50+
### Building
51+
52+
To create a production build:
53+
54+
```bash
55+
npm run tauri build
56+
# or
57+
yarn tauri build
58+
```
59+
60+
The built application will be available in the `src-tauri/target/release` directory.
61+
62+
## Usage
63+
64+
1. Launch DiskSense
65+
2. Select a directory to analyze
66+
3. Use the interactive treemap to explore your disk usage:
67+
- Click on directories to navigate deeper
68+
- Right-click for file/folder operations
69+
- Use the back button to navigate up
70+
- Adjust scan settings as needed
71+
72+
## Performance Tips
73+
74+
- Use "Fast" scan mode for quick directory size estimation
75+
- Skip hidden files to speed up scanning
76+
- Reduce scan depth for faster results in large directories
77+
- Use "Comprehensive" scan mode only when accurate file sizes are needed
78+
79+
## Contributing
80+
81+
Contributions are welcome! Please feel free to submit a Pull Request.
82+
83+
## License
84+
85+
[MIT License](LICENSE)

components.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "",
8+
"css": "src/app/globals.css",
9+
"baseColor": "neutral",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
},
20+
"iconLibrary": "lucide"
21+
}

eslint.config.mjs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { dirname } from "path";
2+
import { fileURLToPath } from "url";
3+
import { FlatCompat } from "@eslint/eslintrc";
4+
5+
const __filename = fileURLToPath(import.meta.url);
6+
const __dirname = dirname(__filename);
7+
8+
const compat = new FlatCompat({
9+
baseDirectory: __dirname,
10+
});
11+
12+
const eslintConfig = [
13+
...compat.extends("next/core-web-vitals", "next/typescript"),
14+
];
15+
16+
export default eslintConfig;

next.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import type { NextConfig } from "next";
2+
3+
const nextConfig: NextConfig = {
4+
output: "export",
5+
};
6+
7+
export default nextConfig;

0 commit comments

Comments
 (0)