iPlug2 is a simple-to-use C++ framework for developing cross-platform audio plug-ins/apps and targeting multiple plug-in APIs with the same minimalistic code. It abstracts an audio plug-in (IPlug) and its drawing engine/GUI toolkit (IGraphics). IGraphics is a simple UI toolkit with good performance which contains a collection of common controls well suited for audio plug-ins, either using bitmap or vector graphics. Alternatively examples are included showing how you can use technologies such as HTML/CSS or SwiftUI on top of a C++ DSP layer. The recommended starting point for an iPlug2 project in 2026 can be found in a separate repo, iPlug2OOS (out-of-source) The original version of iPlug was released in 2008 as part of Cockos' WDL library. iPlug2 (2018...) is a substantial reworking that brings multiple vector graphics backends to IGraphics (including GPU accelerated options and HiDPI/scaling), a better approach to concurrency, support for distributed plug-in formats and compiling to WebAssembly via emscripten, amongst many other things. iPlug2 targets the CLAP, VST2, VST3, AUv2, AUv3, AAX (Native) and the Web Audio Module (WAM) plug-in APIs. It can also produce standalone win32/macOS apps with audio and MIDI I/O, as well as Reaper extensions. Windows 8, macOS 10.13, and iOS 14 are the official minimum target platforms, but depending on the graphics backend used, you may be able to make it work on earlier operating systems. iPlug2 is licensed with a liberal zlib-like license, which means that it is free to use in closed source projects and is free from corporate interference.
These examples are built with iPlug2's WebAssembly target and run in your browser. Press the power button at the bottom left to start audio.
| src | demo | |
| IPlugEffect | .h | .cpp | Simple gain effect |
| IPlugInstrument | .h | .cpp | Polyphonic synth with on-screen keyboard |
| IPlugDrumSynth | .h | .cpp | Drum synth |
| IPlugControls | .h | .cpp | Tour of the IGraphics controls |
| IPlugResponsiveUI | .h | .cpp | UI that adapts to the window size |
| IPlugVisualizer | .h | .cpp | Spectrum analyser |
| IPlugChunks | .h | .cpp | Custom state chunks and presets |
| IPlugWebUI | .h | .cpp | HTML/JS user interface |
| IPlugSvelteUI | .h | .cpp | Svelte user interface |
| IPlugP5js | .h | .cpp | p5.js user interface |
| IGraphicsTest | .h | .cpp | IGraphics drawing tests |
| IGraphicsStressTest | .h | .cpp | IGraphics drawing stress test |
| MetaParamTest | .h | .cpp | Parameters that control other parameters |
You can discuss iPlug2 on the iPlug2 forum or on the iPlug2 discord server
iPlug2 is a time consuming project. You can help make the project financially via github sponsors. With regular financial support, more time can be spent maintaining and improving the project. Even small contributions are very much appreciated.