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:
leptos-wasmtime: derived from thecounterexample in theleptos_wasirepository. A pure WASIp3 Guest component that can be served via standard HTTP triggers using either Wasmtime or Spin.leptos-spin: derived from thespin-counterexample in theleptos_wasirepository. A WASIp3 component built with the Fermyonspin-sdkusing 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