Right now, the editor is a standalone application. When it's loaded in the game, it's via an iframe, which is slow. If Blé was a library that could be directly used by the game, it could be cached more efficiently, and it would only be downloaded once per gaming session. Besides, common dependencies would be shared by the game and the editor.
API proposal
import { Ble } from 'ble';
const ble = new Ble(document.getElementById('ble-app'));
ble.loadLevel(someLevel);
const currentLevel = ble.getCurrentLevel();
// later
ble.destroy();
Right now, the editor is a standalone application. When it's loaded in the game, it's via an iframe, which is slow. If Blé was a library that could be directly used by the game, it could be cached more efficiently, and it would only be downloaded once per gaming session. Besides, common dependencies would be shared by the game and the editor.
API proposal