Building Block View
Level 2: Web Interface (Whitebox)
Purpose / Responsibility
The Web Interface is based on the KVision web framework for Kotlin/JS, aiming to create a GUI running in the browser to easily embed and extract watermarks. It consists of a single-page design with two tabs: One for watermark embedding and one for watermark extraction. It is only able to embed text-watermarks into existing cover texts and offers configuration possibilities for different watermark types (e.g., compress the watermark, add a hash to verify the watermark, etc.). Under the hood, it uses the Innamark watermark library with the JavaScript (JS) build target as Gradle dependency and can be seen as a frontend for it.
Contained Blackboxes
| Building Block | Description |
|---|---|
| App | The main container component of the UI, creating the overall page with a tab panel, including the two tabs for embedding and extraction. |
| Embed Tab | The embed tab offers a form for adding watermarks in cover text by using the watermarker library. |
| Extract Tab | The extract tab offers a form for getting watermarks in a text by using the watermarker library. |
| Watermarker Library | A Kotlin multiplatform library, offering watermark embedding and extraction functionalities, integrated as external Gradle dependency with the JS build target. |