Skip to main content

Export as Code

Leapter can transpile your Blueprint into JavaScript or Python code. This gives you a readable, standalone version of your logic that you can copy and use outside of Leapter.

View the code

  1. Open your Blueprint in the editor.
  2. Click the Share button in the toolbar.
  3. Select Code.
The Code View dialog showing transpiled JavaScript with syntax highlighting The Code View dialog opens with two tabs:
  • JavaScript β€” your Blueprint transpiled to JavaScript
  • Python β€” your Blueprint transpiled to Python
Both tabs display the code with syntax highlighting and line numbers. Click the Copy button to copy the code to your clipboard.

What the code includes

The transpiled code is a self-contained representation of your Blueprint logic:
  • Function signatures with typed parameters matching your Blueprint’s data contract
  • JSDoc comments (JavaScript) or docstrings (Python) describing inputs and outputs
  • Conditional logic, calculations, and data transformations β€” the full execution flow of your Blueprint
The code is generated from the current state of your Blueprint in the editor.
The Code View is read-only. To edit your Blueprint, use the Blueprint Editor.

Use cases

  • Code review β€” inspect the generated logic to verify correctness
  • Porting to other systems β€” use the code as a starting point for implementing the logic in your own codebase
  • Documentation β€” include the code in technical documentation to explain what a Blueprint does
  • Version comparison β€” copy the code at different points in time to compare changes

What to do next