LiveJS is a simple Electron-based JavaScript editor that allows you to write and execute JavaScript code in real time. The app features a split view, with a code editor on the left and the output panel on the right, displaying the results immediately as you type.
- Real-time JavaScript code execution.
- Syntax-highlighted code editor powered by Monaco Editor.
- Console logs and errors displayed in a styled output panel.
- Clean and simple interface.
Ensure you have the following installed:
- Node.js (v16.19.0 or later) - Download Node.js
- Python (3.11 or earlier recommended) - Download Python
git clone <repository-url>
cd LiveJSnpm installpython3 -m venv venv
source venv/bin/activate
python3 -m pip install setuptoolsnpm start- Package the App:
npx electron-packager . LiveJS --platform=darwin --arch=x64 --overwrite- Create a DMG File (Optional):
node create-dmg.js- Packaged app:
LiveJS-darwin-x64/LiveJS.app - DMG installer:
dist/LiveJS.dmg
Suppress these logs by following the settings already implemented in the main.js file.
Use a virtual environment and install required dependencies as shown above.
Clear cache and reinstall modules:
rm -rf node_modules package-lock.json
npm cache clean --force
npm installLiveJS/
├── dist/ # DMG output folder
├── node_modules/ # Node.js dependencies
├── venv/ # Python virtual environment
├── main.js # Electron main process
├── preload.js # Preload script for security
├── index.html # App interface layout
├── renderer.js # Handles code execution
├── create-dmg.js # Script for DMG creation
├── package.json # Node.js dependencies and scripts
└── README.md # Project documentation
This project is licensed under the MIT License.
Zyon Bessette