Skip to content

semicognitive/thefuz

Repository files navigation

thefuz

Using GPT-3 as a back-end, but with Svelte.

Made from this template

Usage

Try in the Svelte Repl

<script>
	import { fuzzyapi } from "https://esm.sh/thefuz";

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

<div use:fuzzyapi={[OPENAI_KEY, "Resaurants 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>

Example

Svelte Repl Screenshot

Inspiration

Original idea here https://github.com/yoheinakajima/fuzzy.js