Exploring JavaScript and Java in openHAB

Hey everyone, I’ve been curious about integrating JavaScript and Java into openHAB. I know openHAB is built on Java, so I’m wondering how flexible it is in terms of using external libraries or even writing custom Java code for rules. I came across some discussions about using Node.js for more complex logic, but I’m not sure how that interacts with the core system. Has anyone successfully used JavaScript libraries like ‘http’ module or Java directly in their rules? I’m especially interested in leveraging existing Java libraries for data processing or API interactions. Any insights or recommendations would be awesome! :rocket: