Skip to main content

EggNest

Monte Carlo retirement simulation with real tax calculations.

eggnest.co | app.eggnest.co

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

Metadata

Release files for eggnest 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eggnest 0.1.0
File Size Uploaded
eggnest-0.1.0.tar.gz 223.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for eggnest 0.1.0
File Interpreter ABI Platform
eggnest-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 259.2 kB

Release files / eggnest-0.1.0.tar.gz

Download URL eggnest-0.1.0.tar.gz
Size 223.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d3da467f686c0a99de27cd80fc58fe60a24dab257305490a28fed15c687c6e15
BLAKE2b-256 checksum
How to use checksums
e069997d34924e615baf9e4de8369fc4df0b89512cf50080d71daddd07b20aea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / eggnest-0.1.0-py3-none-any.whl

Download URL eggnest-0.1.0-py3-none-any.whl
Size 35.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d092db124f2ed56f2b8711a94a1d02d969a08730f6de56359ec26ceeeff1554e
BLAKE2b-256 checksum
How to use checksums
dd87f1366e445f6ecb760c56323979b401b5a40c06190cd1ebe31e597f327004
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page