# saucxs/watermark-dom

watermark.js是基于DOM对象实现的BS系统的水印，确保系统保密性，安全性，降低数据泄密风险，简单轻量，支持多属性配置，动态计算水印，水印防被删（监听水印组件元素删除并重新添加，监听改变水印的属性并重新添加）。1、支持2种方式导入使用，2、水印插件-testTool（测试工具），3、内置3种全局API方法，等等。欢迎访问：

Repository: https://github.com/saucxs/watermark-dom
Canonical: https://ross.abutalabs.com/products/watermark-dom
Homepage: http://www.chengxinsong.cn/home
Language: JavaScript
License: MIT
License Family: permissive
Topics: watermark, watermark-dom
Last push: 2024-05-29T02:22:44+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3411, "days_push": 827, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1392, forks 352 (observed 2026-08-28T04:04:36.043485+00:00)

## What it is
watermark-dom is a lightweight JavaScript library that adds configurable text watermarks to web pages using DOM elements, Shadow DOM, and pointer-events. It includes anti-tampering protection that detects deletion or modification of the watermark and automatically re-adds it.

## Use cases
- add a watermark to a web page to deter screenshots and data leaks
- prevent users from deleting or hiding a page watermark
- overlay user identity info on internal admin systems
- protect confidential dashboard content with a visible watermark
- dynamically compute and tile watermarks across a page

## When to choose
- you need a simple, lightweight browser-side watermark for a BS web system
- you want tamper-resistant watermarks that reappear after deletion
- you need configurable watermark properties (text, opacity, angle, density)

## When to avoid
- you need server-side or image/video watermarking rather than DOM overlays
- you require strong security guarantees - DOM watermarks can be bypassed by determined users
- you need canvas-based or PDF watermarking

## Facets
- artifact type: library
- maturity: maintenance
- function: security, ui-components, plugin-system
- domain: web-development, frontend, security, privacy
- platform: browser
- tags: watermark, dom, anti-tampering, data-leak-prevention, shadow-dom, javascript

## Member repositories
- saucxs/watermark-dom (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:36.043485+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:39:33.491201+00:00, confidence not recorded.
  - readme: https://github.com/saucxs/watermark-dom (fetched 2026-08-28T04:04:36.043485+00:00, sha 49e61c975592)
- Data as of 2026-08-30T08:39:29.467469+00:00.
