Welcome to Label Studio Custom Scripts! This repository contains custom scripts
designed to extend the functionality of Label Studio, a powerful data labeling tool. These scripts can be used to automate workflows, integrate with external tools, and customize the labeling process according to your needs.
Whether you're building custom data processors, integrations, or UI components, you'll find the necessary resources and examples in this repo to get started.
For detailed documentation and guides on how to use and extend Label Studio with custom scripts, visit the official Label Studio Scripts Documentation.
This repository follows a clear folder structure to organize the various custom scripts and configuration files:
label-studio-custom-scripts/
├── custom-scripts/
│ ├── script1/
│ │ ├── data.{json|mp3|mp4}
│ │ ├── script.js
│ │ └── view.xml
│ ├── script2/
│ │ ├── data.{json|mp3|mp4}
│ │ ├── script.js
│ │ └── view.xml
│ └── ...
└── manifest.json
/script1
: Contains all the files to document a custom script.- Each script has a
script.js
andview.xml
file that define the logic and UI of the script.
- Each script has a
/script.js
: Contains the actual custom scriptjavascript
file that can be embedded in the Label Studio code editor./view.xml
: Stores an example of a<View>
that will work along the script./data.{json|mp3|mp4}
: Stores an example of the data that can be used along with the script.manifest.json
: This file lists the scripts, their metadata (title, description, etc.), and their paths for easy integration with Label Studio.
After your script gets merged you will be able to find it in your project's Labeling Interface
We welcome contributions! Whether it's bug fixes or new scripts, feel free to open a pull request. Here's how you can get started:
- Create a new branch for your feature or bugfix.
- Make your changes and ensure that they adhere to the project's file structure and guidelines. You need to create a folder with the name using underscores (
path
) of your script and add aview.xml
and ascript.js
file minimum. - Register the script in the
manifest.json
adding the following information:[ { "title": "Your script title", "description": "Your script description", "path": "exact_name_of_the_script_folder", // `script1` as per the File Structure example "private": false // whether you want to hide it in the "Insert Script" dropdown in the Configurator code tab } ]
- Test your changes to ensure everything works as expected.
- Submit a pull request explaining the changes you made.
Please make sure that your contributions follow the existing code style and structure.
This software is licensed under the Apache 2.0 LICENSE © Heartex. 2020-2025
If you have any questions or need assistance, feel free to reach out through issues or discussions. We look forward to your contributions!