Skip to content

feat: add Tanstack start support#408

Open
CarlosZiegler wants to merge 2 commits into
vercel:mainfrom
CarlosZiegler:main
Open

feat: add Tanstack start support#408
CarlosZiegler wants to merge 2 commits into
vercel:mainfrom
CarlosZiegler:main

Conversation

@CarlosZiegler

Copy link
Copy Markdown

Adds a first-class TanStack Start adapter to the Flags SDK via a new flags/tanstack-start entrypoint, following the same patterns as the existing Next.js and SvelteKit adapters.

What's included

  • New entrypoint flags/tanstack-start exporting flag, getProviderData, createFlagsDiscoveryEndpoint, precompute, generatePermutations e os helpers encrypt*/decrypt*.
  • Auto request resolution — flags podem ser avaliadas sem argumentos dentro de loaders, server functions e server routes (request resolvida automaticamente via getRequest() do TanStack Start), ou passando um Request explicitamente.
  • Vercel Toolbar overrides suportados via cookie vercel-flag-overrides.
  • Example app (examples/tanstack-start-example) demonstrando flag via cookie, flags A/B precomputadas com identify, avaliação em route loader e o discovery endpoint do Vercel Toolbar.
  • Tests para o entrypoint, request dedupe e precompute.

@vercel

vercel Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

@CarlosZiegler is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

@socket-security

socket-security Bot commented Jun 25, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​tanstack/​react-router@​1.170.16751008496100
Addednpm/​@​tanstack/​react-start@​1.168.26991008496100
Addednpm/​@​vitejs/​plugin-react@​5.2.010010010094100

View full report

@dferber90

Copy link
Copy Markdown
Collaborator

Thank you for contributing! We will need to extract the reusable core logic before we add support for more frameworks. That way we can reduce the maintenance burden a little bit. I started looking into it, but no specific timeline here.

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.

2 participants