start-server-core

Handle server requests with cookies, encrypted sessions, and AsyncLocalStorage for TanStack Start.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/guillempuche/engranatge --skill start-server-core-guillempuche
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: start-server-core
Source: https://github.com/guillempuche/engranatge/tree/main/docs/repos/tanstack-router/packages/start-server-core/skills/start-server-core
Command: npx skills add https://github.com/guillempuche/engranatge --skill start-server-core-guillempuche

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a unified server-side runtime that centralizes request handling, response helpers, cookie management, and encrypted session management so developers can implement robust server logic without wiring these concerns manually.

Core Features & Use Cases

  • Three-phase request handling: dispatches server functions, handles server routes, then falls back to app SSR for full request coverage.
  • Request and response utilities: access request object, headers, IP, URL, and set response status, headers, and cookies from anywhere during a request.
  • Cookie and session management: encrypted cookie-based sessions with utilities to use, update, and clear session data.
  • AsyncLocalStorage context: makes request-scoped utilities available anywhere in the call stack during processing.
  • Use Case: Build a server entry point that routes API calls to server functions, applies middleware, sets authentication cookies, and renders SSR pages with dehydrated state.

Quick Start

Use start-server-core to create a start handler that processes incoming requests, manages cookies and encrypted sessions, and exposes request utilities via AsyncLocalStorage.

Frequently Asked Questions about start-server-core

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

FAQPage Schema
How do I handle server-side requests for TanStack Start across React, Solid, and Vue?

Server-side request handling for TanStack Start uses a three-phase processing pipeline that dispatches server functions, handles server routes, and falls back to application SSR across React, Solid, and Vue frameworks. This unified runtime centralizes routing logic without manual wiring.

How does AsyncLocalStorage context work for request-scoped utilities?

AsyncLocalStorage context makes request-scoped utilities available anywhere in the call stack during processing, allowing access to request objects, headers, IP, and URL from any nested function without passing them manually as parameters.

Can I manage encrypted cookie-based sessions with TanStack Start?

Yes, you can manage encrypted cookie-based sessions with built-in utilities to use, update, and clear session data. The runtime provides encrypted cookie-based sessions to securely handle authentication and dehydrated state.

What's the best way to set response headers and status during server function processing?

The best way to set response headers and status during server function processing is using the provided response utilities, which allow manipulating response headers, status codes, and cookies from anywhere during the active request lifecycle.

Does TanStack Start server runtime support validated query parsing?

Yes, the TanStack Start server runtime supports validated query parsing to ensure incoming request data meets technical requirements, integrated directly into the server functions and server routes handling phases.

When do I need a unified server runtime for session management and SSR?

You need a unified server runtime for session management and SSR when building a server entry point that routes API calls, applies middleware, sets authentication cookies, and renders pages with dehydrated state without wiring these concerns manually.