Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serv WASM Plugins Repository

This repository hosts a library of pre-compiled, production-ready WASM filter/transform plugins for ServGate and ServQueue.

Anyone can fork this repository to customize and build their own WebAssembly plugins.


Plugins Library

  • jwt-auth: Asymmetric RS256/HS256 JWT validation and claims header injection.
  • pii-scrubber: Real-time regex scanner that redacts Credit Cards, SSNs, and emails from request/response bodies.
  • json-to-proto: Inline message transcoder converting JSON message payloads into Protobuf format.
  • llm-semantic-router: Routes prompt requests dynamically to optimal LLM endpoints based on complexity.
  • header-enrichment: Automatically injects geo-IP metadata, processing timestamp headers, and instance operational IDs.
  • api-key-auth: Lightweight API key validation filter protecting edge routes.
  • xml-to-json: Converts legacy XML message payloads into JSON dynamically in queue streams.
  • anomaly-detector: Evaluates telemetry payload metrics and halts message pipeline on safety violations.
  • csv-to-parquet: Transforms uploaded raw CSV sheets into columnar JSON-schema formats near the S3 storage boundary.

How to Build

We compile these plugins targeting WebAssembly WASIP1.

Build via standard Go:

# Build jwt-auth
GOOS=wasip1 GOARCH=wasm go build -o jwt-auth.wasm ./plugins/jwt-auth/main.go

# Build pii-scrubber
GOOS=wasip1 GOARCH=wasm go build -o pii-scrubber.wasm ./plugins/pii-scrubber/main.go

Build via TinyGo:

tinygo build -o jwt-auth.wasm -target=wasi ./plugins/jwt-auth/main.go

About

Pre-compiled, production-ready WebAssembly (WASM) filter and transform plugins for ServGate and ServQueue

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages