# Max size of JS within an Edge Workflow's Function node?

**URL:** <https://forums.losant.com/t/max-size-of-js-within-an-edge-workflows-function-node/2761>\
**Category:** Help\
**Tags:** edge\
**Created:** [March 26, 2020, 7:33pm UTC](https://forums.losant.com/t/max-size-of-js-within-an-edge-workflows-function-node/2761 "2020-03-26T19:33:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Muschick](https://avatars.discourse-cdn.com/v4/letter/p/d9b06d/32.png) [@Paul\_Muschick](https://forums.losant.com/u/Paul_Muschick)\
**Post date:** [March 26, 2020, 7:33pm UTC](https://forums.losant.com/t/max-size-of-js-within-an-edge-workflows-function-node/2761/1 "2020-03-26T19:33:25Z")

</div>

Is there any limit to how much JavaScript the Function node can support within an Edge Workflow?

I’ve been developing an Edge Workflow that uses a Function node that now has 31,000+ characters and I have more implementation to add. What’s the limit?

---

<div class="post-metadata">

**Author:** ![anaptfox](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/anaptfox/32/873_2.png) [@anaptfox](https://forums.losant.com/u/anaptfox)\
**Post date:** [March 26, 2020, 9:04pm UTC](https://forums.losant.com/t/max-size-of-js-within-an-edge-workflows-function-node/2761/2 "2020-03-26T21:04:03Z")

</div>

@Paul_Muschick,

The limit for the node is 64K. However, there is a feature I want to make you aware of.

On the Edge, you have access to [require](https://nodejs.org/api/modules.html#modules_require_id) within the Function Node. So, you can require NPM modules (that are available. see link below) and you can require files.

You can also extend the Edge Agent entirely:

> **[Extending the Losant Edge Agent](https://www.losant.com/blog/extending-the-losant-edge-agent)**
>
> Learn how to include custom dependencies or scripts in the same environment as the Losant Edge Agent.
