# plug-in
Development and Use of Plug-ins Small Program Base Library Version 1.9.6 Start supporting. (If the plug-in contains pages, the base library version is required 2.1.0 。)
Plug-ins are for a group of js Interface,Custom Components Or page encapsulation, used to embed into the Mini Program for use. Plug-ins do not run independently and must be embedded in other Mini Programs to be used by usersAnd third-party Mini Program in the use of plug-ins, can not see the plug-in code. Therefore, plug-ins are suitable for encapsulating their own functions or services and providing them to third-party Mini Programs for display and use.
Plug-in developers can write a plug-in like a Mini Program and upload the code, after the plug-in is released, other Mini programs can call it. The Mini Program platform will host the plug-in code, and when other Mini Program calls, the uploaded plug-in code will be downloaded and run with the Mini Program.
As opposed to ordinary js Files or custom components, plugins have greater independence and have independent API Interface, list of domain names, etc., but at the same time there will be some restrictions such as some API Unavailable or limited functionalityThere are also individual special interfaces that, although not directly invoked by plug-ins, can be used Plugin Function Page Indirectly achieved.
At the same time, the framework protects the Mini Program and each plug-in used by the Mini Program with data security, ensuring that they cannot steal data from any other party (unless the data is actively passed to another party).
For plugin developers, please read the Development plug-in chapterFor plugin users, please read Using plugins Chapters.