add WASM browser module and browser demo

This commit is contained in:
2026-02-19 11:41:00 -03:00
parent e7ff1eec81
commit e19797b4e4
13 changed files with 3371 additions and 0 deletions

16
browser/host/package.json Normal file
View File

@@ -0,0 +1,16 @@
{
"name": "@zig-p2p/browser-host",
"version": "0.1.0",
"description": "Browser host for zig-p2p WASM module",
"type": "module",
"main": "zig-p2p.js",
"exports": {
".": "./zig-p2p.js"
},
"files": [
"zig-p2p.js",
"platform-env.js",
"webrtc-host.js",
"signaling.js"
]
}