# What is the best approach to create middleware?

**URL:** <https://discourse.nodered.org/t/what-is-the-best-approach-to-create-middleware/90345>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [22 August 2024 18:43 UTC](https://discourse.nodered.org/t/what-is-the-best-approach-to-create-middleware/90345 "2024-08-22T18:43:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Subavarsha](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/subavarsha/32/92880_2.png) [@Subavarsha](https://discourse.nodered.org/u/Subavarsha)\
**Post date:** [22 August 2024 18:43 UTC](https://discourse.nodered.org/t/what-is-the-best-approach-to-create-middleware/90345/1 "2024-08-22T18:43:53Z")

</div>

I want to know the approach to creating middleware that processes data between the UI and the backend  
can we modify the red.js file to add additional middleware?  
If we cannot ,what are the other approaches?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [22 August 2024 21:08 UTC](https://discourse.nodered.org/t/what-is-the-best-approach-to-create-middleware/90345/2 "2024-08-22T21:08:03Z")

</div>

Which UI?

The Editor, Dashboard (1 or 2) or UIBUILDER?

---

<div class="post-metadata">

**Author:** ![Subavarsha](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/subavarsha/32/92880_2.png) [@Subavarsha](https://discourse.nodered.org/u/Subavarsha)\
**Post date:** [23 August 2024 04:16 UTC](https://discourse.nodered.org/t/what-is-the-best-approach-to-create-middleware/90345/3 "2024-08-23T04:16:56Z")

</div>

Dashboard 2

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [23 August 2024 05:07 UTC](https://discourse.nodered.org/t/what-is-the-best-approach-to-create-middleware/90345/4 "2024-08-23T05:07:59Z")

</div>

> **[Settings | Node-RED Dashboard 2.0](https://dashboard.flowfuse.com/user/settings.html#middleware)**
>
> Customize your Node-RED Dashboard 2.0 experience with detailed settings for optimal dashboard performance and appearance.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [21 November 2024 05:08 UTC](https://discourse.nodered.org/t/what-is-the-best-approach-to-create-middleware/90345/5 "2024-11-21T05:08:47Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
