尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證正在載入完整 README。 以下為已儲存的摘錄。
Free UK salary, tax, and finance calculators. Updated for the 2026/27 tax year.
• Framework: Astro 6 (static site generation)
• Styling: Tailwind CSS v4
• Interactive components: React 19 (islands architecture)
• Language: TypeScript (strict mode)
• Testing: Vitest
• Deployment: Cloudflare Pages
Requires Node.js 22+.檢視完整 README ↗Free UK salary, tax, and finance calculators. Updated for the 2026/27 tax year.
# Install dependencies
npm install
# Start dev server
npm run dev
# Run tests
npm test
# Build for production
npm run build
# Preview production build
npm run preview
Requires Node.js 22+.
src/
├── components/
│ ├── calculators/ # React calculator components (interactive islands)
│ ├── layout/ # Header, Footer (Astro components)
│ └── ui/ # Shared UI: InputField, ResultPanel, BreakdownBar, etc.
├── data/
│ ├── tax-rules-2026-27.ts # THE source of truth for all tax rates
│ ├── calculator-meta.ts # Page titles, descriptions, FAQs
│ └── related-calculators.ts # Internal linking map
├── layouts/
│ ├── CalculatorLayout.astro # Layout for calculator pages
│ └── GuideLayout.astro # Layout for guide/content pages
├── lib/
│ ├── uk-tax-engine.ts # Pure tax calculation functions
│ ├── uk-tax-engine.test.ts # Unit tests (40 tests)
│ ├── url-state.ts # URL query param encoding/decoding
│ ├── format.ts # Currency/number formatting
│ └── seo.ts # SEO utilities and schema generators
├── pages/ # All routes (Astro file-based routing)
│ ├── index.astro # / — Main salary calculator
│ ├── take-home-pay.astro # /take-home-pay
│ ├── hourly-rate.astro # /hourly-rate
│ ├── pro-rata.astro # /pro-rata
│ ├── income-tax.astro # /income-tax
│ ├── national-insurance.astro
│ ├── student-loan.astro
│ ├── pension-contribution.astro
│ ├── bonus.astro
│ ├── required-salary.astro
│ ├── two-jobs.astro
│ ├── guides/ # Guide pages
│ ├── about.astro
│ ├── contact.astro
│ ├── privacy.astro
│ └── terms.astro
└── styles/
└── global.css # Tailwind imports + design tokens
src/data/tax-rules-YYYY-YY.tssrc/lib/uk-tax-engine.tssrc/data/calculator-meta.ts (the TAX_YEAR export auto-propagates)npm testnpm run buildThe tax engine is designed so that updating one data file updates all calculators.
src/components/calculators/NewCalculator.tsx
readUrlParams / writeUrlParams for URL stateuk-tax-engine.tsInputField, ResultPanel, BreakdownBarsrc/data/calculator-meta.tssrc/data/related-calculators.tssrc/pages/new-calculator.astrosrc/components/layout/Header.astrosrc/components/layout/Footer.astronpm run builddistNODE_VERSION=22)Custom domain setup:
realsalary.co.uk as a custom domain in Cloudflare Pages| Calculator | URL | Description |
|---|---|---|
| Salary Calculator | / | Main calculator with all options |
| Take-Home Pay | /take-home-pay | Full breakdown of net pay |
| Hourly Rate | /hourly-rate | Annual to hourly conversion |
| Pro-Rata | /pro-rata | Part-time salary calculation |
| Income Tax | /income-tax | Tax band-by-band breakdown |
| National Insurance | /national-insurance | NI contributions |
| Student Loan | /student-loan | Plans 1, 2, 4, 5 and Postgrad |
| Pension | /pension-contribution | Sacrifice vs relief at source |
| Bonus | /bonus | Tax on a one-off bonus |
| Required Salary | /required-salary | Reverse: gross from target net |
| Two Jobs | /two-jobs | Combined tax across two employers |
<title> and <meta description> per pageWebApplication, FAQPage, BreadcrumbListsitemap.xmlrobots.txt configuredtax-rules-2026-27.ts) controls all calculations.prefers-color-scheme.