---
id: js
title: JavaScript
---
ToolJet workflows let you import **npm packages** into your workflow so that every JavaScript node can use them. Once a package is added, it is bundled and available across all JavaScript nodes in that workflow version.
:::info
External library support for workflows is available on **Enterprise Edition** plans.
:::
## Adding Packages
1. Open your workflow in the editor.
2. Click the **Packages** icon in the left sidebar to open the package manager panel.
3. Type a package name (e.g., `lodash`) in the search field — results are fetched from the npm registry.
4. Select the package and version you want to install, then click **Add**.
5. The package is added to the workflow's dependency list and a bundle build starts automatically.
You can add multiple packages before the bundle finishes building. The bundle regenerates with all current dependencies.
## Using Packages in JavaScript Nodes
Once the bundle status is **Ready**, you can `import` the packages directly in any JavaScript node:
```js
import lodash from 'lodash';
import { v4 as uuidv4 } from 'uuid';
const grouped = lodash.groupBy(getOrders.data, 'status');
return {
requestId: uuidv4(),
summary: grouped
};
```
Packages are available to all JavaScript nodes in the workflow — you don't need to import them separately per node.
## Removing Packages
1. Open the package manager panel.
2. Click the **Remove** icon next to the package you want to remove.
3. The bundle regenerates automatically without the removed package.
---
## Need Help?
- Reach out via our [Slack Community](https://join.slack.com/t/tooljet/shared_invite/zt-2rk4w42t0-ZV_KJcWU9VL1BBEjnSHLCA)
- Or email us at [support@tooljet.com](mailto:support@tooljet.com)
- Found a bug? Please report it via [GitHub Issues](https://github.com/ToolJet/ToolJet/issues)