# Support for user scripts (Javascript)

**URL:** <https://connect.superhuman.com/t/support-for-user-scripts-javascript/8704>\
**Category:** Product Feedback\
**Created:** [June 21, 2019, 8:03pm UTC](https://connect.superhuman.com/t/support-for-user-scripts-javascript/8704 "2019-06-21T20:03:50Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Danyliuk](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/paul_danyliuk/32/27228_2.png) [@Paul\_Danyliuk](https://connect.superhuman.com/u/Paul_Danyliuk)\
**Post date:** [June 21, 2019, 8:03pm UTC](https://connect.superhuman.com/t/support-for-user-scripts-javascript/8704/1 "2019-06-21T20:03:50Z")

</div>

This is a tricky feature to request, but an impactful one.

In my past life I used to work with [TestRail](https://www.gurock.com/testrail), a QA management tool. One of its killer features was the ability to create your own UI scripts — pieces of Javascript that could be injected into specified pages and manipulate content on those pages and make API requests. For example, one of my scripts — save the test, then clone it and edit it in a single click — is [still very popular](https://discuss.gurock.com/t/ui-script-option-to-add-another-test-with-values-copied-from-current/1433) there.

Supporting something like this for Coda could be huge. This would let us add extra functionality ourselves, be it different kinds of charts, in-browser encryption, or some sophisticated actions.

---

<div class="post-metadata">

**Author:** ![Tanner\_Hess\_Webber](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/tanner_hess_webber/32/8491_2.png) [@Tanner\_Hess\_Webber](https://connect.superhuman.com/u/Tanner_Hess_Webber)\
**Post date:** [June 27, 2019, 1:51pm UTC](https://connect.superhuman.com/t/support-for-user-scripts-javascript/8704/2 "2019-06-27T13:51:44Z")

</div>

This would be really awesome to see added in! My assumption is that this would take the Coda team a long time to implement, partially because it needs to be approved and partially because there are a TON of security implications with this. From what I can tell, Coda is built on React & Redux (as far as I can tell), which means that any JS that isn’t just a data-transformation needs to be a React component that follows whatever API they have established within their code-base (which could potentially be more advanced than most people are comfortable with).

If the goal is to be able to create UI components, I think that this feature request might make more sense - I think it might make more sense for this to be a request to open-source their document UI component library rather than to support user scripts.

---

<div class="post-metadata">

**Author:** ![Paul\_Danyliuk](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/paul_danyliuk/32/27228_2.png) [@Paul\_Danyliuk](https://connect.superhuman.com/u/Paul_Danyliuk)\
**Post date:** [June 27, 2019, 2:47pm UTC](https://connect.superhuman.com/t/support-for-user-scripts-javascript/8704/3 "2019-06-27T14:47:56Z")

</div>

Yeah, I totally agree and I see how it’s a barely realistic feature request. Not only Coda uses React & Redux, but also has minified, seemingly webpack’d code, which is impossible to integrate with (because of minified method names and stuff). Whereas TestRail always had and still has their JS neatly organized in a non-minified fashion, and uses simple jQuery for everything front-end.

I just felt like throwing this out. I’d love any possibility to extend Coda with 3rd party plugins such as UI components and custom functions.

---

<div class="post-metadata">

**Author:** ![anayericov](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/anayericov/32/9309_2.png) [@anayericov](https://connect.superhuman.com/u/anayericov)\
**Post date:** [July 1, 2019, 1:07am UTC](https://connect.superhuman.com/t/support-for-user-scripts-javascript/8704/4 "2019-07-01T01:07:28Z")

</div>

I am wondering if anything like [observable](https://observablehq.com/) is possible to be implemented in coda? I.e. code blocks that can read coda data and variables and manipulate them. That would make coda an amazing system.

---

<div class="post-metadata">

**Author:** ![Paul\_Danyliuk](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/paul_danyliuk/32/27228_2.png) [@Paul\_Danyliuk](https://connect.superhuman.com/u/Paul_Danyliuk)\
**Post date:** [August 12, 2020, 9:08am UTC](https://connect.superhuman.com/t/support-for-user-scripts-javascript/8704/5 "2020-08-12T09:08:08Z")

</div>

Here’s a new perspective on this:

> [@Volatile input columns — or — Variables in formulas](https://connect.superhuman.com/t/volatile-input-columns-or-variables-in-formulas/17653/3):
>
> I’ve just discovered that Airtable has scripting (like, real JS). If Coda supported something similar, that would solve all the issues in the world (of Coda). Everyone would have tools for their expertise level: Basic users would set up filters and buttons via the dropdown UIs. Mid-level users would write formulas and actions. And power users who need more would have access to fully featured scripting. Creating named functions (like MyFunction(arg1, arg2, arg3)) and actions (like AddAllComb…

No DOM access. Instead expose a fluent API to work with the data in the doc (get rows, get cells, enumerate columns etc), directly with the data in the doc and not through remote API calls. And that would solve all the problems in the world.

Well, it won’t solve the UI extendability, but in this last year that turned out to be not as important as the ability to quickly calculate and transform large data sets, for which I had to invent many workarounds [like this](https://connect.superhuman.com/t/tutorial-iterator-tables-currentvalue-workaround/17211). On the other hand, if this JS can use Canvas to create images and SVG to create interactive pieces, and we could insert the result of that function in a canvas or a cell — that would solve the UI extendability need as well.

---

<div class="post-metadata">

**Author:** ![Tanner\_Hess\_Webber](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/tanner_hess_webber/32/8491_2.png) [@Tanner\_Hess\_Webber](https://connect.superhuman.com/u/Tanner_Hess_Webber)\
**Post date:** [October 25, 2020, 4:45pm UTC](https://connect.superhuman.com/t/support-for-user-scripts-javascript/8704/6 "2020-10-25T16:45:38Z")

</div>

I was trying to get at this same idea with my post [here](https://connect.superhuman.com/t/add-true-custom-formula-support/16494).

(deleted a bunch of text because I realized I have commented on this before. Oops!)

This year, as I have had the need for more and more power-user powers, it seems like the Coda team has moved from focusing on doc creating features to doc consumption features, which has made me start to explore other options for this same kind of work

---

<div class="post-metadata">

**Author:** ![Kepler\_Liu](https://avatars.discourse-cdn.com/v4/letter/k/a88e57/32.png) [@Kepler\_Liu](https://connect.superhuman.com/u/Kepler_Liu)\
**Post date:** [November 3, 2020, 6:07am UTC](https://connect.superhuman.com/t/support-for-user-scripts-javascript/8704/7 "2020-11-03T06:07:16Z")

</div>

I think it is a good idea for developer to import npm modules from the documentation.

---

<div class="post-metadata">

**Author:** ![Franck\_Genissel](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/franck_genissel/32/6449_2.png) [@Franck\_Genissel](https://connect.superhuman.com/u/Franck_Genissel)\
**Post date:** [November 3, 2020, 10:49am UTC](https://connect.superhuman.com/t/support-for-user-scripts-javascript/8704/8 "2020-11-03T10:49:51Z")

</div>

I would love to see a sort of plugins ecosystem emerge of third-party companies.

---

<div class="post-metadata">

**Author:** ![Marko\_Petrovic](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/marko_petrovic/32/12015_2.png) [@Marko\_Petrovic](https://connect.superhuman.com/u/Marko_Petrovic)\
**Post date:** [November 3, 2020, 11:01am UTC](https://connect.superhuman.com/t/support-for-user-scripts-javascript/8704/9 "2020-11-03T11:01:06Z")

</div>

My company at the moment uses Airtable, and i must admit ability to write custom JavaScripts as well as make automations trigger JavaScript code is something that proved to be very useful over time, as it helped solve some problems and more complicated user-cases that platform by default wasn’t able to support.

Also ability to write your own “app” to further extend functionality is really great (something I think Monday did really good).

---

<div class="post-metadata">

**Author:** ![Kepler\_Liu](https://avatars.discourse-cdn.com/v4/letter/k/a88e57/32.png) [@Kepler\_Liu](https://connect.superhuman.com/u/Kepler_Liu)\
**Post date:** [November 13, 2020, 6:12am UTC](https://connect.superhuman.com/t/support-for-user-scripts-javascript/8704/10 "2020-11-13T06:12:43Z")

</div>

One workaround is to use [Tampermonkey](http://www.tampermonkey.net/), though it is not the official solution. 😆

---

<div class="post-metadata">

**Author:** ![Nate\_Gerber2](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/nate_gerber2/32/15061_2.png) [@Nate\_Gerber2](https://connect.superhuman.com/u/Nate_Gerber2)\
**Post date:** [July 26, 2022, 9:22pm UTC](https://connect.superhuman.com/t/support-for-user-scripts-javascript/8704/11 "2022-07-26T21:22:37Z")

</div>

[Cloak.ist](https://cloak.ist/) could be another unofficial solution - particularly if you’re trying to surface additional functionality for your users.

You may be able to [code something similar](https://cloak.ist/blog/put-your-adobe-spark-page-at-your-own-custom-domain-for-free/) by hand using Cloudflare workers if you need to be able to experiment with a lot of docs.
