Leptos Spin templates

May 29, 2026 ยท View on GitHub

https://github.com/user-attachments/assets/6596e0f3-80c0-4258-a4e3-f85c41b328b4

This repository contains custom Spin templates for bootstrapping Leptos applications running on WASI. It provides two options for WASI runtimes:

  1. leptos-wasmtime: derived from the counter example in the leptos_wasi repository. A pure WASIp3 Guest component that can be served via standard HTTP triggers using either Wasmtime or Spin.
  2. leptos-spin: derived from the spin-counter example in the leptos_wasi repository. A WASIp3 component built with the Fermyon spin-sdk using key-value triggers.

Installation

To install these templates from the Git repository:

spin templates install --git https://github.com/akamai-developers/leptos-spin --upgrade

Creating a New Project

To create a new project using one of the templates, run:

Option 1: Using the Standard WASIp3 Template (Wasmtime/Spin)

spin new <project-name> -t leptos-wasmtime

Option 2: Using the Spin SDK (WASIp3) Template

spin new <project-name> -t leptos-spin