<div align="center"> <img width="128px" src="https://github.com/codediodeio/sveltefire/blob/master/docs/public/logo.png?raw=true"> <h1>SvelteFire <a href=""></h1> <img alt="npm" src="https://img.shields.io/npm/dy/sveltefire"> <a href="https://discord.gg/f
npm install sveltefire
A minimal, yet powerful library that puts realtime Firebase data into Svelte stores.
SvelteFire allows you to access Firebase Auth, Firestore, Storage, RealtimeDB, and Analytics with minimal complexity. It simplfies relational data with a declarative syntax, handles loading states, automatically disposes of realtime data subscriptions, and more!
Gaze in awe at the example below where we fetch multiple levels of realtime user data with just a few lines of Svelte code:
``svelte
Howdy, {user.uid}
} let:data={post} let:ref={postRef}>
{#each comments as comment}
{/each}
...
`
Each component in this example above is underpinned by a Svelte store. These custom stores can be used for fine-grained control and to implement your own custom patterns.
Use stores to access Firebase data with Svelte's reactive $ syntax:
`svelte
{$post?.title}
``