Feature Request: Export Workflow as Executable JS/TS Code

The idea is:

Add a feature to n8n that allows users to export an entire workflow as executable JavaScript or TypeScript code. The exported code should reflect the workflow logic, including triggers, node order, and data transformations, with Function/Code node contents embedded inline.

My use case:

I often need to review workflows programmatically, integrate them into version-controlled codebases, or debug them in a code-centric environment. Exporting as executable code would make workflows more transparent, reusable outside of n8n, and easier to manipulate programmatically.

I think it would be beneficial to add this because:

Currently, n8n workflows can only be exported as JSON, which is not executable or easily human-readable. This limits code review, version control, and external automation opportunities for developers who prefer working with code instead of visual nodes.

Any resources to support this?

n8n JSON workflow export documentation: n8n Integrations Documentation and Guides | n8n Docs . Similar concept in other workflow automation platforms that support code export (example, Node-RED flows as JS).

Are you willing to work on this?

Yes, I am willing to contribute or provide feedback for implementation.