Lineup Legends
Playerscreate a lineupExploreContactSign upSign in

Join Lineup Legends – create, share, and dominate with your ultimate fantasy basketball lineups. Your journey as a top fantasy GM starts here!

Located in Northern California

Cell: (707) 724-1815

Email: cassius.reynolds.dev@gmail.com

Contact Us →

Developed by

Cassius Reynolds

Terms of ServicePrivacy Policy
© 2026 Lineup Legends. All rights reserved.
All Topics
🔌Backend ArchitectureComing Soon

tRPC API Layer

End-to-end type-safe API with procedures, middleware, and automatic type inference.

Video coming soon

Add a YouTube video ID to the topics config

Documentation

Overview

The API layer uses tRPC for end-to-end type safety between the Next.js frontend and the server. No REST endpoints, no manual type definitions — everything is inferred.

Procedure Types

TypeAuthUse Case
publicProcedureNonePublic data (player list, explore lineups)
protectedProcedureLogged inUser actions (create lineup, rate, comment)
adminProcedureAdmin roleAdmin actions (manage players, view stats)

Middleware Stack

  1. Timing middleware — logs procedure execution time
  2. Auth middleware — validates session and injects typed context
  3. Admin middleware — checks session.user.admin flag

Router Organization

Each domain has its own router file registered in the root router: player, lineup, profile, follow, feedback, requestedPlayer, admin, video

Technical Details

<!-- Add details about error handling patterns, input validation with Zod, etc. -->

Content coming soon — add your video and detailed writeup here.

Browse All Topics