explaingit

apache/incubator-weex

13,632C++Audience · developerComplexity · 4/5LicenseSetup · hard

TLDR

Weex is a framework for building Android, iOS, and mobile web apps from a single codebase using Vue-like syntax, rendering native components on device rather than a web view for a more app-like feel.

Mindmap

mindmap
  root((weex))
    What It Does
      Cross-platform apps
      Single codebase
      Native rendering
    Platforms
      Android
      iOS
      Mobile web
    Tech Stack
      Vue-like syntax
      JavaScript
      C++ runtime
    Getting Started
      CLI tool
      Playground app
      Platform toolchains
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Build a mobile app that runs on Android, iOS, and mobile web from one codebase using Vue-like syntax.

USE CASE 2

Preview existing Weex component examples on a real device using the Weex Playground app for Android or iOS.

USE CASE 3

Generate a new Weex project template with the CLI tool and start building a cross-platform mobile interface.

Tech stack

C++JavaScriptVueAndroid SDKiOS SDK

Getting it running

Difficulty · hard Time to first run · 1h+

Building the SDK from source requires the Android or iOS development toolchain installed separately, platform SDKs are mandatory.

Apache License, free to use for any purpose including commercial projects, with attribution required.

In plain English

Weex is a framework for building mobile apps that run on Android, iOS, and mobile web browsers from a single codebase. The idea is that instead of writing separate apps for each platform, you write your interface once and Weex handles making it work across all three. It was created originally inside Alibaba and later donated to the Apache Software Foundation. Developers write their app interfaces using a syntax similar to Vue, a popular JavaScript-based tool for building web pages. Weex then takes that code and renders it using native components on Android and iOS rather than inside a web view. This means the app can look and feel more like a native app than a website wrapped in a mobile shell. To get started, you install a command-line tool, run a setup command in an empty folder, and Weex generates a simple working project for you. You can also try out existing examples using the Weex Playground app available for both Android and iOS. Building the full SDK from source requires setting up the Android or iOS development environment separately, as the project depends on those platform toolchains. The project is part of the Apache incubator, meaning it is going through the process of becoming a fully graduated Apache project. Community discussion happens on a mailing list, with additional support channels on Stack Overflow and regional forums. Note that the mobile web rendering component is maintained by a third party rather than the core Weex team.

Copy-paste prompts

Prompt 1
I want to build a simple app using Weex that runs on both Android and iOS. Walk me through creating a project from scratch with the CLI tool.
Prompt 2
Help me convert a Vue component into a Weex-compatible component that renders native mobile elements instead of HTML.
Prompt 3
I'm getting a build error when compiling the Weex Android SDK from source. What development environment and toolchain do I need to set up first?
Open on GitHub → Explain another repo

← apache on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.