gitmyhub

uni-app

Objective-C ★ 42k updated 1d ago

A cross-platform framework using Vue.js

Uni-app lets you write one Vue.js codebase and publish it as an iOS app, Android app, website, and WeChat or TikTok mini-program all at once, without maintaining separate projects for each platform.

Vue.jsTypeScriptJavaScriptSwiftKotlinHBuilderXsetup: moderatecomplexity 3/5

Uni-app is a cross-platform frontend development framework from DCloud, a Chinese company. It lets developers write a single codebase using Vue.js and deploy the result to iOS, Android, the web (as a responsive site), and a wide range of Chinese mini-program platforms simultaneously — including WeChat Mini Programs, Alipay Mini Programs, Baidu, ByteDance (Douyin/TikTok), Feishu (Lark), QQ, Kuaishou, and others.

The problem it solves is fragmentation. In the Chinese mobile ecosystem, "mini programs" — lightweight apps that run inside super-apps like WeChat rather than as standalone downloads — are enormously popular. Each platform has its own SDK and slightly different development rules. Without a tool like uni-app, a developer who wants to reach users on both WeChat and Douyin has to maintain two entirely separate codebases. Uni-app provides a single abstraction layer on top.

Here is how it works: developers write Vue.js components using a custom set of base components and APIs that uni-app defines. When building for a target platform, uni-app compiles the code appropriately — generating native iOS (Swift) or Android (Kotlin) code, JavaScript for web, or the specific format each mini-program platform expects. A newer variant called uni-app x uses a TypeScript-like language called UTS that compiles directly to Kotlin on Android, Swift on iOS, ArkTS on Harmony (Huawei's OS), and JavaScript for web and mini-programs — aiming for closer-to-native performance rather than a WebView-based approach.

You would use uni-app if you are building a consumer-facing application that needs to reach users both as a native mobile app and within major Chinese super-app ecosystems from a single shared codebase.

The stack is Vue.js for application logic, with a custom compiler and the HBuilderX IDE developed by DCloud as the recommended development environment.

Where it fits