sveltekit-effect-template Svelte Themes

Sveltekit Effect Template

A template for integrating Sveltekit with Effect

SvelteKit + Effect integraton

This is a simple example of how to integrate Effect with SvelteKit.

It allows to run Effects easily on your SvelteKit server.

How it works

The repo provides two main functions to run Effects server-side:

  • runLoader runs an Effect on SvelteKit load functions and maps the result/error to a SvelteKit loader response
  • runAction runs an Effect on SvelteKit form action and maps the result/error to a SvelteKit action response

How to use

  1. Clone this repository
  2. Run npm install
  3. Run npm run dev

Packages

Top categories

Loading Svelte Themes