尚未检测到更新。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.