# Mini-Program Plugin
Feature Background
Developers can declare the plugin code to be introduced within the Mini-Program code. When compiling with the Developer Tools, the Developer Tools will fetch the plugin code from the server and package it together for compilation. The plugin feature can only be used in environments where Base Library Version ≥ 2.11.1 and SDK Version ≥ 2.34.0.
# 1. Feature Description
A Mini-Program plugin encapsulates a set of JS interfaces, Custom Components, or pages. Compared to ordinary JS files or custom components, plugins possess stronger independence. However, plugins cannot be called directly; they must be embedded within a Mini-Program to be used by end-users and cannot run independently. When a third-party Mini-Program uses a plugin, it cannot view the plugin's code. Therefore, plugins are suitable for encapsulating your own features or services and providing them to third-party Mini-Programs for display and use via the plugin form.
Developers can write and upload plugins similar to developing a Mini-Program. After a plugin is published, FinClip hosts the plugin code. When other Mini-Programs call the plugin, the uploaded plugin code is downloaded and runs alongside the Mini-Program.
Within the FinClip Mini-Program ecosystem, we employ sandbox technology to provide data security protection for both the Mini-Program and each plugin it uses, ensuring that none can steal data from any other party (unless data is actively passed to another party). Domains that need to be requested by the plugin must also be configured on the "Domain Settings" page. Plugins can also call all FinClip API functionalities.
# 2. Operation Instructions
The use of Mini-Program plugins involves two parts: developers developing plugins, and Mini-Program developers using plugins. If you need to upload an existing plugin to the platform, please follow the steps below.

If developers need to upload their own plugins, they must navigate to the "Mini-Program Management - Mini-Program Plugins" page, click the "Add Plugin" button, and enter the plugin name, avatar, and description information respectively to complete the plugin creation.

After creating the plugin, click "Update Plugin" on the right, enter the plugin version number, update log, and upload the code package respectively to complete the plugin upload.
Please Note
To obtain further information regarding Mini-Program plugin usage, you can also click Development - Guide - Mini-Program Plugin for details.
# 3. Feature and Environment Comparison
The current feature may have differences and limitations across different environments. Please refer to the table below for specifics. To learn more about the differences and descriptions between versions, click here (opens new window).
| Community Edition Environment | SaaS Environment | Enterprise Edition (Annual Subscription or One-time Purchase) | |
|---|---|---|---|
| Mini-Program Plugin | ✅ | ✅ | ✅ |