Compare commits

..

156 Commits

Author SHA1 Message Date
1ca5545db7 nextjs upgrade
All checks were successful
Lint / Lint and Typecheck (push) Successful in 50s
2025-07-15 14:38:49 +02:00
bd914b05dd chore(deps): pin dependencies (#7)
All checks were successful
Lint / Lint and Typecheck (push) Successful in 46s
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [eslint-plugin-react-hooks](https://react.dev/) ([source](https://github.com/facebook/react/tree/HEAD/packages/eslint-plugin-react-hooks)) | devDependencies | pin | [`^5.2.0` -> `5.2.0`](https://renovatebot.com/diffs/npm/eslint-plugin-react-hooks/5.2.0/5.2.0) |
| [pnpm/action-setup](https://github.com/pnpm/action-setup) | action | pinDigest |  -> `a7487c7` |

Add the preset `:preserveSemverRanges` to your config if you don't want to pin your dependencies.

---

### Configuration

📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4zMS4xIiwidXBkYXRlZEluVmVyIjoiNDEuMzEuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Reviewed-on: #7
Co-authored-by: Renovate Bot <renovatebot@schulze.network>
Co-committed-by: Renovate Bot <renovatebot@schulze.network>
2025-07-13 08:36:45 +02:00
fc452ebd4c pnpm ci
All checks were successful
Lint / Lint and Typecheck (push) Successful in 54s
2025-07-13 01:37:43 +02:00
201c1ee523 pnpm CI
Some checks failed
Lint / Lint and Typecheck (push) Failing after 5s
2025-07-13 01:35:03 +02:00
1c1b842a15 PNPM
Some checks failed
Lint / Lint and Typecheck (push) Failing after 6s
2025-07-13 01:15:15 +02:00
aba4e4a7f6 npm audit fix
All checks were successful
Lint / Lint and Typecheck (push) Successful in 44s
2025-07-13 00:58:58 +02:00
4dcd24f1fd fix(deps): update dependency zod to v4 (#6)
Some checks failed
Lint / Lint and Typecheck (push) Has been cancelled
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
| [zod](https://zod.dev) ([source](https://github.com/colinhacks/zod)) | [`^3.24.3` -> `^4.0.0`](https://renovatebot.com/diffs/npm/zod/3.25.76/4.0.5) | [![age](https://developer.mend.io/api/mc/badges/age/npm/zod/4.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/3.25.76/4.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>colinhacks/zod (zod)</summary>

### [`v4.0.5`](https://github.com/colinhacks/zod/releases/tag/v4.0.5)

[Compare Source](https://github.com/colinhacks/zod/compare/v4.0.4...v4.0.5)

#### Commits:

- [`f91a73e`](f91a73ec23) Support pipes in discriminated unions. Closes [#&#8203;4856](https://github.com/colinhacks/zod/issues/4856) ([#&#8203;4861](https://github.com/colinhacks/zod/issues/4861))
- [`45afab0`](45afab0f84) 4.0.5

### [`v4.0.4`](https://github.com/colinhacks/zod/releases/tag/v4.0.4)

[Compare Source](https://github.com/colinhacks/zod/compare/v4.0.3...v4.0.4)

#### Commits:

- [`9335f05`](9335f0543d) Adds `ZodFirstPartyTypeKind` stub to fix module resolution failure inside `zod-to-json-schema`

### [`v4.0.3`](https://github.com/colinhacks/zod/releases/tag/v4.0.3)

[Compare Source](44a936cb77...v4.0.3)

#### Commits:

- [`5905a8d`](5905a8d810) Improve check-versions script
- [`f3e749b`](f3e749b1b0) Remove global File interface
- [`44a936c`](44a936cb77) 4.0.2
- [`74006ed`](74006edd49) Fix JSR provenance
- [`ff4af5e`](ff4af5e889) 4.0.3
- [`ce573e8`](ce573e8799) Update test badge
- [`9a7161a`](9a7161a976) Fix versions

### [`v4.0.2`](https://github.com/colinhacks/zod/compare/v4.0.1...44a936cb77961e57a0988d8a3c63d9c71fce69ac)

[Compare Source](https://github.com/colinhacks/zod/compare/v4.0.1...44a936cb77961e57a0988d8a3c63d9c71fce69ac)

### [`v4.0.1`](https://github.com/colinhacks/zod/releases/tag/v4.0.1): v4.0.0

[Compare Source](79d4d80e3b...v4.0.1)

With this release, `zod@4.0.0` has been published to `npm`. There were no code changes between 3.25.76 and 4.0.0!

Zod 4 has been stable for the past 6 weeks, but it was published inside zod@3.25.x on npm. this transitionary window gave the ecosystem time to incrementally support for Zod 4 (without dropping support for Zod 3). As there is now near-universal support for Zod 4 in the ecosystem, ths time feels right to finally put a bow on things 🎀

To upgrade to Zod 4:

```
npm upgrade zod@^4.0.0
```

If you’ve already migrated to Zod 4 using the subpaths, there are no changes required. however you can optionally simplify your imports (recommended)

```ts
// after upgrading to zod@4.0.0:
import * as z from "zod"; // Zod 4 (regular)
import * as z from "zod/mini" // Zod 4 Mini

// these still work, but are no longer needed
import * as z from "zod/v4";
import * as z from "zod/v4-mini":

// if you still need Zod 3
import * as z from "zod/v3"; // Zod 3
```

**Library authors** — if you've already implemented Zod 4 support according to the best practices outlined in the [Library authors](/library-authors) guide, bump your peer dependency to include `zod@^4.0.0`:

```json
// package.json
{
  "peerDependencies": {
    "zod": "^3.25.0 || ^4.0.0"
  }
}
```

*There should be no other code changes necessary.* No code changes were made between the latest `3.25.x` release and `4.0.0`. This does not require a major version bump.

### [`v4.0.0`](https://github.com/colinhacks/zod/compare/v3.25.76...79d4d80e3b47f04752c5c281077b53f889551441)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.25.76...79d4d80e3b47f04752c5c281077b53f889551441)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC40Ni4wIiwidXBkYXRlZEluVmVyIjoiNDEuMzEuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: Felix Schulze <admin@schulze.network>
Reviewed-on: #6
Co-authored-by: Renovate Bot <renovatebot@schulze.network>
Co-committed-by: Renovate Bot <renovatebot@schulze.network>
2025-07-13 00:58:35 +02:00
440b759daa chore(deps): update dependency typescript-eslint to v8.36.0
All checks were successful
Lint / Lint and Typecheck (push) Successful in 47s
2025-07-12 04:02:44 +00:00
9a54bdf93f chore(deps): update dependency eslint to v9.31.0
All checks were successful
Lint / Lint and Typecheck (push) Successful in 45s
2025-07-12 03:03:16 +00:00
cabcbbb84a fix(deps): update dependency zod to v3.25.76
All checks were successful
Lint / Lint and Typecheck (push) Successful in 47s
2025-07-12 02:03:43 +00:00
d815cab9d8 chore(deps): update dependency prettier-plugin-tailwindcss to v0.6.14
All checks were successful
Lint / Lint and Typecheck (push) Successful in 44s
2025-07-12 01:04:18 +00:00
be6a875999 chore(deps): update dependency @types/node to v22.16.3
All checks were successful
Lint / Lint and Typecheck (push) Successful in 52s
2025-07-12 00:03:12 +00:00
31c6c7106f fix(deps): update dependency react-hook-form to v7.60.0
All checks were successful
Lint / Lint and Typecheck (push) Successful in 50s
2025-07-05 06:01:54 +00:00
93c1320651 chore(deps): update dependency @types/node to v22.16.0
All checks were successful
Lint / Lint and Typecheck (push) Successful in 44s
2025-07-05 05:02:43 +00:00
b875d65fdc fix(deps): update nextjs monorepo to v15.3.5
All checks were successful
Lint / Lint and Typecheck (push) Successful in 48s
2025-07-05 04:03:01 +00:00
26a305a96b fix(deps): update dependency zod to v3.25.74
All checks were successful
Lint / Lint and Typecheck (push) Successful in 45s
2025-07-05 03:03:24 +00:00
fb32bd381c chore(deps): update dependency typescript-eslint to v8.35.1
All checks were successful
Lint / Lint and Typecheck (push) Successful in 45s
2025-07-05 02:03:37 +00:00
c45cad8e96 chore(deps): update dependency tw-animate-css to v1.3.5
All checks were successful
Lint / Lint and Typecheck (push) Successful in 43s
2025-07-05 01:03:56 +00:00
86ee8c6b32 chore(deps): update dependency eslint to v9.30.1
All checks were successful
Lint / Lint and Typecheck (push) Successful in 45s
2025-07-05 00:02:57 +00:00
f6dd7c3012 chore(deps): update dependency @types/node to v22.15.34
All checks were successful
Lint / Lint and Typecheck (push) Successful in 49s
2025-06-28 08:02:13 +00:00
e34fc5dffc fix(deps): update dependency react-hook-form to v7.59.0
All checks were successful
Lint / Lint and Typecheck (push) Successful in 43s
2025-06-28 06:02:57 +00:00
57be648512 fix(deps): update dependency lucide-react to ^0.525.0
All checks were successful
Lint / Lint and Typecheck (push) Successful in 51s
2025-06-28 05:03:07 +00:00
c131fba360 chore(deps): update dependency typescript-eslint to v8.35.0
All checks were successful
Lint / Lint and Typecheck (push) Successful in 48s
2025-06-28 04:03:27 +00:00
9803c3f33d chore(deps): update dependency prettier to v3.6.2
All checks were successful
Lint / Lint and Typecheck (push) Successful in 42s
2025-06-28 03:03:35 +00:00
7f7a8d8728 chore(deps): update dependency eslint to v9.30.0
All checks were successful
Lint / Lint and Typecheck (push) Successful in 42s
2025-06-28 02:04:13 +00:00
a2184c0ef2 chore(deps): update tailwindcss monorepo to v4.1.11
All checks were successful
Lint / Lint and Typecheck (push) Successful in 42s
2025-06-28 01:04:19 +00:00
198a8c8c45 chore(deps): update dependency @types/node to v22.15.33
All checks were successful
Lint / Lint and Typecheck (push) Successful in 52s
2025-06-28 00:03:05 +00:00
d87fba0ca5 fix(deps): update dependency lucide-react to ^0.522.0
All checks were successful
Lint / Lint and Typecheck (push) Successful in 43s
2025-06-21 09:02:16 +00:00
0cbc745798 fix(deps): update nextjs monorepo to v15.3.4
All checks were successful
Lint / Lint and Typecheck (push) Successful in 44s
2025-06-21 08:03:01 +00:00
e59620f619 fix(deps): update dependency zod to v3.25.67
All checks were successful
Lint / Lint and Typecheck (push) Successful in 43s
2025-06-21 07:02:26 +00:00
52eaa7bd4f fix(deps): update dependency recharts to v2.15.4
All checks were successful
Lint / Lint and Typecheck (push) Successful in 43s
2025-06-21 06:02:52 +00:00
614d1a83cc fix(deps): update dependency react-hook-form to v7.58.1
All checks were successful
Lint / Lint and Typecheck (push) Successful in 48s
2025-06-21 05:03:16 +00:00
d29d4e54ef chore(deps): update dependency eslint to v9.29.0
All checks were successful
Lint / Lint and Typecheck (pull_request) Successful in 46s
Lint / Lint and Typecheck (push) Successful in 41s
2025-06-21 04:03:51 +00:00
c79f504c24 chore(deps): update dependency typescript-eslint to v8.34.1
All checks were successful
Lint / Lint and Typecheck (push) Successful in 47s
2025-06-21 03:03:56 +00:00
aa0c90e70b chore(deps): update dependency prettier-plugin-tailwindcss to v0.6.13
All checks were successful
Lint / Lint and Typecheck (push) Successful in 47s
2025-06-21 02:03:58 +00:00
b0a1512911 chore(deps): update dependency postcss to v8.5.6
All checks were successful
Lint / Lint and Typecheck (push) Successful in 43s
2025-06-21 01:04:40 +00:00
f34cbabff2 chore(deps): update dependency @types/node to v22.15.32
All checks were successful
Lint / Lint and Typecheck (push) Successful in 1m6s
2025-06-21 00:03:26 +00:00
1b58443e69 add IndexNow key
All checks were successful
Lint / Lint and Typecheck (push) Successful in 48s
2025-06-16 11:25:20 +02:00
5fdeae83c6 fix(deps): update dependency react-hook-form to v7.58.0
All checks were successful
Lint / Lint and Typecheck (push) Successful in 45s
2025-06-15 12:02:26 +00:00
fb62ae2011 fix(deps): update dependency lucide-react to ^0.515.0
All checks were successful
Lint / Lint and Typecheck (push) Successful in 47s
2025-06-14 10:02:46 +00:00
55c8b7c079 chore(deps): update dependency typescript-eslint to v8.34.0
All checks were successful
Lint / Lint and Typecheck (push) Successful in 43s
2025-06-14 09:03:08 +00:00
e39ddfd7a6 fix(deps): update dependency zod to v3.25.64
All checks were successful
Lint / Lint and Typecheck (push) Successful in 48s
2025-06-14 08:03:23 +00:00
990ef286c8 fix(deps): update dependency tailwind-merge to v3.3.1
All checks were successful
Lint / Lint and Typecheck (push) Successful in 45s
2025-06-14 07:03:49 +00:00
dc80ce98e5 fix(deps): update dependency @t3-oss/env-nextjs to v0.13.8
All checks were successful
Lint / Lint and Typecheck (push) Successful in 42s
2025-06-14 06:04:06 +00:00
f1b29f7c5f fix(deps): update dependency @hookform/resolvers to v5.1.1
All checks were successful
Lint / Lint and Typecheck (push) Successful in 42s
2025-06-14 05:04:08 +00:00
e4416ba3df chore(deps): update tailwindcss monorepo to v4.1.10
All checks were successful
Lint / Lint and Typecheck (push) Successful in 42s
2025-06-14 04:04:23 +00:00
3f0584ab51 chore(deps): update npm to v11.4.2
All checks were successful
Lint / Lint and Typecheck (push) Successful in 42s
2025-06-14 03:04:36 +00:00
b657c589e0 chore(deps): update dependency postcss to v8.5.5
All checks were successful
Lint / Lint and Typecheck (push) Successful in 42s
2025-06-14 02:04:43 +00:00
c008289e09 chore(deps): update dependency @types/react to v19.1.8
All checks were successful
Lint / Lint and Typecheck (push) Successful in 41s
2025-06-14 01:05:21 +00:00
3cee1fff9e chore(deps): update dependency @types/node to v22.15.31
All checks were successful
Lint / Lint and Typecheck (push) Successful in 42s
2025-06-14 00:04:05 +00:00
07de9a0062 fix(deps): update dependency @hookform/resolvers to v5.1.0
All checks were successful
Lint / Lint and Typecheck (push) Successful in 46s
2025-06-07 14:02:12 +00:00
00108ab629 fix(deps): update dependency react-hook-form to v7.57.0
All checks were successful
Lint / Lint and Typecheck (push) Successful in 50s
2025-06-07 06:02:59 +00:00
d790a8bb3b fix(deps): update dependency lucide-react to ^0.513.0
All checks were successful
Lint / Lint and Typecheck (push) Successful in 41s
2025-06-07 05:03:06 +00:00
24e6a4ef95 fix(deps): update dependency zod to v3.25.56
All checks were successful
Lint / Lint and Typecheck (push) Successful in 40s
2025-06-07 04:03:21 +00:00
5ddd9cc58f chore(deps): update dependency typescript-eslint to v8.33.1
All checks were successful
Lint / Lint and Typecheck (push) Successful in 40s
2025-06-07 03:03:57 +00:00
adcdce67cb chore(deps): update dependency tw-animate-css to v1.3.4
All checks were successful
Lint / Lint and Typecheck (push) Successful in 40s
2025-06-07 02:04:01 +00:00
51c4bd7316 chore(deps): update dependency @types/react-dom to v19.1.6
All checks were successful
Lint / Lint and Typecheck (push) Successful in 39s
2025-06-07 01:04:21 +00:00
bff9c98db1 chore(deps): update dependency @types/node to v22.15.30
All checks were successful
Lint / Lint and Typecheck (push) Successful in 4m27s
2025-06-07 00:03:31 +00:00
bedaa2090f chore(deps): update dependency tw-animate-css to v1.3.3
All checks were successful
Lint / Lint and Typecheck (push) Successful in 50s
2025-06-01 10:02:04 +00:00
71df024aa9 fix(deps): update dependency zod to v3.25.46
All checks were successful
Lint / Lint and Typecheck (push) Successful in 49s
2025-06-01 08:02:07 +00:00
228a0bdaaf fix(deps): update dependency zod to v3.25.45
All checks were successful
Lint / Lint and Typecheck (push) Successful in 48s
2025-06-01 02:02:06 +00:00
a4a3ed403b fix(deps): update dependency zod to v3.25.43
All checks were successful
Lint / Lint and Typecheck (push) Successful in 53s
2025-05-31 23:02:06 +00:00
863d4f3268 chore(deps): update dependency typescript-eslint to v8.33.0
All checks were successful
Lint / Lint and Typecheck (push) Successful in 45s
2025-05-31 09:44:14 +00:00
9719383056 chore(deps): update dependency eslint to v9.28.0 2025-05-31 09:02:47 +00:00
6c77a71a79 fix(deps): update nextjs monorepo to v15.3.3 2025-05-31 08:02:53 +00:00
b54c8e3d2b fix(deps): update dependency zod to v3.25.42 2025-05-31 07:03:51 +00:00
1cffa649d6 fix(deps): update dependency @t3-oss/env-nextjs to v0.13.6 2025-05-31 06:04:06 +00:00
7c38ed2a60 chore(deps): update tailwindcss monorepo to v4.1.8 2025-05-31 05:04:09 +00:00
7a69e9ff45 chore(deps): update dependency tw-animate-css to v1.3.2 2025-05-31 04:03:47 +00:00
e71f28d8c2 chore(deps): update dependency prettier-plugin-tailwindcss to v0.6.12 2025-05-31 03:03:56 +00:00
d26a3252cc chore(deps): update dependency postcss to v8.5.4 2025-05-31 02:04:10 +00:00
2a7182625b chore(deps): update dependency @types/react to v19.1.6 2025-05-31 01:04:46 +00:00
d7cbcf3707 chore(deps): update dependency @types/node to v22.15.29 2025-05-31 00:03:33 +00:00
374cb17eeb fix(deps): update dependency zod to v3.25.28 2025-05-24 04:02:38 +00:00
d5f8c84f13 fix(deps): update radix-ui-primitives monorepo 2025-05-24 03:02:37 +00:00
d116e01f8d chore(deps): update npm to v11.4.1 2025-05-24 02:02:50 +00:00
a297b8a4aa chore(deps): update dependency @types/react to v19.1.5 2025-05-24 01:03:08 +00:00
acb4e5bc51 chore(deps): update dependency @types/node to v22.15.21 2025-05-24 00:02:25 +00:00
606512fad8 logo priority and unoptimised 2025-05-22 16:23:24 +02:00
a5d07b8b3e fix(deps): update dependency lucide-react to ^0.511.0 2025-05-17 08:01:55 +00:00
0a7a51ef64 chore(deps): update npm to v11.4.0 2025-05-17 07:02:05 +00:00
2d5f9b051d chore(deps): update dependency tw-animate-css to v1.3.0 2025-05-17 06:02:26 +00:00
d83ef08f7c chore(deps): update dependency eslint to v9.27.0 2025-05-17 05:02:40 +00:00
7362a6545b fix(deps): update dependency react-hook-form to v7.56.4 2025-05-17 04:02:47 +00:00
553f5155c7 chore(deps): update tailwindcss monorepo to v4.1.7 2025-05-17 03:03:01 +00:00
44a98fe001 chore(deps): update react monorepo 2025-05-17 02:03:11 +00:00
0736907b84 chore(deps): update dependency typescript-eslint to v8.32.1 2025-05-17 01:03:20 +00:00
4f4a74dc72 chore(deps): update dependency @types/node to v22.15.18 2025-05-17 00:02:29 +00:00
6387e96bf7 fix(deps): update dependency tailwind-merge to v3.3.0 2025-05-11 21:01:27 +00:00
96f95e7b08 color y axis and fix type error
closes #3
2025-05-10 22:13:30 +02:00
87ea9e1ecc fix(deps): update dependency lucide-react to ^0.509.0 2025-05-10 02:02:24 +00:00
51add59741 chore(deps): update tailwindcss monorepo to v4.1.6 2025-05-10 01:03:13 +00:00
29d42c0f22 chore(deps): update dependency @types/node to v22.15.17 2025-05-10 00:02:10 +00:00
e36c062b9c fix(deps): update dependency lucide-react to ^0.508.0 2025-05-08 14:13:41 +02:00
8273fce712 chore(deps): update dependency typescript-eslint to v8.32.0 2025-05-08 14:13:36 +02:00
820d7f4883 fix(deps): update radix-ui-primitives monorepo 2025-05-08 14:13:25 +02:00
6d487f8792 fix(deps): update nextjs monorepo to v15.3.2 2025-05-08 14:13:19 +02:00
f4ab9d3745 fix(deps): update dependency react-hook-form to v7.56.3 2025-05-08 14:13:14 +02:00
e1da910a25 chore(deps): update dependency @types/react to v19.1.3 2025-05-08 14:13:03 +02:00
225f9ef1ab chore(deps): update dependency @types/node to v22.15.16 2025-05-08 11:11:52 +00:00
c071b9c052 improve SEO, add robots 2025-05-07 14:37:34 +02:00
11e1e31ac5 update default inflation rate to average inflation 2025-05-07 14:10:33 +02:00
8ac784f49b update favicon.ico 2025-05-05 13:51:55 +02:00
0b0e6c1c9a fix(deps): update dependency lucide-react to ^0.507.0 2025-05-05 10:33:47 +00:00
c3168220fe chore(deps): update dependency tw-animate-css to v1.2.9 2025-05-05 10:11:30 +00:00
229f2d7b56 chore(deps): update dependency @types/react-dom to v19.1.3 2025-05-05 10:01:35 +00:00
a86eddda31 chore(deps): pin dependencies 2025-05-05 09:55:30 +00:00
0a96a94cf3 move workflow check.yml 2025-05-05 11:51:58 +02:00
0e6086a597 chore(deps): pin dependencies 2025-05-05 11:49:10 +02:00
dafdd0d154 chore(deps): update tailwindcss monorepo to ^4.1.4 2025-05-05 11:37:00 +02:00
b9b52377e0 fix(deps): update dependency zod to v3.24.4 2025-05-05 11:35:25 +02:00
63fe8e5999 fix(deps): update dependency @t3-oss/env-nextjs to ^0.13.0 2025-05-05 11:35:19 +02:00
fc18e414cb fix(deps): update dependency react-hook-form to v7.56.2 2025-05-05 11:34:43 +02:00
a3eda1f0db chore(deps): update npm to v11.3.0 2025-05-05 11:33:47 +02:00
2b2b5784d1 chore(deps): update dependency eslint to ^9.26.0 2025-05-05 11:31:59 +02:00
32ef797bf6 chore(deps): update dependency @types/node to v22 (#2)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | devDependencies | major | [`^20.14.10` -> `^22.0.0`](https://renovatebot.com/diffs/npm/@types%2fnode/20.17.32/22.15.3) |

---

### Configuration

📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC4xLjIiLCJ1cGRhdGVkSW5WZXIiOiI0MC4xLjIiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->

Reviewed-on: #2
Co-authored-by: Renovate Bot <renovatebot@schulze.network>
Co-committed-by: Renovate Bot <renovatebot@schulze.network>
2025-05-05 11:31:04 +02:00
02761928a5 add check action 2025-05-05 11:07:25 +02:00
763c8b590d Add Renovate bot 2025-05-05 11:02:51 +02:00
e616e8f261 Epic README 2025-05-04 20:35:39 +02:00
a0c5665941 add optional "show 4%-rule" button with extra cards and reference lines 2025-05-04 19:44:18 +02:00
d24c8b910a funky background pattern 2025-05-04 17:25:04 +02:00
8f7ebf7b5a sitemap 2025-05-03 18:04:34 +02:00
7c05542d5e add theme color 2025-05-02 19:06:27 +02:00
32a0b7a0ac rename icons again 2025-05-02 18:59:39 +02:00
c1e57577cd fix plausible provider and favicon declaration 2025-05-02 18:55:05 +02:00
d2735a7020 change favicon names 2025-05-02 18:37:28 +02:00
4348e4bdf3 remove scripts from package 2025-05-01 20:16:26 +02:00
4026924e06 update SEO texts 2025-05-01 20:14:21 +02:00
bf9098e3e5 add footer 2025-05-01 20:13:08 +02:00
1082dc3b69 fix allowance y-axis and chart styling 2025-05-01 20:12:55 +02:00
670ed01ede auto update on value change 2025-05-01 17:24:45 +02:00
2bc1d42cf7 break out functions from export 2025-05-01 15:56:01 +02:00
23e03c9a32 redesigned algorith, use user specified retirement age 2025-05-01 15:25:22 +02:00
fdd923cfbc shadcn slider 2025-05-01 13:57:54 +02:00
6a6557c3bf new strategy human algo 2025-04-30 23:17:48 +02:00
5544c2f69f styling, graph sizing and number precision 2025-04-30 20:05:38 +02:00
24547c3087 result style 2025-04-30 19:40:53 +02:00
6a6f0ee9a5 prettier 2025-04-30 19:20:25 +02:00
439b7c395c fix faq chevron 2025-04-30 18:12:23 +02:00
d761ac0348 add logo 2025-04-30 18:06:14 +02:00
bc08871f86 fix lint errors 2025-04-29 22:49:23 +02:00
a032a132e4 attempt new formula 2025-04-29 20:29:56 +02:00
54ed15ff25 lets not be so strict 2025-04-29 20:25:49 +02:00
cdb67cae95 Select 2025-04-29 20:15:54 +02:00
5888b46b25 tracking + web vitals 2025-04-29 20:09:37 +02:00
26ceef1740 env 2025-04-29 20:09:07 +02:00
857f1a242b SEO 2025-04-29 19:55:15 +02:00
9531fcea99 SEO 2025-04-29 19:32:09 +02:00
2be1a6b947 fixes 2025-04-29 19:22:01 +02:00
dd40e92179 FIRE chart 2025-04-29 19:11:09 +02:00
23c2c0ea21 new algorithm 2025-04-29 18:45:58 +02:00
3660cc0310 fix and add charts 2025-04-29 18:45:41 +02:00
6018239c43 SEO 2025-04-29 18:33:19 +02:00
97fa489d6c FIRE calculator 2025-04-29 18:32:26 +02:00
a1e9b667f3 shadcn 2025-04-29 17:46:38 +02:00
ab5eb23238 initial files 2025-04-29 17:09:04 +02:00
16 changed files with 5648 additions and 7400 deletions

View File

@@ -0,0 +1,31 @@
name: Lint
on:
pull_request:
push:
branches:
- "**" # matches every branch
jobs:
lint_and_typecheck:
name: Lint and Typecheck
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Install pnpm
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4
- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Run check
run: pnpm run check

109
README.md
View File

@@ -1,3 +1,108 @@
# fire
![InvestingFIRE logo](/src/app/apple-icon.png)
FIRE calculator
# InvestingFIRE 🔥 — The #1 Interactive FIRE Calculator
**InvestingFIRE** is a responsive web application for calculating your path to Financial Independence and Early Retirement (FIRE). It features a year-by-year projection engine that simulates both accumulation (savings and investment growth) and retirement (withdrawals) phases, allowing users to:
- Input starting capital, monthly savings, expected annual growth rate, inflation rate, current age, desired retirement age, life expectancy, and desired monthly retirement allowance.
- View a dynamic chart displaying projected portfolio balance and monthly allowance over time.
- Instantly see their estimated “FIRE number” (required capital at retirement), how long their capital will last, and compare results to the “4% rule.”
- Adjust assumptions live, with all calculations and visualizations updating automatically.
- Access explanatory content about FIRE methodology, key variables, and additional community resources, all on a single, consolidated page.
The projects code is structured using React/Next.js with TypeScript, focusing on user experience, modern UI components, and clarity of financial assumptions.
---
## 🚀 Features at a Glance
- **⚡️ Real-Time Projections:** Every field updates the chart _as you type_. Experiment with savings, growth rates, inflation, or retirement age and see your future instantly.
- **📈 Interactive Chart:** Dual-area plots for portfolio value and future monthly spending, plus reference lines for FIRE milestones and “4% rule” legends.
- **🧠 Education Baked In:** Contextual tooltips, deep-dive sections on how FIRE works, FAQs, and must-read resources included.
- **🔎 Detailed Methodology:** Not just a 25x rule — runs a full, year-by-year simulation with inflation-adjusted withdrawals and optional 4%-rule overlays.
- **👌 Modern UX:** Typing, sliding, or clicking feels _good_. Responsive on all devices.
---
## 🧰 How It Works
The calculator models your FIRE journey in two phases:
1. **Accumulation:**
- Your starting capital is grown by your expected CAGR (~7% by default).
- Monthly savings are added for each year until retirement.
- Every variable can be adjusted live (capital, savings, age, growth, inflation, spending, target retirement).
2. **Retirement:**
- Your balance continues to grow by CAGR.
- Each year, an inflation-adjusted monthly allowance is withdrawn.
- The simulation runs until your selected life expectancy, showing the possibility of portfolio depletion.
**Key Outputs:**
- 🔥 “FIRE Number”: Portfolio value at your defined retirement age
- 📊 Interactive projection chart: See how your nest egg and withdrawals evolve over time
- 4⃣ “4% Rule” overlays: Compare dynamic results to classic rule-of-thumb
---
## 🌟 Try It For Yourself
To run locally:
1. **Clone the repo**
```bash
git clone https://git.schulze.network/schulze/fire.git
cd fire
```
2. **Install dependencies**
```bash
pnpm install
```
3. **Run the app**
```bash
pnpm run dev
```
4. Visit [http://localhost:3000](http://localhost:3000) and unleash the fire.
Deployed version: [https://investingfire.com](https://investingfire.com)
---
## ✏️ Inputs & Variables
- **Starting Capital** — How much youve already invested
- **Monthly Savings** — What youll add each month
- **Current Age & Retirement Age** — Your FI timeline
- **Life Expectancy** — How long do you want income to last?
- **Expected Growth Rate (CAGR)** — Portfolio annual % return, before inflation
- **Inflation Rate** — Cost of living increases
- **Desired Monthly Allowance** — Your lifestyle, todays dollars
As you adjust these, all projections update instantly _without needing to hit “Calculate.”_
Try many “what ifs” fast.
---
## 👩‍💻 Contributing
Pull requests are welcome! Open issues for bugs, new features, or debate about safe withdrawal rates and tax assumptions.
---
## 📄 License
[GPL-3.0](./LICENSE)
---
## 🥇 Why Use InvestingFIRE?
- You want the truth — not just a 4% fantasy.
- You want to learn, not just punch in numbers.
- You want clarity, speed, and modern UI.
- You want to show your friends the best FIRE tool on the web.
Enjoy the _rocket ride_ to financial independence.
**InvestingFIRE — Know your number. Change your future.**

7300
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -6,14 +6,12 @@
"scripts": {
"build": "next build",
"check": "next lint && tsc --noEmit",
"dev": "next dev --turbo",
"dev": "next dev --turbopack",
"format:check": "prettier --check \"**/*.{ts,tsx,js,jsx,mdx}\" --cache",
"format:write": "prettier --write \"**/*.{ts,tsx,js,jsx,mdx}\" --cache",
"lint": "next lint",
"lint:fix": "next lint --fix",
"preview": "next build && next start",
"start": "next start",
"typecheck": "tsc --noEmit"
"start": "next start"
},
"dependencies": {
"@hookform/resolvers": "^5.0.1",
@@ -22,37 +20,38 @@
"@radix-ui/react-select": "^2.2.2",
"@radix-ui/react-slider": "^1.3.2",
"@radix-ui/react-slot": "^1.2.0",
"@t3-oss/env-nextjs": "^0.12.0",
"@t3-oss/env-nextjs": "^0.13.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lucide-react": "^0.503.0",
"next": "^15.2.3",
"lucide-react": "^0.525.0",
"next": "^15.4.1",
"next-plausible": "^3.12.4",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-hook-form": "^7.56.1",
"recharts": "^2.15.3",
"tailwind-merge": "^3.2.0",
"zod": "^3.24.3"
"zod": "^4.0.0"
},
"devDependencies": {
"@eslint/eslintrc": "^3.3.1",
"@tailwindcss/postcss": "^4.0.15",
"@types/node": "^20.14.10",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"eslint": "^9.23.0",
"eslint-config-next": "^15.2.3",
"postcss": "^8.5.3",
"prettier": "^3.5.3",
"prettier-plugin-tailwindcss": "^0.6.11",
"tailwindcss": "^4.0.15",
"tw-animate-css": "^1.2.8",
"typescript": "^5.8.2",
"typescript-eslint": "^8.27.0"
"@eslint/eslintrc": "3.3.1",
"@tailwindcss/postcss": "4.1.11",
"@types/node": "22.16.3",
"@types/react": "19.1.8",
"@types/react-dom": "19.1.6",
"eslint": "9.31.0",
"eslint-config-next": "15.4.1",
"eslint-plugin-react-hooks": "5.2.0",
"postcss": "8.5.6",
"prettier": "3.6.2",
"prettier-plugin-tailwindcss": "0.6.14",
"tailwindcss": "4.1.11",
"tw-animate-css": "1.3.5",
"typescript": "5.8.3",
"typescript-eslint": "8.36.0"
},
"ct3aMetadata": {
"initVersion": "7.39.3"
},
"packageManager": "npm@11.2.0"
"packageManager": "pnpm@10.13.1"
}

5055
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

6
pnpm-workspace.yaml Normal file
View File

@@ -0,0 +1,6 @@
ignoredBuiltDependencies:
- unrs-resolver
onlyBuiltDependencies:
- '@tailwindcss/oxide'
- sharp

View File

@@ -0,0 +1 @@
wgu5fuk8d5j5wp3pjtta9vrw8d9by9qk

11
renovate.json Normal file
View File

@@ -0,0 +1,11 @@
{
"extends": ["config:best-practices", ":semanticCommits"],
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"packageRules": [
{
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
"automerge": true,
"automergeType": "branch"
}
]
}

View File

@@ -0,0 +1,157 @@
"use client";
import { useState, useEffect } from "react";
import {
type LucideIcon,
HandCoins,
Bitcoin,
Coins,
DollarSign,
Euro,
IndianRupee,
JapaneseYen,
PiggyBank,
PoundSterling,
Wallet,
Banknote,
ChartCandlestick,
CirclePercent,
CreditCard,
Gem,
Receipt,
ShoppingBasket,
Rocket,
RockingChair,
Sparkles,
ChartPie,
ChartBar,
BarChart3,
ChartLine,
TrendingDown,
TrendingUp,
Vault,
Landmark,
Briefcase,
Handshake,
Shield,
Lock,
CalendarRange,
Hourglass,
Sprout,
Target,
} from "lucide-react";
export default function MultiIconPattern({ opacity = 0.2, spacing = 160 }) {
const [width, setWidth] = useState(0);
const [height, setHeight] = useState(0);
const [rows, setRows] = useState(0);
const [columns, setColumns] = useState(0);
useEffect(() => {
const updateDimensions = () => {
if (window.innerWidth > width + spacing * 2) {
setWidth(window.innerWidth);
}
if (window.innerHeight > height + spacing * 2) {
setHeight(window.innerHeight);
}
};
updateDimensions();
window.addEventListener("resize", updateDimensions);
return () => {
window.removeEventListener("resize", updateDimensions);
};
}, [height, width, spacing]);
useEffect(() => {
setColumns(Math.ceil(width / spacing) + 3);
}, [width, spacing]);
useEffect(() => {
setRows(Math.ceil(height / spacing) + 3);
}, [height, spacing]);
// Explicitly type the array as LucideIcon[]
const iconComponents: LucideIcon[] = [
HandCoins,
Bitcoin,
Coins,
DollarSign,
Euro,
IndianRupee,
JapaneseYen,
PiggyBank,
PoundSterling,
Wallet,
Banknote,
ChartCandlestick,
CirclePercent,
CreditCard,
Gem,
Receipt,
ShoppingBasket,
Rocket,
RockingChair,
Sparkles,
ChartPie,
ChartBar,
BarChart3,
ChartLine,
TrendingDown,
TrendingUp,
Vault,
Landmark,
Briefcase,
Handshake,
Shield,
Lock,
CalendarRange,
Hourglass,
Sprout,
Target,
];
const renderIcons = ({
rows,
columns,
}: {
rows: number;
columns: number;
}) => {
const icons = [];
for (let y = 0; y < rows; y++) {
for (let x = 0; x < columns; x++) {
// Pick a random icon component from the array
const randomIndex = Math.floor(Math.random() * iconComponents.length);
const IconComponent = iconComponents[randomIndex]!;
// Slightly randomize size and position for more organic feel
const size = 28 + Math.floor(Math.random() * 8);
const xOffset = Math.floor(Math.random() * (spacing / 1.618));
const yOffset = Math.floor(Math.random() * (spacing / 1.618));
icons.push(
<IconComponent
key={`icon-${x}-${y}`}
size={size}
className="text-primary fixed"
style={{
left: `${x * spacing + xOffset}px`,
top: `${y * spacing + yOffset}px`,
opacity: opacity,
transform: `rotate(${Math.round((Math.random() - 0.5) * 30)}deg)`,
}}
/>,
);
}
}
return icons;
};
return (
<div className="absolute h-full w-full">
{width > 0 && renderIcons({ rows, columns })}
</div>
);
}

View File

@@ -73,12 +73,16 @@ interface YearlyData {
age: number;
year: number;
balance: number;
untouchedBalance: number;
phase: "accumulation" | "retirement";
monthlyAllowance: number;
untouchedMonthlyAllowance: number;
}
interface CalculationResult {
fireNumber: number | null;
fireNumber4percent: number | null;
retirementAge4percent: number | null;
yearlyData: YearlyData[];
error?: string;
}
@@ -101,8 +105,8 @@ const tooltipRenderer = ({
return (
<div className="bg-background border p-2 shadow-sm">
<p className="font-medium">{`Year: ${data.year.toString()} (Age: ${data.age.toString()})`}</p>
<p className="text-chart-1">{`Balance: ${formatNumber(data.balance)}`}</p>
<p className="text-chart-2">{`Monthly allowance: ${formatNumber(data.monthlyAllowance)}`}</p>
<p className="text-orange-500">{`Balance: ${formatNumber(data.balance)}`}</p>
<p className="text-red-600">{`Monthly allowance: ${formatNumber(data.monthlyAllowance)}`}</p>
<p>{`Phase: ${data.phase === "accumulation" ? "Accumulation" : "Retirement"}`}</p>
</div>
);
@@ -113,9 +117,10 @@ const tooltipRenderer = ({
export default function FireCalculatorForm() {
const [result, setResult] = useState<CalculationResult | null>(null);
const irlYear = new Date().getFullYear();
const [showing4percent, setShowing4percent] = useState(false);
// Initialize form with default values
const form = useForm<FormValues>({
const form = useForm<z.input<typeof formSchema>, undefined, FormValues>({
resolver: zodResolver(formSchema),
defaultValues: {
startingCapital: 50000,
@@ -123,7 +128,7 @@ export default function FireCalculatorForm() {
currentAge: 25,
cagr: 7,
desiredMonthlyAllowance: 3000,
inflationRate: 2,
inflationRate: 2.3,
lifeExpectancy: 84,
retirementAge: 55,
},
@@ -149,8 +154,10 @@ export default function FireCalculatorForm() {
age: age,
year: irlYear,
balance: startingCapital,
untouchedBalance: startingCapital,
phase: "accumulation",
monthlyAllowance: initialMonthlyAllowance,
monthlyAllowance: 0,
untouchedMonthlyAllowance: initialMonthlyAllowance,
});
// Calculate accumulation phase (before retirement)
@@ -175,13 +182,18 @@ export default function FireCalculatorForm() {
newBalance =
previousYearData.balance * annualGrowthRate - inflatedAllowance * 12;
}
const untouchedBalance =
previousYearData.untouchedBalance * annualGrowthRate +
monthlySavings * 12;
const allowance = phase === "retirement" ? inflatedAllowance : 0;
yearlyData.push({
age: currentAge,
year: year,
balance: newBalance,
untouchedBalance: untouchedBalance,
phase: phase,
monthlyAllowance: inflatedAllowance,
monthlyAllowance: allowance,
untouchedMonthlyAllowance: inflatedAllowance,
});
}
@@ -192,9 +204,23 @@ export default function FireCalculatorForm() {
);
const retirementData = yearlyData[retirementIndex];
const [fireNumber4percent, retirementAge4percent] = (() => {
for (const yearData of yearlyData) {
if (
yearData.untouchedBalance >
(yearData.untouchedMonthlyAllowance * 12) / 0.04
) {
return [yearData.untouchedBalance, yearData.age];
}
}
return [0, 0];
})();
if (retirementIndex === -1 || !retirementData) {
setResult({
fireNumber: null,
fireNumber4percent: null,
retirementAge4percent: null,
error: "Could not calculate retirement data",
yearlyData: yearlyData,
});
@@ -202,6 +228,8 @@ export default function FireCalculatorForm() {
// Set the result
setResult({
fireNumber: retirementData.balance,
fireNumber4percent: fireNumber4percent,
retirementAge4percent: retirementAge4percent,
yearlyData: yearlyData,
});
}
@@ -230,11 +258,18 @@ export default function FireCalculatorForm() {
<Input
placeholder="e.g., 10000"
type="number"
{...field}
onChange={(value) => {
field.onChange(value);
value={field.value as number | string | undefined}
onChange={(e) => {
field.onChange(
e.target.value === ""
? undefined
: Number(e.target.value),
);
void form.handleSubmit(onSubmit)();
}}
onBlur={field.onBlur}
name={field.name}
ref={field.ref}
/>
</FormControl>
<FormMessage />
@@ -251,11 +286,18 @@ export default function FireCalculatorForm() {
<Input
placeholder="e.g., 500"
type="number"
{...field}
onChange={(value) => {
field.onChange(value);
value={field.value as number | string | undefined}
onChange={(e) => {
field.onChange(
e.target.value === ""
? undefined
: Number(e.target.value),
);
void form.handleSubmit(onSubmit)();
}}
onBlur={field.onBlur}
name={field.name}
ref={field.ref}
/>
</FormControl>
<FormMessage />
@@ -272,11 +314,18 @@ export default function FireCalculatorForm() {
<Input
placeholder="e.g., 30"
type="number"
{...field}
onChange={(value) => {
field.onChange(value);
value={field.value as number | string | undefined}
onChange={(e) => {
field.onChange(
e.target.value === ""
? undefined
: Number(e.target.value),
);
void form.handleSubmit(onSubmit)();
}}
onBlur={field.onBlur}
name={field.name}
ref={field.ref}
/>
</FormControl>
<FormMessage />
@@ -293,11 +342,18 @@ export default function FireCalculatorForm() {
<Input
placeholder="e.g., 90"
type="number"
{...field}
onChange={(value) => {
field.onChange(value);
value={field.value as number | string | undefined}
onChange={(e) => {
field.onChange(
e.target.value === ""
? undefined
: Number(e.target.value),
);
void form.handleSubmit(onSubmit)();
}}
onBlur={field.onBlur}
name={field.name}
ref={field.ref}
/>
</FormControl>
<FormMessage />
@@ -315,11 +371,18 @@ export default function FireCalculatorForm() {
placeholder="e.g., 7"
type="number"
step="0.1"
{...field}
onChange={(value) => {
field.onChange(value);
value={field.value as number | string | undefined}
onChange={(e) => {
field.onChange(
e.target.value === ""
? undefined
: Number(e.target.value),
);
void form.handleSubmit(onSubmit)();
}}
onBlur={field.onBlur}
name={field.name}
ref={field.ref}
/>
</FormControl>
<FormMessage />
@@ -337,11 +400,18 @@ export default function FireCalculatorForm() {
placeholder="e.g., 2"
type="number"
step="0.1"
{...field}
onChange={(value) => {
field.onChange(value);
value={field.value as number | string | undefined}
onChange={(e) => {
field.onChange(
e.target.value === ""
? undefined
: Number(e.target.value),
);
void form.handleSubmit(onSubmit)();
}}
onBlur={field.onBlur}
name={field.name}
ref={field.ref}
/>
</FormControl>
<FormMessage />
@@ -360,11 +430,18 @@ export default function FireCalculatorForm() {
<Input
placeholder="e.g., 2000"
type="number"
{...field}
onChange={(value) => {
field.onChange(value);
value={field.value as number | string | undefined}
onChange={(e) => {
field.onChange(
e.target.value === ""
? undefined
: Number(e.target.value),
);
void form.handleSubmit(onSubmit)();
}}
onBlur={field.onBlur}
name={field.name}
ref={field.ref}
/>
</FormControl>
<FormMessage />
@@ -378,16 +455,18 @@ export default function FireCalculatorForm() {
name="retirementAge"
render={({ field }) => (
<FormItem>
<FormLabel>Retirement Age: {field.value}</FormLabel>
<FormLabel>
Retirement Age: {field.value as number}
</FormLabel>
<FormControl>
<Slider
name="retirementAge"
value={[field.value]}
value={[field.value as number]}
min={25}
max={75}
step={1}
onValueChange={(value) => {
field.onChange(...value);
onValueChange={(value: number[]) => {
field.onChange(value[0]);
void form.handleSubmit(onSubmit)();
}}
className="py-4"
@@ -430,10 +509,10 @@ export default function FireCalculatorForm() {
offset: -10,
}}
/>
{/* Left Y axis */}
{/* Right Y axis */}
<YAxis
yAxisId={"left"}
orientation="left"
yAxisId={"right"}
orientation="right"
tickFormatter={(value: number) => {
if (value >= 1000000) {
return `${(value / 1000000).toPrecision(3)}M`;
@@ -447,11 +526,13 @@ export default function FireCalculatorForm() {
return value.toString();
}}
width={30}
stroke="var(--color-orange-500)"
tick={{}}
/>
{/* Right Y axis */}
{/* Left Y axis */}
<YAxis
yAxisId="right"
orientation="right"
yAxisId="left"
orientation="left"
tickFormatter={(value: number) => {
if (value >= 1000000) {
return `${(value / 1000000).toPrecision(3)}M`;
@@ -461,6 +542,7 @@ export default function FireCalculatorForm() {
return value.toString();
}}
width={30}
stroke="var(--color-red-600)"
/>
<ChartTooltip content={tooltipRenderer} />
<defs>
@@ -473,12 +555,12 @@ export default function FireCalculatorForm() {
>
<stop
offset="5%"
stopColor="var(--chart-1)"
stopColor="var(--color-orange-500)"
stopOpacity={0.8}
/>
<stop
offset="95%"
stopColor="var(--chart-1)"
stopColor="var(--color-orange-500)"
stopOpacity={0.1}
/>
</linearGradient>
@@ -487,43 +569,55 @@ export default function FireCalculatorForm() {
type="monotone"
dataKey="balance"
name="balance"
stroke="var(--chart-1)"
stroke="var(--color-orange-500)"
fill="url(#fillBalance)"
fillOpacity={0.9}
activeDot={{ r: 6 }}
yAxisId={"left"}
yAxisId={"right"}
stackId={"a"}
/>
<Area
type="monotone"
type="step"
dataKey="monthlyAllowance"
name="allowance"
stroke="var(--chart-2)"
stroke="var(--color-red-600)"
fill="none"
activeDot={{ r: 6 }}
yAxisId="right"
stackId={"a"}
yAxisId="left"
/>
{result.fireNumber && (
<ReferenceLine
y={result.fireNumber}
stroke="var(--chart-3)"
strokeWidth={1}
strokeDasharray="2 2"
stroke="var(--primary)"
strokeWidth={2}
strokeDasharray="2 1"
label={{
value: "FIRE Number",
position: "insideBottomRight",
}}
yAxisId={"left"}
yAxisId={"right"}
/>
)}
{result.fireNumber4percent && showing4percent && (
<ReferenceLine
y={result.fireNumber4percent}
stroke="var(--secondary)"
strokeWidth={1}
strokeDasharray="1 1"
label={{
value: "4%-Rule FIRE Number",
position: "insideBottomLeft",
}}
yAxisId={"right"}
/>
)}
<ReferenceLine
x={
irlYear +
(form.getValues("retirementAge") -
form.getValues("currentAge"))
(Number(form.getValues("retirementAge")) -
Number(form.getValues("currentAge")))
}
stroke="var(--chart-2)"
stroke="var(--primary)"
strokeWidth={2}
label={{
value: "Retirement",
@@ -531,11 +625,36 @@ export default function FireCalculatorForm() {
}}
yAxisId={"left"}
/>
{result.retirementAge4percent && showing4percent && (
<ReferenceLine
x={
irlYear +
(result.retirementAge4percent -
Number(form.getValues("currentAge")))
}
stroke="var(--secondary)"
strokeWidth={1}
label={{
value: "4%-Rule Retirement",
position: "insideBottomLeft",
}}
yAxisId={"left"}
/>
)}
</AreaChart>
</ChartContainer>
</CardContent>
</Card>
)}
{result && (
<Button
onClick={() => setShowing4percent(!showing4percent)}
variant={showing4percent ? "secondary" : "default"}
size={"sm"}
>
{showing4percent ? "Hide" : "Show"} 4%-Rule
</Button>
)}
</form>
</Form>
</CardContent>
@@ -574,11 +693,45 @@ export default function FireCalculatorForm() {
</CardHeader>
<CardContent>
<p className="text-3xl font-bold">
{form.getValues("lifeExpectancy") -
form.getValues("retirementAge")}
{Number(form.getValues("lifeExpectancy")) -
Number(form.getValues("retirementAge"))}
</p>
</CardContent>
</Card>
{showing4percent && (
<>
<Card>
<CardHeader>
<CardTitle>4%-Rule FIRE Number</CardTitle>
<CardDescription className="text-xs">
Capital needed for 4% of it to be greater than your
yearly allowance
</CardDescription>
</CardHeader>
<CardContent>
<p className="text-3xl font-bold">
{formatNumber(result.fireNumber4percent)}
</p>
</CardContent>
</Card>
<Card>
<CardHeader>
<CardTitle>4%-Rule Retirement Duration</CardTitle>
<CardDescription className="text-xs">
Years to enjoy your financial independence if you follow
the 4% rule
</CardDescription>
</CardHeader>
<CardContent>
<p className="text-3xl font-bold">
{Number(form.getValues("lifeExpectancy")) -
(result.retirementAge4percent ?? 0)}
</p>
</CardContent>
</Card>
</>
)}
</>
)}
</div>

BIN
src/app/favicon.ico (Stored with Git LFS)

Binary file not shown.

View File

@@ -1,15 +1,17 @@
import "@/styles/globals.css";
import PlausibleProvider from "next-plausible";
import { type Metadata } from "next";
import { type Metadata, type Viewport } from "next";
import { Geist } from "next/font/google";
import { WebVitals } from "./components/web-vitals";
export const viewport: Viewport = {
themeColor: [{ color: "oklch(0.97 0.0228 95.96)" }],
};
export const metadata: Metadata = {
title:
"InvestingFIRE Calculator | Plan Your Financial Independence & Early Retirement",
title: "InvestingFIRE | Finance and Retirement Calculator",
description:
"Achieve Financial Independence, Retire Early (FIRE) with the InvestingFIRE calculator. Get personalized projections and investing advice to plan your journey.",
icons: [{ rel: "icon", url: "/favicon.ico" }],
"Achieve Financial Independence & Early Retirement! Plan your FIRE journey with the InvestingFIRE calculator and get personalized projections in buttersmooth graphs.",
};
const geist = Geist({
@@ -24,17 +26,16 @@ export default function RootLayout({
<html lang="en" className={geist.variable}>
<head>
<meta name="apple-mobile-web-app-title" content="FIRE" />
</head>
<PlausibleProvider
domain="investingfire.com"
customDomain="https://analytics.schulze.network"
selfHosted={true}
enabled={true}
trackOutboundLinks={true}
>
/>
</head>
<WebVitals />
<body>{children}</body>
</PlausibleProvider>
</html>
);
}

View File

@@ -7,13 +7,17 @@ import {
AccordionTrigger,
} from "@/components/ui/accordion";
import Footer from "./components/footer";
import BackgroundPattern from "./components/BackgroundPattern";
export default function HomePage() {
return (
<main className="text-primary-foreground to-destructive from-secondary flex min-h-screen flex-col items-center bg-gradient-to-b p-2">
<div className="mx-auto flex flex-col items-center justify-center gap-4 text-center">
<BackgroundPattern />
<div className="z-10 mx-auto flex flex-col items-center justify-center gap-4 text-center">
<div className="mt-8 flex flex-row flex-wrap items-center justify-center gap-4 align-middle">
<Image
priority
unoptimized
src="/investingfire_logo_no-bg.svg"
alt="InvestingFIRE Logo"
width={100}
@@ -32,7 +36,7 @@ export default function HomePage() {
</div>
{/* Added SEO Content Sections */}
<div className="mx-auto max-w-2xl py-12 text-left">
<div className="z-10 mx-auto max-w-2xl py-12 text-left">
<section className="mb-12">
<h2 className="mb-4 text-3xl font-bold">
What Is FIRE? Understanding Financial Independence and Early
@@ -247,7 +251,7 @@ export default function HomePage() {
financial independence and smart investing.
</p>
<div className="bg-secondary/20 my-8 rounded-md p-4 text-lg">
<div className="bg-foreground my-8 rounded-md p-4 text-lg">
<p className="font-semibold">Getting Started with FIRE:</p>
<ol className="ml-6 list-decimal space-y-1">
<li>

11
src/app/robots.ts Normal file
View File

@@ -0,0 +1,11 @@
import type { MetadataRoute } from "next";
export default function robots(): MetadataRoute.Robots {
return {
rules: {
userAgent: "*",
allow: "/",
},
sitemap: "https://investingfire.com/sitemap.xml",
};
}

13
src/app/sitemap.ts Normal file
View File

@@ -0,0 +1,13 @@
import { BASE_URL } from "@/lib/constants";
import { type MetadataRoute } from "next";
export default function sitemap(): MetadataRoute.Sitemap {
return [
{
url: BASE_URL,
lastModified: new Date(),
changeFrequency: "yearly",
priority: 1,
},
];
}

1
src/lib/constants.ts Normal file
View File

@@ -0,0 +1 @@
export const BASE_URL = "https://investingfire.com/";