How Waft Revolutionizes AIoT Development with WebAssembly-Powered Framework

Waft is a high‑performance, dynamic, atomized service framework built on WebAssembly that enables cross‑platform AIoT application development, offering fast startup, multi‑language support, cloud‑edge collaboration, and flexible UI composition for diverse smart device scenarios.

Alibaba Terminal Technology
Alibaba Terminal Technology
Alibaba Terminal Technology
How Waft Revolutionizes AIoT Development with WebAssembly-Powered Framework

Waft is an AIoT‑focused application development framework that addresses inefficient user‑service connections by providing high performance, dynamic, atomized, cross‑platform, and multi‑language capabilities.

Background

Since the launch of Amazon Echo in 2014, smart speakers have become a new AIoT entry point, prompting major internet companies to enter the market. Devices now support voice interaction, music, alarms, smart home control, and more, but low‑end hardware poses performance challenges for applications.

Design Philosophy

Waft emphasizes atomized services for rapid, direct user intent fulfillment and flexible scene composition. By extracting core functions (e.g., parcel reminders, epidemic info) into lightweight cards or floating windows, user interaction paths are shortened.

Technical Architecture

Waft is built on WebAssembly, offering near‑native execution efficiency on low‑spec IoT devices. The container consists of three core modules:

Framework – manages cloud‑edge collaboration, package, scene, and resource handling.

Engine – handles runtime VM, DOM parsing, rendering, and drawing.

Native Services – provides high‑performance atomized services.

The rendering pipeline includes AST generation, VDOM tree creation, layout calculation via Yoga, and render tree composition.

Key Features

High performance with AOT mode, suitable for very low‑spec devices.

Atomized services enable “divide‑and‑conquer” core content and recombination into scene‑based applications.

Dynamic updates comparable to web‑level dynamism.

Cross‑platform support for Android, Linux, RTOS, macOS, with UI self‑adaptation.

Multi‑language development (AssemblyScript, Kotlin, Swift, Rust, C/C++, Golang).

Edge‑cloud collaboration: logic and task stacks run in the cloud, terminals handle rendering and interaction.

Development Tools

Waft provides an IDE plugin, CLI commands (e.g., waft init, waft dev, waft build), Chrome DevTools integration, and a low‑code platform for rapid card‑app creation.

Business Forms

Smart scenes – cloud‑orchestrated multi‑service flows (e.g., “Good morning”).

Single pages – cloud‑delivered data and templates for information display.

Light services – atomized functions with voice‑screen interaction.

Floating layers – non‑intrusive UI overlays.

Widgets – embedable content streams.

Performance and Outlook

Waft demonstrates fast cold start (~10 s) and hot start (~6 s) on 1 GB devices, with ongoing goals to achieve sub‑1.5 s cold start and 1 s hot start. Future work focuses on rendering engine optimization, broader multi‑language support, and expanded cloud rendering capabilities.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

frontendWebAssemblyFrameworkAIoTLow-Latency
Alibaba Terminal Technology
Written by

Alibaba Terminal Technology

Official public account of Alibaba Terminal

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.