Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions content/api/hub/ab_cookie_sample.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
title = "Cookie based A/B Testing"
template = "render_hub_content_body"
date = "2025-01-24T00:00:00Z"
content-type = "text/plain"
tags = ["http", "Rust"]

[extra]
author = "Thorsten Hans"
type = "hub_document"
category = "Sample"
language = "Rust"
created_at = "2025-01-21T13:50:00Z"
last_updated = "2025-01-21T13:50:00Z"
spin_version = ">=v3.1.0"
summary = "A Spin application showcasing how to implement A/B testing based on a cookie."
url = "https://github.com/fermyon/fwf-examples/tree/main/samples/ab-testing-cookie"
keywords = "Rust, HTTP"

---

This sample application shows how you can use a Spin application to implement A/B testing based on a cookie.

## Prerequisites

You need the following tools on your machine, to build, run and deploy the application to _Fermyon Wasm Functions_:

- The `spin` CLI
- Rust tools and the `wasm32-wasip1` target
- The `aka` plugin for `spin` CLI
- Access to _Fermyon Wasm Functions_
30 changes: 30 additions & 0 deletions content/api/hub/ab_keyvalue_sample.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
title = "KeyValue based A/B Testing"
template = "render_hub_content_body"
date = "2025-01-24T00:00:00Z"
content-type = "text/plain"
tags = ["http", "Rust", "key value"]

[extra]
author = "Thorsten Hans"
type = "hub_document"
category = "Sample"
language = "Rust"
created_at = "2025-01-21T13:50:00Z"
last_updated = "2025-01-21T13:50:00Z"
spin_version = ">=v3.1.0"
summary = "A Spin application showcasing how to implement A/B testing based on data in a Key Value store."
url = "https://github.com/fermyon/fwf-examples/tree/main/samples/ab-testing-kv"
keywords = "Rust, HTTP, Key Value"

---

This sample application shows how you can use a Spin application to implement A/B testing based on a cookie.

## Prerequisites

You need the following tools on your machine, to build, run and deploy the application to _Fermyon Wasm Functions_:

- The `spin` CLI
- Rust tools and the `wasm32-wasip1` target
- The `aka` plugin for `spin` CLI
- Access to _Fermyon Wasm Functions_
30 changes: 30 additions & 0 deletions content/api/hub/ab_user_agent_sample.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
title = "User Agent based A/B Testing"
template = "render_hub_content_body"
date = "2025-01-24T00:00:00Z"
content-type = "text/plain"
tags = ["http", "Rust"]

[extra]
author = "Thorsten Hans"
type = "hub_document"
category = "Sample"
language = "Rust"
created_at = "2025-01-21T13:50:00Z"
last_updated = "2025-01-21T13:50:00Z"
spin_version = ">=v3.1.0"
summary = "A Spin application showcasing how to implement A/B testing based on the user agent."
url = "https://github.com/fermyon/fwf-examples/tree/main/samples/ab-testing-user-agent"
keywords = "Rust, HTTP"

---

This sample application shows how you can use a Spin application to implement A/B testing based on a cookie.

## Prerequisites

You need the following tools on your machine, to build, run and deploy the application to _Fermyon Wasm Functions_:

- The `spin` CLI
- Rust tools and the `wasm32-wasip1` target
- The `aka` plugin for `spin` CLI
- Access to _Fermyon Wasm Functions_
30 changes: 30 additions & 0 deletions content/api/hub/aggregate_json_sample.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
title = "Aggregate JSON"
template = "render_hub_content_body"
date = "2025-01-20T00:00:00Z"
content-type = "text/plain"
tags = ["http", "typescript"]

[extra]
author = "Fermyon"
type = "hub_document"
category = "Sample"
language = "JS/TS"
created_at = "2025-01-20T00:00:00Z"
last_updated = "2025-01-20T00:00:00Z"
spin_version = ">=v3.1.0"
summary = "Shows how to make concurrent outgoing requests and aggregate the responses."
url = "https://github.com/fermyon/fwf-examples/tree/main/samples/aggregate-json"
keywords = "TypeScript, HTTP"

---

This sample shows how to make concurrent outgoing HTTP requests and combine the results.

## Prerequisites

You need the following tools on your machine, to build, run and deploy the application to _Fermyon Wasm Functions_:

- The `spin` CLI
- A recent version of `npm`
- The `aka` plugin for `spin` CLI
- Access to _Fermyon Wasm Functions_
31 changes: 31 additions & 0 deletions content/api/hub/alter_response_headers_sample.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
title = "Altering Response Headers"
template = "render_hub_content_body"
date = "2025-01-20T00:00:00Z"
content-type = "text/plain"
tags = ["http", "typescript"]

