Category : svelte

I’m using Supabase for a new Sveltekit app, with this template Currently, I’m passing the Supabase keys through on the client side, like this: const supabase = createClient( import.meta.env.VITE_SUPABASE_URL, import.meta.env.VITE_SUPABASE_ANON_KEY ) What is the simplest way that I can create a secure backend/API, so the application can fetch content from Supabase, without showing Supabase key ..

Read more

I am working on a small todo app with Svelte. I list 10 todos from jsonplaceholder. I want to count the todos whose completed property is equal to false: const apiURL = "https://jsonplaceholder.typicode.com/todos"; const limit = 10; import { onMount } from "svelte"; import TodoItem from ‘./TodoItem.svelte’; let todos = []; let unsolvedTodos = []; ..

Read more

I am working on a D3 and Svelte project whereby I have a chart with some draggable elements appended to it which are created based on the response I get from an external API. At the moment these elements are just <circle /> elements but I would like to use a svg icon downloaded from ..

Read more