{"repo":"brennerm/sveltepocket","free":true,"listed":false,"github":"https://github.com/brennerm/sveltepocket","clone":"git clone https://github.com/brennerm/sveltepocket.git","description":"Svelte stores and components to query data (with realtime updates) from PocketBase","language":"TypeScript","stars":15,"topics":["pocketbase","pocketbase-realtime","svelte","svelte-components","svelte5","sveltekit"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"SveltePocket Svelte 5-ready stores and components to bring data from any Pocketbase instance into your Svelte application (even with realtime updates 🤫). Installation Setup Call the init method to pass your Pocketbase client SDK instance. This will be used by all stores and components so make sure it's authenticated according to your needs. Stores The stores provide an low level API to query data from your Pocketbase instance and are the best choice when you need to pre/postprocess the data instead of just rendering it onto the page. auth A readable store that holds the current user's authentication status and user record. createRecordStore Creates a readable store that fetches a single record identified by id or filter from a Pocketbase collection. createRecordsStore Creates a readable store that fetches multiple records from a Pocketbase collection. Components If you only care about rendering the queried data, these components are the way to go. You can pass snippets that will be rendered during different states, e.g. when loading the data, when data is not found or when an error occurs. \\ A component that fetches a single record either by ID or filter from a Pocketbase collection and renders it. \\ A component that fetches multiple records from a Pocketbase collection and renders them. Realtime Updates All stores and components support the realtime parameter. If set to true , SveltePocket will setup a subscription to PocketBase's realtime updates and keep the data up to da","default_branch":null,"files":null,"tree":[],"storefront":"/r/brennerm","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/brennerm/sveltepocket/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}