بنقرة واحدة
sync
Real-time sync with Supabase, Loro CRDT, and IndexedDB. Use when working on files in src/lib/sync/.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Real-time sync with Supabase, Loro CRDT, and IndexedDB. Use when working on files in src/lib/sync/.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
UI component patterns for React 19, shadcn/ui, and Tailwind. Use when working on files in src/components/.
Loro CRDT state management with loro-mirror. Use when working on files in src/lib/crdt/.
Playwright E2E testing patterns. Use when working on files in tests/e2e/.
CSV and OFX transaction import parsing. Use when working on files in src/lib/import/.
tRPC v11 API layer with Zod and Ed25519 auth. Use when working on files in src/server/.
Client-side cryptography with libsodium. Use when working on files in src/lib/crypto/.
| name | sync |
| description | Real-time sync with Supabase, Loro CRDT, and IndexedDB. Use when working on files in src/lib/sync/. |
| Event | IndexedDB | Server |
|---|---|---|
| Local change | Immediate | Throttled (~2s) |
| Tab hidden/close | Immediate | Flush pending |
| Cold start | Load snapshot → usable | Background sync |
lodash-es throttle, ~2shas_unpushed flag critical - server must send ops (not snapshot) if client has local
changessetState() - no manual debouncingsubscribeLocalUpdates fires after each commit with binary updateLoro handles automatically: last-write-wins per field, set union for arrays.