University project 2025
docker compose upFor cpp hotreloading:
python watch_cpp_folder.pyC++ → WASM → Next.js pipeline for high-performance image processing.
sequenceDiagram
participant User
participant React
participant WASM
User->>React: Upload & Edit Image
React->>WASM: processImageWithAllFilters()
WASM->>WASM: Apply C++ Filters
WASM->>React: Return Processed Image
React->>User: Display Result
| Layer | Technology | Purpose | Key Files |
|---|---|---|---|
| Presentation | Next.js + React | User Interface & State Management | src/components/ |
| Integration | TypeScript Hooks | Bridge between UI and WASM | src/contexts/WasmContext.tsx |
| Computation | C++ + WebAssembly | High-performance image processing | cpp/filters.cpp, cpp/js.cpp |
| Infrastructure | Docker + Emscripten | Build environment & compilation | Dockerfile.wasm, cpp/CMakeLists.txt |
- C++ image processing functions compiled to WASM
- React app loads WASM module dynamically
- User interactions call C++ functions via WASM
- Real-time image processing with near-native performance
git clone https://github.com/szyraf/Image-editor.git
cd Image-editor/
sudo bash deploy.shopen port 3000 on your server


