services-layer

Installation
SKILL.md

Services Layer Patterns

This skill documents how to implement services in the Whispering architecture. Services are UI-free business logic with explicit app inputs and Result<T, E> return types.

Related Skills: See error-handling for trySync/tryAsync patterns. See define-errors for error variant factories. See query-layer for consuming services from $lib/rpc with TanStack Query.

When to Apply This Skill

Use this pattern when you need to:

  • Create a new service with domain-specific error handling
  • Add error types with structured context (like HTTP status codes)
  • Understand how services are organized and exported
  • Implement platform-specific service variants (desktop vs web)

Core Architecture

Services follow a three-layer architecture: Service -> RPC/Query -> UI

Installs
54
GitHub Stars
4.6K
First Seen
Jan 28, 2026
services-layer — epicenterhq/epicenter