A while ago, I was practicing importing modules across different projects. I wanted to use Python for its rich data science libraries and Node.js for its async web performance.

Normally, if you want Python to pass a simple calculated array or dictionary to JavaScript, you have to:

Spin up a local FastAPI / Flask server or write to a temporary JSON file.

Setup fetch() in Node.js, handle ports, serialization, and CORS.

Write 50+ lines of glue code just to share a single variable.