sveltefirets
Purpose: SvelteFireTS is a library designed to simplify Firebase integration in Svelte applications, particularly optimized for SvelteKit 2.0+. It provides convenience helpers for Firestore, auth stores, and SSR readiness for unauthenticated data fetching.
Key Features:
- Built for SvelteKit (tested on 2.5.1) with TypeScript support.
- Includes Firestore helpers (
getDoc
,getCollection
,docStore
,collectionStore
). - Auth store for managing authentication state.
- SSR-ready for fetching data without authentication.
- Optional
FirebaseAuthUi
component (using FirebaseUI web via CDN) for easy multi-provider auth. - Tested with Firebase 10.9.0.
Target Audience: Svelte/SvelteKit developers looking for a streamlined way to integrate Firebase services (Firestore, Auth) with TypeScript support and SSR compatibility.
Status (April 2024): Stable but no longer actively developed. The author recommends reviewing the docs and adapting the code to specific use cases.
Inspiration: Derived from SvelteFire by Jeff Delaney (Fireship.io), with added TypeScript and SvelteKit optimizations.
Contributions: Open to feature requests/issues via GitHub .