{"id":19635944,"url":"https://github.com/talkuhulk/aidb-webassembly-demo","last_synced_at":"2026-02-26T19:05:26.020Z","repository":{"id":154220828,"uuid":"631776348","full_name":"TalkUHulk/aidb-webassembly-demo","owner":"TalkUHulk","description":"ai.deploy.box  webassembly demo","archived":false,"fork":false,"pushed_at":"2025-02-11T09:52:52.000Z","size":67150,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-11T10:41:05.497Z","etag":null,"topics":["3ddfa","movenet","ncnn","pfld","scrfd","wasm","webassembly","yolov7","yolov8","yolox"],"latest_commit_sha":null,"homepage":"https://www.hulk.show/aidb-webassembly-demo/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TalkUHulk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-24T03:07:11.000Z","updated_at":"2024-12-13T12:22:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"23794095-d555-474c-bd2e-17d793b8eca5","html_url":"https://github.com/TalkUHulk/aidb-webassembly-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TalkUHulk%2Faidb-webassembly-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TalkUHulk%2Faidb-webassembly-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TalkUHulk%2Faidb-webassembly-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TalkUHulk%2Faidb-webassembly-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TalkUHulk","download_url":"https://codeload.github.com/TalkUHulk/aidb-webassembly-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240941489,"owners_count":19882062,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["3ddfa","movenet","ncnn","pfld","scrfd","wasm","webassembly","yolov7","yolov8","yolox"],"created_at":"2024-11-11T12:27:40.872Z","updated_at":"2026-02-26T19:05:20.968Z","avatar_url":"https://github.com/TalkUHulk.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"## aidb-webassembly-demo\n\n🐶[Try Demo](https://www.hulk.show/aidb-webassembly-demo/)\n\n## build and deploy\n\nPrior to starting, make sure you have `cmake` installed.\n\n* 1. Clone ai.deploy.box\n\n```\nhttps://github.com/TalkUHulk/ai.deploy.box.git\ncd ai.deploy.box\nmkdir build \u0026\u0026 cd build\n```\n\n* 2. Install emscripten\n\n```shell\ngit clone https://github.com/emscripten-core/emsdk.git\ncd emsdk\n./emsdk install latest\n./emsdk activate latest\n\nsource emsdk_env.sh\n```\n\n* 3. Build\n\n```shell\ncmake .. -DCMAKE_TOOLCHAIN_FILE=$EMSDK/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DWASM_FEATURE=basic -DENGINE_NCNN_WASM=ON -DENGINE_MNN=OFF -DENGINE_ORT=OFF -DENGINE_NCNN=OFF -DENGINE_TNN=OFF -DENGINE_OPV=OFF -DENGINE_PPLite=OFF\nmake -j4\n\ncmake .. -DCMAKE_TOOLCHAIN_FILE=$EMSDK/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DWASM_FEATURE=simd -DENGINE_NCNN_WASM=ON -DENGINE_MNN=OFF -DENGINE_ORT=OFF -DENGINE_NCNN=OFF -DENGINE_TNN=OFF -DENGINE_OPV=OFF -DENGINE_PPLite=OFF\nmake -j4\n\ncmake .. -DCMAKE_TOOLCHAIN_FILE=$EMSDK/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DWASM_FEATURE=threads -DENGINE_NCNN_WASM=ON -DENGINE_MNN=OFF -DENGINE_ORT=OFF -DENGINE_NCNN=OFF -DENGINE_TNN=OFF -DENGINE_OPV=OFF -DENGINE_PPLite=OFF\nmake -j4\n\ncmake .. -DCMAKE_TOOLCHAIN_FILE=$EMSDK/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DWASM_FEATURE=simd-threads -DENGINE_NCNN_WASM=ON -DENGINE_MNN=OFF -DENGINE_ORT=OFF -DENGINE_NCNN=OFF -DENGINE_TNN=OFF -DENGINE_OPV=OFF -DENGINE_PPLite=OFF\nmake -j4\n```\n\n* 4. Deploy\n\nClone the project, create a folder named `aidb` in the root project directory and copy the following files into it:\n\n```\n# deploy files\naidb/\n├── aidb-wasm-basic.js\n├── aidb-wasm-basic.wasm\n├── aidb-wasm-simd.js\n├── aidb-wasm-simd-threads.js\n├── aidb-wasm-simd-threads.wasm\n├── aidb-wasm-simd-threads.worker.js\n├── aidb-wasm-simd.wasm\n├── aidb-wasm-threads.js\n├── aidb-wasm-threads.wasm\n└── aidb-wasm-threads.worker.js\n```\n\nRun local server:\n\n```\npython3 server.py\n```\n\n* 5. Access local server(chrome as a example)\n\n```\n# launch chrome browser, enter following command to address bar and press ENTER:\nchrome://flags/#unsafely-treat-insecure-origin-as-secure\n\n# enter following keyword to \"Search flags\" and press ENTER:\n\"insecure origins\"\nyou will find \"Insecure origins treated as secure\" key\n\n#enter local server url and click right side dropdown list, select \"Enabled\"\nurl example: http://localhost:12580\n\n#relaunch chrome browser and access http://localhost:12580.\n```\n\n## Reference\n\n感谢[nihui](https://github.com/nihui)大佬～\n\n[跑在浏览器里的ncnn和webassembly](https://zhuanlan.zhihu.com/p/305601273)\n\n[ncnn-webassembly-aidb-wasm](https://github.com/nihui/ncnn-webassembly-aidb-wasm)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalkuhulk%2Faidb-webassembly-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftalkuhulk%2Faidb-webassembly-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalkuhulk%2Faidb-webassembly-demo/lists"}