[extra]
author = "Fermyon"
type = "hub_document"
category = "Sample"
language = "JS/TS"
created_at = "2025-01-20T00:00:00Z"
last_updated = "2025-01-20T00:00:00Z"
spin_version = ">=v3.1.0"
summary = "Shows how to alter response headers."
url = "https://github.com/fermyon/fwf-examples/tree/main/samples/alter-headers"
keywords = "TypeScript, HTTP"

---

This sample application shows how to alter the headers as you stream a response from an origin
server back to a client.

## Prerequisites

You need the following tools on your machine, to build, run and deploy the application to _Fermyon Wasm Functions_:

- The `spin` CLI
- A recent version of `npm`
- The `aka` plugin for `spin` CLI
- Access to _Fermyon Wasm Functions_
30 changes: 30 additions & 0 deletions content/api/hub/autocomplete_sample.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
title = "Autocomplete API"
template = "render_hub_content_body"
date = "2025-01-24T00:00:00Z"
content-type = "text/plain"
tags = ["http", "Rust"]

[extra]
author = "Thorsten Hans"
type = "hub_document"
category = "Sample"
language = "Rust"
created_at = "2025-01-21T13:50:00Z"
last_updated = "2025-01-21T13:50:00Z"
spin_version = ">=v3.1.0"
summary = "Implement an autocomplete API using Spin and Rust."
url = "https://github.com/fermyon/fwf-examples/tree/main/samples/auto-complete/autocomplete"
keywords = "Rust, HTTP"

---

This sample application shows how you can use a Spin application to implement an autocomplete API.

## Prerequisites

You need the following tools on your machine, to build, run and deploy the application to _Fermyon Wasm Functions_:

- The `spin` CLI
- Rust tools and the `wasm32-wasip1` target
- The `aka` plugin for `spin` CLI
- Access to _Fermyon Wasm Functions_
31 changes: 31 additions & 0 deletions content/api/hub/bulk_redirects_sample.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
title = "Bulk Redirects"
template = "render_hub_content_body"
date = "2025-01-20T00:00:00Z"
content-type = "text/plain"
tags = ["http", "typescript"]

[extra]
author = "Fermyon"
type = "hub_document"
category = "Sample"
language = "JS/TS"
created_at = "2025-01-20T00:00:00Z"
last_updated = "2025-01-20T00:00:00Z"
spin_version = ">=v3.1.0"
summary = "Shows how to redirect requests."
url = "https://github.com/fermyon/fwf-examples/tree/main/samples/bulk-redirects"
keywords = "TypeScript, HTTP"

---

This application shows how you can bulk-redirect requests using a JavaScript object to map inbound routes
to their new locations.

## Prerequisites

You need the following tools on your machine, to build, run and deploy the application to _Fermyon Wasm Functions_:

- The `spin` CLI
- A recent version of `npm`
- The `aka` plugin for `spin` CLI
- Access to _Fermyon Wasm Functions_
31 changes: 31 additions & 0 deletions content/api/hub/early_hint_sample.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
title = "HarperDB and 103 Early Hints in Rust"
template = "render_hub_content_body"
date = "2025-01-29T00:00:00Z"
content-type = "text/plain"
tags = ["http", "Rust"]

[extra]
author = "Radu Matei"
type = "hub_document"
category = "Sample"
language = "Rust"
created_at = "2025-01-29T13:50:00Z"
last_updated = "2025-01-29T13:50:00Z"
spin_version = ">=v3.1.0"
summary = "This sample showcases using using Fermyon Wasm Functions to query HarperDB for early hints."
url = "https://github.com/fermyon/fwf-examples/tree/main/samples/early-hints-rust"
keywords = "Rust, HTTP"

---

This sample showcases using using Fermyon Wasm Functions to query HarperDB for early hints.

## Prerequisites

You need the following tools on your machine, to build, run and deploy the application to _Fermyon Wasm Functions_:

- The `spin` CLI
- Rust tools and the `wasm32-wasip1` target
- The `aka` plugin for `spin` CLI
- Access to _Fermyon Wasm Functions_
- Access to a HarperDB instance
30 changes: 30 additions & 0 deletions content/api/hub/key_value_tutorial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
title = "Tutorial: Using the Key Value Store"
template = "render_hub_content_body"
date = "2025-01-21T13:50:00Z"
content-type = "text/plain"
tags = ["http", "Javascript", "key value"]

