disclos-sdk
v0.1.0
Published
Free EU AI Act Article 50 transparency disclosures for any website. One script tag renders a compliant 'this is AI' notice for chatbots, generated content, deepfakes, emotion recognition and biometric categorisation, in all 24 EU languages, auto-detected
Maintainers
Readme
Disclos SDK — free EU AI Act Article 50 disclosures
One <script> tag gives any website a compliant, multilingual "this is AI" notice.
Free. No account, no key, no build step. The visible text is the maintained Disclos
translation set across 24 EU languages, the same source as the
Disclos disclosure generator
and the disclos-article-50 MCP server — so it never drifts.
General information, not legal advice.
Quick start (zero code)
Add one line. The banner auto-detects the visitor's language.
<script src="https://www.disclos.eu/sdk/disclos.js" data-disclos="chatbot"></script>data-disclos accepts: chatbot, generated, deepfake, emotion, biometric.
Optional attributes:
| Attribute | Purpose | Default |
|---|---|---|
| data-target | CSS selector to inject into | top of <body> |
| data-lang | Force a language (e.g. de) | auto-detect |
| data-append | Append instead of prepend | false |
| data-attribution | Show the disclos.eu link | true |
| data-note | Show "not legal advice" line | true |
JavaScript API
<script src="https://www.disclos.eu/sdk/disclos.js"></script>
<script>
// Inject a banner
Disclos.chatbot({ target: "#chat", lang: "fr" });
Disclos.generated({ target: "#post" });
// Or just get the raw text and render it yourself
const t = Disclos.text("deepfake", "lv");
</script>Methods: Disclos.chatbot/generated/deepfake/emotion/biometric(opts),
Disclos.show(type, opts), Disclos.build(type, opts) (returns the element),
Disclos.text(type, lang), Disclos.langs, Disclos.version.
The five disclosure types
| Type | Article 50 sub-rule | Use when |
|---|---|---|
| chatbot | 50(1) | Users interact with an AI (chat, voice agent) |
| generated | 50(2) | You publish AI-generated text/image/audio/video |
| deepfake | 50(4) | Content resembles real people/places/events |
| emotion | 50(3) | You run emotion recognition |
| biometric | 50(3) | You categorise people by biometric traits |
Want it verified, not just shown?
The SDK shows the disclosure. Disclos Monitoring (paid) checks your live site every week to prove the disclosure is still there, in every language you serve, and gives you a public verification page and signed audit trail. The SDK is the free front door.
Hosting
This single file has no dependencies. Host disclos.js on your own CDN/Cloudflare
(recommended path https://www.disclos.eu/sdk/disclos.js) or load it from npm later
(disclos-sdk). MIT licensed.
