spotiarr-architecture
CommunityPlace features in the right layer fast
Software Engineering#architecture#monorepo#circuit breaker#sse#code placement#ddd-lite#frontend state
Authormralexsaavedra
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Spotiarr contributors need a reliable rulebook for deciding where new code belongs (backend, frontend, or shared) so the codebase stays consistent, testable, and maintainable.
Core Features & Use Cases
- Backend DDD-lite layering: Enforces a direction of dependencies so
presentation → application → domain, withinfrastructureimplementing contracts only. - Frontend state and real-time boundaries: Uses TanStack Query for server state, Zustand slices for client state, and a dedicated
useServerEventshook for SSE sync. - External integration safety: Requires all Spotify HTTP calls to go through
CircuitBreaker.execute()ininfrastructure/external/circuit-breaker.tsto prevent unsafe direct calls and to preserve circuit state across restarts. - Repository placement guidance: Clarifies where use-cases/services register (
apps/backend/src/container.ts) and where shared types/utilities live (packages/shared/).
Quick Start
Ask: “Given this Spotiarr feature request and the files it will touch, where should the new backend and frontend code be placed according to the spotiarr architecture rules?”
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: spotiarr-architecture Download link: https://github.com/mralexsaavedra/spotiarr/archive/main.zip#spotiarr-architecture 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.