Cloud Mint is a premium, minimalist, single-user file manager hosted on Netlify, using a private GitHub repository as the secure storage backend. It communicates directly with the GitHub API from the client to stream files up to 100MB, avoiding serverless timeout and payload constraints.
- The Problem: Traditional personal file storage solutions usually require hosting heavy databases, running complex physical home servers (like a NAS) that are hard to secure, or paying monthly subscriptions to large corporations that track and scan your personal documents. Furthermore, accessing home storage securely from a mobile device while on the go often requires configuring complex VPNs or dangerous port forwarding.
- The Solution: Cloud Mint is a portable, low-maintenance file vault accessible from any device, anywhere in the world via a simple browser tab. By leveraging free serverless hosting (Netlify) and private GitHub repositories, it turns storage you already control into an instant on-the-go portal. Setup takes a few minutes (generate a PAT, hash a password, set two environment variables) — after that, there's nothing to patch, update, or babysit.
Note
"Private" here means your files aren't sitting in a third-party cloud provider's storage buckets being scanned or profiled for ads. GitHub itself, as your storage host, can still technically access repo contents — the same way any host of a private repo can. Cloud Mint's guarantee is no additional party in the loop, not zero-knowledge encryption. If you need protection from GitHub itself, encrypt files client-side before upload.
To help you get set up and understand the system, please refer to the following files:
- 🚀 Setup & Deployment Guide: A step-by-step walkthrough to configure your private storage repo, generate a GitHub Personal Access Token (PAT), hash your password, and deploy the application to Netlify.
- 📘 Layman to Advanced Guide: A detailed user guide explaining basic usage (uploading/downloading/creating folders) as well as the advanced developer architecture (capping limits, Local Path Trie parsing, and authenticated binary downloads).
- Direct GitHub API Streaming: Bypasses Netlify's 6MB serverless payload limit for uploads and deletions.
- Dual-Path Upload Engine: Automatically dispatches files via the fast Contents API (for small files ≤7MB) or the Git Data API (4-step atomic commit pipeline for files up to 100MB) to ensure maximum speed and reliability.
- Strict Size Control: Intercepts file size client-side and triggers a polished modal warning if a file exceeds 100MB.
- Secure Authentication Proxy: Netlify Serverless Function
/api/authvalidates access keys and proxy-delivers the GitHub PAT. - Ephemeral Session Storage: Personal Access Token is held strictly in browser
sessionStorage(wiped when tab closes). - Cinematic Dark Design: Slate backdrop with vibrant emerald accents, glassmorphic card widgets, and custom hover/long-press interactions.
- Touch-First Controls: Built-in mobile context menu bottom sheets and long-press event listeners.
- Local Git Tree Parsing: Fetches and builds directory trees in a single API round-trip, enabling instant local directory traversal and global vault searching.
├── netlify/
│ └── functions/
│ └── auth.js # Secure proxy gateway (v1 Serverless function)
├── public/
│ ├── index.css # Styling system & glassmorphism effects
│ └── index.html # Core single-page application & Vanilla JS runtime
├── .env.example # Environment variables configuration template
├── .gitignore # Local dev exclusions
├── GUIDE.md # Operating and architectural developer guide
├── netlify.toml # Build / publish setup mapping
├── package.json # Node dependency metadata (bcryptjs fallback support)
└── SETUP.md # Deployment and configuration setup guide
Cloud Mint reads credentials from environment variables. Set the following in your Netlify Site Settings (Site Configuration > Environment variables):
| Variable Name | Required | Description |
|---|---|---|
MINT_HASHED_PASSWORD |
Yes | A SHA-256 hex string or a bcrypt hash of your master password. |
MINT_GITHUB_PAT |
Yes | A GitHub Personal Access Token (PAT) with repo scope. |
MINT_GITHUB_OWNER |
Optional | The owner username of your storage repository. |
MINT_GITHUB_REPO |
Optional | The repository name (must be private/public, matching the PAT scope). |
MINT_GITHUB_BRANCH |
Optional | The target branch name (defaults to main). |
Note
If MINT_GITHUB_OWNER and MINT_GITHUB_REPO are not set in the environment variables, the Cloud Mint login page will dynamically render input fields allowing you to connect to any repository.
You can hash your password using a terminal utility without external tools.
For example, if your password is super-secret-vault:
macOS/Linux (Terminal):
echo -n "super-secret-vault" | shasum -a 256
# Output: 37943d0408544c7b6c7bb8cfa826978438db02b7405e3f4e1f76d90042a98f1fWindows (PowerShell):
$bytes = [System.Text.Encoding]::UTF8.GetBytes("super-secret-vault")
$hash = [System.Security.Cryptography.SHA256Managed]::new().ComputeHash($bytes)
[System.BitConverter]::ToString($hash).Replace("-", "").ToLower()
# Output: 37943d0408544c7b6c7bb8cfa826978438db02b7405e3f4e1f76d90042a98f1fPut the resulting 64-character hash into the MINT_HASHED_PASSWORD environment variable.
Alternatively, you can generate a standard bcrypt hash (e.g., using online tools or Node scripts) and set MINT_HASHED_PASSWORD to that value. The serverless function will automatically detect the bcrypt pattern and verify using bcryptjs.
You can run Cloud Mint locally using the Netlify CLI to simulate the production serverless environment.
-
Clone the repository:
git clone https://github.com/Prashantispacific/cloud-mint.git cd cloud-mint -
Install dependencies:
npm install
-
Install Netlify CLI globally (if not already installed):
npm install -g netlify-cli
-
Set up your environment variables: Copy the example environment template to
.env:cp .env.example .env
Open
.envand fill in your details (hashed password, GitHub PAT, owner, and repository name). -
Start the local simulation server:
npm run dev # or netlify devOpen
http://localhost:8888in your browser. Enter your plaintext password (e.g.super-secret-vault) to decrypt your storage backend!
- Commit your codebase to a private GitHub repository.
- Link the repository to Netlify.
- Configure your Environment Variables in Netlify.
- Click Deploy. Netlify will automatically detect
netlify.toml, compile the serverless function, and host the frontend.