[extra]
author = "Thorsten Hans"
type = "hub_document"
category = "Sample"
language = "JS/TS"
created_at = "2025-01-21T13:50:00Z"
last_updated = "2025-01-21T13:50:00Z"
spin_version = ">=v3.1.0"
summary = "The sample application written as part of the Using the Key Value Store tutorial."
url = "https://github.com/fermyon/enterprise-architectures-and-patterns/tree/main/cqrs-rust"
keywords = "Javascript, HTTP, Key Value"

---

This sample application was written as part of the [Using the Key Value Store](https://wasm-functions.fermyon.app/wasm-functions/using-key-value-store) tutorial. It showcases how to use the Spin Key-Value store from a Javascript-based Spin application, and guides you on installing it to Fermyon Wasm Functions on Akamai.

## Prerequisites

You need the following tools on your machine, to build, run and deploy the application to _Fermyon Wasm Functions_:

- The `spin` CLI
- Node.js (Version `20` or later)
- The `aka` plugin for `spin` CLI
- Access to _Fermyon Wasm Functions_
32 changes: 32 additions & 0 deletions content/api/hub/limit_access_sample.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
title = "Limit Access"
template = "render_hub_content_body"
date = "2025-01-20T00:00:00Z"
content-type = "text/plain"
tags = ["http", "typescript"]

[extra]
author = "Fermyon"
type = "hub_document"
category = "Sample"
language = "JS/TS"
created_at = "2025-01-20T00:00:00Z"
last_updated = "2025-01-20T00:00:00Z"
spin_version = ">=v3.1.0"
summary = "Shows how to limit access to an origin server."
url = "https://github.com/fermyon/fwf-examples/tree/main/samples/limit-access"
keywords = "TypeScript, HTTP"

---

This sample application shows how to limit access to a given origin until a configuration point in time.
Before that point in time, the Spin application responds to all requests with a configurable status code;
after it, the Spin application acts as a transparent proxy.

## Prerequisites

You need the following tools on your machine, to build, run and deploy the application to _Fermyon Wasm Functions_:

- The `spin` CLI
- A recent version of `npm`
- The `aka` plugin for `spin` CLI
- Access to _Fermyon Wasm Functions_
30 changes: 30 additions & 0 deletions content/api/hub/mysql_tutorial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
title = "Tutorial: Querying MySQL"
template = "render_hub_content_body"
date = "2025-01-21T13:50:00Z"
content-type = "text/plain"
tags = ["http", "typescript", "sql", "mysql"]

[extra]
author = "Thorsten Hans"
type = "hub_document"
category = "Sample"
language = "JS/TS"
created_at = "2025-01-21T13:50:00Z"
last_updated = "2025-01-21T13:50:00Z"
spin_version = ">=v3.1.0"
summary = "The sample application written as part of the Querying MySQL tutorial."
url = "https://github.com/fermyon/fwf-examples/tree/main/tutorials/mysql-tutorial"
keywords = "TypeScript, HTTP, PostgreSQL, MySQL"

---

The sample application written as part of the Querying MySQL tutorial.
Prerequisites

You need the following tools on your machine, to build, run and deploy the application to Fermyon Wasm Functions:

The spin CLI
Node.js (Version 20 or later)
The aka plugin for spin CLI
Access to a MySQL database server (As part of the tutorial, we're using a Linode Managed Database)
Access to Fermyon Wasm Functions
29 changes: 29 additions & 0 deletions content/api/hub/object_storage_streaming_sample.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
title = "Object Storage Streaming and Transformation"
template = "render_hub_content_body"
date = "2025-01-29T00:00:00Z"
content-type = "text/plain"
tags = ["http", "Typescript", "streaming"]

[extra]
author = "Radu Matei"
type = "hub_document"
category = "Sample"
language = "JS/TS"
created_at = "2025-01-29T13:50:00Z"
last_updated = "2025-01-29T13:50:00Z"
spin_version = ">=v3.1.0"
summary = "A Spin application showcasing how to stream and transform an object from an object store."
url = "https://github.com/fermyon/fwf-examples/tree/main/samples/linode-object-storage-streaming"
keywords = "Typescript, HTTP"

---

This sample application shows how to stream and transform an object from an object store.

## Prerequisites

You need the following tools on your machine, to build, run and deploy the application to _Fermyon Wasm Functions_:

- The `spin` CLI
- The `aka` plugin for `spin` CLI
- Access to _Fermyon Wasm Functions_
Loading