higress-wasm-go-plugin

Develop Higress WASM plugins in Go with the wasm-go SDK.

9.1k|1.2k|Updated Oct 27, 2022
One-click install
npx skills add https://github.com/alibaba/higress --skill higress-wasm-go-plugin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: higress-wasm-go-plugin
Source: https://github.com/alibaba/higress/tree/main/.claude/skills/higress-wasm-go-plugin
Command: npx skills add https://github.com/alibaba/higress --skill higress-wasm-go-plugin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Higress WASM Go Plugin Development helps teams create and test Higress gateway WASM plugins using the Go language and the wasm-go SDK to customize HTTP request/response processing, reduce gateway latency, and enable richer plugin logic.

Core Features & Use Cases

  • Build and test Higress WASM plugins in Go with a minimal template and compile to main.wasm.
  • Leverage the wasm-go SDK to implement plugin lifecycle, configuration parsing, and HTTP processing hooks.
  • Typical use cases include adding custom gateway logic, performing external HTTP calls, and integrating with Redis in a local or staging environment.

Quick Start

Create a new Go module, implement init with wrapper.SetCtx and ParseConfig, and build to main.wasm for deployment in Higress.

Frequently Asked Questions about higress-wasm-go-plugin

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I develop Higress WASM plugins using Go?

To develop Higress WASM plugins using Go, create a Go module with an init function to register plugin context, implement ParseConfig for typed configuration, and compile the code into a main.wasm file with Wasm-compatible build tags.

What is the role of the wasm-go SDK in Higress gateway HTTP processing?

The wasm-go SDK provides the framework to implement plugin lifecycle, configuration parsing, and HTTP processing hooks for the Higress gateway, enabling customized modification of HTTP requests and responses.

Can I use Higress WASM plugins to call external services and integrate with Redis?

Yes, you can use Higress WASM plugins to call external HTTP services and integrate with Redis, enabling richer gateway logic across local and staging environments.

What is the best way to compile a Higress Go plugin for deployment?

The best way to compile a Higress Go plugin is to build the Go module into a main.wasm file using Wasm-compatible build tags, making it ready for deployment within the Higress gateway.

Do I need a specific module structure to build WASM plugins for Higress?

Yes, you need a Go module that includes an init function for wrapper.SetCtx registration and a ParseConfig function, which are required to establish the plugin context and handle typed configuration.