Lovable, Bolt.new, Replit y v0: Reglamento IA Art. 50 y recibos HMAC en 60 segundos

¿Lanzas una app con Lovable, Bolt.new, v0 o Replit en España o la UE? Escanea tu URL, pega un prompt y activa el aviso IA Art. 50(1) (24 idiomas UE) y recibos HMAC — las claves se quedan en el servidor.

Prepara tu app para el Art. 50

spurvik@1.0.16 · badge.js

0 cookies · sin registro

Informe DPD PDF
Pegar en el chat de 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="es" 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.

Vista previa en vivo de badge.js

Free 0 € · Pro 19 €/mes (190 €/año) · Team 79 €/mes (790 €/año) · Setup 24h 199 € pago único incl. 1 año Pro · IVA excl. · solo B2B.

Opción 1: script HTML de 1 línea (cualquier web, 0 paquetes npm)

Si tu chat de IA corre en Webflow, Shopify, PrestaShop, Oct8ne, WordPress o HTML estático, pega una línea antes de </body>. Renderiza en Shadow DOM aislado en los 24 idiomas oficiales de la UE, usa 0 cookies y envía 0 peticiones de telemetría:

Aviso de interacción IA Art. 50(1) (24 idiomas UE)
<script src="https://spurvik.com/badge.js" data-system="Support Assistant" data-locale="es" data-theme="dark" defer></script>

Coloca <div data-spurvik-badge></div> encima del campo del chat para mostrarlo integrado, o déjalo fuera para una insignia flotante.

En Free muestra un discreto enlace «Art. 50 · Spurvik». En Pro (19 €/mes) añade data-attribution="false" para una insignia marca blanca sin enlace.

Opción 2: prompt listo para pegar en Lovable + Supabase

Lovable ejecuta Vite + React en el navegador y Deno en Supabase Edge Functions. Nunca guardes SPURVIK_API_KEY ni SPURVIK_SIGNING_SECRET en variables VITE_. Pega este prompt en Lovable:

Prompt para 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="es" 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.

Opción 3: prompt listo para pegar en v0, Bolt.new y Replit

Para Next.js App Router (v0 / Bolt.new) o Node.js (Replit Agent), este prompt envuelve tu ruta de servidor sin exponer secretos en NEXT_PUBLIC_:

Prompt v0 / Bolt.new / Replit (Next.js App Router y 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="es" 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.
ControlFree (0 € — SDK MIT + Consola Free)Spurvik Pro (19 €/mes · 190 €/año, IVA excl. · B2B)
Aviso IA visible Art. 50(1) (24 idiomas UE)Incluido localmente (spurvik/react + badge.js, sin cuenta)Incluido + resumen alojado
Recibos HMAC-SHA256 (0 bytes de prompt bruto)En memoria (sin cuenta) + 10k eventos/mes (30 d, Fráncfort)250 000 eventos/mes · bóveda 90 días en Fráncfort (fra1)
Aprobación humana (Slack, Teams, Linear, email)Helpers webhook firmados en spurvik/channelsCola de aprobación alojada + interruptor de parada
Entrega a cliente / DPDRecibos JSON manualesDescarga en 1 clic Resumen técnico DPD (.md) (borrador Anexo IV en Team · 79 €/mes)
Atribución en la insigniaEnlace discreto «Art. 50 · Spurvik»Insignia marca blanca con data-attribution="false"

Alcance técnico importante

  • Aviso visible ≠ marcado Art. 50(2): <AIDisclosureLabel /> y badge.js muestran un aviso legible por personas (apoya el Art. 50(1)). El recibo HMAC firma metadatos de llamada pero no incrusta marcas de agua ni manifiestos C2PA del Art. 50(2) (plazo transitorio hasta el 2 de diciembre de 2026 según el Art. 111(4); verificador en vivo en console.spurvik.com/c2pa).
  • Tu propia clasificación de riesgo: indica tu propio SPURVIK_RISK_TIER (minimal, limited_art50 o high_annex3). Los artículos 12 y 14 se dirigen a sistemas de IA de alto riesgo.

Prueba la URL de tu app ahora mismo

Abre el sandbox sin registro para previsualizar la insignia en tu dominio, revisar tu package.json en el navegador o crear tu espacio en Fráncfort:

Free 0 € · Pro 19 €/mes (190 €/año) · Team 79 €/mes (790 €/año) · Setup 24h 199 € pago único incl. 1 año Pro · IVA excl. · solo B2B.

FAQ

¿Puedo guardar SPURVIK_API_KEY o SPURVIK_SIGNING_SECRET en VITE_ (Lovable) o NEXT_PUBLIC_ (Next.js)?

No. Nunca expongas SPURVIK_API_KEY, SPURVIK_SIGNING_SECRET ni SPURVIK_CONTENT_HASH_SECRET en paquetes del navegador (VITE_ o NEXT_PUBLIC_). Guárdalos exclusivamente en Supabase Edge Function Secrets, Replit Secrets o rutas de servidor de Next.js. En el frontend renderiza únicamente <AIDisclosureLabel /> de spurvik/react o el script sin cookies https://spurvik.com/badge.js.

¿El script badge.js instala cookies o sustituye el marcado legible por máquina del Artículo 50(2)?

badge.js instala 0 cookies, realiza 0 peticiones de telemetría y aísla su estilo en Shadow DOM en los 24 idiomas oficiales de la UE. Muestra un aviso de interacción que apoya el Artículo 50(1), pero no añade marcas de agua ni manifiestos C2PA bajo el Artículo 50(2).

¿Cuándo pasan fundadores y agencias del SDK MIT gratuito a Spurvik Pro (19 €/mes)?

El SDK MIT (spurvik 1.0.16) y badge.js cuestan 0 € sin cuenta. Equipos y agencias activan Pro (19 €/mes o 190 €/año sin IVA, B2B) cuando una app en producción necesita 90 días de retención HMAC en Fráncfort (fra1), aprobaciones humanas en Slack/Teams, insignia marca blanca y resumen técnico DPD (.md). Team (79 €/mes) añade 2 000 000 de eventos/mes, 12 meses de retención, exportación webhook y borrador técnico del Anexo IV.

¿Funciona Spurvik en las Supabase Edge Functions (Deno) creadas por Lovable?

Sí. Asigna spurvik a npm:spurvik@1.0.16 y spurvik/ a npm:/spurvik@1.0.16/ en el deno.json de la Edge Function, pasa registerProcessHooks: false y vacía la cola con límite de 3 segundos dentro de EdgeRuntime.waitUntil.

Fuentes y cockpits relacionados

Tus controles del Reglamento de IA deben vivir en unas líneas de código, no en seis meses de informes.