Skip to content

About

No description, website, or topics provided.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Sovereign Budget

Sovereign Budget is a high-fidelity, professional personal finance application with a premium dark-slate glassmorphic interface. It runs entirely in the browser, allowing you to log and track your monthly budget, monthly recurring expenses, planned one-time expenses, and savings targets securely.

Software created by Thomas Cherickal, Generative AI Consultant.

This project is licensed under the MIT License, making it free of cost, open source, and fully customizable.

📱 Cross-Platform Progressive Web App (PWA)

Sovereign Budget is packaged as a Progressive Web App (PWA). This enables you to run the app as a standalone local application across all major desktop and mobile operating systems:

  • Desktop (Windows, macOS, Linux): Click the install icon in your browser's URL bar (e.g., Chrome, Edge) to install Sovereign Budget onto your desktop and add it to your apps list.
  • Mobile (Android, iOS): Open the app URL in Chrome (Android) or Safari (iOS), select Add to Home Screen, and install it. It will open in a standalone, immersive full-screen window.
  • 100% Offline Capability: Powered by a service worker (sw.js), the app caches all assets (HTML, CSS, JS, fonts, icons, charts) locally. Once loaded or installed, you can use the app without an internet connection.

🔐 Privacy-First Architecture

  • All your budget inputs, expenses, and transactions are auto-saved directly inside your browser's private local cache (localStorage).
  • Your sensitive data is never uploaded to any remote servers.
  • Portability: You can easily export your database to a standard plain-text file (.json) using the Export Backup button in the sidebar, and restore it on any device using the Import Backup button.
  • Static Hosting: Because the application contains no backend components, it works out-of-the-box when hosted on static hosting services like GitHub Pages or when launched directly from your local hard drive by opening index.html in your browser.

🚀 Key Features

  • Professional Dark Theme: Premium slate background with indigo highlights, glowing elements, custom scrollbars, and glassmorphic card overlays.
  • Auto-Save Indicators: Instantly saves changes directly to your local browser cache with a visual status indicator in the sidebar.
  • Automatic Budget Calculation:
    • Total Income: Sum of logged income transactions.
    • Total Expenses: Sum of variable expenses + monthly recurring commitments + planned one-time expenses for the active month.
    • Savings Requirement: Set a target monthly savings and view goal progress.
    • Net Discretionary Balance: Computes remaining "free spending money" after meeting expenses and savings targets.
  • Fixed & Savings Hub: Manage fixed commitments and one-time planned large expenses for the selected month.
  • Transaction Audit Log: Search, filter by type or category, and delete logged entries.
  • Analytics & Key Insights:
    • Toggle reports between Weekly, Monthly, and Annual scopes.
    • Interactive doughnut chart showing expense allocations.
    • Cash flow history comparison bar graphs.
    • Auto-generated key diagnostic insights (e.g., deficit alerts, variable cost highlight, savings rate calculations).

💻 Running Locally on Any Platform

Sovereign Budget is built with zero external dependencies. To ensure unrestricted, persistent local storage access across all browsers and operating systems, you can launch it using any of the following methods:

1. One-Click Launchers (Recommended)

  • Linux & macOS:
    ./start.sh
    (Automatically detects Node.js serve.js, Python 3 http.server, or Python 2, and opens your default browser with full local storage access).
  • Windows (10 / 11): Double-click start.bat in the repository folder, or run:
    start.bat
  • Cross-Platform Zero-Dependency Node Server:
    node serve.js
    Runs on port 8000 on Linux, macOS, and Windows and automatically launches the browser.

2. Standard Local HTTP Server

python3 -m http.server 8000

Then navigate to http://localhost:8000 in any web browser.

3. Direct File Opening (file://) & Fallback Protection

Double-click index.html to open directly via the file:// protocol. If your browser blocks local file storage access by policy (e.g., in strict Chrome sandbox modes or incognito), Sovereign Budget's Universal Resilient Storage Engine automatically switches to an in-memory session store so you never experience crashes. You can save your work anytime using Export Backup (JSON) or run ./start.sh for full persistent storage.


🛡️ Cross-Platform Storage Access & Permissions Guide

If your browser restricts localStorage access, follow the platform-specific instructions below:

🐧 Linux (Zorin OS 17/18, Ubuntu, Debian, Fedora, Arch)

  • Chrome / Chromium / Brave: When opening directly via file:///, Chromium blocks origin-bound storage by default. Run ./start.sh or python3 -m http.server 8000 to run on localhost.
  • Alternative (Direct Chrome Flag): Launch Chromium with:
    google-chrome --allow-file-access-from-files index.html
  • Firefox: In about:config, verify that privacy.file_unique_origin is set appropriately or use http://localhost:8000.

🪟 Windows (10 / 11 - Edge, Chrome, Firefox)

  • Double-click start.bat to launch with full origin permissions.
  • In Edge or Chrome: Open Settings > Cookies and site permissions > Manage and delete cookies and site data. Ensure "Allow sites to save and read cookie data" is enabled.
  • In Firefox: Open Settings > Privacy & Security > Cookies and Site Data > Standard.

🍎 macOS (Safari & Chrome)

  • In Safari: Open Safari > Settings > Advanced, enable "Show features for web developers". In the Develop menu, check "Disable Local File Restrictions" if opening via file://.
  • Alternatively, run ./start.sh in Terminal to serve via local HTTP.

🤖 Android (Chrome, Samsung Internet, Firefox)

  • Open browser Settings > Site settings > Storage / Device storage and verify permissions are Allowed.
  • Tap menu (three dots) > "Install app" or "Add to Home Screen" to run as a dedicated PWA with isolated, durable local storage.

🍏 iOS & iPadOS (Safari)

  • Open device Settings > Safari > Advanced: Ensure "Block All Cookies" is turned OFF.
  • Avoid Private Browsing for multi-session budget persistence, or tap Share > "Add to Home Screen" to install as a standalone PWA.

🌐 Setting Up Free Hosting on GitHub Pages

Since Sovereign Budget is built entirely with static HTML, CSS, and JavaScript, you can host it for free on GitHub Pages in under two minutes:

  1. Create a GitHub Repository:

    • Go to github.com and create a new repository named budget-tracker (or any name you prefer). Make it Public.
  2. Initialize Git and Push Code:

    • In your local project directory, run the following terminal commands:
      git init
      git add .
      git commit -m "Initial commit - Sovereign Budget PWA"
      git branch -M main
      git remote add origin https://github.com/thomascherickal/budget-tracker.git
      git push -u origin main
  3. Enable GitHub Pages:

    • Go to your repository page on GitHub.
    • Click on the Settings tab.
    • On the left sidebar, click on Pages (under the "Code and automation" section).
    • Under Build and deployment, set the Source dropdown to Deploy from a branch.
    • Under Branch, click the dropdown and select main (and keep the folder as / (root)).
    • Click the Save button.
  4. Access Your Application:

    • Within 1–2 minutes, GitHub will build and host your site.
    • You can access it securely over HTTPS at:
      https://thomascherickal.github.io/budget-tracker/
      

About

No description, website, or topics provided.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages