Budget Kumquat
v1.0A bright household budget planner on a kumquat-orange bento grid: drag a coin between budgets and both bars and Left to spend follow live.
पेज का पता: /
पहले से मौजूद
आपको क्या मिलता है- लाइट और डार्कआपकी थीम के रंग इस्तेमाल करता है
- डेस्कटॉप, टैबलेट, और फ़ोनजिन स्क्रीन के लिए यह बना है
- पैकेज…
- कोड साइज़…
- बैटरी पर हल्का30 fps, स्थिर होने पर निष्क्रिय
- छिपने पर रुक जाता हैस्क्रीन से बाहर या दूसरा टैब
- कम मोशनमाँगने वालों के लिए शांत
हर बदलाव पर जाँचा गया
सिक्योरिटी जाँच 3 दिस॰- टाइप जाँचTypeScript स्ट्रिक्ट
- लिंट और फ़ॉर्मैटESLint · Prettier
- टेस्ट और बिल्डलाइट और डार्क स्क्रीनशॉट
- सिक्योरिटी ऑडिटकोई हाई या क्रिटिकल एडवाइज़री नहीं
- पैकेज की उम्रहर वर्शन 7+ दिन से पब्लिक
- आइडल CPUरुके रहने पर आधे कोर से कम, ≤ 30 fps
कोड
budget-kumquatReact
- budget-kumquat.tsxThe page: the sections in order.
- content.tsEvery word and number: brand, nav links, each section's copy and lists.
- theme.tsThe colors as CSS variables, and the shared class strings.
- README.mdHow to install it, and where to change the text, colors and form.
- pagesOne file per page: the sections it shows, in order.
- account.tsxOne account: its balance and last 30 days, the facts about it, and tabs for its transactions, what changed and the other accounts.
- accounts.tsxAccounts: what the household has and owes, then a card per account with its balance and last 30 days; savings shows its interest accruing live. Each card opens the account.
- bills.tsxBills and subscriptions: this month's total, what subscriptions cost, a live countdown to the next one, autopay; a calendar beside what is due next (mark paid, with Undo), then every bill to filter, search, sort and manage.
- budget.tsxOne budget: this month against its limit with a projection, six months of spending, and tabs for its transactions, what changed, and the budgets beside it.
- budgets.tsxBudgets: this budget month's limits as tiles. Drag a budget's coin onto another (or onto Ready to assign) and both bars, the amounts and Left to spend preview the move live; drop it and the money moves, with Undo. Past months show read only.
- export.tsxExport: pick what to export (transactions, budgets, bills or goals) and the dates, see the first rows of the CSV as it will be, download it, and download past exports again.
- goal.tsxOne goal: its photo, how far along it is and what it needs each month, six months of deposits, and tabs for every deposit, what changed and the other goals. Edit, pause or resume, delete with Undo.
- goals.tsxGoals: what the household is saving for. Totals up top, then a photo card per goal with its progress and what it needs each month; filter by state, search, sort, add money, create one.
- home.tsxOverview: the month at a glance on one bento grid — what is left to spend today, net worth, the next bill, cash flow, the top budgets, where the money went, goals, interest, an insight and the latest transactions. Every tile leads to its page.
- insights.tsxInsights: this month's spending against last month's day by day, the daily pace and the biggest spend, where the money went, what was saved each month, and every budget against last month.
- net-worth.tsxNet worth: what the household is worth now and how that changed, a year of assets against debts, what the assets are made of, and the year month by month.
- notifications.tsxNotifications: every alert about bills, budgets, goals and accounts, newest first. Filter by kind or unread, search, open one (it is read), mark all read, remove with Undo.
- settings.tsxSettings: your profile and household, who shares it, the budget categories (edit, add, delete), which alerts to get, Appearance (style, theme, language), and sign out.
- sign-in.tsxThe sign-in page (#/sign-in), without the sidebar and top bar: the form on a card, and beside it from tablet width a small bento of what is inside (left to spend, a goal's photo, a month of bars).
- transactions.tsxTransactions: every row from every account. Search, filter by category, account, person and kind, sort, pick several to recategorise or delete (confirmed, with Undo); a row opens its detail sheet to edit or split it.
- sectionsOne file per page section.
- account-menu.tsxThe account menu under the avatar in the top bar: who is signed in, Settings and Sign out (on a phone also the live Pause and the theme switch, which leave the top bar there); the arrow keys move through it, Escape, Tab or a click outside closes it.
- activity-list.tsxWho did what, newest first: an initials badge, the change, and when.
- appearance.tsxSettings → Appearance: the style (Glass or Solid) and the theme (System, Dark or Light), each choice shown as a small preview, and the language (System or one of locales/list.ts).
- bill-calendar.tsxThe bills calendar: a month of days, each showing the bills due on it with their state (paid, overdue, due soon) as an icon and a word, never the tint alone. A day picks; arrows change the month.
- bill-forms.tsxAdd or edit a bill or subscription: name, amount, next due date, how often, the account it is paid from, its budget and autopay.
- bill-row.tsxOne bill or subscription in the Bills list: its budget icon, name, account and how often, its next due with its state, the amount, and its actions (pay, edit, cancel or resume, delete).
- budget-forms.tsxThe Budgets page's dialogs: edit a budget (limit, rollover, delete), add one, and Move money — the keyboard way to do what dragging a coin does.
- budget-tile.tsxA budget's tile on the Budgets page: what is left, spent of available with today's mark, rollover, and its money coin to drag onto another budget. While a coin hovers it, the tile lights up and shows what it would get.
- goal-forms.tsxThe Goals dialogs: create or edit a goal (name, target, date, photo, account, note) and add money to one, which celebrates when it reaches the target.
- sidebar.tsxThe sidebar: logo, search with the command palette shortcut, and the page links in their groups with live counts; an orange marker glides to the current page. Between 64rem and 80rem (and when collapsed) only the icons show.
- sign-in-form.tsxThe sign-in form: email and password with their errors under them, show or hide the password, keep me signed in, and the demo account to fill in; a wrong pair says so above the fields.
- top-bar.tsxThe top bar: the menu button on narrow screens, the page name, search, notifications with the unread count, the theme switch, quick add and the account menu. Plain at the top; it frosts once the page scrolls.
- tx-detail.tsxA transaction's detail sheet: the amount and where, its facts, recategorise in place, split it across categories, edit, or delete it (confirmed, with Undo).
- tx-form.tsxThe Add or Edit transaction dialog: spend or money in, where, how much, when, from which account, its category, who, and a note. Checked by the app (no browser popups); saves through the fake API.
- tx-row.tsxA transaction row (the place, its category and who spent it, the amount) and a list of them under day headings. A row opens the transaction's detail sheet; with `picked` it also has a checkbox for bulk actions.
- partsWhat several sections share.
- buildWhat several sections share.
- cardsWhat several sections share.
- burst.tsThe burst card style: cards spread out from the middle of the page, the nearest first.
- rowsWhat several sections share.
- turn.tsThe turn row motion: each row on screen swings in from behind, hinged on its left edge, from faint (its free edge never comes forward, so it never widens the page).
- core.tsxThe page's build-in: on first load and on every page switch the cards arrive in the app's card style and their contents build: bars grow, lines draw, rings fill, the list rows on screen ripple in in the app's row motion, numbers count. The two picks are wired in ./index.ts.
- index.tsThe app's two build-in picks, wired here and nowhere else: its card style (cards/) and its row motion (rows/). npm run new-app copies only the two it is given (--cards, --rows).
- appearance.tsHow the app looks right now: dark or light, Glass or Solid, from Settings → Appearance, the page around it and the Style setting.
- avatar.tsxA person's initials in a round badge, tinted with the primary.
- backdrop.tsxThe Glass style's backdrop: what shows through the see-through panels, faded out in Solid; with followBackground it paints your background instead.
- bar-chart.tsxA bar chart: bars grow in, and the picked bar (in the primary), its guide line and tooltip glide to the bar you point at or pick with the arrow keys; a new range morphs the bars instead of drawing them again.
- bento.tsxThe bento grid every page is laid out on, its tiles, the page head and tabs, and the small shared pieces inside tiles (meters, status chips, photos).
- charts.tsxThe app's charts besides the bar chart: a two-line trend (this month in the primary, last month in the secondary), a donut of spending and a small sparkline. Lines are smooth curves through the points and draw themselves in.
- command-palette.tsxThe command palette (⌘K or Ctrl K): type to find a page, a budget, an account, a goal, a bill or a merchant, or an action, then Enter. Nothing found says so.
- confirm.tsxAn in-app confirm (never the browser's): what will happen, Cancel, and the action as the main button.
- derive.tsSums the pages share, worked out from the loaded data: what each budget has spent and has left, totals, net worth and the month-by-month series.
- detail-sheet.tsxA detail sheet: a modal panel that slides in from the end edge with one thing's details; Escape, a tap outside or its close button slides it away.
- dialog.tsxA centered modal dialog (a form, a confirm): rises in, plays its way out, Escape or a tap outside closes it, and the focus goes back where it was.
- field.tsxA labeled form field (a text input or a select) with its error line under it, tied together for screen readers.
- flip.tsFLIP for lists: when a filter or sort changes the order, rows that stay glide from where they were to where they are now, and new ones fade in. Rows carry data-flip="<id>".
- format.tsHow numbers, money and dates are written: by Intl, the current language's way ("$1,240.50", "Nov 19"). Add a helper here when a page needs one.
- gate.tsxWhat a page shows before its data is in: skeleton tiles while any load is pending, the page error (with Try again for all of them) if one failed, else nothing and the page draws.
- icons.tsxThe logo and the line icons, drawn on a 24-unit grid with round ends; categories and pages pick theirs by name (<Glyph name="cart" />).
- language.tsThe app's language: the words every page reads (useWords), how dates and numbers are written (parts/format.ts) and the reading direction. Picked in Settings → Appearance (or System: the page's own language) and kept in this browser; English is built in, any other language loads only when it shows (locales/list.ts).
- live.tsxThe one clock for everything live on a page (interest accruing, countdowns): at most 30 frames a second, only while one of them is on screen and the tab is shown, writing text straight into the page so nothing re-renders.
- moments.tsThe animations the sidebar, the sign-in card, menus, dialogs, the phone sheet and toasts play, timed by their moments in theme.ts.
- money-drag.tsxThe money coin: press a budget's coin and drag it onto another budget (or Ready to assign) to move that much money there. The coin lifts from under your finger, follows it 1:1, and glides into the slot it lands on; while it hovers a budget the page previews the move live. Arrow keys change the amount mid-drag, Escape puts it back, a click without a drag opens the Move money dialog instead.
- motion.tsMotion helpers: the reduced-motion check, live, and run-once-in-view.
- router.tsThe page switcher: reads the app's page from the address hash (#/settings, #/?status=open).
- scroll-to-view.tsScrolls an element into view moving only its own scroll container, never the page around it.
- select-box.tsxA native select dressed to match the app: no browser arrow, a drawn chevron instead.
- session.tsWhether someone is signed in: a first visit is signed in as the demo account; Sign out holds until the next sign-in, and a sign-in without Keep me signed in lasts only this tab.
- sheet.tsxThe phone sheet: a modal panel that springs in from the left with the sidebar; Escape, a tap outside or its close button slides it away.
- states.tsxThe data states every page shares: a calm skeleton while loading, an error with Try again, and an empty note with a way out.
- store.tsThe app-wide state several parts share: the theme mode and style (kept in the browser) and the toasts.
- ticker.tsxA number that counts up while its page builds in, and rolls to its new value whenever it changes.
- toasts.tsxThe toasts: short notes that confirm what just happened, at the bottom end.
- use-api.tsLoads data through the fake API with loading, error and retry, remembering each answer so a page you come back to shows at once.
- use-dialog.tsOpens and closes a native <dialog> as a modal; on close it plays its way out first (data-closing), so dialogs, sheets and the palette never vanish in one frame.
- dataThe pretend data and the fake API: swap it for your backend.
- account.tsThe demo account: who is signed in (the account menu shows them) and the email and password the sign-in page takes.
- api.tsThe fake API: every page loads and saves through these functions (saves are in ./save.ts), so wiring a real backend happens here only.
- db.tsWhat the fake API holds this visit: copies of the seed data, changed by saves (data/save.ts) and read by loads (data/api.ts). A real backend keeps this in its database.
- feed.tsThe household's notices, who did what, and past exports. Dates count back from today.
- save.tsThe fake API's saves: each changes the data, notes who did it, and reloads what shows it. Many return what Undo needs to put things back.
- seed-tx.tsSix budget months of transactions, made the same way on every visit: pay on payday, each bill on its due day, and everyday spending drawn from a seeded random list.
- seed.tsThe pretend household: Maya and Sam, their accounts, budgets, bills and goals. Dates count back from today, so the demo is always current.
- time.tsThe demo's clock: every date in data/ counts from today (the real one), so the history always ends now; and the budget month, which runs payday to payday.
- types.tsThe shapes the fake API answers with; a real backend returns the same.
- localesEvery word the app shows, one JSON file a language; list.ts names them.
- en.jsonOne language's words, with the keys of en.json.
- list.tsThe languages the app offers, in the picker's order: one JSON file each, en.json the source. To remove one, delete its file and its line; to add one, copy es.json, translate it and add a line. English is built in; the rest load only when picked. TypeScript checks each file has en.json's keys, scripts/check/check-locales.mjs the rest (no extra keys, plural forms, {slots}).
budget-kumquat.tsx
The page: the sections in order.
लोड हो रहा है…
- इनके लिए अच्छा
- Households, couples and young professionals planning a monthly budget, savings goals, bills and subscriptions in one place.
- यह कैसे काम करता है
- Drag a coin from one budget tile onto another: it follows your finger, glides into the slot and both bars and the total update.
- कैसे इस्तेमाल करें
- Edit words in content.ts and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.