Skip to content

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Watermark

Docs GitHub Launch Dev

React 19 TypeScript 5 C2PA 0.14.5 Vite 8 Tests Passing


Watermark

Watermark is a local-first web application for inspecting C2PA Content Credentials and understanding media provenance. The first release verifies media in the browser, computes a SHA-256 digest, distinguishes valid signatures from trusted issuers, and displays manifest lineage without uploading the asset.

Current scope

  • Drag-and-drop image, audio, and video inspection
  • C2PA manifest discovery and verification through @contentauth/c2pa-web
  • Signature algorithm, issuer, claim generator, ingredients, assertions, and validation codes
  • File size, MIME type, and SHA-256 display
  • Explicit handling for missing, invalid, untrusted, and unsupported credentials
  • Browser-only processing with no application backend

Run locally

npm install
npm run dev

Vite serves the app at http://localhost:5173.

Commands

npm run build
npm run typecheck
npm test

Architecture

  • src/App.tsx contains the drop zone, preview, and result views.
  • src/lib/c2pa.ts owns SDK initialization and file verification.
  • src/lib/verification.ts normalizes SDK manifest data into a stable UI model.
  • src/lib/file.ts contains MIME detection, byte formatting, and SHA-256 utilities.
  • src/lib/types.ts defines the application verification contract.

The C2PA SDK runs in a Web Worker with its WASM binary loaded as a Vite asset. The app does not currently create or re-sign manifests; editing and signing require a separate key-management and provenance update design.

Verification boundaries

A trusted C2PA result means the SDK validated the manifest signature, content binding, and issuer trust policy available to the application. It does not prove that every statement in the manifest is true. A missing manifest does not establish that content is human-made or AI-generated.

Next modules

  1. Privacy-safe metadata sanitizer with an explicit field allowlist.
  2. Provenance-aware crop, resize, and compression workflow.
  3. Local lineage dashboard backed by IndexedDB.
  4. AI-detection appeal evidence export.
  5. Educational views for C2PA, SynthID, statistical watermarking, and steganalysis.

References

License

MIT. See LICENSE.

About

Watermark is a local-first web app for inspecting C2PA credentials & understanding provenance: media text & other file types. In-browser verification - computes a SHA-256 digest - distinguishes valid signatures from trusted issuers & displays manifest lineage. AI detection tools + strip and unslop text files. No external uploads.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages