尚未收集仓库信息。
尚未检测到更新。GitHub 发布版本后会显示在这里。
制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗A production-leaning scaffold answering "how much will this car actually cost me to own in Singapore?" — not just the loan instalment.
lib/calculations/) — pure, unit-tested functions for loan (flat rate), depreciation, LTA road tax (ICE + EV), fuel, EV charging, parking, insurance (indicative range), tyres, ERP, affordability, total ownership.__tests__/calculations.test.ts)./calculator with live sidebar estimate, breakdown chart, loan-comparison table, assumptions panel, affordability check, and expandable "how is this calculated" details./, /calculator, /cars, /cars/[make]/[model], /car-loan-calculator, /road-tax-calculator, /methodology, /data-sources, /privacy, /terms, /contact.<AdSlot> component (leaderboard / in-content / sidebar / rectangle); zero actual ad code./lib/data/*.ts so the app runs on Vercel with zero infra. Swap in a DB when the catalogue grows.effective_date and source and are labelled indicative.npm install
npm run dev # http://localhost:3000
npm test # vitest unit tests
npm run build # production build
npx vercel
No env vars required. Optional: NEXT_PUBLIC_SITE_URL for sitemap canonical.
app/
page.tsx home
calculator/ wizard + state
cars/[make]/[model]/ per-vehicle SEO pages
car-loan-calculator/ loan tool
road-tax-calculator/ road tax tool
(legal pages, sitemap, robots)
components/ Field, Breakdown, ResultHero, LoanCompare, AdSlot, …
lib/
calculations/ pure engine (one file per cost category)
data/ vehicles, loans, fuel prices
format.ts SGD / number formatters
__tests__/ vitest suite
Every calculation is independently testable; the UI never does maths.
Full build order follows the 62-section brief; this is v0 — the shippable core. The scaffolding is where every follow-up (DB, admin, parking search, EV route calculator, ERP route lookup, scenario compare, break-even vs public transport) plugs in cleanly.