Mini-programs

Hand-drawn ground of diagonal sand and umber hatching with moss patches, crossed by a rugged terracotta wall enclosing six unequal hatched chambers, with pale strands passing through three narrow gaps.

Mini-programs are small apps that run only inside another app, called the host, and need no installation of their own. They are commonly 2 to 4 MB, and a super app, an app that bundles many services, is their usual host (web.dev, n.d.). The host lists them, reviews them and passes their requests to the phone, so security researchers compare it to an operating system (Yang et al., 2023e).

Two questions dominate work on them. One is whether a host can keep its mini-programs safely apart: studies keep finding flaws in how it checks them (Zhang et al., 2022b; Zhang et al., 2022a; Zhang et al., 2025c). The other is who sets the rules. An attempt to standardise mini-programs across hosts ended without a standard in 2026 (W3C, 2026b; W3C MiniApps Working Group, 2026b), and Apple now sets terms for hosts on the iPhone (Apple, n.d.a; Apple, n.d.d).

How a mini-program runs

Two layers that run in parallel

A typical mini-program splits its logic from its display. The logic layer runs the program’s JavaScript, and the view layer draws the pages, so that slow code does not hold up the drawing (W3C MiniApps Working Group, 2026d). WeChat’s programs have always used this two-thread model, with the view in a WebView, a browser component embedded in an app (Tencent, 2026c). Alipay documents the same split (Ant Group, 2024).

The result resembles web code but is not a web page. Pages are written in dialects based on subsets of HTML (W3C MiniApps Working Group, 2026d). In Alipay’s logic layer the browser’s window and document objects are missing, so libraries that need them, such as jQuery, do not work (Ant Group, 2024; Ant Group, 2021).

To use the phone’s own features, a program calls the host through a bridge between JavaScript and native code (W3C MiniApps Working Group, 2026d). Unlike a progressive web app (see Offline web apps), which runs in almost any browser, a mini-program is bound to its host platform (W3C MiniApps Working Group, 2026d).

Boxes: inside the host app, a mini-program holds a logic layer running JavaScript beside a view layer with pages in a WebView. An arrow goes from the logic layer to a bridge in the host app, and another from the bridge to the phone's features outside it.
A mini-program inside its host app. In WebView-based hosts such as WeChat, its logic and its pages run side by side, and it reaches the phone's features through the host's bridge. Schematic diagram drawn with AI.

What the host decides at run time

The host supplies the runtime, so it also decides when and how a program runs. In WeChat every program runs on a base library built into the app. The user’s WeChat version fixes that library’s version, and WeChat refuses to launch a program that needs a newer one (Tencent, 2026b).

WeChat also limits background work. It stops a program’s JavaScript after 5 seconds in the background and ends the program after 30 minutes of suspension (Tencent, 2026a).

Speed differs between phones. On iOS, the JavaScript engine that WeChat uses cannot compile code while it runs. WeChat’s documentation says this makes it slower than on other platforms (Tencent, 2026b).

Skyline

Skyline, a newer WeChat engine, moves drawing to its own thread. In a WebView, page logic, styling and layout share one thread, so heavy code can make the page lag. Skyline separates rendering from them and needs no new JavaScript engine for each page (Tencent, 2026c).

Hosts differ

The word covers different technologies from one host to the next. The table compares the hosts’ engines and reach as their operators or the World Wide Web Consortium (W3C), the web’s standards body, describe them.

HostHow programs runWhere they run or how many
WeChatJavaScriptCore and WKWebView on iOS; V8 and XWeb on Android (Tencent, 2026b)Roughly 4 million programs (Zhang et al., 2023b)
AlipayJavaScriptCore and WKWebView on iOS; ServiceWorker and Chromium WebView on Android (Ant Group, 2024)Also inside Taobao, DingTalk and other Alibaba apps (W3C MiniApps Working Group, 2026a)
BaiduNative and WebView rendering; V8 or JavaScriptCore logic (W3C MiniApps Working Group, 2026a)Baidu’s app and partner apps such as iQiyi and Bilibili (W3C MiniApps Working Group, 2026a)
TikTok MinisStandard web pages in TikTok’s WebView (TikTok for Developers, 2026)Inside TikTok’s app (TikTok for Developers, 2026)

TikTok Minis depart most from the original model. TikTok describes them as closer to ordinary web apps than to “traditional” mini apps. Like the others, they still depend on the host for login, payment and ads (TikTok for Developers, 2026).

Other messaging apps offer less or are smaller. LY Corporation reported 33,000 LINE MINI App services and 28.97 million monthly users in March 2026 (LY Corporation, 2026). Kakao gives business partners templates for a page inside KakaoTalk instead of a separate framework (Asia Economy, 2023).

Not every self-described super app hosts mini-programs. Of 30 platforms that security researchers collected under the label, 20 were confirmed to run third-party ones (Yang et al., 2023e). Grab, for example, mostly uses its own separate web views (Yang et al., 2023e).

Size and scale

Mini-programs are far smaller than native apps, which are installed on the phone directly. Across 1,333,308 WeChat programs the mean package was 1.61 MB, against 18.01 MB for a random sample of Android apps. Almost all (99.74%) were under 4 MB (Zhang et al., 2021a). Amazon’s program was 4.00 MB against 54.60 MB for its native app (Zhang et al., 2021a).

Alipay reached a large audience within months. It launched mini-programs in September 2018, and by January 2019 reported over 120,000 of them and 230 million daily active users (Alipay, 2019).

Distribution and review

Hosts act as app stores within an app. The stricter kind hosts the packages itself and vets them; a 2023 survey counted 15 such platforms (Yang et al., 2023e). WeChat’s audit can reject a program for what is in its code, for example a secret key left there (Baskaran et al., 2023).

In China the state also uses hosts as a checkpoint. Under a 2023 notice, apps and mini-programs that provide internet content must be filed with the authorities before release, and a mini-program files through its distribution platform (Roberts et al., 2024). In September 2026 the market regulator consulted on compliance guidelines for platforms whose mini-programs sell online (Digital Policy Alert, 2026).

Apple’s rules for hosts

Conditions on every host

Apple permits mini-programs on the iPhone but limits what a host may give them. Its guidelines allow mini apps written in HTML5 and JavaScript that are not part of the host’s own code (Apple, n.d.a). A host may not expose native features to them without Apple’s permission. It may not share data or privacy permissions without the user’s consent in each instance (Apple, n.d.a).

The host must also give Apple visibility and follow its payment rules. It must provide an index of its mini apps with links to all of them, and sales of digital goods must follow Apple’s purchase guideline (Apple, n.d.a).

The Mini Apps Partner Program

In November 2025 Apple cut its commission on purchases inside mini apps to 15% (Claburn, 2025). Members of its Mini Apps Partner Program earn 85% of qualifying sales. They must support Apple’s interfaces for age ranges and commerce (Apple, n.d.d).

Apple had earned little from WeChat’s mini apps. Purchases in them usually generated no commission, because creators sent users to outside payment systems (Lovejoy, 2025).

Opinions of the programme differ. The Register suggested it could help the model spread in the West. Tim Sweeney, head of Epic Games, said its programming-language restriction recalled the controversial terms on early iPhone apps (Claburn, 2025).

Tencent’s arrangement Contested: studies disagree on this

Reports disagree on whether Tencent, WeChat’s owner, has its own deal. The Register reported a parallel agreement between Apple and Tencent (Claburn, 2025). The site 9to5Mac corrected its own report to say there is no direct deal and that Tencent uses the general programme (Lovejoy, 2025).

The failed standard

No cross-host standard for mini-programs came into force. Vendors began working together at the W3C in May 2019 (W3C MiniApps Working Group, 2023). The working group closed on 26 August 2026, with its drafts for a manifest (a program’s description file) and packaging marked as discontinued (W3C MiniApps Working Group, 2026b; W3C MiniApps Working Group, 2026c; W3C, 2026b). In March 2026 the chair of the W3C work said one still could not build one mini app and deploy it on every platform (W3C, 2026a).

One obstacle was that too few hosts used the drafts. In 2025 the chair called several specifications close to stable, and named limited implementation as the biggest blocker (W3C MiniApps Ecosystem Community Group, 2025). Most runtimes rest on WebViews, which differ widely in features, speed and stability (W3C MiniApps Ecosystem Community Group, 2025).

Mini-programs also fit the web poorly. A host need not be a browser, and its programs need not be built from web resources, so web standards do not fully cover them (W3C MiniApps Working Group, 2023). The chair named two missing pieces: the browser’s document model, and the notion of an origin, which the web uses to tell one site from another (W3C, 2026a). A participant said of changing the security model: “We tried multiple times and failed” (W3C, 2026a).

Work continues on WebViews instead. The group’s retired white paper sends readers to the WebView Community Group (W3C MiniApps Working Group, 2026d). That group says WebViews are still far from standardisation, and it aims at a shared baseline of features that WebViews support (W3C WebView Community Group, 2025).

Security and privacy

Isolation and permissions Strong evidence: many studies agree on this

Hosts often fail to check which mini-program is asking for what. A host decides who may use sensitive features by web domain, program identity or granted capability. All three checks are often badly designed, and mix-ups between identities were widespread in all 47 hosts in one study. The consequences include manipulation of a user’s financial accounts and installed malware (Zhang et al., 2022b). A separate study of 9 hosts found at least one permission flaw in each (Zhang et al., 2022a).

Programs can also reach each other’s data. On WeChat, Alipay, TikTok and Baidu, one program’s WebView could read cookies that another had set. Cookies are small files that hold, for example, a login (see Web security) (Zhang et al., 2025c). Of 351,483 WeChat programs, 9,877 were open to an attack in which two programs work together (Zhang et al., 2025c).

The same host can behave differently on different devices. Between WeChat’s mobile and desktop versions, 109 programming interfaces existed on only some versions and 17 needed different permissions (Wang et al., 2023a).

The cookie-sharing count has limits. It comes from analysing code without running it, which its authors say guarantees neither completeness nor precision, and the attack needs two programs under the attacker’s control. The tests on Alipay, Baidu and TikTok were preliminary (Zhang et al., 2025c).

Leaked keys

Many mini-programs shipped with the secret key that proves who their developer is. Two large crawls of WeChat found very different rates: 40,880 of 3,450,586 programs in one and 36,425 of 110,993 in the other (Zhang et al., 2023b; Baskaran et al., 2023). Attackers can use a leaked key to hijack accounts or steal services (Zhang et al., 2023b). Secrets management covers the same problem in other software.

The counts themselves are firm, since both teams tested each key against WeChat’s live interface and report no false positives (Zhang et al., 2023b; Baskaran et al., 2023). The reach beyond WeChat is less clear. Leaks were confirmed on Baidu, where 112 of 10,000 programs had them (Zhang et al., 2023b; Baskaran et al., 2023). Alipay’s login uses no fixed secret, so it avoids this leak (Baskaran et al., 2023).

What was fixed

Fixes worked when the host enforced them. Hard-coding keys had been discouraged or even prohibited, but not enforced (Baskaran et al., 2023). WeChat then restricted how keys could be used and began rejecting new programs that contained one. The share of previously found keys that still worked fell from 99.6% in March 2023 to 16.5% in July (Baskaran et al., 2023). Tencent also released a new interface as a defence (Zhang et al., 2023b).

Developers fixed less themselves. Of 100 programs with leaked keys in 2021, 83 still held them in their latest versions in 2023 (Baskaran et al., 2023).

Other disclosures had partial results. Tencent rated the differences between its mobile and desktop interfaces as high severity and patched some (Wang et al., 2023a). The cookie-sharing flaws were acknowledged with two entries in the public register of vulnerabilities (Zhang et al., 2025c).

Login mistakes and data collection Weak evidence: few or small studies support this

Some programs misuse the login they borrow from the host. A 2026 study ran WeChat and Baidu programs to find misuse of OAuth, a protocol that lets one service act for a user of another. A manual check of its results found 3 false alarms in 100 WeChat programs and none in 50 Baidu ones (Zhang et al., 2026n). Baidu and Tencent confirmed a flaw in the platform’s cryptography. They said third-party programs were outside their direct response scope (Zhang et al., 2026n).

Programs do not always collect the data they declare. Among about 120,000 programs, 5.7% collected too much private data and 33.4% claimed to collect more than they did. The researchers told 2,282 developers and received 44 acknowledgments (Wang et al., 2024g). They note that their method cannot fully explore shopping programs and that their reference data may carry bias (Wang et al., 2024g).

Using mini-programs Weak evidence: few or small studies support this

People like mini-programs for services they use rarely. In a usability test with 10 WeChat users in Beijing, people valued not having to install them, which saves storage (Liu, 2018). When the small version made key content hard to find, they used the full app instead (Liu, 2018).

The weak points were finding a program and coming back to it. People found programs through friends and offline QR codes, because the list was hidden behind a swipe. Some programs lost a user’s progress when the user left to check a message (Liu, 2018). In 2019 WeChat replaced the half-screen list with a searchable window like a phone’s home screen (Lee, 2019).

Access for people with disabilities is doubtful. A W3C participant who tested popular Chinese mini apps reported that most were poor at accessibility (W3C, 2026a).

Effect on merchants Weak evidence: few or small studies support this

A mini-program can change what customers buy elsewhere. In 2,204 transaction records from one Chinese retailer, customers who adopted its WeChat mini-program channels bought less often in online marketplaces but bought a wider range of goods (Wang et al., 2024f).

Government mini-programs

Trust predicts whether people use government mini-programs. In a survey of users on WeChat, trust in the government, in WeChat and in the programs themselves mattered, as did convenience (Tang et al., 2021b). A survey in China’s Greater Bay Area found similar factors, including service quality and social influence (Lai & Marques, 2024). Government support unexpectedly weakened people’s intention, which its authors read as too much intervention (Lai & Marques, 2024).

Hosts reserve these programs for public bodies. On WeChat and Alipay, only government or utility units can register in the city-services category. Both apps also carried China’s COVID health codes and require a real name and national ID number (Zhong, 2022).

Further reading

Known gaps

What this article cannot tell you yet.

  1. No independent measurement compares how fast mini-programs start or render with native or web apps.
  2. Baidu’s and Douyin’s own runtime documentation is not covered; Baidu’s engine is described only from a W3C comparison table.
  3. Whether hosts fixed the identity-confusion, permission and cookie-sharing weaknesses was not established.
  4. The texts of China’s app-filing notice and of its market regulator’s draft guidelines for mini-program platforms are not covered.
  5. How dependence on a host affects developers, and how mini-programs affect small merchants, is not covered.
  6. What the studies of identity confusion, differing APIs, government mini-programs and retail sales report beyond their abstracts is not covered.

References

Solid source
Rated highly trustworthy by the research, and every passage taken from it was found in it.
Weak source
Rated low, or a passage taken from it was not found in it.
Medium trust
Rated medium by the research.
Not checked
Rated high, but its passages could not all be checked against it.
Show all 41 references