Lovable, Bolt.new, Replit e v0: Regolamento IA Art. 50 e ricevute HMAC in 60 secondi

Lanci un’app con Lovable, Bolt.new, v0 o Replit in Italia o nell’UE? Scansiona il tuo URL, incolla un prompt e attiva l’informativa IA Art. 50(1) (24 lingue UE) più le ricevute HMAC — le chiavi restano lato server.

Prepara la tua app per l’Art. 50

spurvik@1.0.16 · badge.js

0 cookie · senza registrazione

Brief DPO/RPD PDF
Incolla nella chat di Lovable
Add Spurvik (open-source MIT EU AI Act SDK, spurvik@1.0.16) to this app:
1. Frontend (React): install spurvik@1.0.16 and render <AIDisclosureLabel notice="interaction" locale="it" attribution={true} /> from "spurvik/react" directly above the chat messages so it is visible before the first message without clicking (Free: shows the small "Art. 50 · Spurvik" link).
2. Edge Function (supabase/functions/*/deno.json): map "spurvik" to "npm:spurvik@1.0.16" and "spurvik/" to "npm:/spurvik@1.0.16/". Keep all model calls inside the Edge Function, never in src/.
3. Secrets (Supabase Edge Function secrets ONLY, never VITE_): read SPURVIK_API_KEY, SPURVIK_SIGNING_SECRET, SPURVIK_CONTENT_HASH_SECRET, SPURVIK_BASE_URL and SPURVIK_RISK_TIER ("minimal" | "limited_art50" | "high_annex3"; never default riskTier). Throw a clear Missing variable error if any is unset, without logging secret values or user prompts.
4. Wrap the AI model with spurvikMiddleware({ apiKey, signingSecret, contentHash: { mode: "keyed", secret: contentHashSecret }, baseUrl, riskTier, article50Disclosure: true, registerProcessHooks: false, telemetry: { flushTimeoutMs: 3000 } }) from "spurvik/ai" (or withSpurvik from "spurvik" for direct OpenAI/Anthropic/Gemini SDK calls). Flush inside EdgeRuntime.waitUntil when available, and return only receipt.eventId to the browser.

Anteprima live di badge.js

Free 0 € · Pro 19 €/mese (190 €/anno) · Team 79 €/mese (790 €/anno) · Setup 24h 199 € una tantum incl. 1 anno Pro · IVA escl. · solo B2B.

Opzione 1: script HTML di 1 riga (qualsiasi sito, 0 pacchetti npm)

Se la tua chat IA gira su Webflow, Shopify, PrestaShop, LiveHelp, WordPress o HTML statico, incolla una riga prima di </body>. Renderizza in Shadow DOM isolato in tutte le 24 lingue ufficiali UE, imposta 0 cookie e invia 0 richieste di telemetria:

Informativa interazione IA Art. 50(1) (24 lingue UE)
<script src="https://spurvik.com/badge.js" data-system="Support Assistant" data-locale="it" data-theme="dark" defer></script>

Inserisci <div data-spurvik-badge></div> sopra il campo di input per la vista inline, oppure omettilo per un badge flottante.

Su Free il badge mostra un discreto link «Art. 50 · Spurvik». Su Pro (19 €/mese) imposta data-attribution="false" per un badge white-label senza link.

Opzione 2: prompt pronto da incollare per Lovable + Supabase

Lovable esegue Vite + React nel browser e Deno nelle Supabase Edge Functions. Non inserire mai SPURVIK_API_KEY o SPURVIK_SIGNING_SECRET in variabili VITE_. Incolla questo prompt in Lovable:

Prompt Lovable (React + Supabase Edge Function)
Add Spurvik (open-source MIT EU AI Act SDK, spurvik@1.0.16) to this app:
1. Frontend (React): install spurvik@1.0.16 and render <AIDisclosureLabel notice="interaction" locale="it" attribution={true} /> from "spurvik/react" directly above the chat messages so it is visible before the first message without clicking (Free: shows the small "Art. 50 · Spurvik" link).
2. Edge Function (supabase/functions/*/deno.json): map "spurvik" to "npm:spurvik@1.0.16" and "spurvik/" to "npm:/spurvik@1.0.16/". Keep all model calls inside the Edge Function, never in src/.
3. Secrets (Supabase Edge Function secrets ONLY, never VITE_): read SPURVIK_API_KEY, SPURVIK_SIGNING_SECRET, SPURVIK_CONTENT_HASH_SECRET, SPURVIK_BASE_URL and SPURVIK_RISK_TIER ("minimal" | "limited_art50" | "high_annex3"; never default riskTier). Throw a clear Missing variable error if any is unset, without logging secret values or user prompts.
4. Wrap the AI model with spurvikMiddleware({ apiKey, signingSecret, contentHash: { mode: "keyed", secret: contentHashSecret }, baseUrl, riskTier, article50Disclosure: true, registerProcessHooks: false, telemetry: { flushTimeoutMs: 3000 } }) from "spurvik/ai" (or withSpurvik from "spurvik" for direct OpenAI/Anthropic/Gemini SDK calls). Flush inside EdgeRuntime.waitUntil when available, and return only receipt.eventId to the browser.

Opzione 3: prompt pronto da incollare per v0, Bolt.new e Replit

Per Next.js App Router (v0 / Bolt.new) o Node.js (Replit Agent), questo prompt avvolge la route server senza esporre segreti in NEXT_PUBLIC_:

Prompt v0 / Bolt.new / Replit (Next.js App Router e Node)
Wire EU AI Act Art. 50 transparency and keyed HMAC call receipts into this Next.js App Router app with spurvik@1.0.16 (MIT):
1. Run: npm i spurvik@1.0.16 && npx shadcn@latest add https://spurvik.com/r/article-50-badge.json
2. UI: in app/layout.tsx render <Article50Badge systemName="AI Assistant" locale="it" position="bottom-left" /> from "@/components/article-50-badge" so the notice is visible before the first message (Free: keeps the small "Art. 50 · Spurvik" link).
3. Server only (app/api/chat/route.ts, never NEXT_PUBLIC_): read SPURVIK_API_KEY, SPURVIK_SIGNING_SECRET, SPURVIK_CONTENT_HASH_SECRET, SPURVIK_BASE_URL and SPURVIK_RISK_TIER ("minimal" | "limited_art50" | "high_annex3"; never default riskTier); throw a clear Missing variable error if any is unset. Wrap the model with wrapLanguageModel({ model, middleware: spurvikMiddleware({ apiKey, signingSecret, contentHash: { mode: "keyed", secret: contentHashSecret }, baseUrl, riskTier, article50Disclosure: true }) }) from "ai" and "spurvik/ai", then stream with streamText.
4. Never log raw user prompts, secrets or personal data.
ControlloFree (0 € — SDK MIT + Console Free)Spurvik Pro (19 €/mese · 190 €/anno, IVA escl. · B2B)
Informativa IA visibile Art. 50(1) (24 lingue UE)Inclusa localmente (spurvik/react + badge.js, senza account)Inclusa + panoramica ospitata
Ricevute HMAC-SHA256 (0 byte di prompt grezzo)In memoria (senza account) + 10k eventi/mese (30 gg, Francoforte)250 000 eventi/mese · archivio 90 giorni a Francoforte (fra1)
Approvazione umana (Slack, Teams, Linear, email)Helper webhook firmati in spurvik/channelsCoda approvazioni ospitata + kill-switch
Consegna cliente / DPORicevute JSON manualiDownload 1 clic Sintesi tecnica DPO/RPD (.md) (bozza Allegato IV su Team · 79 €/mese)
Attribuzione badgePiccolo link «Art. 50 · Spurvik»Badge white-label con data-attribution="false"

Ambito tecnico importante

  • Informativa visibile ≠ marcatura Art. 50(2): <AIDisclosureLabel /> e badge.js mostrano un avviso leggibile dalle persone (a supporto dell’Art. 50(1)). La ricevuta HMAC firma i metadati della chiamata ma non incorpora filigrane o manifesti C2PA ai sensi dell’Art. 50(2) (termine transitorio al 2 dicembre 2026 ex Art. 111(4); verifica live su console.spurvik.com/c2pa).
  • Classificazione del rischio a tua cura: passa il tuo SPURVIK_RISK_TIER (minimal, limited_art50 o high_annex3). Gli articoli 12 e 14 riguardano i sistemi IA ad alto rischio.

Prova subito l’URL della tua app

Apri la sandbox senza login per vedere l’anteprima del badge sul tuo dominio, analizzare package.json nel browser o creare il workspace a Francoforte:

Free 0 € · Pro 19 €/mese (190 €/anno) · Team 79 €/mese (790 €/anno) · Setup 24h 199 € una tantum incl. 1 anno Pro · IVA escl. · solo B2B.

FAQ

Posso salvare SPURVIK_API_KEY o SPURVIK_SIGNING_SECRET in VITE_ (Lovable) o NEXT_PUBLIC_ (Next.js)?

No. Non esporre mai SPURVIK_API_KEY, SPURVIK_SIGNING_SECRET o SPURVIK_CONTENT_HASH_SECRET nei bundle browser (VITE_ o NEXT_PUBLIC_). Conservali esclusivamente in Supabase Edge Function Secrets, Replit Secrets o route server di Next.js. Nel frontend mostra solo <AIDisclosureLabel /> da spurvik/react o lo script senza cookie https://spurvik.com/badge.js.

Lo script badge.js imposta cookie o sostituisce la marcatura leggibile da dispositivo automatico dell’Articolo 50(2)?

badge.js imposta 0 cookie, effettua 0 chiamate di telemetria e isola lo stile in Shadow DOM per tutte le 24 lingue ufficiali UE. Mostra un avviso d’interazione a supporto dell’Articolo 50(1), ma non applica filigrane né manifesti C2PA ai sensi dell’Articolo 50(2).

Quando founder e agenzie passano dall’SDK MIT gratuito a Spurvik Pro (19 €/mese)?

L’SDK MIT (spurvik 1.0.16) e badge.js costano 0 € senza account. Team e agenzie attivano Pro (19 €/mese o 190 €/anno IVA escl., B2B) quando un prodotto live richiede 90 giorni di conservazione HMAC a Francoforte (fra1), approvazioni umane su Slack/Teams, badge white-label e sintesi tecnica DPO/RPD (.md). Team (79 €/mese) aggiunge 2 000 000 di eventi/mese, 12 mesi di conservazione, export webhook e bozza tecnica Allegato IV.

Spurvik funziona nelle Supabase Edge Functions (Deno) generate da Lovable?

Sì. Mappa spurvik su npm:spurvik@1.0.16 e spurvik/ su npm:/spurvik@1.0.16/ nel file deno.json della Edge Function, imposta registerProcessHooks: false ed esegui il flush entro 3 secondi in EdgeRuntime.waitUntil.

Fonti e cockpit correlati

I controlli per il Regolamento IA devono stare in poche righe di codice, non in sei mesi di pareri.