# Install plugin in the root of the project

**URL:** https://community.weweb.io/t/install-plugin-in-the-root-of-the-project/6995
**Category:** Developer corner
**Created:** [February 13, 2024, 9:49am UTC](https://community.weweb.io/t/install-plugin-in-the-root-of-the-project/6995 "2024-02-13T09:49:54Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![RomanMuz](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@RomanMuz](https://community.weweb.io/u/RomanMuz)
#### Post date: [February 13, 2024, 9:49am UTC](https://community.weweb.io/t/install-plugin-in-the-root-of-the-project/6995/1 "2024-02-13T09:49:54Z")

</div>

Hi all!

I’m pretty new to WeWeb, I have a use case for which I need to integrate my application with the SurveyJS library. First I tried to use the NPM plugin which I think does not work for this one (if you think it might work I’d be happy to get your help). Then I learned about custom components which in theory would be perfect but in practice I see in the SurveyJS documentation that I need to bind the plugin on the application (in the main file), I’m not sure if this is actually doable and since I would need to upgrade to a business plan to test this I’d prefer to ask you all before to be sure.

---

<div class="post-metadata">

### Author: ![aurelie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/aurelie/32/13249_2.png) [@aurelie](https://community.weweb.io/u/aurelie)
#### Post date: [February 15, 2024, 8:21am UTC](https://community.weweb.io/t/install-plugin-in-the-root-of-the-project/6995/2 "2024-02-15T08:21:44Z")

</div>

Hi @RomanMuz,  
What was your problem when using the npm plugin?  
At the moment there is no way to access the main Vue app instance, which is maybe what is blocking you. Do they have a way to just import a component rather than install them globally through a plugin?

---

<div class="post-metadata">

### Author: ![RomanMuz](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@RomanMuz](https://community.weweb.io/u/RomanMuz)
#### Post date: [February 15, 2024, 10:14am UTC](https://community.weweb.io/t/install-plugin-in-the-root-of-the-project/6995/3 "2024-02-15T10:14:07Z")

</div>

Hi @aurelie,

Thanks for your response! First the issue with the npm plugin is that I could not find the survey-vue3-ui package ([https://unpkg.com/survey-vue3-ui@1.9.130/survey-vue3-ui.umd.js](https://unpkg.com/survey-vue3-ui@1.9.130/survey-vue3-ui.umd.js)) in the proposed list of packages, I could only find the survey-vue-ui which is not the same and is the wrong one since it is for previous versions of Vue. Then there is a bunch of require in the package and from what I’ve read in other posts, the NPM plugin does not work well with those (I might be wrong on this one as it seems that this package is bundled as UMD modules). Finally, and it will link with your last question, it seems that it is mandatory to install the plugin globally so I guess this would be an issue for the NPM plugin and I understand that it is an issue for custom components too unfortunately. Is this something that you think will be possible in the future ?

---

<div class="post-metadata">

### Author: ![aurelie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/aurelie/32/13249_2.png) [@aurelie](https://community.weweb.io/u/aurelie)
#### Post date: [February 15, 2024, 11:00am UTC](https://community.weweb.io/t/install-plugin-in-the-root-of-the-project/6995/4 "2024-02-15T11:00:56Z")

</div>

We are indeed already working on this subject, and beeing able to add a Vue plugin will be a possibility with our revamping of custom weweb plugin creation :). (yes we are reopening those for everyone)

---

<div class="post-metadata">

### Author: ![RomanMuz](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@RomanMuz](https://community.weweb.io/u/RomanMuz)
#### Post date: [February 15, 2024, 11:12am UTC](https://community.weweb.io/t/install-plugin-in-the-root-of-the-project/6995/5 "2024-02-15T11:12:02Z")

</div>

Ah that’s great to hear! I’m looking forward to seeing this revamp go live then, thanks a lot Aurelie for your time!

---

<div class="post-metadata">

### Author: ![benFortunato](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@benFortunato](https://community.weweb.io/u/benFortunato)
#### Post date: [February 17, 2024, 6:03pm UTC](https://community.weweb.io/t/install-plugin-in-the-root-of-the-project/6995/6 "2024-02-17T18:03:28Z")

</div>

This would be a great addition! Any idea on when this would be available?

---

<div class="post-metadata">

### Author: ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)
#### Post date: [February 17, 2024, 6:21pm UTC](https://community.weweb.io/t/install-plugin-in-the-root-of-the-project/6995/7 "2024-02-17T18:21:25Z")

</div>

For everyone with a paid workspace right?
