Skip to main content
Create new
Introduction
Reactivity
Props
Logic
Events
Bindings
Lifecycle
Stores
Motion
Transitions
Animations
Easing
SVG
Actions
Classes
Component composition
Context API
Special elements
Module context
Debugging
7GUIs
Miscellaneous
App.svelte
<script>
import { fuzzyapi } from "https://esm.sh/thefuz";

//TODO: Fill in your OPENAI API KEY
const OPENAI_KEY = "";
</script>

<div use:fuzzyapi={[OPENAI_KEY, "Restaurants in Seattle"]}>
<h4><span data-fuz="name"/></h4>
<span data-fuz="address"/><br/>
<span data-fuz="cuisine"/>
<h4><span data-fuz="name"/></h4>
<span data-fuz="address"/><br/>
<span data-fuz="cuisine"/>
</div>
loading Svelte compiler...
/* Select a component to see its compiled code */
result = svelte.compile(source, {
generate: ,
});
/* Select a component to see its compiled code */