107 karma · joined May 11, 2023
Are the models run in JavaScript/WebAssembly behind the scenes?
Reminds me of PythonMonkey, which provides really high level bindings to SpiderMonkey in Python. It ships as both a pip package and a standalone js runtime, the latter of which is very similar to this project!
https://github.com/Distributive-Network/PythonMonkey#pythonm...
PythonMonkey lets you arbitrarily execute JS code like:
``` import pythonmonkey pythonmonkey.eval("(() => { console.log('hi from js'); })()") ``` for reference.
PythonMonkey is a Python library for executing JavaScript in Python. In Python you can use it to import JavaScript CommonJS modules with just: `pythonmonkey.require('my-js-lib')`.
We're making PythonMonkey so we can port our complicated JavaScript NPM package to to Python without re-writing it entirely.
We're also building a new JavaScript runtime in Python called PMJS using PythonMonkey that allows developers to use Python libraries in their serverside JavaScript projects.