glapi-backend-guidelines
OfficialShip consistent GLAPI backend services
Authoradteco
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This guide removes guesswork from GLAPI backend services by enforcing a dual TRPC/REST pattern, shared services, and consistent Drizzle plus Clerk usage so internal and external clients stay type-safe and secure.
Core Features & Use Cases
- Dual API Architecture keeps internal TRPC procedures thin while REST routes reuse those procedures for external clients.
- Layered Services & Drizzle Access centralize business logic in services that call PostgreSQL via Drizzle while routers handle Zod validation and Clerk authentication.
- Checklists and Templates cover creating procedures, REST routes, services, testing, and OpenAPI documentation, with referenced examples under resources/ for quick reference.
Quick Start
Draft a TRPC procedure that delegates to a service, validates input with Zod, and exposes it via Clerk-protected REST per the GLAPI layered architecture.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: glapi-backend-guidelines Download link: https://github.com/adteco/glapi/archive/main.zip#glapi-backend-guidelines Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.