Skip to content

Repository files navigation

AltCost

Alternative Asset Valuation and Opportunity Cost Comparison Engine

AltCost is an analytical web and desktop application designed to model historical dollar-cost averaging (DCA) and opportunity costs of recurring discretionary cash outflows against benchmark market indices (S&P 500 / SPY) and tangible alternative asset classes (Vintage Collectibles, Luxury Timepieces, Precious Metals, and Bitcoin).


Core Features

  • Historical Compounding Engine: Computes annualized returns (CAGR), net capital gains, and inflation-adjusted trajectories for daily, weekly, or monthly recurring allocations from 2015 to 2026.
  • Tangible Asset Conversion: Translates accrued capital into tangible equivalent asset units alongside total market value.
  • Interactive Trajectory Visualizer: Side-by-side comparative area charts with currency tooltips, custom date windows, and series toggling powered by Recharts.
  • Preset Expense Profiles: Rapid baseline modeling for common recurring expenditure streams.
  • Dual Web & Desktop Distribution: Unified codebase deployed as a responsive web application and packaged into standalone Windows executables via Electron.
  • Automated Release Pipeline: CI/CD GitHub Actions workflow automating static deployment to GitHub Pages and artifact compilation for GitHub Releases.

Architecture & Tech Stack

  • Frontend: React 18, TypeScript, Tailwind CSS, Lucide Icons
  • Data Visualization: Recharts
  • Desktop Packaging: Electron, Electron-Builder
  • Build Tooling: Vite, PostCSS
  • CI/CD: GitHub Actions (GitHub Pages + GitHub Releases)

Quickstart Guide

Prerequisites

  • Node.js 18+
  • npm or yarn

Installation

# Clone the repository
git clone https://github.com/valliente/altcost.git
cd altcost

# Install dependencies
npm install

# Start Vite web dev server
npm run dev

The web application runs locally at http://localhost:5173.


Desktop Application (Electron)

Run Desktop App in Development Mode

npm run electron:dev

Compile Windows Desktop Executable

npm run dist

Output installers are generated in dist-electron/.


Automated GitHub Release Workflow

Pushing a version tag triggers .github/workflows/build-release.yml:

git tag v1.0.0
git push origin v1.0.0
  1. Web Deployment: Automatically compiles and pushes static assets to the gh-pages branch.
  2. Desktop Artifacts: Compiles standalone setup executables and attaches them to the tagged GitHub Release.

License & Methodology Disclaimer

Distributed under the MIT License. Compound asset calculations are derived from historical index and auction data from 2015–2026 for modeling and educational purposes. Historical performance is not indicative of future returns.

About

Interactive Alternative History Asset Comparison Engine for calculating recurring expenses vs S&P 500, Vintage Lego, Luxury Watches, Trading Cards, Gold & Bitcoin.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages