WeChat Mini Program
WeChat Mini Program is a lightweight application format introduced by Tencent's WeChat platform, allowing users to access applications directly within WeChat without downloading or installing them. Operating within the WeChat ecosystem, it supports application scenarios including e-commerce, utilities, social networking, and services. Developers can use the official framework to build cross-platform interfaces and invoke native capabilities such as WeChat Pay, user authorization, and message notifications to deliver near-native interaction experiences.
Core Facts
WeChat mini-programs use a dual-thread architecture: the rendering layer uses a WebView thread to handle page rendering, and the logic layer uses a JsCore thread to execute JavaScript code, with the two communicating through WeChat's native layer.
微信小程序基于JavaScript/WXML/WXSS技术栈
WeChat Mini Games impose strict package size restrictions, with the main package not exceeding 4MB and the total subpackages not exceeding 20MB.
Timeline (last 90 days)
A mini-program must complete ICP filing before it can officially go live; entity verification and filing are hard thresholds that no tool can do on the user's behalf.
The standard development process for a WeChat mini-program includes: registering an account to obtain an AppID, downloading the developer tools, writing code locally, uploading the code, submitting for review, and publishing.
WeChat mini-program official trial scenarios fall into five categories: brand display, appointment services, event services, internal collaboration, and lightweight tools.
Since 2023, mini-programs must complete ICP filing before going live.
Users must complete on their own: clarifying requirements, registering a mini-program account, entity verification and filing, and review compliance.
The mini-program account always belongs to the user.
Requirements needing real-time communication, high-frequency interaction or high-performance rendering are not suitable for mini-programs.
Requirements suitable for mini-programs can be summarized as a combination of three things: "information display + form submission + simple queries."
Judgment formula: if the requirement can be broken down into a combination of information display + form submission + simple queries, it is suitable for a mini-program; if it requires real-time communication, high-frequency interaction, or high rendering performance, a different solution should be used.
Chat rooms, live-streaming co-hosting, and high-performance games are not part of the original design intent of mini-programs, and forcing them results in poor experience.
25 more timeline events
All Facts (20)
WeChat mini-programs use a dual-thread architecture: the rendering layer uses a WebView thread to handle page rendering, and the logic layer uses a JsCore thread to execute JavaScript code, with the two communicating through WeChat's native layer.
80%Verified微信小程序基于JavaScript/WXML/WXSS技术栈
80%VerifiedWeChat Mini Games impose strict package size restrictions, with the main package not exceeding 4MB and the total subpackages not exceeding 20MB.
75%VerifiedWeChat Mini Programs officially launched in 2017.
75%VerifiedWeChat Mini Programs by default only allow network requests to be made to legitimate domain names configured in the WeChat Public Platform backend, and the target URL must use the HTTPS protocol with a registered domain name.
70%VerifiedWeChat Mini Program code packages have a size limit of 2MB.
70%VerifiedService categories such as medical consultation, financial management, and education training have explicit qualification requirements, and without the corresponding qualifications, review cannot be passed.
65%VerifiedWeChat Mini Programs under individually certified entities can now also activate WeChat Pay (virtual payment).
65%VerifiedThe WeChat Mini Program login process follows a variant of OAuth 2.0's authorization code flow: the front end calls wx.login() to obtain a temporary login credential code, and the server uses the code along with the AppID and AppSecret to exchange for an openid and session_key from WeChat's server.
65%VerifiedGDScript supports publishing to WeChat Mini Programs and Web platforms, whereas C# has limitations on publishing to certain platforms.
65%Unverified微信小程序上传后可以先设置为体验版进行测试,确认无问题后再提交审核
95%Unverified微信小程序的AppID需要从微信公众平台的开发管理中获取
95%Unverified在小程序中直接修改数组(如push())不会触发数据响应机制,因为setData需要接收新的引用才能检测到变化
95%Unverified小程序中Page()构造器用于定义页面级逻辑,Component()构造器用于组件化开发,两者的根本差异在于Page是路由的终点,Component是可组合的积木
95%UnverifiedVibe Coding开发微信小程序的流程分为三步:UI设计、前端开发和后端功能实现
90%Unverified小程序环境不支持Cookie机制
90%Unverified微信小程序原生提供了wx.getLocation接口获取用户位置
90%Unverified微信小程序自2017年上线以来,已成为中国移动互联网最重要的轻应用分发平台之一
90%Unverified微信小程序基于JavaScript/TypeScript技术栈,配合云开发(CloudBase)可快速实现题库存储、用户数据同步等后端功能
90%Unverified微信小程序累计用户超过1000即可开通流量主资格
85%