npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ai-text-watermark-scanner

v0.1.5

Published

Dependency-free local scanner for hidden Unicode and removable text artifacts, with transparent code-point reporting.

Readme

AI Text Watermark Scanner

npm version tests license

Inspect and clean literal hidden text artifacts without rewriting the visible words.

Want the browser extension?

Use AI Text Watermark Remover for Chrome to clean supported hidden artifacts when copying AI replies or highlighted text. The extension runs locally and keeps the copy workflow simple.

This repository contains the open-source scanning engine, CLI, fixtures, SARIF integration, and developer examples. The browser extension is a separate product with its own release version.

Four-step demonstration of local hidden artifact inspection and cleaning

Open the demonstration GIF directly

A dependency-free, local-first JavaScript scanner for literal hidden Unicode and removable formatting artifacts. It reports exact code points and locations, creates a conservative cleaned copy, and makes no authorship claim.

Why this exists

Copied AI text can contain zero-width characters, directional controls, unusual spaces, or formatting artifacts. A generative rewrite can change meaning. This package takes the deterministic route: identify the exact character, show its location, and remove only supported literal artifacts.

It is intentionally separate from statistical model watermark detection. Provider-level signals require an official supported verifier.

What you get

  • Exact Unicode code points and source locations
  • Conservative cleaning with readable wording preserved
  • Dependency-free JavaScript and TypeScript types
  • CLI output for local files
  • SARIF 2.1.0 export for CI and GitHub Code Scanning
  • Public fixtures shared with the hosted scanner and browser tools
  • No text upload, telemetry, or authorship accusation

Install

npm install ai-text-watermark-scanner

JavaScript

import { scanText } from "ai-text-watermark-scanner";

const result = scanText("copied text");
console.log(result.findings);
console.log(result.cleanedText);

CLI

ai-watermark-scan draft.txt

Export SARIF 2.1.0 for GitHub Code Scanning or another CI system:

ai-watermark-scan draft.txt --sarif > ai-text-watermark-results.sarif

Scan a directory into one SARIF document with stable automation metadata:

ai-watermark-scan ./content --sarif > ai-text-watermark-results.sarif

Each file remains a separate SARIF run so exact locations and partial states are preserved. Unreadable inputs produce an explicit failed invocation and a nonzero exit; they are never silently treated as clean.

SARIF output includes deterministic artifact findings, exact code points, severity, and source locations. It does not claim AI authorship or official model-level watermark detection.

Example result

{
  "findings": [
    {
      "codePoint": "U+200B",
      "name": "ZERO WIDTH SPACE",
      "index": 6,
      "removable": true
    }
  ],
  "cleanedText": "Clean text"
}

Use it in CI

ai-watermark-scan content.txt --sarif > results.sarif

Upload results.sarif to GitHub Code Scanning or another SARIF-compatible system. Findings remain deterministic and reviewable.

Integration examples

Choosing the right tool

| Need | Use | | --- | --- | | Exact hidden-character evidence | This package | | Lossless literal artifact cleaning | This package | | Browser copy workflow | Browser extension | | File and batch reports | Hosted product | | Official provider watermark conclusion | A connected provider verifier | | Stylistic rewriting or humanization | A rewriting tool, with semantic review |

The package does not detect or claim to remove statistical model-level watermarks such as deployed provider token-sampling signals. Use AI Text Watermark Remover for the hosted scanner, reports, batch workflows, browser tools, and current provider guidance.

Public verification

The hosted product and self-hosted API use the same deterministic literal-artifact rules as this package. Provider-specific model-watermark verification remains separate and is reported only when an official supported verifier is available.