EggNest - Monte Carlo financial planning with real tax calculations
Project description
EggNest
Monte Carlo retirement simulation with real tax calculations.
What is EggNest?
EggNest is a retirement planning simulator that runs thousands of Monte Carlo simulations to show you the probability distribution of outcomes—not just a single "expected" result. Unlike other calculators, EggNest uses PolicyEngine to calculate actual federal and state taxes, giving you accurate after-tax projections.
Features
- Monte Carlo Simulation: 10,000+ scenarios showing the range of possible outcomes
- Real Tax Calculations: Federal + state income tax via PolicyEngine-US (not estimates)
- Social Security Optimization: Model different claiming ages (62-70)
- Spouse Support: Joint simulation with mortality modeling
- Annuity Comparison: Compare guaranteed income vs. portfolio withdrawals
- What-If Scenarios: Quickly explore spending and savings changes
Architecture
eggnest/
├── app/ # React frontend (app.eggnest.co)
│ └── src/
│ ├── components/ # Wizard, SimulationProgress
│ ├── pages/ # SimulatorPage
│ └── lib/api.ts # API client with SSE streaming
├── web/ # Landing page (eggnest.co)
│ └── src/pages/ # HomePage, ThesisPage
├── api/ # Python FastAPI backend
│ └── eggnest/
│ ├── simulation.py # MonteCarloSimulator (vectorized NumPy)
│ ├── tax.py # PolicyEngine-US integration
│ └── models.py # Pydantic models
└── supabase/ # Database migrations
Development
Backend (Python/FastAPI)
cd api
uv venv && uv pip install -e ".[dev]"
uv run uvicorn main:app --reload --port 8000
Frontend (React/Vite)
cd app
npm install
npm run dev # Runs on port 5174
Landing Page
cd web
npm install
npm run dev # Runs on port 5173
Stack
- Frontend: React 19 + Vite + TypeScript + Plotly
- Backend: Python + FastAPI + NumPy + PolicyEngine-US
- Database: Supabase (Postgres + Auth)
- Hosting: Vercel (frontend) + Modal (API)
- Tax Engine: PolicyEngine-US
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file eggnest-0.1.0.tar.gz.
File metadata
- Download URL: eggnest-0.1.0.tar.gz
- Upload date:
- Size: 223.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3da467f686c0a99de27cd80fc58fe60a24dab257305490a28fed15c687c6e15
|
|
| MD5 |
64c3399eb7ccc1a2b8f99b55a95a105c
|
|
| BLAKE2b-256 |
e069997d34924e615baf9e4de8369fc4df0b89512cf50080d71daddd07b20aea
|
File details
Details for the file eggnest-0.1.0-py3-none-any.whl.
File metadata
- Download URL: eggnest-0.1.0-py3-none-any.whl
- Upload date:
- Size: 35.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d092db124f2ed56f2b8711a94a1d02d969a08730f6de56359ec26ceeeff1554e
|
|
| MD5 |
3711814462f37e2ebc6589026b694a33
|
|
| BLAKE2b-256 |
dd87f1366e445f6ecb760c56323979b401b5a40c06190cd1ebe31e597f327004
|