Browse / Developer Tools / Local-First Architecture

Local-First Architecture

Enforces a privacy-centric, local-first architecture using IndexedDB as the single source of truth for application data.

SkillDeveloper ToolsPatterns ArchitectureCode Search

The source repository doesn't declare a license. Check its terms before reusing the code.

Key features

  • Ensures applications are fully functional offline by default.
  • Defines a strict separation between persistent data (IndexedDB) and UI state (Zustand).
  • Mandates IndexedDB (Dexie.js) as the single source of truth for all application data.
  • Implements cloud synchronization as an optional, premium feature.
  • Provides standardized CRUD patterns for local data management, including soft deletes for sync.

Use cases

  • Implementing new data models or CRUD operations for application features.
  • Building or extending the cloud synchronization engine for premium users.
  • Refactoring existing features to comply with offline-first and privacy-by-default principles.

FAQ

How does this skill improve my development workflow?

It provides Claude with a strict set of rules and standardized code patterns, ensuring consistency and adherence to best practices for local-first design. This accelerates development by removing ambiguity around data handling, offline states, and state management.

What core capabilities does this skill enforce?

This skill mandates using IndexedDB (via Dexie.js) as the single source of truth, enforces a strict separation between persistent data and UI state (Zustand), provides standardized CRUD patterns including soft deletes, and ensures cloud sync is an opt-in feature.

What does the Local-First Architecture skill do?

This skill instructs Claude to build web applications where user data is stored in the browser's IndexedDB by default. It guarantees the app works perfectly offline and treats cloud synchronization as an optional, privacy-respecting feature.

When should I use this Claude skill?

Apply this skill when developing applications that prioritize user privacy, data ownership, and offline functionality. It's essential for tasks like creating data models, implementing CRUD operations, or building synchronization features.