Nim Bindweb-Nim Browser IDE
Nim → C → WASM → DOM
Build & Run
-- Select example --
DOM Manipulation
Canvas Drawing
Mouse Input
Export HTML
loading…
v1.0 | Nim 2.2.4 + Nim Bindweb
Nim Code Editor
import bindweb, bindwebtypes import apis/handles, apis/dom, apis/system proc main() = let body = getBody() let myDiv = createElement("div") setAttribute(myDiv, "style", "padding: 30px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; font-family: sans-serif; text-align: center; border-radius: 12px; margin: 20px;") setInnerText(myDiv, "Hello from Nim + Nim Bindweb!") appendChild(body, myDiv) let subtitle = createElement("p") setAttribute(subtitle, "style", "color: #ccc; font-size: 14px; text-align: center;") setInnerText(subtitle, "This DOM was created by Nim code compiled to WASM") appendChild(body, subtitle) setTitle("Nim Bindweb-Nim Demo") flush() main()
Live DOM Output
Build Console
[waiting for Build & Run...]