TreeMap
A free, open-source disk-space visualizer. Squarified treemap, duplicate hunting, disk-full forecasting, and cleanup that only ever moves files to the Trash.
翻译准备中
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证正在加载完整 README。 以下为已保存的摘录。
A personal cloud drive that stores your files in Telegram: unlimited storage, a web app, an Android app and a Windows app. There's no backend server; the app runs on your device and talks to Telegram directly.
Website: https://teledrive-storage.vercel.app · Status: Phase 9 (public release). See the roadmap.查看完整 README ↗A personal cloud drive that stores your files in Telegram: unlimited storage, a web app, an Android app and a Windows app. There's no backend server; the app runs on your device and talks to Telegram directly.
Website: https://teledrive-storage.vercel.app · Status: Phase 9 (public release). See the roadmap.
Windows app (same code, wrapped with Electron): installs like any program, opens from the Start menu, no server to run.
Android app (same code, wrapped with Capacitor):
Your browser / phone ──── MTProto (WebSocket) ────► Telegram
• GramJS private channel =
• IndexedDB cache files + metadata
updates.getChannelDifference).public/sw.js) turns the player's byte-range requests into
Telegram downloads of just those bytes, so you can seek without downloading the whole file.Full details: REQUIREMENTS.md · IMPLEMENTATION.md · DESIGN.md
git clone https://github.com/samarthbc/teledrive.git
cd teledrive
npm install
cp .env.example .env
Put your keys in .env:
VITE_TG_API_ID=12345678
VITE_TG_API_HASH=your32characterhashhere
.env is git-ignored. Never commit it. If you leave it empty, the app asks for the keys on first launch and stores them on that device only.
Public builds (website, release apps) never include these keys: everyone enters their own on the Setup screen.
npm run dev # http://localhost:5173
npm test # unit tests
npm run build # production build in dist/ (with your keys, for yourself)
The website and the downloadable apps are built without API keys; each person enters their own on the Setup screen (once per device).
npm run build:website # the website (dist/), with a Content-Security-Policy
npm run android:release # then: cd android && ./gradlew assembleRelease (signed APK)
npm run desktop:release # %LOCALAPPDATA%\TeleDrive-build\TeleDrive-Setup.exe
Every public build runs scripts/check-keys.mjs, which fails if your api_hash is inside it.
vercel.json), deployed on every push to main.v<version> runs .github/workflows/release.yml, which builds the signed APK and
the Windows installer and publishes them as a GitHub Release. The website's Get the app links always
point to the latest one.Details and first-time setup (Vercel, GitHub secrets, the Android signing key): IMPLEMENTATION.md Phase 9.
Requirements: Android Studio (includes the right Java). The app runs on Android 10 or newer.
npm run android # build the web app, copy it into android/, open Android Studio
In Android Studio, connect your phone (USB debugging on) and press Run ▶. Or use
Build → Build App Bundle(s) / APK(s) → Build APK(s) and copy
android/app/build/outputs/apk/debug/app-debug.apk to your phone.
After changing the web code, run npm run android:sync and press Run again.
Building from a terminal instead: point JAVA_HOME at Android Studio's Java, then
cd android && ./gradlew assembleDebug.
npm run desktop:build # builds the installer into %LOCALAPPDATA%\TeleDrive-build
Run TeleDrive-Setup.exe from that folder. It installs for your user only (no admin), adds
TeleDrive to the Start menu and desktop, and keeps you logged in between launches. It isn't signed, so
Windows may say "Unknown publisher" the first time: More info → Run anyway. After code changes, build
and run the installer again. npm run desktop opens the app without installing it.
The installer contains the API keys from your .env, so keep it to yourself.
src/
├── telegram/ client, login flow, storage channel, message parsing
├── drive/ metadata format, folder tree, sync, upload (resumable), download, streaming,
│ thumbnails, file ops (trash/star), transfer queue
├── db/ IndexedDB (Dexie): session, cache, settings
├── store/ app state (Zustand)
├── pages/ Setup, Login, TeleDrive password, Drive
├── components/ file views, preview, dialogs, menus, transfer panel, shared form controls (ui.tsx)
├── lib/ formatting, theme switch, releases and app updates
├── dev/ sample files for design work (`?mock`, development only, never shipped)
└── native/ Android bridge (downloads, share-to-app, camera backup, notification, back button); desktop bridge
public/sw.js service worker for video/audio streaming
android/ Android project (Capacitor); native code in app/src/main/java/com/samarthbc/teledrive/
electron/ Windows app (Electron): window, serving the app's files, preload
| Phase | Scope | Status |
|---|---|---|
| 0 | Project setup | ✅ |
| 1 | Login, storage channel, upload/download, chunking, folders, rename/move/delete, sync | ✅ |
| 2 | Thumbnails, previews, video streaming, search, trash, multi-select, resume uploads | ✅ |
| 3 | Android app (Capacitor), share-to-app, camera backup, background transfers | ✅ Tested on a Redmi (Android 14) |
| 4 | End-to-end encryption, duplicate detection, folder upload, ZIP download, send to Telegram, multiple drives, PWA | ✅ Being tested |
| 5 | Camera backup upgrades: backup while the app is closed, more folders | ✅ Being tested |
| 6 | Security: TeleDrive password (every file encrypted), locked files and folders with their own passwords | ✅ Being tested |
| 7 | UI redesign (Soft Swiss): light/dark themes and switch, every screen restyled | ✅ Being tested |
| 8 | Windows desktop app (Electron): installer, no server needed | ✅ Being tested |
| 9 | Public release: website on Vercel, downloads for the apps, everyone enters their own API keys | ✅ Website live; app release needs the GitHub secrets |
| 10 | Settings: density, thumbnails, auto-lock time, lock on close, lock everything, active sessions, check for updates | ✅ Being tested |
React · TypeScript · Vite · Tailwind CSS · GramJS · Dexie · Zustand · Vitest · Capacitor (Android) · Electron (Windows)