A desktop circuit simulator application built with Tauri, allowing users to design and simulate digital circuits interactively.
- Interactive circuit design with click-and-drag components
- Support for various logic gates (AND, OR, NOT, NAND, NOR, XOR, XNOR)
- Electrical devices including bulbs, switches, and sources
- Real-time circuit simulation and state visualization
- Undo/redo functionality for circuit editing
- Save and load circuit designs
Before running this application, ensure you have the following installed:
- Node.js (version 16 or later)
- Rust (latest stable version)
- For Windows: Visual Studio Build Tools (for native dependencies)
-
Clone the repository:
git clone https://github.com/asifali411/OpenSignal.git
-
Install dependencies:
npm install
-
Run the application in development mode:
npm run tauri dev
To build the application for production:
npm run tauri buildThis will create distributable binaries in the src-tauri/target/release/bundle/ directory.
- Launch the application using
npm run tauri dev - Click components on the toolbar
- Connect components by clicking on their pins
- Use the switch components to toggle inputs
- Observe the bulb states to see circuit outputs
- Use the history controls to undo/redo changes
src/: Frontend TypeScript codescripts/devices/: Circuit component definitionsscripts/events/: Event handling logicmain/: Core application logic
src-tauri/: Rust backend codestyles/: CSS stylesheetssolver/: Circuit simulation logic
Contributions are welcome! Please feel free to submit a Pull Request.
- Frontend: TypeScript, HTML, CSS
- Backend: Rust (Tauri)
- Build Tool: Vite
