developing-serverpod-backend ยท git:20260331.a8cec9f ยท 2026-03-31 ยท sha256 bf1a9fad81da2729

developing-serverpod-backend git:20260331.a8cec9fA

Immutable. This exact content never changes and is served at /api/v1/blob/bf1a9fad81da2729.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_6eslbjpatqhnqb4e/bf1a9fad81da2729c54c05c23205c3ef9fe84d4de975a1cf47b3f537e81168d8.json

Then /plugin install developing-serverpod-backend@markdownregistry-6eslbjpatqhnqb4e in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.

---
name: "serverpod"
description: "Serverpod backend framework for full-stack Dart development with PostgreSQL, Redis, and Docker. Use when building type-safe API endpoints, configuring Serverpod auth, or deploying Dart backend infrastructure."
metadata:
  last_modified: "2026-03-12 11:18:17 (GMT+8)"
---

# Serverpod Architecture & Development Guide

## Overview

Design and construct robust full-stack architectures utilizing Serverpod. The immaculate quality characterizing a Serverpod implementation is measured heavily by its absolute native type safety, backend scalability, security handling protocols, and seamless universal client integration traversals.

---

# Process

## ๐Ÿš€ High-Level Workflow

Creating an elite enterprise-grade Serverpod application involves three primary phases:

### Phase 1: Deep Research and Core Modeling

#### 1.1 Understand Serverpod Project Structure
Discover comprehensively how Serverpod splits source code orchestrating distinct `server`, `client`, and `shared` modules. Maintain strict overarching separation of concerns, ensuring core endpoint internal logic universally never leaks exposing vulnerabilities externally.

#### 1.2 Define Structural Data Models
**YAML Schema Definition:**
Craft strictly typed pristine database models deploying `.spy.yaml` configurations. Generate pure Dart classes traversing bridging database schemas automatically executing `serverpod generate` routines. Ensure relational database tables strictly deploy proper explicit foreign keys mappings.
- [๐Ÿ—๏ธ Core Architecture & Models Guide](./references/core-and-models.md) - Designing initial classes arrays and structuring project hierarchies securely.

---

### Phase 2: Implementation & Endpoint Formulations

#### 2.1 Develop Endpoints
Author business logic completely securely housed inside autonomous endpoint classes natively. Capitalize significantly embracing persistent session parameters, massive caching integrations, and exploiting Serverpod's profound native JSON continuous serialization protocols efficiently.
- [๐Ÿ”Œ Endpoints & Database Guide](./references/endpoints-and-database.md) - Composing complex relational queries executing robust data-integrity transactions properly.

#### 2.2 Implement Authentication and Concurrency Scaling
**Identity Management:**
Implement unbreachable token-based authentication seamlessly operating via the native autonomous Serverpod Auth structural module natively.
**Redis Caching Protocol Deployments:**
Aggressively offload repetitive redundant brute-force database polling queries exploiting Redis configurations enabling monumental massive instantaneous concurrency scaling properties globally.
- [๐Ÿ” Authentication & Caching Guide](./references/auth-and-caching.md) - Integrating rigorous comprehensive security and Redis caching implementations dynamically.

#### 2.3 Explore Database-less Backend Solutions (BFF Protocols)
If solely necessitating securing intermediary proxy endpoints (Backend-For-Frontend) without mandating hosting extensive persistent PostgreSQL databases arrays comprehensively, forcefully deploy Serverpod Mini integrations gracefully.
- [โšก Serverpod Mini Guide](./references/serverpod-mini.md) - Establishing wildly lightweight database-less autonomous API generational architectures dynamically securely!

---

### Phase 3: Deployment & Operations

#### 3.1 Dockerization and Orchestration Matrices
Confidently transition bridging local developmental instances scaling directly hitting ultimate production architectures. Establish massive `docker-compose` clusters orchestrating environment instances governing strictly secure password encryption handing procedures natively.
- [๐Ÿณ Deployment & Docker Guide](./references/deployment-and-docker.md) - Composing elite production-ready operational configurations securing exhaustive containerization protocols successfully.

---

# Reference Files

## ๐Ÿ“š Documentation Library

Extract mapping referencing these resources actively throughout your entire developmental lifecycle:

### Core Framework (Load First)
- [๐Ÿ“– Serverpod Overview](./references/overview.md) - Acquiring fundamental universal conceptual understandings, core setup environmental instructions, and resolving high-level major architectural blueprint decisions properly.

### Schema and Logic Development (Load During Phase 1/2)
- [๐Ÿ—๏ธ Core Architecture & Models Guide](./references/core-and-models.md) - Engineering YAML protocol models, charting exact structural relationships, and deeply decoding the primordial directory architecture map exclusively.
- [๐Ÿ”Œ Endpoints & Database Guide](./references/endpoints-and-database.md) - Exploiting advanced strictly typed Object-Relational Mapping (ORM) and formulating impeccable interactive API structural endpoints natively.
- [โšก Serverpod Mini Guide](./references/serverpod-mini.md) - Engineering secure proxy routing endpoints completely bypassing managing internal Postgres databases focusing entirely traversing independent logical configurations solely securely!

### Security, Scaling & Testing Orchestrations (Load During Phase 2/3)
- [๐Ÿ” Authentication & Caching Guide](./references/auth-and-caching.md) - Harmonizing integrating natively deploying the `serverpod_auth` module array, locking down endpoints defensively, and dramatically scaling caching loads via profound Redis integrations effectively natively.
- [๐Ÿณ Deployment & Docker Guide](./references/deployment-and-docker.md) - Migrating traversing comprehensive deployment infrastructures encompassing AWS/GCP, comprehensively managing environment configurations securely, and programming impregnable production Dockerfiles uniformly explicitly.
- [๐Ÿงช Testing Guide](./references/serverpod-testing.md) - Establishing exhaustive isolated containerized database interactions invoking absolute functional endpoint simulations leveraging native auto-generated exact matching test protocols precisely gracefully seamlessly!