spotiarr-zustand

Community

Keep Spotify UI state clean and performant.

Authormralexsaavedra
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It prevents inefficient or incorrect client-side state management in SpotiArr’s frontend by enforcing clear rules for when to use Zustand versus server-state caching.

Core Features & Use Cases

  • Enforces a two-store architecture: guarantees exactly two Zustand stores—one ephemeral and one persisted—for predictable behavior.
  • Separates UI state from server state: routes server events and cache invalidation through TanStack Query while keeping transient download progress in memory.
  • Improves rendering performance: mandates granular selectors and bulk selector hooks to avoid N-per-item subscriptions in list UIs.
  • Supports durable preferences: uses persisted middleware for sidebar and UI preferences so refreshes don’t reset the experience.

Quick Start

Use this skill as your checklist when adding client-side state in apps/frontend/src/store/, ensuring server-derived state goes to TanStack Query and UI-only state is added to exactly one of the two defined Zustand stores.

Dependency Matrix

Required Modules

None required

Components

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: spotiarr-zustand
Download link: https://github.com/mralexsaavedra/spotiarr/archive/main.zip#spotiarr-zustand

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.