Skip to content

mikkelhegn/spin-component-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Spin and the Component Model examples

This repo contains a few examples for the great companionship bwtween Spin and the component model.

The repo examples are provided "as is" with no guarantees :-)

In this example a Spin component (a wasi-http component using the Spin SDK) imports a function from a Wasm component to handle some business logic. The intention with the example is to show how the Spin component can wrap the concern of the transport protocol (HTTP) and pass on only the paylod to another component, which then implements the business logic.

External examples

This repo is an example of how to compose a middleware component with a business logic component.

This repository contains a Dockerfile, which creates a container to help demo wasi-http across Spin, NGINX Unit, and Wastime.

About

Examples of using Wasm components with Spin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages