tanstack-server-functions

Implement typed server functions and middleware for TanStack Start on Cloudflare Workers.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/ldsgroups225/Yeko --skill tanstack-server-functions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tanstack-server-functions
Source: https://github.com/ldsgroups225/Yeko/tree/main/.github/skills/tanstack-server-functions
Command: npx skills add https://github.com/ldsgroups225/Yeko --skill tanstack-server-functions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables teams to implement typed server-side logic for TanStack Start in Cloudflare Workers, pairing backend server functions with strong type-safety and structured middleware.

Core Features & Use Cases

  • Server functions with createServerFn for GET and POST mutations.
  • Middleware composition using createMiddleware to apply auth, validation, and request context.
  • Clear project structure guidance for placing server code and the worker entry.

Quick Start

Define server functions with createServerFn and compose middleware with createMiddleware in apps/user-application, then wire the Cloudflare Worker entry to expose secure, typed endpoints.

Frequently Asked Questions about tanstack-server-functions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up typed server functions in TanStack Start deployed on Cloudflare Workers?

To set up typed server functions in TanStack Start, you define logic using createServerFn for GET and POST mutations and wire a documented Cloudflare Worker entry file to expose secure, typed endpoints.

What is the best way to structure authentication and validation middleware in TanStack Start?

The best way to structure authentication and validation middleware is by composing them with createMiddleware, allowing you to apply auth, validate requests, and cleanly pass request context to your server functions.

Can I use Cloudflare bindings with TanStack Start server functions?

Yes, you can use Cloudflare bindings with TanStack Start server functions. The implementation enforces createServerFn patterns that support Cloudflare bindings directly within your server logic and middleware.

How does TanStack Start handle server-side redirects and request context?

TanStack Start handles server-side redirects and request context by passing them through structured middleware. This allows your server functions to securely manage redirects and access request context.

Do I need a specific project structure for TanStack Start server code on Cloudflare?

Yes, you need a specific project structure. The Skill provides clear guidance for placing server code and middleware in your apps/user-application directory, along with a documented worker entry file.