Skip to content

Commit 557e643

Browse files
smohan123hlomziknass600caitlinwheeless
authored
Sample labeling config for pausing annotators (#3)
Co-authored-by: Andrew <[email protected]> Co-authored-by: Ignacio Velazquez <[email protected]> Co-authored-by: caitlinwheeless <[email protected]>
1 parent 81e101b commit 557e643

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+1245
-688
lines changed

.DS_Store

-10 KB
Binary file not shown.

.github/PULL_REQUEST_TEMPLATE.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
## Description
2+
3+
<!-- A brief description of what this PR accomplishes. Include any screenshots if helpful. -->
4+
5+
## Related Issues
6+
7+
<!-- If this PR fixes an issue, link it here (e.g. Fixes #123). -->
8+
9+
## Checklist
10+
11+
- [ ] I have tested the changes in the Label Studio Labeling Config.
12+
- [ ] I have added the `plugin.js` file.
13+
- [ ] I have added the `view.xml` file.
14+
- [ ] My code follows the guidelines stated in the README.md.
15+
16+
<!-- Thanks for contributing to Awesome Label Studio Configs! -->
+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Validate Plugins
2+
3+
on:
4+
push:
5+
branches: ["**"]
6+
pull_request:
7+
branches: ["**"]
8+
9+
jobs:
10+
validate-structure:
11+
name: Validate File Structure
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout Repository
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 20
21+
22+
- name: Run Folder Structure Check
23+
run: node validate-structure.mjs
24+
linting:
25+
name: Linting
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
31+
- name: Setup Biome
32+
uses: biomejs/setup-biome@v2
33+
with:
34+
version: latest
35+
36+
- name: Run Biome
37+
run: biome ci .

README.md

+79-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,79 @@
1-
# label-studio-custom-scripts
1+
![Label Studio Plugins](docs/banner.png)
2+
3+
# Label Studio Plugins
4+
5+
Welcome to **Label Studio Plugins**! This repository contains `plugins` designed to extend the functionality of
6+
[Label Studio](https://labelstud.io), a powerful data labeling tool. These plugins can be used to automate workflows,
7+
integrate with external tools, and customize the labeling process according to your needs.
8+
9+
Whether you're building custom data processors, integrations, or UI components, you'll find the necessary resources and
10+
examples in this repo to get started.
11+
12+
> **Note**: Plugins are an `Enterprise` feature and require a [Label Studio Enterprise](https://humansignal.com/pricing/) subscription to use.
13+
14+
## Official Documentation
15+
16+
For detailed documentation and guides on how to use and extend Label Studio with plugins, visit the official
17+
[Label Studio Plugins Documentation](https://docs.humansignal.com/guide/plugins).
18+
19+
## File Structure
20+
21+
This repository follows a clear folder structure to organize the various plugins and configuration files:
22+
23+
```bash
24+
label-studio-plugins/
25+
├── src/
26+
│ ├── plugin1/
27+
│ │ ├── data.{json|mp3|mp4}
28+
│ │ ├── plugin.js
29+
│ │ └── view.xml
30+
│ ├── plugin2/
31+
│ │ ├── data.{json|mp3|mp4}
32+
│ │ ├── plugin.js
33+
│ │ └── view.xml
34+
│ └── ...
35+
└── manifest.json
36+
```
37+
38+
- **`/plugin1`**: Contains all the files to document a plugin.
39+
- Each plugin has `plugin.js`, `view.xml`, and `data.json` files that define the logic, UI, and data of the plugin.
40+
- **`/plugin.js`**: Contains the actual `javascript` plugin file that can be embedded in the Label Studio code editor.
41+
- **`/view.xml`**: Stores an example of a `<View>` that will work along the plugin.
42+
- **`/data.{json|mp3|mp4}`**: Stores an example of the data that can be used along with the plugin.
43+
- **`manifest.json`**: This file lists the plugins, their metadata (title, description, etc.), and their paths for easy integration with Label Studio.
44+
45+
## Usage
46+
47+
After your plugin gets merged you will be able to find it in your project's **Labeling Interface**
48+
49+
![Labeling Interface](docs/labeling-interface.png)
50+
51+
## Contributing
52+
53+
We welcome contributions! Whether it's bug fixes or new plugins, feel free to open a pull request. Here's how you can get started:
54+
55+
1. **Create a new branch** for your feature or bugfix.
56+
2. **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 plugin and add a `view.xml` and a `plugin.js` file minimum.
57+
3. **Register the plugin** in the `manifest.json` adding the following information:
58+
```json
59+
[
60+
{
61+
"title": "Your plugin title",
62+
"description": "Your plugin description",
63+
"path": "exact-name-of-the-plugin-folder", // `plugin1` as per the File Structure example
64+
"private": false // whether you want to hide it in the "Insert Plugin" dropdown in the Configurator code tab
65+
}
66+
]
67+
```
68+
4. **Test your changes** to ensure everything works as expected.
69+
5. **Submit a pull request** explaining the changes you made.
70+
71+
Please make sure that your contributions follow the existing code style and structure.
72+
73+
## License
74+
75+
This software is licensed under the [Apache 2.0 LICENSE](/LICENSE) © [Heartex](https://www.heartex.com/). 2020-2025
76+
77+
---
78+
79+
If you have any questions or need assistance, feel free to reach out through issues or discussions. We look forward to your contributions!

bulk_labeling/html.txt

-10
This file was deleted.

bulk_labeling/js.txt

-18
This file was deleted.

count_words_in_textarea/.DS_Store

-6 KB
Binary file not shown.

count_words_in_textarea/html.txt

-22
This file was deleted.

count_words_in_textarea/js.txt

-15
This file was deleted.

docs/banner.png

635 KB
Loading

docs/labeling-interface.png

708 KB
Loading

llm_backend/html.txt

-44
This file was deleted.

llm_backend/js.txt

-88
This file was deleted.

0 commit comments

Comments
 (0)