Skip to content

refactor: migrate to TanStack Start and Router - #492

Merged
aiktb merged 18 commits into
mainfrom
codex/migrate-tanstack-router
Sep 26, 2026
Merged

aiktb merged 18 commits into
mainfrom
codex/migrate-tanstack-router

Conversation

@aiktb

@aiktb aiktb commented Sep 25, 2026 •

Copy link
Copy Markdown
Owner

I'm tired of React Router's endless API changes and the recurring migration work they create. TanStack Router offers better route type safety, allowing invalid paths to be caught at compile time rather than discovered at runtime.

This PR migrates the website to TanStack Start with SSR and the extension to TanStack Router while preserving its hash-based options URLs. Both applications register their router types, validate internal navigation, and include compile-time regression checks that reject invalid routes. Popup and background links into the extension's options page also use a typed URL helper.

The website's GitHub Star count display, API request, and associated loader/cache logic are removed; the repository link remains. React Router dependencies and adapters are removed, and the lockfile is updated.

Deployment changes: the website now uses the official Cloudflare Workers integration instead of Cloudflare Pages Functions. The existing Pages deployment and custom domain must be migrated to Workers before publishing this build. Instructions are in website/README.md; no production deployment has been performed.

Validation:

  • Workspace lint and type checking, including route generation from a clean state and invalid-path type checks.
  • Website production build and extension Chrome/Firefox builds.
  • 19 unit tests and 23 extension end-to-end tests passed.
  • Extension hash navigation, reload, browser history, and unknown-route recovery verified.
  • Frozen-lockfile installation and git diff --check passed.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Deploying furigana-maker with  Cloudflare Pages  Cloudflare Pages

Latest commit: f7efd6b
Status:🚫  Build failed.

View logs

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Failed ❌

View logs ↗
b649d32 2026-09-26T09:48:24.268Z View logs ↗
  • Build: Failed ❌

View logs ↗
2793e56 2026-09-26T09:29:28.945Z View logs ↗
  • Build: Failed ❌

View logs ↗
83987cf 2026-09-26T09:25:06.988Z View logs ↗

@aiktb
aiktb merged commit c8581c7 into main Sep 26, 2026
5 of 6 checks passed
@aiktb
aiktb deleted the codex/migrate-tanstack-router branch September 26, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant