What problem does it solve?
This Skill provides a robust cross-platform API architecture template that unifies web and mobile data access through a 3-tier model: Convex WebSocket for real-time updates, SSE for near-real-time mobile streams, and REST for reliable fallbacks. It also consolidates platform detection, hybrid hooks, and a DAL pattern to ensure secure, scalable data access across layers.
Core Features & Use Cases
- Cross-platform data access: Unified data fetching across desktop web and mobile devices using Convex WebSocket, SSE, and REST.
- Platform-aware data hooks: Hybrid hooks that switch data strategies based on client capabilities and context.
- DAL-driven server access: Data access layer enforces ownership, validation, and consistent response envelopes.
- Use Case: Build a feature that streams real-time inventory updates to a web dashboard while providing reliable REST fallbacks for offline mobile clients.
Quick Start
Set up a 3-tier API architecture with Convex WebSocket, SSE, and REST, wire in platform detection and DAL, and create a hybrid data hook for cross-platform data fetching.