Webapi
Go Lang Web Assembly bindings for DOM, HTML etc
Install / Use
/learn @gowebapi/WebapiREADME
WebAPI
Go Language Web Assembly bindings for DOM, HTML etc
WARNING: The current API is in very early state and should be consider to be expremental. There is upcommig changed like moving types into multiple packages.
This library is trying to be feature complete and up to date with current standard to let everything a browser having to offect be available in WebAssembly in a Go API accessable. To achive this most of the code is generated from WebIDL files. WebIDL files can be found in different standard making it easiser to be up to date than handwritten binding code.
Example:
func main() {
element := webapiall.GetWindow().Document().GetElementById("foo")
// NOTE: After Go 1.12, the extra call to JSValue() will no loger be needed
button := webapiall.HTMLButtonElementFromJS(element.JSValue())
button.SetValue("Hello World")
}
Roadmap
|Milestone|Status|Description| |----|----|----| |1|Ongoing|Be abto to read and and understand all of WebIDL syntax. Notible missing thing are namespace and union| |2|Planned|Easy up the syntax. Promise will be refactor and other places where simplifications can be done. Classes can be renamed like clipboard.ClipboardPermission to clipboard.Permission.| |3|Planned|API Stability with a predefined release schedule. Documentation and added examples|
More infomation of missing stuff can be found on the generator status info.
Related Skills
node-connect
338.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
xurl
338.0kA CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
frontend-design
83.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
338.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
