isar-expert

Define and manage Isar schemas and queries for offline-first Flutter apps.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/JesusNF99/TrainFlow --skill isar-expert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: isar-expert
Source: https://github.com/JesusNF99/TrainFlow/tree/main/.skills/isar-expert
Command: npx skills add https://github.com/JesusNF99/TrainFlow --skill isar-expert

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Isar provides an on-device NoSQL data store for Flutter apps, enabling fast, offline-capable persistence with type-safe schemas and reactive queries.

Core Features & Use Cases

  • Schema-centric data modeling with @Collection, Id, and indexing to optimize queries and storage.
  • Reactive data access using .watch() and .filter() to drive real-time UI in Riverpod-based apps.
  • Durable, offline-first transactions and multi-isolate support for background processing.

Quick Start

Create a minimal Isar model with annotations, run code generation, and try a reactive query to observe live updates.

Frequently Asked Questions about isar-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I define on-device Isar schemas for a Flutter app?

Define Isar schemas using @Collection and Id annotations, then run build_runner for code generation to produce type-safe model classes. Add @Index to optimize queries for fast, offline-first local storage.

How do I create reactive queries in Flutter for real-time UI updates?

Create reactive queries in Flutter by applying .watch() to Isar collections or filters. This drives real-time UI updates automatically in Riverpod-based apps whenever underlying on-device data changes.

What is the best way to handle transactional writes in Isar?

Handle transactional writes in Isar by wrapping mutations inside isar.writeTxn. This ensures durable, offline-first transactions and supports multi-isolate processing for background tasks in production-grade Flutter apps.

Can I use embedded objects in an Isar database schema?

Yes, you can use embedded objects in an Isar database schema to model nested data structures. Combine them with @Collection and @Index to optimize storage and enable type-safe, reactive queries.

Do I need build_runner for Isar code generation in Flutter?

Yes, you need build_runner for Isar code generation in Flutter to generate type-safe query logic and model definitions. It processes @Collection annotations to enable fast, offline-first on-device data access.