svelte-db
Installation
SKILL.md
This skill builds on db-core. Read it first for collection setup, query builder, and mutation patterns.
TanStack DB — Svelte 5
Setup
<script lang="ts">
import { useLiveQuery, eq, not } from "@tanstack/svelte-db"
const todosQuery = useLiveQuery((q) =>
q
.from({ todo: todoCollection })
.where(({ todo }) => not(todo.completed))
.orderBy(({ todo }) => todo.created_at, "asc")
)
</script>
Related skills