Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Scripts For Community Version #7054

Open
ly85206559 opened this issue Feb 11, 2025 · 1 comment
Open

Custom Scripts For Community Version #7054

ly85206559 opened this issue Feb 11, 2025 · 1 comment

Comments

@ly85206559
Copy link

Is your feature request related to a problem? Please describe.
I'm currently using the Label Studio Community Edition for various labeling tasks. However, I find that the inability to include custom scripts (e.g., JavaScript injections in the Labeling Interface) severely limits my ability to implement custom validations and dynamic UI behavior (such as intercepting the Submit button to call external webhooks before submission). This restriction forces users to either modify the source code or rely on workarounds that are not ideal.

Describe the solution you'd like
I would like to request that the Label Studio Community Edition also support the use of custom scripts in the Labeling Interface. This feature would allow users to add their own JavaScript code to:

  • Intercept the Submit button and perform pre-submission validations via a webhook.
  • Display error messages or custom prompts based on validation results.
  • Enhance the overall interactivity and flexibility of the labeling UI.

Describe alternatives you've considered
Currently, users must either:

  • Modify the Label Studio source code to inject custom scripts, which increases maintenance overhead and complicates updates.
  • Use browser extensions or reverse-proxy methods to inject custom scripts, which are less reliable and harder to manage across different environments.
    Both approaches are suboptimal compared to having native support for custom scripting in the Community Edition.

Additional context
Custom scripting capabilities are essential for tailoring the labeling experience to specific workflows, especially when complex validation logic or integration with external systems is required. Enabling this feature in the open-source version would empower the community to build more dynamic and responsive annotation interfaces without waiting for enterprise features. Attached are some mockups and examples demonstrating how custom scripts can improve the labeling process by allowing real-time validation and error feedback.

@heidi-humansignal
Copy link
Collaborator

Hello,
Thank you for reaching out with your feature request and for providing detailed context about your needs.
At this time, the ability to include custom scripts within the Labeling Interface is supported only in the Enterprise Edition of Label Studio. In the Enterprise version, you can add custom JavaScript to intercept actions (such as the Submit button), perform pre‐submission validations via external webhooks, and enhance the UI. You can find full details in our Enterprise documentation here: Custom Scripts for Label Studio Enterprise.

In the Community Edition, we do not currently support native custom scripting. This design decision helps us ensure:
Security & Stability: Allowing arbitrary script injections can introduce security risks and affect the stability of the open‐source product.
Maintainability: Keeping the Community Edition lean minimizes the complexity of code maintenance and eases updates.

We understand that not being able to inject custom scripts can be limiting if you have complex validation or dynamic UI requirements. The workaround options you mentioned—modifying the source code or using browser extensions—are not ideal, which is exactly why we offer these advanced features in our Enterprise offering.
If advanced custom scripting is critical for your workflows, we recommend considering an upgrade to the Enterprise Edition where these capabilities are officially supported. Meanwhile, I have noted your feedback, and I’ll be sure to pass your request along to our product team to help inform future enhancements to the Community Edition.
Please let me know if you have any further questions or if I can help in any other way.

Thanks,

Tyler Conlee
Head of Support
HumanSignal

Comment by Tyler Conlee
Workflow Run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants