miniapp-svelte-template Svelte Themes

Miniapp Svelte Template

Svelte Farcaster mini-app template with wagmi connector setup

Farcaster mini-app svelte template

Start Building

Edit the const frame = {} in ./src/routes/+page.svelte to match your desired embed info

When you want to publish the frame, follow the instructions in the mini app docs to generate a manifest and put it in ./static/.well-known/farcaster.json with other parameters

Dev

Run:

bun run dev

Build (vercel adapter)

Run:

bun run build

Use static adapter and add const prerender = true to a new file ./src/routes/+layout.ts to build static (I don't think this works for vercel or some others out of the box?)

Server-side

Not designed with server-side functions or anything else in mind, but changing the adapter to the node one and adding server functions in a ts is probably doable

Deploy

Deploy to vercel or orbiter or ipfs or wherever ig just from the build command, static site should output to ./build

Top categories

Loading Svelte Themes