WitnessAI notices, AI labels and machine-readable marking for Article 50 of the EU AI Act, for any web app and the Vercel AI SDK.
pnpm add @sweberdev/witnessSince 2 August 2026, Article 50 of the EU AI Act asks for transparency around AI: people must know when they are talking to a chatbot, generated content must be marked in a machine-readable way, and deepfakes and AI text on matters of public interest must be disclosed. Witness gives you the building blocks for that in one small package.
A chatbot notice and an AI label as web components and React components, in English, German, French and Italian. IPTC/XMP marking written straight into image, audio and video files (PNG, JPEG, WebP, MP3, WAV, MP4, MOV, M4A), an invisible watermark for generated text, schema.org and meta tags for pages, and middleware for the Vercel AI SDK that marks text and images as the model produces them. Witness is a tool, not legal advice: it helps you implement the duties, it does not confirm compliance.
Example
A short exampleCopy it into your project.
app/chat/page.tsx
import { AiNotice, AiContent } from "@sweberdev/witness-react"
import "@sweberdev/witness/styles.css"
export default function Chat() {
return (
<>
<AiNotice kind="chatbot" id="support-chat" />
<AiContent labelPosition="overlay" marking={{ kind: "generated", generator: "gpt-image-2" }}>
<img src="/hero.png" alt="Beach at dusk" />
</AiContent>
</>
)
}Features
What you getFree under MIT, with Pro on top.
Free, MIT
- Chatbot notice, AI label and player for the EU AI Act Art. 50
- Marks images, audio and video with IPTC metadata
- Reads C2PA Content Credentials
- Invisible text watermark and Vercel AI SDK middleware
- React components, schema.org markup and a CLI
Pro
- Everything in Free
- Notice wording in all 24 official EU languages
- CI scanner that fails the build when AI content has no label
- Monitoring with baseline, pull request comment and alarm
- AI register and evidence bundle for auditors
- C2PA signing with your own certificate
All features in detail
Free, MIT
- <witness-notice>: chatbot notice before the first message, then a compact label that can be reopened, with shown and acknowledged events as evidence
- <witness-label>: badge for AI-generated, AI-edited or deepfake content with a details popover, inline or as an image overlay
- <witness-player>: wraps an audio or video element and keeps the AI label with it, over the picture or above the controls, for deepfake content
- Image marking: IPTC digital source type in XMP for PNG, JPEG and WebP, in the browser or on the server; C2PA files are left untouched
- Audio and video marking: the same XMP in MP3, WAV, MP4, MOV and M4A files, without re-encoding
- Reads C2PA Content Credentials in images, audio and video: which tool made the file and whether it declares AI (read, not validated)
- Marking layers: record which techniques mark your content, check them against the two machine-readable layers the Code of Practice asks for, and inspect files with witness layers
- <witness-credentials> and useContentCredentials: show Content Credentials in the browser (read, signature not verified)
- Invisible text watermark that survives copy and paste and can be read back, optionally on every paragraph
- Vercel AI SDK middleware for generateText, streamText and generateImage
- schema.org JSON-LD, meta tags and Next.js metadata for AI content
- witness CLI: mark images, audio and video in a build step and inspect files
- React components: <AiNotice>, <AiLabel>, <AiContent>, <AiPlayer> and useAiDisclosure; wording in English, German, French and Italian
Pro
- Notice and label wording in all 24 official EU languages
- CI scanner that fails the build when AI images, audio, video or text lack a label or marking, or a chat lacks its notice; verifies C2PA manifests in images, audio and video (signature, hashes, file content, signer) and checks single-page apps in a browser
- Monitoring: a baseline of known findings so only new ones fail the build, pull request comments and an alert webhook (Slack, Mattermost, Discord or JSON) when a deploy breaks a label
- Evidence bundle for auditors: register, report, public page, scan and change log in one folder with SHA-256 hashes and a verify command
- AI register with a transparency report for clients (including the key dates that apply), a public "How we use AI" page, import from a spreadsheet (CSV), warnings before the Article 50 deadlines, drafts for AI use the register misses (from the scan), a change log and a legal-status changelog that shows what changed since your last review
- Layer check in CI (warns when AI images, audio or video carry fewer than two machine-readable layers) and a review workflow in the register: status, reviewer, approver, next review
- C2PA signing with your own certificate: sign generated PNG, JPEG, WebP, WAV and MP4/MOV/M4A files with Content Credentials, as API and CLI
| Feature | Free | Pro |
|---|---|---|
| Chatbot notice and AI labels (web components and React) | Included | Included |
| Image marking, text watermark and AI SDK middleware | Included | Included |
| Languages | EN, DE, FR, IT | All 24 EU languages |
| CI scanner for unlabelled AI content | Not included | Included |
| AI register, client report and public AI page | Not included | Included |
| Licence | MIT | Per person |
| Support | GitHub issues | Agency and Lifetime |
Pro
Pro packagesAdd-ons on top of the core.
@weber-development/witness-localesAdds the notice and label wording in the 20 further official EU languages, so all 24 are covered.
@weber-development/witness-scanChecks your build output in CI for AI images, audio, video and text without a label or marking and for chats without a notice.
@weber-development/witness-reportTurns an AI register into a transparency report for your client and a public "How we use AI" page, with scan results, notice evidence and the key dates that apply.
@weber-development/witness-signSigns AI-generated images, audio and video with C2PA Content Credentials, using your own signing certificate.
Pricing
PricingPrices are in CHF.
Witness Pro is also part of the Compliance Bundle. See the Compliance Bundle
Freelancer
For one person working on client projects.
CHF 190
per year
2 months free
- 1 person
- No support entitlement
Agency
RecommendedFor teams of up to ten named people, one price.
CHF 590
per year
2 months free
- Up to 10 people
- Support included
Lifetime
Pay once for up to ten people and keep updates and repository access.
CHF 1’990
one-time
- Up to 10 people
- Support included
11 people or more: get in touch
- Pay yearly and get two months free: CHF 190 instead of CHF 228 for Freelancer, CHF 590 instead of CHF 708 for Agency.
- After cancelling, every version you already received keeps working. Only updates and repository access end.
- No licence key, no phone-home. The Pro packages never contact a server to check your licence.
- Agency and Lifetime cover up to ten named people for one price: you choose the number of seats at checkout and assign them in Polar. Your clients and their websites need no licence of their own.
- Checkout, invoices and VAT are handled by Polar as merchant of record.
FAQ
QuestionsShort answers.
Does Witness make my site compliant with the AI Act?
No tool can promise that. Witness implements the transparency measures Article 50 describes: the chatbot notice, visible labels and machine-readable marking. Whether they are enough for your case depends on your role, your system and the guidance that is still being finalised. The docs summarise the duties with sources; for a binding answer ask a lawyer.
Which duties does Witness cover?
The chatbot notice of Article 50(1), machine-readable marking of generated images and text for 50(2), and visible labels for deepfakes and AI text on matters of public interest under 50(4). Emotion recognition and biometric categorisation (50(3)) get notice wording, but the duty itself lies in how you inform people. Audio and video files get the same machine-readable XMP marking as images; a watermark inside the sound or picture itself is out of scope.
Does Witness sign images with C2PA?
The free kit writes IPTC/XMP metadata, which needs no certificate, and leaves files that already carry a C2PA manifest unchanged so the signature stays valid. Witness Pro adds witness-sign, which signs PNG, JPEG, WebP, WAV and MP4/MOV/M4A files with C2PA Content Credentials using your own signing certificate. Readers only show the signer as trusted if the certificate chains to the C2PA trust list, and Witness does not issue certificates.
Can the text watermark be removed?
Yes, on purpose it can. It survives normal copy and paste but not someone who strips it. Treat it as one layer next to the visible label and the metadata, not as proof.
Does it work without React or the Vercel AI SDK?
Yes. The notice and label are standard web components, and image and text marking are plain functions that also run in the browser. The React package and the AI SDK middleware are optional.
Articles
ArticlesGuides and release notes.
2026-10-13
Compliance Bundle 2.0: all five packages on 2.0, plus new Pro extensionsPermito, Surjection, Logarithm, Inverse and Witness are on 2.0, for free and Pro. Pro 2.1 adds a case inbox and monitoring for Inverse, a Consent Mode check for Permito and pull request comments for Surjection, all marked beta. Prices stay as they are.