Skip to content

svelte-firekit

Firebase + Svelte 5. Reactive by default, SSR-safe, zero boilerplate.

Svelte 5 Runes

Built entirely with $state and $derived — no Svelte stores, no manual subscriptions, no cleanup boilerplate.

SSR-Safe

Every service degrades gracefully on the server. Use reactive data in load functions and SvelteKit layouts without extra guards.

Full Firebase Coverage

Auth, Firestore, RTDB, Storage, Cloud Functions, Firebase AI, Analytics, Messaging, Remote Config, App Check, Presence, and more.

Two APIs, One Library

Use class instances directly in <script> blocks, or drop in declarative Svelte components — <Doc>, <Collection>, <AuthGuard>, and more.

Terminal window
npm install svelte-firekit firebase

Authentication

Email, OAuth (Google, GitHub, Apple, Microsoft, Facebook, Twitter), Phone, SAML, OIDC, Anonymous, Custom token, MFA, redirect flows.

Firestore

Reactive documents, collections, collection groups, fluent query builder, cursor pagination, infinite scroll, batch writes, transactions.

Realtime Database

Reactive nodes and lists with set, update, push, remove, and one-time fetch.

Storage

Reactive download URLs, resumable uploads with progress, directory listings, metadata read/write, file deletion.

Firebase AI

One-shot generation, streaming, and multi-turn chat with Gemini. Supports Google AI and Vertex AI backends.

Cloud Functions

Typed callable function wrappers with reactive loading/error state. Call by name or full URL.