Build a Private Net Worth Snapshot Infographic in a Single HTML File
A one-page personal balance sheet with editable assets and debts, stacked balance bars, payoff progress rings and live totals that run fully offline.
You getone complete HTML file in a single code block, then 3 short ideas to extend it.
The prompt
Act as a senior front-end developer and information designer. Build "Ledgerlight", a one-page personal net worth snapshot infographic that runs fully offline and keeps every number private in the browser. The page shows editable asset rows (name, value) and debt rows (name, original amount, current balance), a headline net worth figure, two horizontal stacked bars comparing total assets and total liabilities on one shared scale, and SVG progress rings showing how much of each debt has been paid off.
Rules:
1. Every value is an inline input; totals, bars, rings and net worth update instantly as you type. Include Add and Remove buttons for each list and a Reset to sample data button. No form element, no storage, no network calls.
2. Preload realistic sample data: checking, savings, retirement, home value, car; mortgage, car loan, student loan, credit card.
3. Use a calm palette: off-white background, deep ink text, green shades for assets, coral and amber for debts, with a legend showing each amount and share.
4. Format currency with Intl.NumberFormat, show negative net worth in coral, and display a debt-to-asset ratio with a short plain-language label.
5. Responsive card grid from 360 to 1280 pixels; bars and rings animate smoothly unless prefers-reduced-motion is set.
6. Labeled inputs, visible focus states and full keyboard use.
Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.Example output
Tips and common edits
Why this works
- Both stacked bars use one shared scale, so the difference in length shows net worth at a glance without any extra chart.
- Payoff rings compare original and current balances, so progress reads as a percentage instead of a pile of raw numbers.
- Banning storage, forms and network calls keeps the file private, sandbox-safe and working the moment it opens.
Paste the prompt into ChatGPT, Claude or Gemini. Save the returned code as networth.html and open it in any browser, or view it in the chat's preview or canvas. Nothing you type leaves your device.
Common edits
- Change the currency by swapping the Intl.NumberFormat locale and currency code, for example en-GB and GBP.
- Add a monthly payment field to each debt and show an estimated payoff month under each ring.
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
Keep exploring
More like this
Build an Editable Monthly Budget Snapshot One-Pager in a Single HTML File
A one-page personal budget snapshot with editable income and spending figures that instantly update a donut chart, savings-rate meter and over-budget flags, and that prints cleanly.
Build a Company Fact Sheet One-Pager with Animated Stats and a Location Map
You get a single HTML file laid out like an investor or press fact sheet, with animated stat counters, mission, leadership, milestones, an interactive SVG office map and a brand-color theme switch.
Build a Creator Media Kit One-Pager With Audience Stats in HTML
A pitch-ready creator media kit page with animated follower counts, platform tabs, audience demographic bars, engagement benchmarks and a clickable package quote builder.
Build a Monthly KPI Dashboard One-Pager with RAG Status and Sparklines in HTML
A single HTML file that shows six business KPIs as cards with targets, red/amber/green status, SVG sparklines, a month stepper and editable one-line commentary.
Build a Nonprofit Annual Impact Report One-Pager with Animated Counters
A donor-friendly impact report page in one HTML file, with count-up impact stats, an interactive where-each-dollar-goes donut, outcome bars, a beneficiary story and a gift-impact picker.
Build an Interactive Team Org Chart One-Pager with Contact Cards in HTML
Get a single HTML file with an expandable SVG org chart, department color coding, clickable contact cards and a search box that highlights matching people.