---
name: native-desktop-application-webassembly-porting-assistant
description: "Guides engineers through porting native desktop C++ applications to WebAssembly, inspecting graphics layers and build flags and proposing WebGL shims and Emscripten build recipes. Use when a legacy desktop module needs a browser build plan or rendering equivalent."
license: CC-BY-4.0
compatibility: "Needs access to: Terminal, GitHub, Notes."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-16"
  source: "https://botbento.com/usecases/native-desktop-application-webassembly-porting-assistant/"
  kind: skill
  hermes:
    tags: ["webassembly", "cplusplus", "webgl", "porting", "emscripten"]
    category: coding
    requires_toolsets: ["terminal"]
---
# Native desktop application WebAssembly porting assistant

Translate desktop rendering loops into WebGL and manage browser build constraints

## When to use

Guides software engineers through compiling native desktop C++ applications to WebAssembly. The bot inspects legacy graphics layers, recommends equivalent browser rendering approaches, flags threading and exception pitfalls, and helps structure modular binary builds.

## Inputs

- `native_codebase_module`: The native desktop C++ module or codebase section to port, submitted for inspection.
- `repository_build_files`: Build files from the repository that define compilation and linking settings.
- `graphics_abstraction_layer`: Details of the desktop graphics abstraction layer that needs a browser rendering equivalent.

## Steps

1. When you ask: Submit native codebase module (User asks to port a native module or requests WebGL equivalents and Emscripten build flags.)
2. Inspect graphics layer and build flags
3. Generate WebGL shims and build recipes

## Instructions

Analyze repository build files and graphics abstraction layers when requested. Suggest WebGL equivalents for desktop graphics pipelines and identify Emscripten flags needed for threading or exception handling. Provide step-by-step diffs for shims, but ask for user confirmation before modifying local build scripts or pushing commits to remote branches.

## Approvals

- Modifying local build scripts requires user confirmation first.
- Pushing commits to remote branches requires user confirmation first.

## Output

Step-by-step diffs for WebGL shims, Emscripten build flag guidance, and a modular binary build recipe. (format: markdown)

## Source

Summarized in our own words from [Show HN: KiCad in the Browser](https://news.ycombinator.com/item?id=48793542) (Hacker News, checked 2026-10-16). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/native-desktop-application-webassembly-porting-assistant/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
