const root = document.querySelector('#app');
const modalRoot = document.querySelector('#modal-root');
const toast = document.querySelector('#toast');
const state = {
data: null,
month: null,
panel: 'summary',
summaryMode: 'planned',
editingGroup: null,
detailItem: null,
mobilePanel: false,
};
const icons = {budget:'▤',transactions:'$',planning:'◷',learn:'◇',goals:'◎',roadmap:'⌁',insights:'▥',trusted:'♙',coaching:'□',feed:'▦',help:'?',settings:'⚙',signout:'⇥'};
function esc(value='') {
return String(value).replace(/[&<>'"]/g, char => ({'&':'&','<':'<','>':'>',"'":''','"':'"'}[char]));
}
function money(value, whole=false) {
return new Intl.NumberFormat('en-US', {style:'currency', currency:'USD', minimumFractionDigits:whole?0:2, maximumFractionDigits:whole?0:2}).format(Number(value || 0));
}
function mark() { return ''; }
function wordmark() { return `${mark()}EveryDollar`; }
async function api(path, options={}) {
const response = await fetch(path, {headers:{'Content-Type':'application/json', ...(options.headers||{})}, ...options});
let payload = {};
try { payload = await response.json(); } catch (_) {}
if (!response.ok) throw new Error(payload.error || `Request failed (${response.status})`);
return payload;
}
function showToast(message) {
toast.textContent = message;
toast.classList.add('show');
window.clearTimeout(showToast.timer);
showToast.timer = window.setTimeout(() => toast.classList.remove('show'), 2200);
}
function go(path) {
history.pushState({}, '', path);
state.editingGroup = null;
state.detailItem = null;
state.mobilePanel = false;
render();
}
function marketingFooter(asset) {
return ``;
}
const LEGAL_PAGES = {
'/company/terms-of-use': {
title: 'Terms of Use',
intro: 'These terms describe how this local EveryDollar recreation may be used.',
sections: [
['Acceptance of these terms', 'By creating an account or using the budgeting tools on this site you agree to these terms. This is an offline WebsiteBench recreation, so no agreement is formed with Ramsey Solutions or Lampo Licensing, LLC.'],
['Your account', 'You are responsible for the credentials you create here. Accounts, budgets, transactions and goals live only in this local database and are never transmitted anywhere.'],
['Acceptable use', 'Do not attempt to use this recreation to reach the live EveryDollar service, and do not enter real banking credentials, card numbers or other sensitive personal data.'],
['No financial advice', 'Budget totals, insights and goal projections shown here are illustrative only and are not financial, tax or legal advice.'],
['Changes', 'These terms may be updated as the recreation changes. Continued use after an update means you accept the revised terms.'],
],
},
'/company/privacy-policy': {
title: 'Privacy Policy',
intro: 'This policy explains what this local EveryDollar recreation stores and what it never collects.',
sections: [
['What we store', 'Your display name, email address, password hash, budget items, transactions, goals and notification preferences are written to a SQLite database on the machine running this site.'],
['What we never collect', 'No bank credentials, account numbers, card details or government identifiers are requested or accepted anywhere in this recreation.'],
['No third parties', 'Nothing is shared with Ramsey Solutions, advertisers or analytics providers. The site makes no outbound network requests at runtime.'],
['Email', 'Password recovery and account verification are previewed locally. No message is ever sent to any address you enter.'],
['Deleting your data', 'Removing the local database file erases every account, budget and transaction created here.'],
],
},
};
function legalPage(pathname) {
const asset = '/static/assets/everydollar-2026';
const page = LEGAL_PAGES[pathname];
root.innerHTML = `
Tell Your Money Where to Go, Instead of Wondering Where It Went
Create a Budget That’s as Unique as You
Whether you’re saving for a high-tech mermaid costume or stocking up on staycation snacks, EveryDollar makes it so easy to plan for it all. Customize your budget with unlimited categories!
Stream transaction updates from your bank to your budget. Check balances on the go and see upcoming expenses at a glance. EveryDollar keeps up so you can keep moving!
Streamline the way you manage your money by seeing all of your financial accounts conveniently in one place. No need to switch between different apps to stay on top of your finances.
Giving comes first in a zero-based budget. Create a Giving group, add the causes you support, and plan an amount for each one before you assign anything else. EveryDollar tracks what you have given this month so the plan stays honest.
Saving works best when every goal has a name. Add a budget item for your emergency fund, then use Goals to track a target amount and the month you want to hit it. Progress carries forward as you move between months.
Once giving and saving are planned, the rest is yours to spend on purpose. Add transactions as they happen, assign each one to a budget item, and the Remaining column tells you exactly what is left in every category.
What features should I look for in a budgeting app?
Look for a budget app that makes it easy to plan your spending, track transactions, see what’s left to spend, set goals, stay on top of bills, share a budget with a partner, and stay motivated.
Is EveryDollar free?
EveryDollar has a free version you can use as long as you want. New users can also start a 14-day free trial of EveryDollar premium.
What’s included in EveryDollar premium?
Premium adds automatic bank transactions, personalized recommendations, debt payoff tracking, expert coaching, and weekly live training.
Does EveryDollar connect to my bank and import transactions?
Yes. With EveryDollar premium, bank connect pulls your transactions into your budget for you.
Is EveryDollar good for couples or shared budgets?
Yes. The household feature lets couples manage one budget together, even with separate sign-ins.
What is zero-based budgeting and how does EveryDollar use it?
Zero-based budgeting means planning where every dollar goes before you spend it, so income minus expenses equals zero.
Can EveryDollar help with debt-payoff planning?
Yes. EveryDollar helps you work the debt snowball method and track your progress.
How much does EveryDollar cost?
The free version costs nothing. Premium is available after a 14-day trial with monthly or annual billing.
`;
}
function authPage(mode) {
const register = mode === 'sign-up';
const recover = mode === 'forgot-password';
const title = register ? 'Create your account' : recover ? 'Reset your password' : 'Welcome back';
const intro = register ? 'Start telling every dollar where to go.' : recover ? 'Enter your email to preview the recovery flow.' : 'Sign in to continue to your budget.';
root.innerHTML = `
${mark()}
Make progress with a plan for every dollar.
A simple monthly budget helps you spend with confidence, save intentionally and stay focused on what matters.
Add an expense or income transaction and assign it to a budget item.
'}
`;
}
function accountsPanel() {
return `
▣
Connect your accounts
EveryDollar Premium can stream bank transactions into your budget. In this offline recreation, you can inspect the choices without entering bank credentials.
No account numbers, credentials or external connection will be requested.
`;
}
function itemPanel(item) {
return `
${money(item.remaining)}Remaining
PLANNED${money(item.planned)}
SPENT${money(item.actual)}
REMAINING${money(item.remaining)}
`;
}
function rightPanel() {
let content;
const item = state.detailItem && state.data.groups.flatMap(group=>group.items).find(candidate=>candidate.id===state.detailItem);
if (item) content = itemPanel(item);
else if (state.panel === 'transactions') content = transactionsPanel();
else if (state.panel === 'accounts') content = accountsPanel();
else content = summaryPanel();
return ``;
}
function budgetPage() {
const summary = state.data.summary;
root.innerHTML = `${sidebar('budget')}
${esc(account?.display_name || 'Local Budgeter')} ${esc(account?.email_normalized || 'Preview mode · Sign in to attach this budget to a local account')}
${[['reminders','Budget reminders'],['weekly_summary','Weekly summary'],['safe_to_spend','Safe to Spend'],['whole_numbers','Display whole numbers']].map(([key,label])=>`
${label}Saved only in this local EveryDollar site.
`).join('')}
Subscription
EveryDollar Free · Local benchmark preview
No payment details are collected and no subscription is changed.
`);
}
function helpPage() {
const query = new URLSearchParams(location.search).get('q') || '';
const topics = [
['Getting Started','Enter income, plan expenses and work toward a zero-based budget.'],
['Budget Items','Add, edit, reorder and track planned amounts within a group.'],
['Transactions','Add a manual expense or income and assign it to the right item.'],
['Account Access','Use the local sign-in, registration and no-send recovery pages.'],
['Monthly Budgets','Move between months and copy planned values forward.'],
['Contact Support','This offline recreation does not submit support requests.']
];
const terms=query.toLowerCase().trim().split(/\s+/).filter(Boolean);
const matches=topics.filter(row=>terms.every(term=>row.join(' ').toLowerCase().includes(term)));
pageShell('help', `
How can we help?
${matches.length?`${matches.map(([title,body])=>`
${esc(title)}
${esc(body)}
`).join('')}`:`
No results found
No local help matched “${esc(query)}”. Try another budgeting topic.
Back to Budget`}`);
}
function notFoundPage() {
root.innerHTML = `${sidebar('')}
404
That page wandered off budget.
Let’s get you back to telling every dollar where to go.
Return to Budget`;
}
const TRIAL_BAR = `Try this premium feature—and more.`;
function premiumHead(id, label, heading, body) {
return `
${icons[id]}${esc(label)}
✦ Premium
${esc(heading)}
${esc(body)}
`;
}
function roadmapPage() {
pageShell('roadmap', `${premiumHead('roadmap','Financial Roadmap','Get a plan for your entire money future.','From your starter emergency fund to millionaire status, see how your decisions today can pay off big in the future.')}
Estimated Millionaire Year · Projected Net Worth: $1.8 Million${TRIAL_BAR}`);
}
function paycheckPlanningPage() {
const quotes = [
['Paycheck planning has changed the way I view my spending on a week-by-week basis. It is super helpful to project and see where my finances are headed each month.','Brittany'],
['The paycheck planning feature is EXACTLY what I have been looking for. It allows me to plan and view a timeline of spending and what will be available at any given day of the month. Love it!','Terry'],
['Paycheck planning provides peace of mind knowing the exact money flow in our budget - exceptional tool for budgeting!','Michael']
];
pageShell('planning', `${premiumHead('planning','Paycheck Planning','Know when it is safe to spend throughout the month.','Set your pay and spending schedules, prepare for upcoming expenses, and know exactly how much money you have.')}
Paycheck🎉 Pay Day!
Mortgage
Groceries (1 of 2)
AT&TToday
${quotes.map(([q,who])=>`
${esc(q)}
${esc(who)}
★★★★★
`).join('')}${TRIAL_BAR}`);
}
function ramseyTrustedPage() {
const popular = [
['Home & Auto Insurance','Save big when you bundle home and auto insurance.'],
['Last Will & Testament','Create your will online. No legal jargon. No hourly fees.'],
['Term Life Insurance','Term life insurance is the safest choice when it comes to protecting your family future.'],
['Investing & Retirement','Get recommendations for up to five investing pros.']
];
pageShell('trusted', `
Ramsey Pros
Top-notch service providers to help you navigate life big and small financial decisions. Fully vetted by our team.
Start Here 👋
★ Featured
Are You Covered With the Right Insurance?
Take the Coverage Checkup for an action plan on what to keep, add or remove so you can feel confident in your coverage.
Most Popular ✨
${popular.map(([t,d])=>`
${t}
${d}
`).join('')}`);
}
function learnPage2() {
const groups = [
['Welcome 👋','Let us go over some basics to get started.',[['How to Budget with EveryDollar','4 min'],['What is a Zero-Based Budget?','3 min'],['Building the Habit of Budgeting','3 min']]],
['Personalize Your Budget ✏️','Learn how to use EveryDollar to fit your needs.',[['How to Set Up Sinking Funds','1 min'],['Budgeting With Irregular Income','4 min'],['How to Set Up Due Dates with EveryDollar','1 min']]]
];
const tips = [['How to Track Transactions','1 min'],['How to Use Sinking Funds','1 min'],['How to use Financial Roadmap','1 min'],['How to use Personal Goals','1 min'],['How to Budget an Irregular Income','2 min'],['How to Use Paycheck Planning','1 min']];
pageShell('learn', `
Learn to Budget
${groups.map(([t,d,rows])=>`
${t}
${d}
0/${rows.length}${rows.map(([n,m])=>``).join('')}`).join('')}✨ Customize your budget even more with premium.
New to budgeting? Got questions about the app? You are in the right place. Join a free, live workshop and start feeling more confident budgeting with EveryDollar.
Upcoming free workshops
${times.map(t=>``).join('')}
On the live site this control opens ramseysolutions.com. This offline recreation keeps the destination local and never contacts Ramsey.
`);
}
function myFeedPage() {
pageShell('feed', `
My Feed
Surface not captured
The live EveryDollar account menu exposes My Feed, but its contents could not be captured during source acquisition: an interstitial dialog blocked access on every attempt. This route exists so the navigation control resolves, and deliberately does not invent feed content.