
Product
A Fresh Look for the Socket Dashboard
We’ve redesigned the Socket dashboard with simpler navigation, less visual clutter, and a cleaner UI that highlights what really matters.
wasmcv.org/x/wasm/cv
Generated Go bindings for wasmCV WebAssembly interfaces to computer vision systems.
See https://github.com/wasmvision/wasmcv for information about wasmCV.
This example Go module exports a process()
function to the WASM host application. When the host calls the processor, it passes in the wasmCV image Mat
to be processed. The wasmCV module then calls functions on that Mat
which are handled by the host application, by calling OpenCV to actually perform the operations.
package main
import (
"github.com/hybridgroup/mechanoid/convert"
"wasmcv.org/x/wasm/cv/mat"
)
//go:wasmimport hosted println
func println(ptr, size uint32)
//export process
func process(image mat.Mat) mat.Mat {
println(convert.StringToWasmPtr("Cols: " +
convert.IntToString(int(image.Cols())) +
" Rows: " +
convert.IntToString(int(image.Rows())) +
" Type: " +
convert.IntToString(int(image.Type()))))
return image
}
func main() {}
Install the wasmcv
package into your Go package:
go get wasmcv.org/x/wasm/cv
You can then compile this module using the TinyGo compiler.
tinygo build -o processor.wasm -target=wasm-unknown processor.go
Note that the wasm-unknown
target can be used with wasmCV to produce very lightweight guest modules. The example above compiles to around 31k, including debug information.
-rwxrwxr-x 1 ron ron 31248 sep 11 11:00 processor.wasm
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
We’ve redesigned the Socket dashboard with simpler navigation, less visual clutter, and a cleaner UI that highlights what really matters.
Industry Insights
Terry O’Daniel, Head of Security at Amplitude, shares insights on building high-impact security teams, aligning with engineering, and why AI gives defenders a fighting chance.
Security News
MCP spec updated with structured tool output, stronger OAuth 2.1 security, resource indicators, and protocol cleanups for safer, more reliable AI workflows.