Classic logisim ported to the browser, powered by WebAssembly 👉 Try it here · 📖 Read the announcement About Logisim.app is a fully featured browser-based port of classic Logisim: a widely used educational tool for designing and simulating digital logic circuits. This project is a complete 1:1 port of the original Java application (based on version 2.7.2) running in the browser powered by WebAssembly. It uses…
Logisim.app is a fully featured browser-based port of classic Logisim: a widely used educational tool for designing and simulating digital logic circuits.
This project is a complete 1:1 port of the original Java application (based on version 2.7.2) running in the browser powered by WebAssembly. It uses CheerpJ (a complete browser runtime for Java apps) to execute the compiled JAR file directly in the browser. It also includes a lightweight JavaScript layer to provide browser-compatible file operations.
This allows Logisim.app to be used in any modern browsers and devices (including mobile!) without the need for installation or a Java runtime environment.
Using Logisim.app
Since this project doesn’t change any of Logisim’s core features, you can refer the documentation built into the application and the original logisim documentation for usage details.
Working with Files
Logisim.app allows you to work with files from your local computer, or from a virtual filesystem in the browser (implemented on top of IndexedDB).
Whenever you try to open or save a file, you will see the following prompt:
Local desktop refers to your computer’s file system.
Browser memory refers to the virtual file system in the browser.
Once a file has been opened, the application functions equivalently in both cases.
Caution 注意
All files stored in the virtual filesystem in the browser are cleared if you delete site data for logisim.app.
Note 注意
Due to browser limitations when using Firefox, Logisim.app cannot directly save to specific files, or store references to local files. So saving is replaced with downloading, and you will need to manually find local libraries when opening projects containing them.
Building and Running Logisim.app
This project contains:
A copy of the original Logisim source code, minimally modified to sypport file handling in the browser.
To run the repo locally, clone this repository and use npm to run a local dev server:
git clone https://github.com/De-Rossi-Consulting/logisim-legacy-wasm.git
cd logisim-legacy-wasm
npm install
npm run dev
If everything is working, you should see something like the following:
> [email protected] dev
> vite
VITE v6.2.5 ready in 671 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h + enter to show help
If you want to modify the java files, you will need to build the .jar file.
Building the .jar file
To build the .jar file, run the create-jar.py script included in the original source code:
评论