A collection of simple WebGPU examples can be found at webgpu.github.io. They should work in the latest WebKit builds and Safari Technology Preview release. The full specification is currently a W3C Candidate Recommendation and WebKit's implementation is aligned with it.
Make sure you are on a system with WebGPU enabled. WebGPU is enabled in Safari Technology Preview and Safari 26.0 beta.