Sveeth
April 2023
A small library for adding web3 to Svelte. I still think Svelte is the better framework. It is reactive, where React is not, and it is tiny. It had very little adoption in web3 then, and I wanted to use it more, so I built this to make a web3 project in Svelte much easier.
The account, the network, and a contract are stores, so a balance sits in a component the same way any other piece of state would.
<script>
import { contract, account } from "sveeeth";
import { daiAddress, daiAbi } from "...";
$: dai = contract(daiAddress, daiAbi);
$: balance = dai.balanceOf($account.address);
</script>github.com/sveeeth/sveeeth