godot-webview

The addon that brings HTML rendering to Godot

Download the demo

a shadertoy rendered at 4K on a MeshInstance3D plane inside Godot 4.4

native browser

This webview uses Chromium and produces a smooth 4k@60hz presentation that immediately responds to user interaction, no matter what kind of HTML you throw at it. This includes WASM, WebGL, etc.

Supported platforms

Windows, MacOS, Linux.
Vulkan, Metal.

See: Downloads

Easy installation

Distributed as a GDExtension, unpacking/extracting the addon is all that is required.

Extensive API

Programmatically control the webview; browser navigation, user agent, page zoom, change resolution, scrollbar visibility, and more.

the webview node

Features

  • Render HTML without stutter/lag
  • Load by URL, string, or from the Godot resource system (i.e res://godot/web/index.html)
  • Create/destroy webviews, at runtime
  • Hardware accelerated
  • Apply the webview to any mesh or fullscreen with TextureRect
  • Transparency
  • Forward keyboard events, sequences, mouse movements, and clicks
  • JavaScript <-> GDScript communication
  • Configurable persistant storage (cookies, cache)
  • Sound 🔊

Showcase

thumbnail

Transparency

RGBA8 texture rendered at 4k. Transparency is achieved via CSS.

Ubuntu 22.04 Vulkan, amd64
thumbnail

Mouse & Keyboard

Forwarding mouse & keyboard events.

Ubuntu 22.04 Vulkan, amd64
thumbnail

Stress test

20 webviews each rendered at 2k with a variety of websites.

Windows 10 Vulkan, amd64
thumbnail

QtQuick

Rendering a QtQuick (QML) scene.

Mac M1 mini Metal, arm64

Benefits

Web frameworks

Leverage existing web frameworks like React, VueJS for UI.

Fast development cycle

Creating UI components with Godot is generally time consuming, and requires specific knowledge.

Accessible

HTML is straightforward technology - easy to work with.

Existing tools

Use established tools for web development.

try the demo

Get started