New
Apps 6,368Makers 6,347This week 13
Promote your app−30%
EarlyRetireSim screenshot 1
4views in
the last 30 days

EarlyRetireSim

FIRE calculator: see at what age you can retire early

Built with Claude Code

by alswp006 Β· Unclaimed Β· from KRSouth Korea Β· added Nov 3, 2026
no ratings0 comments

πŸ‡ΊπŸ‡Έ ν•œκ΅­μ–΄

EarlyRetireSim β€” FIRE Calculator for the 2030s

A mobile-first early retirement (FIRE) calculator for the Toss app. Enter your age, monthly income, expenses, and current net worth to instantly see when you can retire and compare savings rate scenarios.

Designed for the Toss mini-app platform (App-in-Toss) with native TDS components and optimized for users curious about financial independence. Calculates retirement age using the 4% rule, simulates monthly compound growth, and visualizes asset accumulation trajectories.

Features

  • πŸ“Š FIRE Input β€” Age, monthly income, expenses, net worth, and expected return rate (4%, 6%, 8%)
  • 🎯 Retirement Age Calculation β€” Monthly compound simulation up to 50 years; shows feasibility or barrier insights
  • πŸ“ˆ Asset Growth Visualization β€” Year-by-year asset curve with target line (in-app SVG, no charting library)
  • πŸ”„ Scenario Comparison β€” Current vs. savings rate +10%p side-by-side; time saved breakdown
  • πŸ“‹ Result Sharing β€” Copy summary text to clipboard or share via native Toss app
  • πŸ’Ύ Persistent Input β€” Auto-save last calculation to localStorage for quick re-runs
  • 🎬 Reward Ad Gating β€” Results unlock after watching optional ad; fallback UI ensures non-blocking UX

Tech Stack

  • Framework: React 18 + Vite 6
  • Routing: React Router 7
  • Design System: Toss Design System (@toss/tds-mobile) + TDS Colors
  • Platform SDK: App-in-Toss (@apps-in-toss/web-framework)
  • Styling: Emotion (React CSS-in-JS)
  • Icons: Lucide React
  • Language: TypeScript 5
  • Testing: Vitest (unit), Playwright (visual)
  • Build: Vite (CSR/SSG, no SSR)

Getting Started

Install Dependencies

npm install

Verify TypeScript

npx tsc --noEmit

Run Tests

npx vitest run          # Unit tests
npm run test:visual     # Visual regression tests (Playwright)

Production Build

npx vite build

Creates a static bundle in dist/ ready for deployment to Toss CDN.

Toss Deployment

npx ait build           # Bundle for Toss platform
npx ait deploy --api-key <YOUR_API_KEY>  # Deploy via Toss developer console

(Requires registration in μ•±μΈν† μŠ€ μ½˜μ†” and valid API key.)

Environment Variables

Variable Description Required
VITE_TOSS_AD_GROUP_ID Toss reward/banner ad group ID from μ•±μΈν† μŠ€ μ½˜μ†” No*

*If omitted, ads simply don't render; app functionality is unaffected.

Project Structure

src/
β”œβ”€β”€ pages/
β”‚   β”œβ”€β”€ Home.tsx           # FIRE input form (age, income, expenses, net worth, rate chip)
β”‚   └── Result.tsx         # Results: retirement age, asset chart, scenario comparison, sharing
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ ScreenScaffold.tsx # Page SafeArea + header/footer layout
β”‚   β”œβ”€β”€ SummaryHero.tsx    # Hero card: headline number (retirement age)
β”‚   β”œβ”€β”€ Card.tsx           # Generic card wrapper (results, charts)
β”‚   β”œβ”€β”€ Amount.tsx         # Formatted currency display (nowrap, tabular)
β”‚   β”œβ”€β”€ MiniBar.tsx        # Progress bar (0..1 ratio)
β”‚   β”œβ”€β”€ AssetChart.tsx     # Inline SVG: asset growth curve + goal line
β”‚   β”œβ”€β”€ ScenarioCompare.tsx # Side-by-side scenario cards + difference text
β”‚   β”œβ”€β”€ RewardGate.tsx     # Ad gate: blocks results until ad watched/timeout
β”‚   β”œβ”€β”€ BottomCTA.tsx      # Sticky footer buttons (SubmitFooter, ButtonStack)
β”‚   β”œβ”€β”€ StateView.tsx      # Empty / Loading states
β”‚   β”œβ”€β”€ FloatingTabBar.tsx # Bottom tab navigation
β”‚   β”œβ”€β”€ AdSlot.tsx         # Banner ad wrapper
β”‚   └── TossRewardAd.tsx   # Reward ad gate wrapper
β”œβ”€β”€ lib/
β”‚   β”œβ”€β”€ types.ts           # FireInput, ScenarioResult, RouteState, CompareMode
β”‚   β”œβ”€β”€ fire.ts            # Core FIRE math: simulation, target asset, scenario
β”‚   β”œβ”€β”€ validation.ts      # Input validation (range, format, business rules)
β”‚   β”œβ”€β”€ analytics.ts       # Screen/click/impression logging (Toss SDK only)
β”‚   β”œβ”€β”€ storage.ts         # localStorage helpers with error handling
β”‚   β”œβ”€β”€ share.ts           # Share and clipboard APIs
β”‚   β”œβ”€β”€ review.ts          # App Store/Play Store review prompt
β”‚   β”œβ”€β”€ utils.ts           # formatCurrency, formatNumber
β”‚   └── contract.ts        # Data validation contracts
β”œβ”€β”€ __tests__/
β”‚   β”œβ”€β”€ __helpers__/       # Shared test mocks and utilities
β”‚   └── packet-*.test.ts   # Component/function tests
β”œβ”€β”€ App.tsx                # React Router setup (routes: /, /result)
└── main.tsx               # React 18 root (TDSMobileAITProvider, BrowserRouter)

Deployment

Prerequisites

  • Registered in μ•±μΈν† μŠ€ μ½˜μ†” with matching app ID
  • Valid developer API key
  • apps-in-toss.config.ts configured with correct appName (case-sensitive; deploy fails if mismatch)

Workflow

  1. Local build: npm run build β†’ creates dist/
  2. Toss bundle: npx ait build β†’ prepares for platform
  3. Deploy: npx ait deploy --api-key <KEY> β†’ uploads to Toss CDN
  4. Review: Toss review team checks for compliance (19+, zero console errors, zero CORS errors, no outlinks, TDS components only)
  5. Release: Appears in Toss app after approval

Build Output Constraints

  • Static CSR only (no SSR, no dynamic routes)
  • Android 7+, iOS 16+ compatible Web APIs
  • Bundle must be under 100MB
  • No external fonts (Toss Products Sans auto-applied by platform)
  • No hardcoded HEX colors (use var(--tds-color-*) CSS variables for dark mode support)

License

MIT


Built with Claude Code Β· Mini-app for the Toss platform

Description taken from the repository README.

Ratings

–
0 ratings
5 0
4 0
3 0
2 0
1 0

Rate this app

Sign in to rate

Comments 0

Sign in to comment

No comments yet.

Related apps

#finance Β· #retirement Β· #calculator