

Server functions don't exist with Jack Herrington
Jun 5, 2025
Jack Herrington, a software engineer and YouTuber known as the Blue Collar Coder, joins the conversation to demystify server functions in web development. He explains the complexities and trade-offs of using frameworks like Next.js and TanStack Start, touching on the merging of front-end and back-end coding. The discussion navigates the choice between server functions and APIs, emphasizing security and maintainability. Jack also provides insights into getting started with server functions and the future challenges that developers may face.
AI Snips
Chapters
Transcript
Episode notes
Server Functions Are Framework Abstractions
- Server functions don't exist in the web platform; they're a framework abstraction built on regular fetch calls.
- Frameworks create separate client and server bundles, linking server functions to API endpoints but hiding actual HTTP details.
Simplification Risks with Server Functions
- Server functions simplify development by hiding fetch and API call complexity.
- But this abstraction risks accidental leakage of sensitive credentials and requires careful authorization checks.
Choose APIs Based on Audience
- Use server functions primarily for internal apps or admin interfaces where API control is less critical.
- For public or external APIs, rely on REST, OpenAPI, GraphQL, or trpc for client flexibility and standards compliance.