Customise Node-red using APIs

I am trying to make a node-red application as lite as possible.

I understand different API's contribute to different functionality/components of the application.
How can i use API Reference : Node-RED to customise the app like a developer wants for his usecase.
For example,
If i only want to run the node-red application using only the run time modules or i want to remove the editor component( UI components) of the node-red (because after the flow is deployed it is not needed during the application runtime on a device)

How do i acheive this? from where should i start??
#general #development

If you want to disable the editor then you can set disbaleEditor in your settings file.

If you want to completely disable the admin API to prevent any sort of update, you can set httpAdminRoot to false.

https://nodered.org/docs/user-guide/runtime/configuration