Create features
Features serve as an authorization mechanism that controls access to specific JSAPIs. To use a JSAPI, you must first bind it to a feature.
This topic describes how to create features in the Mini Program platform.
Prerequisites
Before you begin, make sure that the following requirements are met:
- The JSAPIs that are used to construct your feature are created. The JSAPI-related capabilities are implemented and injected on the native side of the super app.
- Only workspace admins can create features.
Procedure
To create a feature, perform the following steps:
- Log in to Mini Program Platform.
- In the left navigation panel, click Features to navigate to the Features page.
- On the Features page, click + Add Feature.
- On the Add New Feature page, configure the following parameters:
- Feature Name: the name of the feature.
- Allow activation access by: Specify whether the feature can be directly accessed by mini programs. Options:
- Direct access: Mini programs can directly access the feature.
- Activation needed: Mini programs must apply for activation before they can access the feature.
- Feature Description: Enter the description of the feature.
- Belongs to which workspace: Specify the workspace to which the feature belongs.
- All mini programs can view this feature: Specify whether the feature can be viewed by all mini programs in the workspace.
- On: All mini programs in the workspace can view this feature.
- Off: Only mini programs with which the feature is shared can view this feature. For more information, see Share features.
- Configure JSAPIs of the feature. In the JSAPI area. Select the JSAPIs that you want to add to the feature in the left column. Then click
to add the JSAPIs to the right column to add them to the feature.

Figure 1. Create a feature
Note: To remove a JSAPI from the feature, select it in the right column and click
.
- Click Confirm. The feature is successfully created. After the feature is created, developers can add the feature to mini programs. For more information, see Add features.

