# NPM workspaces to share code in UI extensions

**URL:** <https://community.hubspot.com/t/npm-workspaces-to-share-code-in-ui-extensions/147182>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [March 11, 2026, 8:14pm UTC](https://community.hubspot.com/t/npm-workspaces-to-share-code-in-ui-extensions/147182 "2026-03-11T20:14:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_Eastwood](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mike_eastwood/32/70075_2.png) [@Mike\_Eastwood](https://community.hubspot.com/u/Mike_Eastwood)\
**Post date:** [March 11, 2026, 8:14pm UTC](https://community.hubspot.com/t/npm-workspaces-to-share-code-in-ui-extensions/147182/1 "2026-03-11T20:14:23Z")

</div>

Please pass on my thanks to the team that made it possible to share code between UI extensions!

I had a Settings Page AND an App Home Page with the same duplicated components (git submodules)… and now I have only one folder with all of my components.

Here’s the official docs: [Share code between your extensions using npm workspaces - HubSpot docs](https://developers.hubspot.com/docs/apps/developer-platform/add-features/ui-extensibility/code-sharing-with-npm-workspaces)

Any reduction in WTFs/minute is welcome!

Thank you

Mike

---

<div class="post-metadata">

**Author:** ![felixmacaspac](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/felixmacaspac/32/33923_2.png) [@felixmacaspac](https://community.hubspot.com/u/felixmacaspac)\
**Post date:** [March 16, 2026, 4:06am UTC](https://community.hubspot.com/t/npm-workspaces-to-share-code-in-ui-extensions/147182/2 "2026-03-16T04:06:49Z")

</div>

This is a great feature! I just learned this now.

---

<div class="post-metadata">

**Author:** ![Berangere](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/berangere/32/220784_2.png) [@Berangere](https://community.hubspot.com/u/Berangere)\
**Post date:** [March 16, 2026, 12:24pm UTC](https://community.hubspot.com/t/npm-workspaces-to-share-code-in-ui-extensions/147182/3 "2026-03-16T12:24:53Z")

</div>

Thanks for sharing your excitement @felixmacaspac, I’m glad you found the NPM workspaces feature helpful!  
If you have any questions or want to share how you’re using it, we’d love to hear more.  
And thanks so much [@Mike\_Eastwood](https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259) for your positive feedback, I’ve shared it internally!  
Happy coding!  
Bérangère
