PageSourceSearch

https://coderblock.ai/assets/DocsPage.f20162d7.js

js coderblock.ai collected 2026-10-05 13:51:41 UTC 547,211 bytes, 10,491 lines download raw bytes

1import{b as t,j as e,X as ue,be as we,_ as xe,r as Te,aA as Le,ab as Ee,bB as De,M as Me,z as Ne,e as qe,U as Fe,bS as Re,k as Ge,D as je,bT as Be,a4 as re,b7 as pe,a8 as We,bU as Ve,G as Oe,bV as _e,s as Ue,q as me,aS as Ke,a1 as m,F as he,bp as ge,L as be,Y as fe,aF as He,aH as ne,E as se,al as ve,ao as $e,b1 as Qe,b2 as Ze,a_ as Ye,a$ as Je,b0 as Xe,b4 as ea,b5 as aa,bW as ia,b6 as ta,aG as na,b8 as oa,bX as ra,l as sa,i as la,aI as da,bY as ca,bm as ua}from"./ui.052bf7f7.js";import{r as g,b as ee}from"./react-vendor.edf7d6ed.js";import{u as pa}from"./state.f05e9c2e.js";import{b as ke,L as oe,a as ma,N as ha}from"./router.0147466c.js";import{e as ye,d as J,C as y,Y as M,Z as V}from"./index.8cd13127.js";import{L as ga}from"./LanguageSwitcher.6172f4a3.js";import{a as Se,l as Ae,e as ba}from"./public-manifest.578df284.js";import{S as le,o as de,a as ce}from"./one-light.b30fcb94.js";import{M as fa}from"./index.40ec4192.js";import{r as va}from"./index.323725fd.js";import{r as ka}from"./index.9e97355c.js";import{u as ya}from"./useSEO.b7f15107.js";import"./vite-runtime.db40d06e.js";import"./content-alternates.beb0bc6c.js";function Sa(){const{language:a,setLanguage:n}=ye(),i=g.useCallback(s=>{n(s)},[n]);return[a,i]}function O(a,n){if(a)return a[n]??a.en??a.it??Object.values(a)[0]}const Pe={search:{it:"Cerca nella documentazione...",en:"Search documentation...",es:"Buscar en la documentación...",fr:"Rechercher dans la documentation...",de:"Dokumentation durchsuchen...",zh:"搜索文档..."},onThisPage:{it:"In questa pagina",en:"On this page",es:"En esta página",fr:"Sur cette page",de:"Auf dieser Seite",zh:"本页内容"}},I="w-4 h-4",$={it:"Nuovo",en:"New",es:"Nuevo",fr:"Nouveau",de:"Neu",zh:"新"},Ie=[{id:"introduction",label:{it:"Introduzione",en:"Introduction",es:"Introducción",fr:"Introduction",de:"Einführung",zh:"简介"},icon:e(Ee,{className:I}),items:[{slug:"welcome",label:{it:"Benvenuto",en:"Welcome",es:"Bienvenido",fr:"Bienvenue",de:"Willkommen",zh:"欢迎"}},{slug:"getting-started",label:{it:"Guida Rapida",en:"Getting Started",es:"Guía rápida",fr:"Démarrage",de:"Erste Schritte",zh:"快速开始"}}]},{id:"project-types",label:{it:"Tipi di Progetto",en:"Project Types",es:"Tipos de proyecto",fr:"Types de projet",de:"Projekttypen",zh:"项目类型"},icon:e(De,{className:I}),items:[{slug:"project-types",label:{it:"Web app vs Web Platform",en:"Web app vs Web Platform",es:"Web app vs Web Platform",fr:"Web app vs Web Platform",de:"Web app vs Web Platform",zh:"Web app 对比 Web Platform"},badge:$}]},{id:"ai-chat",label:{it:"AI Chat",en:"AI Chat",es:"Chat IA",fr:"Chat IA",de:"KI-Chat",zh:"AI 聊天"},icon:e(Me,{className:I}),items:[{slug:"prompting",label:{it:"Prompting",en:"Prompting",es:"Prompting",fr:"Prompting",de:"Prompting",zh:"提示技巧"}},{slug:"modes",label:{it:"Selettore del modello",en:"Model picker",es:"Selector de modelo",fr:"Sélecteur de modèle",de:"Modellauswahl",zh:"模型选择器"}},{slug:"abort-queue",label:{it:"Coda & Annulla",en:"Abort & Queue",es:"Cola y cancelar",fr:"File & Annuler",de:"Warteschlange & Abbruch",zh:"队列与中止"}}]},{id:"models",label:{it:"Modelli",en:"Models",es:"Modelos",fr:"Modèles",de:"Modelle",zh:"模型"},icon:e(Ne,{className:I}),items:[{slug:"models",label:{it:"Modelli disponibili",en:"Available models",es:"Modelos disponibles",fr:"Modèles disponibles",de:"Verfügbare Modelle",zh:"可用模型"},badge:$}]},{id:"ai-agents",label:{it:"AI Agents",en:"AI Agents",es:"Agentes IA",fr:"Agents IA",de:"KI-Agenten",zh:"AI 智能体"},icon:e(qe,{className:I}),items:[{slug:"ai-agents",label:{it:"AI Agents del progetto",en:"Project AI Agents",es:"Agentes IA del proyecto",fr:"Agents IA du projet",de:"KI-Agenten des Projekts",zh:"项目 AI 智能体"},badge:$},{slug:"ai-knowledge-base",label:{it:"Knowledge base (RAG)",en:"Knowledge base (RAG)",es:"Base de conocimiento (RAG)",fr:"Base de connaissances (RAG)",de:"Wissensdatenbank (RAG)",zh:"知识库 (RAG)"},badge:$}]},{id:"team-office",label:{it:"Team & Ufficio 3D",en:"Team & 3D Office",es:"Equipo y oficina 3D",fr:"Équipe & bureau 3D",de:"Team & 3D-Büro",zh:"团队与 3D 办公室"},icon:e(Fe,{className:I}),items:[{slug:"team-office",label:{it:"Ufficio 3D & AI Agents",en:"3D Office & AI Agents",es:"Oficina 3D y agentes IA",fr:"Bureau 3D & agents IA",de:"3D-Büro & KI-Agenten",zh:"3D 办公室与 AI 智能体"},badge:$}]},{id:"templates",label:{it:"Templates",en:"Templates",es:"Plantillas",fr:"Templates",de:"Vorlagen",zh:"模板"},icon:e(Re,{className:I}),items:[{slug:"product-templates",label:{it:"Template Prodotto",en:"Product Templates",es:"Plantillas de producto",fr:"Templates produit",de:"Produktvorlagen",zh:"产品模板"}},{slug:"feature-templates",label:{it:"Template Feature",en:"Feature Templates",es:"Plantillas de función",fr:"Templates de fonctionnalité",de:"Funktionsvorlagen",zh:"功能模板"}}]},{id:"preview-deploy",label:{it:"Preview & Deploy",en:"Preview & Deploy",es:"Vista previa y deploy",fr:"Aperçu & déploiement",de:"Vorschau & Deploy",zh:"预览与部署"},icon:e(Ge,{className:I}),items:[{slug:"preview",label:{it:"Anteprima",en:"Preview",es:"Vista previa",fr:"Aperçu",de:"Vorschau",zh:"预览"}},{slug:"production",label:{it:"Produzione",en:"Production",es:"Producción",fr:"Production",de:"Produktion",zh:"生产环境"}},{slug:"hot-reload",label:{it:"Hot Reload",en:"Hot Reload",es:"Hot Reload",fr:"Hot Reload",de:"Hot Reload",zh:"热重载"}}]},{id:"database",label:{it:"Database",en:"Database",es:"Base de datos",fr:"Base de données",de:"Datenbank",zh:"数据库"},icon:e(je,{className:I}),items:[{slug:"neondb",label:{it:"NeonDB",en:"NeonDB",es:"NeonDB",fr:"NeonDB",de:"NeonDB",zh:"NeonDB"}}
1,{slug:"sql-queries",label:{it:"Query SQL",en:"SQL Queries",es:"Consultas SQL",fr:"Requêtes SQL",de:"SQL-Abfragen",zh:"SQL 查询"}}]},{id:"env-vars",label:{it:"Variabili d'Ambiente",en:"Environment Variables",es:"Variables de entorno",fr:"Variables d'environnement",de:"Umgebungsvariablen",zh:"环境变量"},icon:e(Be,{className:I}),items:[{slug:"env-vars",label:{it:"Variabili",en:"Variables",es:"Variables",fr:"Variables",de:"Variablen",zh:"变量"}},{slug:"secrets",label:{it:"Secrets",en:"Secrets",es:"Secretos",fr:"Secrets",de:"Secrets",zh:"密钥"}}]},{id:"payments",label:{it:"Pagamenti",en:"Payments",es:"Pagos",fr:"Paiements",de:"Zahlungen",zh:"支付"},icon:e(re,{className:I}),items:[{slug:"payments",label:{it:"Accettare Pagamenti",en:"Accept Payments",es:"Aceptar pagos",fr:"Accepter les paiements",de:"Zahlungen annehmen",zh:"接受支付"}},{slug:"payments-golive",label:{it:"Andare Live",en:"Going Live",es:"Pasar a producción",fr:"Passer en live",de:"Live gehen",zh:"正式上线"}}]},{id:"image-upload",label:{it:"Upload Immagini",en:"Image Upload",es:"Subir imágenes",fr:"Upload d'images",de:"Bild-Upload",zh:"图片上传"},icon:e(pe,{className:I}),items:[{slug:"image-upload",label:{it:"Upload Immagini",en:"Image Upload",es:"Subir imágenes",fr:"Upload d'images",de:"Bild-Upload",zh:"图片上传"}},{slug:"media",label:{it:"Media",en:"Media",es:"Media",fr:"Média",de:"Medien",zh:"媒体"}}]},{id:"email",label:{it:"Email (Resend)",en:"Email (Resend)",es:"Email (Resend)",fr:"E-mail (Resend)",de:"E-Mail (Resend)",zh:"邮件 (Resend)"},icon:e(We,{className:I}),items:[{slug:"email-integration",label:{it:"Integrazione Email",en:"Email Integration",es:"Integración de email",fr:"Intégration e-mail",de:"E-Mail-Integration",zh:"邮件集成"}}]},{id:"payments-stripe",label:{it:"Pagamenti (Stripe)",en:"Payments (Stripe)",es:"Pagos (Stripe)",fr:"Paiements (Stripe)",de:"Zahlungen (Stripe)",zh:"支付 (Stripe)"},icon:e(re,{className:I}),items:[{slug:"stripe-integration",label:{it:"Integrazione Stripe",en:"Stripe Integration",es:"Integración de Stripe",fr:"Intégration Stripe",de:"Stripe-Integration",zh:"Stripe 集成"}}]},{id:"github",label:{it:"GitHub",en:"GitHub",es:"GitHub",fr:"GitHub",de:"GitHub",zh:"GitHub"},icon:e(Ve,{className:I}),items:[{slug:"github-integration",label:{it:"Integrazione GitHub",en:"GitHub Integration",es:"Integración de GitHub",fr:"Intégration GitHub",de:"GitHub-Integration",zh:"GitHub 集成"}}]},{id:"custom-domains",label:{it:"Domini Personalizzati",en:"Custom Domains",es:"Dominios personalizados",fr:"Domaines personnalisés",de:"Eigene Domains",zh:"自定义域名"},icon:e(Oe,{className:I}),items:[{slug:"custom-domains",label:{it:"Domini Personalizzati",en:"Custom Domains",es:"Dominios personalizados",fr:"Domaines personnalisés",de:"Eigene Domains",zh:"自定义域名"}}]},{id:"billing",label:{it:"Abbonamenti & Crediti",en:"Billing & Credits",es:"Facturación y créditos",fr:"Facturation & crédits",de:"Abrechnung & Credits",zh:"账单与积分"},icon:e(_e,{className:I}),items:[{slug:"billing",label:{it:"Fatturazione",en:"Billing",es:"Facturación",fr:"Facturation",de:"Abrechnung",zh:"账单"}},{slug:"credits",label:{it:"Crediti",en:"Credits",es:"Créditos",fr:"Crédits",de:"Credits",zh:"积分"}},{slug:"plans",label:{it:"Piani",en:"Plans",es:"Planes",fr:"Offres",de:"Pläne",zh:"套餐"}}]},{id:"changelog",label:{it:"Changelog",en:"Changelog",es:"Changelog",fr:"Changelog",de:"Changelog",zh:"更新日志"},icon:e(Ue,{className:I}),items:[{slug:"changelog",label:{it:"Changelog",en:"Changelog",es:"Changelog",fr:"Changelog",de:"Changelog",zh:"更新日志"}}]}];function Aa(){return Ie.flatMap(a=>a.items.map(n=>n.slug))}const Pa=({section:a,lang:n,currentSlug:i,onNavigate:s})=>{const o=a.items.some(f=>f.slug===i),[r,c]=g.useState(o),{pathname:h}=ke(),v=g.useCallback(()=>c(f=>!f),[]);return t("div",{className:"mb-1",children:[t("button",{onClick:v,className:`
2          flex items-center gap-2.5 w-full px-3 py-2 rounded-lg text-sm font-medium transition-colors
3          ${o?"text-gray-900 dark:text-white bg-gray-100 dark:bg-zinc-800/60":"text-gray-500 dark:text-zinc-400 hover:text-gray-700 dark:hover:text-zinc-200 hover:bg-gray-100 dark:hover:bg-zinc-800/40"}
4        `,children:[e("span",{className:o?"text-blue-500 dark:text-blue-400":"text-gray-400 dark:text-zinc-500",children:a.icon}),e("span",{className:"flex-1 text-left truncate",children:O(a.label,n)}),r?e(me,{className:"w-3.5 h-3.5 text-gray-400 dark:text-zinc-500"}):e(Ke,{className:"w-3.5 h-3.5 text-gray-400 dark:text-zinc-500"})]}),r&&e("div",{className:"ml-5 pl-3 border-l border-gray-200 dark:border-zinc-800 mt-1 space-y-0.5",children:a.items.map(f=>{const C=f.slug===i;return t(oe,{to:Se(ba(f.slug),Ae(h)),onClick:s,className:`
5                  flex items-center gap-2 px-3 py-1.5 rounded-md text-[13px] transition-colors
6                  ${C?"text-blue-600 dark:text-blue-400 bg-blue-50 dark:bg-blue-500/10 font-medium":"text-gray-500 dark:text-zinc-400 hover:text-gray-700 dark:hover:text-zinc-200 hover:bg-gray-100 dark:hover:bg-zinc-800/40"}
7                `,children:[e("span",{className:"flex-1 truncate",children:O(f.label,n)}),f.badge&&e("span",{className:"flex-shrink-0 rounded-full bg-emerald-100 px-1.5 py-[1px] text-[9px] font-semibold uppercase tracking-wide text-emerald-700 dark:bg-emerald-500/15 dark:text-emerald-300",children:O(f.badge,n)})]},f.slug)})})]})},Ia=({items:a,lang:n})=>a.length===0?null:t("nav",{className:"hidden xl:block w-56 flex-shrink-0 sticky top-20 self-start max-h-[calc(100vh-6rem)] overflow-y-auto scrollbar-thin",children:[e("p",{className:"text-xs font-semibold text-gray-400 dark:text-zinc-500 uppercase tracking-wider mb-3 px-1",children:O(Pe.onThisPage,n)}),e("ul",{className:"space-y-1 text-[13px]",children:a.map(i=>e("li",{children:e("a",{href:`#${i.id}`,className:`
8                block py-1 transition-colors hover:text-gray-700 dark:hover:text-zinc-200
9                ${i.level===3?"pl-4 text-gray-400 dark:text-zinc-500 hover:text-gray-600 dark:hover:text-zinc-300":"pl-1 text-gray-500 dark:text-zinc-400"}
10              `,children:i.text})},i.id))})]}),Ca=({children:a,lang:n,currentSlug:i,toc:s=[]})=>{const[o,r]=g.useState(!1),c=ke(),h=g.useCallback(()=>r(!1),[]);return t("div",{className:"min-h-screen bg-white dark:bg-zinc-950 text-gray-900 dark:text-zinc-100 transition-colors",children:[t("header",{className:"sticky top-0 z-50 h-14 bg-white/80 dark:bg-zinc-950/80 backdrop-blur-md border-b border-gray-200 dark:border-zinc-800/60 flex items-center px-4 lg:px-6 gap-4",children:[e("button",{onClick:()=>r(v=>!v),className:"lg:hidden text-gray-500 dark:text-zinc-400 hover:text-gray-900 dark:hover:text-white transition-colors","aria-label":"Toggle menu",children:o?e(ue,{className:"w-5 h-5"}):e(we,{className:"w-5 h-5"})}),t(oe,{to:Se("/docs",Ae(c.pathname)),className:"flex items-center gap-2.5 flex-shrink-0",children:[e("div",{className:"w-7 h-7 rounded-lg bg-gradient-to-br from-blue-500 to-violet-600 flex items-center justify-center",children:e("span",{className:"text-white font-bold text-xs",children:"CB"})}),e("span",{className:"text-sm font-semibold text-gray-900 dark:text-white hidden sm:inline",children:"Coderblock"}),e("span",{className:"text-xs text-gray-400 dark:text-zinc-500 hidden sm:inline",children:"Docs"})]}),e("div",{className:"hidden md:flex flex-1 max-w-md mx-auto",children:t("div",{className:"flex items-center gap-2 w-full px-3 py-1.5 rounded-lg bg-gray-50 dark:bg-zinc-900 border border-gray-200 dark:border-zinc-800 text-gray-400 dark:text-zinc-500 text-sm cursor-not-allowed",children:[e(xe,{className:"w-3.5 h-3.5"}),e("span",{children:O(Pe.search,n)}),e("kbd",{className:"ml-auto text-[10px] bg-gray-100 dark:bg-zinc-800 border border-gray-300 dark:border-zinc-700 px-1.5 py-0.5 rounded font-mono text-gray-400 dark:text-zinc-500",children:"⌘K"})]})}),t("div",{className:"flex items-center gap-2 ml-auto",children:[e(ga,{variant:"flag"}),t(oe,{to:"/apps",className:"hidden sm:flex items-center gap-1.5 text-xs text-gray-500 dark:text-zinc-400 hover:text-gray-700 dark:hover:text-zinc-200 transition-colors px-2 py-1 rounded-lg hover:bg-gray-100 dark:hover:bg-zinc-800/60",children:[e(Te,{className:"w-3.5 h-3.5"}),"App"]}),t("a",{href:"https://coderblock.ai",target:"_blank",rel:"noopener noreferrer",className:"hidden sm:flex items-center gap-1 text-xs text-gray-400 dark:text-zinc-500 hover:text-gray-600 dark:hover:text-zinc-300 transition-colors",children:["coderblock.ai",e(Le,{className:"w-3 h-3"})]})]})]}),t("div",{className:"flex",children:[o&&e("div",{className:"fixed inset-0 z-40 bg-black/60 lg:hidden",onClick:h}),e("aside",{className:`
11            fixed lg:sticky top-14 z-40 h-[calc(100vh-3.5rem)] w-72 bg-white dark:bg-zinc-950 border-r border-gray-200 dark:border-zinc-800/60
12            overflow-y-auto scrollbar-thin transition-transform duration-200
13            lg:translate-x-0 lg:flex-shrink-0
14            ${o?"translate-x-0":"-translate-x-full"}
15          `,children:e("div",{className:"px-3 py-4 space-y-0.5",children:Ie.map(v=>e(Pa,{section:v,lang:n,currentSlug:i,onNavigate:h},v.id))})}),e("main",{className:"flex-1 min-w-0 px-4 sm:px-8 lg:px-12 py-8 lg:py-10",children:t("div",{className:"flex gap-10 max-w-5xl mx-auto",children:[e("article",{className:"flex-1 min-w-0",children:a}),e(Ia,{items:s,lang:n})]})})]})]})};function A(){const{language:a}=ye();return n=>
15n[a]??n.en??n.it??Object.values(n)[0]??""}const za="[--bg:#f8fafc] [--card:#ffffff] [--line:#d8dee9] [--ink:#0f172a] [--muted:#64748b] [--blue:#2563eb] [--violet:#7c3aed] [--green:#16a34a] [--amber:#d97706] [--pink:#db2777] [--red:#dc2626]",wa="dark:[--bg:#0d1220] dark:[--card:#151b2c] dark:[--line:#28324b] dark:[--ink:#e6edff] dark:[--muted:#93a2c4] dark:[--blue:#60a5fa] dark:[--violet:#a78bfa] dark:[--green:#34d399] dark:[--amber:#fbbf24] dark:[--pink:#f472b6] dark:[--red:#f87171]",P=({caption:a,viewBox:n="0 0 880 300",children:i})=>t("figure",{className:`my-6 ${za} ${wa}`,children:[e("div",{className:"rounded-xl border border-gray-200 dark:border-zinc-800 bg-white dark:bg-zinc-900/40 overflow-hidden",children:t("svg",{viewBox:n,className:"block w-full h-auto",style:{fontFamily:'system-ui, -apple-system, "Segoe UI", Roboto, sans-serif'},children:[e("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"var(--bg)"}),i]})}),a?e("figcaption",{className:"block text-center text-xs text-gray-500 dark:text-zinc-400 mt-2.5 italic px-4",children:a}):null]}),S=({x:a,y:n,w:i,h:s,accent:o,delay:r=0,children:c})=>t(m.g,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.5,delay:r,ease:"easeOut"},children:[e("rect",{x:a,y:n,width:i,height:s,rx:14,fill:"var(--card)",stroke:o??"var(--line)",strokeWidth:o?2:1.5}),c]}),E=({d:a,color:n="var(--blue)",dur:i=1})=>e(m.path,{d:a,stroke:n,strokeWidth:2.5,fill:"none",strokeDasharray:"6 10",animate:{strokeDashoffset:[0,-32]},transition:{repeat:1/0,duration:i,ease:"linear"}}),Y=({cx:a,cy:n,r:i=6,color:s="var(--blue)"})=>e(m.circle,{cx:a,cy:n,r:i,fill:s,animate:{opacity:[.5,1,.5],scale:[.9,1.15,.9]},transition:{repeat:1/0,duration:2.2,ease:"easeInOut"},style:{transformOrigin:`${a}px ${n}px`}}),l="var(--ink)",p="var(--muted)",d="var(--blue)",z="var(--violet)",u="var(--green)",w="var(--amber)",xa="var(--pink)",Ta=()=>{const a=A(),n=[a({it:"Descrivi",en:"Describe",es:"Describe",fr:"Décris",de:"Beschreiben",zh:"描述"}),a({it:"L'AI genera",en:"AI builds",es:"La IA crea",fr:"L'IA génère",de:"KI baut",zh:"AI 生成"}),a({it:"Anteprima",en:"Live preview",es:"Vista previa",fr:"Aperçu",de:"Vorschau",zh:"实时预览"}),a({it:"Itera",en:"Iterate",es:"Itera",fr:"Itère",de:"Iterieren",zh:"迭代"}),a({it:"Pubblica",en:"Publish",es:"Publica",fr:"Publie",de:"Publizieren",zh:"发布"})],i=[30,220,410,600,762],s=[120,120,120,120,90];return t(P,{caption:a({it:"Il ciclo di Coderblock: descrivi, l'AI genera, vedi l'anteprima dal vivo, iteri e pubblichi.",en:"The Coderblock loop: describe, the AI builds, you see a live preview, iterate and publish.",es:"El ciclo de Coderblock: describe, la IA crea, ves una vista previa en vivo, iteras y publicas.",fr:"La boucle Coderblock : décris, l'IA génère, tu vois un aperçu en direct, itère et publie.",de:"Der Coderblock-Zyklus: beschreiben, die KI baut, Live-Vorschau, iterieren und publizieren.",zh:"Coderblock 循环:描述、AI 生成、实时预览、迭代并发布。"}),children:[e(E,{d:"M150 120 H210 M340 120 H400 M530 120 H590"}),e("path",{d:"M665 175 C665 245, 85 245, 85 175",stroke:"var(--line)",strokeWidth:2.5,fill:"none",strokeDasharray:"7 9"}),n.map((o,r)=>t(S,{x:i[r],y:70,w:s[r],h:100,delay:.1+r*.35,accent:r===4?u:void 0,children:[e("circle",{cx:i[r]+s[r]/2,cy:110,r:16,fill:[d,z,d,d,u][r],opacity:.18}),e("circle",{cx:i[r]+s[r]/2,cy:110,r:7,fill:[d,z,d,d,u][r]}),e("text",{x:i[r]+s[r]/2,y:192,fontSize:13,fontWeight:700,fill:l,textAnchor:"middle",children:o})]},r)),e(Y,{cx:180,cy:120})]})},La=()=>{const a=A(),n=[a({it:"Prodotto",en:"Product",es:"Producto",fr:"Produit",de:"Produkt",zh:"商品"}),a({it:"Carrello",en:"Cart",es:"Carrito",fr:"Panier",de:"Warenkorb",zh:"购物车"}),a({it:"Checkout sicuro",en:"Secure checkout",es:"Pago seguro",fr:"Paiement sécurisé",de:"Sicherer Checkout",zh:"安全结账"}),a({it:"Pagato",en:"Paid",es:"Pagado",fr:"Payé",de:"Bezahlt",zh:"已支付"})],i=[40,252,492,702];return t(P,{caption:a({it:"Il percorso di un pagamento: dal prodotto al carrello, al checkout sicuro con Stripe, fino al pagamento riuscito.",en:"A payment's journey: from product to cart, to a secure Stripe checkout, to a successful payment.",es:"El recorrido de un pago: del producto al carrito, al pago seguro con Stripe, hasta el pago exitoso.",fr:"Le parcours d'un paiement : du produit au panier, au paiement sécurisé Stripe, jusqu'au paiement réussi.",de:"Der Weg einer Zahlung: vom Produkt zum Warenkorb, zum sicheren Stripe-Checkout, bis zur erfolgreichen Zahlung.",zh:"一次支付的旅程:从商品到购物车,到 Stripe 安全结账,直至支付成功。"}),children:[e(E,{d:"M190 130 H250 M430 130 H490 M670 130 H700"}),n.map((s,o)=>e(S,{x:i[o],y:80,w:o===3?138:150,h:100,delay:.15+o*.4,accent:o===3?u:void 0,children:e("text",{x:i[o]+(o===3?69:75),y:200,fontSize:13,fontWeight:700,fill:l,textAnchor:"middle",children:s})},o)),e("g",{transform:"translate(115,130)",children:e("rect",{x:-24,y:-26,width:48,height:30,rx:6,fill:d,opacity:.7})}),e("text",{x:567,y:120,fontSize:14,fontWeight:700,fill:"#fff",textAnchor:"middle",children:e("tspan",{children:"Stripe"})}),e("rect",{x:516,y:102,width:102,height:30,rx:6,fill:z,opacity:.9}),e("text",{x:567,y:122,fontSize:13,fontWeight:700,fill:"#fff",textAnchor:"middle",children:"Stripe"}),t(m.g,{initial:{pathLength:0},animate:{pathLength:1},transition:{duration:.6,delay:1.9},children:[e("circle",{cx:771,cy:122,r:26,fill:u,opacity:.15}),e(m.path,{d:"M759 122 l9 9 16 -18",fill:"none",stroke:u,strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",initial:{pathLength:0},animate:{pathLength:1},transition:{duration:.5,delay:1.9}})]})]})},Ea=()=>{const a=A();
15return t(P,{viewBox:"0 0 880 320",caption:a({it:"Provi in privato sull'Anteprima (coderblock.dev), poi pubblichi con un click in Produzione (coderblock.app).",en:"You test privately on the Preview (coderblock.dev), then publish to Production (coderblock.app) in one click.",es:"Pruebas en privado en la Vista previa (coderblock.dev) y publicas en Producción (coderblock.app) con un clic.",fr:"Tu testes en privé sur l'Aperçu (coderblock.dev), puis tu publies en Production (coderblock.app) en un clic.",de:"Du testest privat in der Vorschau (coderblock.dev) und veröffentlichst mit einem Klick in Produktion (coderblock.app).",zh:"你在预览环境(coderblock.dev)私下测试,然后一键发布到生产环境(coderblock.app)。"}),children:[t(S,{x:40,y:50,w:330,h:200,delay:.2,children:[e("rect",{x:40,y:50,width:330,height:40,rx:16,fill:d,opacity:.12}),e("circle",{cx:66,cy:70,r:5,fill:d}),e("text",{x:86,y:75,fontSize:15,fontWeight:700,fill:l,children:a({it:"Anteprima",en:"Preview",es:"Vista previa",fr:"Aperçu",de:"Vorschau",zh:"预览"})}),e("text",{x:350,y:75,fontSize:12,fill:p,textAnchor:"end",children:a({it:"solo tu",en:"just you",es:"solo tú",fr:"toi seul",de:"nur du",zh:"仅你"})}),e("rect",{x:70,y:140,width:270,height:86,rx:8,fill:d,opacity:.1}),e("text",{x:205,y:122,fontSize:12,fill:p,textAnchor:"middle",children:"tuo-progetto.coderblock.dev"})]}),e(E,{d:"M375 150 H505",color:u}),e("text",{x:440,y:138,fontSize:13,fontWeight:700,fill:u,textAnchor:"middle",children:"Deploy"}),t(S,{x:510,y:50,w:330,h:200,delay:.7,children:[e("rect",{x:510,y:50,width:330,height:40,rx:16,fill:u,opacity:.14}),e(Y,{cx:536,cy:70,r:5,color:u}),e("text",{x:556,y:75,fontSize:15,fontWeight:700,fill:l,children:a({it:"Produzione",en:"Production",es:"Producción",fr:"Production",de:"Produktion",zh:"生产环境"})}),e("text",{x:820,y:75,fontSize:12,fill:p,textAnchor:"end",children:a({it:"tutti",en:"everyone",es:"todos",fr:"tout le monde",de:"alle",zh:"所有人"})}),e("rect",{x:540,y:140,width:270,height:86,rx:8,fill:u,opacity:.1}),e("text",{x:675,y:122,fontSize:12,fill:p,textAnchor:"middle",children:"tuo-progetto.coderblock.app"})]})]})},Da=()=>{const a=A();return t(P,{viewBox:"0 0 880 300",caption:a({it:"Due tipi di progetto: Web app con backend gestito (consigliata) e Web Platform con Python e FastAPI (avanzata).",en:"Two project types: Web app with a managed backend (recommended) and Web Platform with Python + FastAPI (advanced).",es:"Dos tipos de proyecto: Web app con backend gestionado (recomendada) y Web Platform con Python + FastAPI (avanzada).",fr:"Deux types de projet : Web app avec backend géré (recommandée) et Web Platform avec Python + FastAPI (avancée).",de:"Zwei Projekttypen: Web app mit verwaltetem Backend (empfohlen) und Web Platform mit Python + FastAPI (fortgeschritten).",zh:"两种项目类型:托管后端的 Web app(推荐)和使用 Python + FastAPI 的 Web Platform(进阶)。"}),children:[t(S,{x:40,y:40,w:360,h:220,delay:.15,accent:d,children:[e("text",{x:72,y:82,fontSize:17,fontWeight:700,fill:l,children:"Web app"}),e("text",{x:72,y:104,fontSize:12,fill:p,children:a({it:"consigliata",en:"recommended",es:"recomendada",fr:"recommandée",de:"empfohlen",zh:"推荐"})}),t("text",{x:64,y:150,fontSize:13,fontWeight:700,fill:l,children:["✓ ",a({it:"Backend incluso e gestito",en:"Backend included & managed",es:"Backend incluido y gestionado",fr:"Backend inclus et géré",de:"Backend inklusive & verwaltet",zh:"后端已包含并托管"})]}),t("text",{x:64,y:182,fontSize:13,fontWeight:700,fill:l,children:["✓ ",a({it:"Database, login e pagamenti",en:"Database, login & payments",es:"Base de datos, login y pagos",fr:"Base de données, connexion et paiements",de:"Datenbank, Login & Zahlungen",zh:"数据库、登录与支付"})]}),t("text",{x:64,y:214,fontSize:13,fontWeight:700,fill:l,children:["✓ ",a({it:"Nessuna configurazione server",en:"No server setup",es:"Sin configurar servidores",fr:"Aucune config serveur",de:"Keine Server-Einrichtung",zh:"无需服务器配置"})]})]}),t(S,{x:480,y:40,w:360,h:220,delay:.5,children:[e("text",{x:512,y:82,fontSize:17,fontWeight:700,fill:l,children:"Web Platform"}),e("text",{x:512,y:104,fontSize:12,fill:p,children:a({it:"avanzata",en:"advanced",es:"avanzada",fr:"avancée",de:"fortgeschritten",zh:"进阶"})}),t("text",{x:504,y:150,fontSize:13,fontWeight:700,fill:l,children:["⚙ ",a({it:"Backend Python + FastAPI tuo",en:"Your own Python + FastAPI",es:"Tu backend Python + FastAPI",fr:"Ton backend Python + FastAPI",de:"Eigenes Python + FastAPI",zh:"你自己的 Python + FastAPI"})]}),t("text",{x:504,y:182,fontSize:13,fontWeight:700,fill:l,children:["⚙ ",a({it:"Logica server su misura",en:"Custom server logic",es:"Lógica de servidor a medida",fr:"Logique serveur sur mesure",de:"Eigene Server-Logik",zh:"自定义服务器逻辑"})]}),t("text",{x:504,y:214,fontSize:13,fontWeight:700,fill:l,children:["⚙ ",a({it:"Massima flessibilità",en:"Maximum flexibility",es:"Máxima flexibilidad",fr:"Flexibilité maximale",de:"Maximale Flexibilität",zh:"最大灵活性"})]})]})]})},Ma=()=>{const a=A(),n=[{name:"GLM 5.3 Flash",c:u,x:60},{name:"Claude Sonnet 5.5",c:d,x:242},{name:"Claude Opus 5.5",c:z,x:486},{name:"Claude Fable 5",c:w,x:670}];return t(P,{caption:a({it:"I modelli: dal più veloce ed economico al più curato e potente. Scegli quello adatto al task.",en:"The models: from faster and cheaper to more refined and powerful. Pick the one that fits the task.",es:"Los modelos: del más rápido y barato al más refinado y potente. Elige el que encaje con la tarea.",fr:"Les modèles : du plus rapide et économique au plus raffiné et puissant. Choisis celui qui convient à la tâche.",de:"Die Modelle: von schneller und günstiger bis feiner und leistungsstärker. Wähle das passende für die Aufgabe.",zh:"模型:从更快更省到更精细更强大,按任务选择合适的模型。"}),children:[t("text",{x:60,y:60,fontSize:13,fill:p,children:["← ",a({it:"più veloce ed economico",en:"faster & cheaper",es:"más rápido y barato",fr:"plus rapide et économique",de:"schneller & günstiger",zh:"更快更省"})]}),t("text",{x:820,y:60,fontSize:13,fill:p,textAnchor:"end",children:[a({it:"più curato e potente",en:"more refined & powerful",es:"más refinado y potente",fr:"plus raffiné et puissant",de:"feiner & leistungsstärker",zh:"更精细更强大"})," →"]}),e("rect",{x:60,y:80,width:760,height:8,rx:4,fill:"var(--line)"}),t(m.g,{animate:{x:[0,200,430,620,0]},transition:{repeat:1/0,duration:6,ease:"easeInOut"},children:[e("circle",{cx:70,cy:84,r:13,fill:d}),e("circle",{cx:70,cy:84,r:5,fill:"var(--card)"})]}),n.map((i,s)=>t(S,{x:i.x,y:140,w:150,h:100,delay:.15+s*.25,children:[e("circle",{cx:i.x+20,cy:172,r:8,fill:i.c}),e("text",{x:i.x+34,y:177,fontSize:12,fontWeight:700,fill:l,children:i.name})]},s))]})},Na=()=>{const a=A();
15return t(P,{viewBox:"0 0 880 280",caption:a({it:"Hot reload: l'AI modifica un file, la modifica arriva in 2–5 secondi e l'anteprima si aggiorna da sola.",en:"Hot reload: the AI edits a file, the change lands in 2–5 seconds and the preview updates on its own.",es:"Hot reload: la IA edita un archivo, el cambio llega en 2–5 segundos y la vista previa se actualiza sola.",fr:"Hot reload : l'IA modifie un fichier, le changement arrive en 2–5 s et l'aperçu se met à jour tout seul.",de:"Hot reload: die KI ändert eine Datei, die Änderung ist in 2–5 Sekunden da und die Vorschau aktualisiert sich selbst.",zh:"热重载:AI 修改文件,2–5 秒后更改生效,预览自动刷新。"}),children:[e(E,{d:"M250 130 H360 M520 130 H600",dur:.9}),t(S,{x:60,y:80,w:190,h:100,children:[e("rect",{x:86,y:104,width:120,height:10,rx:5,fill:z,opacity:.8}),e("rect",{x:86,y:124,width:90,height:8,rx:4,fill:p,opacity:.45}),e("text",{x:155,y:205,fontSize:13,fontWeight:700,fill:l,textAnchor:"middle",children:a({it:"L'AI modifica un file",en:"The AI edits a file",es:"La IA edita un archivo",fr:"L'IA modifie un fichier",de:"KI ändert eine Datei",zh:"AI 修改文件"})})]}),e(m.path,{d:"M420 100 l-16 30 h12 l-6 22 20 -34 h-12 z",fill:d,animate:{opacity:[.4,1,.4]},transition:{repeat:1/0,duration:2.4}}),e("text",{x:440,y:205,fontSize:13,fill:p,textAnchor:"middle",children:"2–5s"}),t(S,{x:610,y:70,w:210,h:120,children:[e("rect",{x:632,y:108,width:80,height:60,rx:6,fill:d,opacity:.1}),t(m.g,{style:{transformOrigin:"735px 122px"},animate:{rotate:[0,0,360]},transition:{repeat:1/0,duration:2.4,times:[0,.55,1]},children:[e("path",{d:"M742 122 a12 12 0 1 0 4 -9",fill:"none",stroke:u,strokeWidth:3}),e("polygon",{points:"742,108 730,112 740,120",fill:u})]}),e("text",{x:715,y:215,fontSize:13,fontWeight:700,fill:l,textAnchor:"middle",children:a({it:"L'anteprima si aggiorna",en:"Preview auto-updates",es:"La vista se actualiza",fr:"L'aperçu se met à jour",de:"Vorschau aktualisiert",zh:"预览自动更新"})})]})]})},qa=()=>{const a=A(),n=[{emoji:"🎨",c:xa,cx:180,cy:90,label:a({it:"Design",en:"Design",es:"Diseño",fr:"Design",de:"Design",zh:"设计"}),ly:140},{emoji:"💻",c:d,cx:700,cy:90,label:"Frontend",ly:140},{emoji:"⚙️",c:z,cx:150,cy:240,label:"Backend",ly:288},{emoji:"🛡️",c:u,cx:730,cy:240,label:a({it:"Sicurezza",en:"Security",es:"Seguridad",fr:"Sécurité",de:"Sicherheit",zh:"安全"}),ly:288},{emoji:"📣",c:w,cx:440,cy:270,label:"Marketing",ly:314}];return t(P,{viewBox:"0 0 880 320",caption:a({it:"Un team di agenti AI specializzati (design, frontend, backend, sicurezza, marketing) coordinati da un capo-progetto.",en:"A team of specialized AI agents (design, frontend, backend, security, marketing) coordinated by a project lead.",es:"Un equipo de agentes de IA especializados (diseño, frontend, backend, seguridad, marketing) coordinados por un líder.",fr:"Une équipe d'agents IA spécialisés (design, frontend, backend, sécurité, marketing) coordonnés par un chef de projet.",de:"Ein Team spezialisierter KI-Agenten (Design, Frontend, Backend, Sicherheit, Marketing), koordiniert von einem Projektleiter.",zh:"一支由项目负责人协调的专业 AI 智能体团队(设计、前端、后端、安全、营销)。"}),children:[n.map((i,s)=>e("path",{d:`M440 160 L${i.cx} ${i.cy}`,stroke:"var(--line)",strokeWidth:2,strokeDasharray:"5 7",fill:"none"},"l"+s)),t(m.g,{animate:{opacity:[.85,1,.85]},transition:{repeat:1/0,duration:2.4},children:[e("circle",{cx:440,cy:160,r:46,fill:d,opacity:.16}),e("circle",{cx:440,cy:160,r:30,fill:d}),e("path",{d:"M440 145 l4 9 9 4 -9 4 -4 9 -4 -9 -9 -4 9 -4 z",fill:"#fff"})]}),e("text",{x:440,y:128,fontSize:12,fontWeight:700,fill:l,textAnchor:"middle",children:a({it:"Coordinatore",en:"Coordinator",es:"Coordinador",fr:"Coordinateur",de:"Koordinator",zh:"协调者"})}),n.map((i,s)=>t(m.g,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:.2+s*.2},style:{transformOrigin:`${i.cx}px ${i.cy}px`},children:[e("circle",{cx:i.cx,cy:i.cy,r:26,fill:i.c,opacity:.9}),e("text",{x:i.cx,y:i.cy+6,fontSize:18,textAnchor:"middle",children:i.emoji}),e("text",{x:i.cx,y:i.ly,fontSize:12,fontWeight:700,fill:l,textAnchor:"middle",children:i.label})]},s))]})},Fa=()=>{const a=A();return t(P,{caption:a({it:"Carichi i tuoi documenti (listini, FAQ, manuali), l'AI li impara e risponde ai clienti con le tue informazioni.",en:"Upload your documents (price lists, FAQs, manuals), the AI learns them and answers customers with your info.",es:"Subes tus documentos (tarifas, FAQ, manuales), la IA los aprende y responde a los clientes con tu información.",fr:"Tu téléverses tes documents (tarifs, FAQ, manuels), l'IA les apprend et répond aux clients avec tes infos.",de:"Du lädst deine Dokumente hoch (Preislisten, FAQs, Handbücher), die KI lernt sie und antwortet Kunden mit deinen Infos.",zh:"上传你的文档(价目表、常见问题、手册),AI 学习后用你的信息回答客户。"}),children:[e("text",{x:140,y:52,fontSize:13,fontWeight:700,fill:l,textAnchor:"middle",children:a({it:"I tuoi documenti",en:"Your documents",es:"Tus documentos",fr:"Tes documents",de:"Deine Dokumente",zh:"你的文档"})}),[0,1,2].map(n=>
15t(m.g,{animate:{opacity:[0,1,1,0],y:[10,0,0,-6]},transition:{repeat:1/0,duration:3,delay:n*.5},children:[e("rect",{x:70+n*40,y:70+n*20,width:60,height:76,rx:8,fill:"var(--card)",stroke:"var(--line)",strokeWidth:1.5}),e("rect",{x:80+n*40,y:84+n*20,width:40,height:7,rx:3.5,fill:p,opacity:.5})]},n)),e(E,{d:"M230 130 H330",color:z}),e("circle",{cx:400,cy:130,r:52,fill:z,opacity:.14}),e("text",{x:400,y:146,fontSize:46,textAnchor:"middle",children:"🧠"}),e("text",{x:400,y:210,fontSize:13,fontWeight:700,fill:l,textAnchor:"middle",children:a({it:"L'AI impara",en:"AI learns",es:"La IA aprende",fr:"L'IA apprend",de:"KI lernt",zh:"AI 学习"})}),e(E,{d:"M470 130 H560",color:z}),t(S,{x:580,y:60,w:240,h:150,children:[e("rect",{x:600,y:80,width:150,height:26,rx:13,fill:d,opacity:.14}),e("rect",{x:640,y:120,width:160,height:70,rx:13,fill:u,opacity:.16}),e("circle",{cx:620,cy:176,r:8,fill:u}),e("text",{x:620,y:180,fontSize:10,textAnchor:"middle",fill:"#fff",children:"AI"}),e("text",{x:700,y:240,fontSize:12,fill:p,textAnchor:"middle",children:a({it:"Risponde con le TUE info",en:"Answers with YOUR info",es:"Responde con TU info",fr:"Répond avec TES infos",de:"Antwortet mit DEINEN Infos",zh:"用你的信息回答"})})]})]})},Ra=()=>{const a=A();return t(P,{caption:a({it:"Un prompt vago dà risultati generici; un prompt chiaro e specifico dà risultati mirati.",en:"A vague prompt gives generic results; a clear, specific prompt gives targeted ones.",es:"Un prompt vago da resultados genéricos; uno claro y específico da resultados precisos.",fr:"Un prompt vague donne des résultats génériques ; un prompt clair et précis donne des résultats ciblés.",de:"Ein vager Prompt liefert generische Ergebnisse; ein klarer, konkreter liefert gezielte.",zh:"模糊的提示给出泛泛的结果;清晰具体的提示给出精准的结果。"}),children:[t(m.g,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{delay:.2},children:[e("rect",{x:40,y:60,width:380,height:80,rx:14,fill:"var(--card)",stroke:"var(--red)",strokeWidth:1.5}),e("text",{x:70,y:98,fontSize:20,children:"🙈"}),e("text",{x:104,y:92,fontSize:12,fill:p,children:a({it:"prompt vago",en:"vague prompt",es:"prompt vago",fr:"prompt vague",de:"vager Prompt",zh:"模糊提示"})}),t("text",{x:104,y:114,fontSize:15,fontWeight:700,fill:l,children:['"',a({it:"fammi un sito",en:"make me a site",es:"hazme un sitio",fr:"fais-moi un site",de:"mach mir eine Seite",zh:"给我做个网站"}),'"']})]}),t(m.g,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{delay:.7},children:[e("rect",{x:40,y:170,width:380,height:90,rx:14,fill:"var(--card)",stroke:"var(--green)",strokeWidth:1.5}),e(m.text,{x:70,y:210,fontSize:20,animate:{opacity:[.5,1,.5]},transition:{repeat:1/0,duration:1.8},children:"✨"}),e("text",{x:104,y:200,fontSize:12,fill:p,children:a({it:"prompt chiaro",en:"clear prompt",es:"prompt claro",fr:"prompt clair",de:"klarer Prompt",zh:"清晰提示"})}),t("text",{x:104,y:222,fontSize:12,fontWeight:700,fill:l,children:['"',a({it:"Landing per ristorante con hero, menù e prenotazione",en:"Restaurant landing with hero, menu and booking",es:"Landing de restaurante con hero, menú y reserva",fr:"Landing resto avec hero, menu et réservation",de:"Restaurant-Landing mit Hero, Menü und Buchung",zh:"餐厅落地页:主视觉、菜单与预订"}),'"']})]}),e("text",{x:620,y:150,fontSize:30,textAnchor:"middle",children:"➡️"}),t(m.g,{initial:{opacity:0}
15,animate:{opacity:1},transition:{delay:1},children:[e("rect",{x:520,y:90,width:320,height:120,rx:14,fill:u,opacity:.12}),e("rect",{x:545,y:110,width:270,height:16,rx:5,fill:u,opacity:.8}),e("rect",{x:545,y:140,width:130,height:50,rx:6,fill:d,opacity:.3}),e("rect",{x:685,y:140,width:130,height:50,rx:6,fill:d,opacity:.2})]})]})},Ga=()=>{const a=A(),n=[{c:d,x:50,y:66,label:a({it:"Negozio",en:"Store",es:"Tienda",fr:"Boutique",de:"Shop",zh:"商店"})},{c:u,x:196,y:66,label:a({it:"Prenotazioni",en:"Booking",es:"Reservas",fr:"Réservation",de:"Buchung",zh:"预订"})},{c:z,x:50,y:160,label:"Dashboard"},{c:w,x:196,y:160,label:a({it:"Gioco/3D",en:"Game/3D",es:"Juego/3D",fr:"Jeu/3D",de:"Spiel/3D",zh:"游戏/3D"})}];return t(P,{caption:a({it:"Scegli un template pronto e in pochi secondi ottieni un'app completa da personalizzare con la chat.",en:"Pick a ready-made template and in seconds you get a complete app to customize through chat.",es:"Elige una plantilla lista y en segundos tienes una app completa para personalizar con el chat.",fr:"Choisis un template prêt et en quelques secondes tu as une app complète à personnaliser via le chat.",de:"Wähle eine fertige Vorlage und in Sekunden hast du eine komplette App, die du per Chat anpasst.",zh:"选择一个现成模板,几秒钟就能得到一个可通过聊天定制的完整应用。"}),children:[e("text",{x:200,y:46,fontSize:13,fontWeight:700,fill:l,textAnchor:"middle",children:a({it:"32 template pronti",en:"32 ready templates",es:"32 plantillas listas",fr:"32 templates prêts",de:"32 fertige Vorlagen",zh:"32 个现成模板"})}),n.map((i,s)=>t(m.g,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:.15+s*.15},children:[e("rect",{x:i.x,y:i.y,width:130,height:80,rx:12,fill:"var(--card)",stroke:s===0?d:"var(--line)",strokeWidth:s===0?3:1.5}),e("rect",{x:i.x+16,y:i.y+16,width:98,height:30,rx:6,fill:i.c,opacity:.3}),e("text",{x:i.x+16,y:i.y+66,fontSize:11,fill:p,children:i.label})]},s)),e(E,{d:"M350 150 H470"}),t(m.g,{initial:{opacity:0}
15,animate:{opacity:[0,0,1]},transition:{repeat:1/0,duration:3,times:[0,.45,.6]},children:[e("rect",{x:500,y:60,width:330,height:180,rx:16,fill:"var(--card)",stroke:"var(--line)",strokeWidth:1.5}),e("rect",{x:500,y:60,width:330,height:34,rx:16,fill:d,opacity:.12}),e("rect",{x:524,y:112,width:130,height:18,rx:5,fill:l,opacity:.8}),e("rect",{x:524,y:140,width:282,height:60,rx:8,fill:d,opacity:.14}),e("rect",{x:524,y:210,width:90,height:16,rx:8,fill:u})]})]})},ja=()=>{const a=A(),n=[{y:46,c:u,label:"👤 "+a({it:"Utenti",en:"Users",es:"Usuarios",fr:"Utilisateurs",de:"Nutzer",zh:"用户"})},{y:116,c:d,label:"📦 "+a({it:"Ordini",en:"Orders",es:"Pedidos",fr:"Commandes",de:"Bestellungen",zh:"订单"})},{y:186,c:z,label:"🏷️ "+a({it:"Prodotti",en:"Products",es:"Productos",fr:"Produits",de:"Produkte",zh:"商品"})}];return t(P,{viewBox:"0 0 880 280",caption:a({it:"Il database salva i dati della tua app (utenti, ordini, prodotti) in tabelle collegate tra loro.",en:"The database stores your app's data (users, orders, products) in tables linked to each other.",es:"La base de datos guarda los datos de tu app (usuarios, pedidos, productos) en tablas relacionadas.",fr:"La base de données stocke les données de ton app (utilisateurs, commandes, produits) dans des tables reliées.",de:"Die Datenbank speichert die Daten deiner App (Nutzer, Bestellungen, Produkte) in verknüpften Tabellen.",zh:"数据库将你应用的数据(用户、订单、商品)存储在相互关联的表中。"}),children:[e("ellipse",{cx:130,cy:70,rx:70,ry:20,fill:d,opacity:.9}),e("path",{d:"M60 70 v120 a70 20 0 0 0 140 0 v-120",fill:d,opacity:.25}),e("path",{d:"M60 70 v120 a70 20 0 0 0 140 0 v-120",fill:"none",stroke:d,strokeWidth:2}),e("ellipse",{cx:130,cy:70,rx:70,ry:20,fill:"none",stroke:d,strokeWidth:2}),e(Y,{cx:130,cy:130,r:7,color:u}),e("text",{x:130,y:240,fontSize:14,fontWeight:700,fill:l,textAnchor:"middle",children:a({it:"Il tuo database",en:"Your database",es:"Tu base de datos",fr:"Ta base de données",de:"Deine Datenbank",zh:"你的数据库"})}),n.map((i,s)=>t(m.g,{initial:{opacity:0,x:-6},animate:{opacity:1,x:0},transition:{delay:.3+s*.2},children:[e("rect",{x:330,y:i.y,width:200,height:58,rx:10,fill:"var(--card)",stroke:"var(--line)",strokeWidth:1.5}),e("rect",{x:330,y:i.y,width:200,height:24,rx:10,fill:i.c,opacity:.18}),e("text",{x:346,y:i.y+17,fontSize:12,fontWeight:700,fill:l,children:i.label}),e("rect",{x:346,y:i.y+34,width:80,height:7,rx:3.5,fill:p,opacity:.4})]},s)),e("path",{d:"M545 75 C620 90, 620 130, 545 145",stroke:z,strokeWidth:2,fill:"none",strokeDasharray:"5 6"}),e("path",{d:"M545 145 C620 160, 620 200, 545 215",stroke:z,strokeWidth:2,fill:"none",strokeDasharray:"5 6"}),e("text",{x:660,y:150,fontSize:12,fill:p,children:a({it:"tabelle collegate",en:"linked tables",es:"tablas enlazadas",fr:"tables reliées",de:"verknüpfte Tabellen",zh:"关联表"})}),e(E,{d:"M205 130 H320",color:z})]})},Ba=()=>{const a=A();return t(P,{viewBox:"0 0 880 260",caption:a({it:"Le chiavi segrete restano in una cassaforte: l'app le usa ma non sono mai visibili nel codice o al pubblico.",en:"Secret keys stay in a vault: your app uses them but they are never visible in the code or to the public.",es:"Las claves secretas quedan en una caja fuerte: la app las usa pero nunca son visibles en el código ni al público.",fr:"Les clés secrètes restent dans un coffre : l'app les utilise mais elles ne sont jamais visibles dans le code ni au public.",de:"Geheime Schlüssel bleiben im Tresor: die App nutzt sie, aber sie sind nie im Code oder öffentlich sichtbar.",zh:"密钥保存在保险库中:应用使用它们,但绝不会出现在代码里或对外可见。"}),children:[e("rect",{x:70,y:60,width:220,height:150,rx:16,fill:"var(--card)",stroke:w,strokeWidth:2}),e(m.path,{d:"M160 92 v-8 a20 20 0 0 1 40 0 v8",fill:"none",stroke:w,strokeWidth:7,strokeLinecap:"round",animate:{y:[-6,-6,0]},transition:{repeat:1/0,duration:3,times:[0,.4,.55]}}),e("rect",{x:150,y:92,width:60,height:52,rx:8,fill:w}),e("circle",{cx:180,cy:116,r:7,fill:"var(--card)"}),e("text",{x:180,y:180,fontSize:13,fontWeight:700,fill:l,textAnchor:"middle",children:a({it:"Cassaforte segreti",en:"Secrets vault",es:"Caja fuerte",fr:"Coffre à secrets",de:"Geheimnis-Tresor",zh:"密钥保险库"})}),e(E,{d:"M300 135 H430",color:u}),t(S,{x:450,y:70,w:200,h:130,children:[e("rect",{x:450,y:70,width:200,height:30,rx:14,fill:d,opacity:.12}),e("text",{x:470,y:90,fontSize:12,fontWeight:700,fill:l,children:a({it:"La tua app",en:"Your app",es:"Tu app",fr:"Ton app",de:"Deine App",zh:"你的应用"})}),e(Y,{cx:480,cy:140,r:6,color:w}),e("rect",{x:496,y:135,width:130,height:10,rx:5,fill:p,opacity:.4})]}),t("g",{transform:"translate(720,135)",children:[e("text",{x:0,y:6,fontSize:30,textAnchor:"middle",children:"👁️"}),e("line",{x1:-22,y1:-18,x2:22,y2:20,stroke:"var(--red)",strokeWidth:4,strokeLinecap:"round"}),e("text",{x:0,y:48,fontSize:11,fill:p,textAnchor:"middle",children:a({it:"mai pubbliche",en:"never public",es:"nunca públicas",fr:"jamais publiques",de:"nie öffentlich",zh:"绝不公开"})})]})]})},Wa=()=>{const a=A();
15return t(P,{viewBox:"0 0 880 260",caption:a({it:"Collega il tuo dominio: aggiungi due record DNS, aspetti la verifica e la tua app va online sul tuo indirizzo, con HTTPS.",en:"Connect your domain: add two DNS records, wait for verification and your app goes live on your address, with HTTPS.",es:"Conecta tu dominio: añade dos registros DNS, espera la verificación y tu app queda en línea en tu dirección, con HTTPS.",fr:"Connecte ton domaine : ajoute deux enregistrements DNS, attends la vérification et ton app est en ligne sur ton adresse, avec HTTPS.",de:"Verbinde deine Domain: zwei DNS-Einträge hinzufügen, Verifizierung abwarten und deine App ist unter deiner Adresse live, mit HTTPS.",zh:"连接你的域名:添加两条 DNS 记录,等待验证,你的应用便以你的地址上线,并启用 HTTPS。"}),children:[e(E,{d:"M270 130 H330 M560 130 H620"}),t(S,{x:40,y:70,w:230,h:120,delay:.2,children:[t("text",{x:60,y:98,fontSize:13,fontWeight:700,fill:l,children:["1 · ",a({it:"Aggiungi 2 record DNS",en:"Add 2 DNS records",es:"Añade 2 registros DNS",fr:"Ajoute 2 enreg. DNS",de:"2 DNS-Einträge",zh:"添加 2 条 DNS 记录"})]}),e("rect",{x:60,y:112,width:190,height:26,rx:6,fill:"var(--bg)",stroke:"var(--line)"}),e("text",{x:72,y:129,fontSize:11,fontFamily:"monospace",fill:p,children:"CNAME → coderblock.app"}),e("rect",{x:60,y:146,width:190,height:26,rx:6,fill:"var(--bg)",stroke:"var(--line)"}),e("text",{x:72,y:163,fontSize:11,fontFamily:"monospace",fill:p,children:"A → ..."})]}),t(S,{x:332,y:70,w:226,h:120,delay:.6,children:[t("text",{x:352,y:98,fontSize:13,fontWeight:700,fill:l,children:["2 · ",a({it:"Verifica automatica",en:"Auto verification",es:"Verificación auto.",fr:"Vérification auto",de:"Auto-Verifizierung",zh:"自动验证"})]}),e("circle",{cx:445,cy:140,r:30,fill:w,opacity:.16}),e(m.path,{d:"M445 122 v18 l12 8",fill:"none",stroke:w,strokeWidth:3.5,strokeLinecap:"round",style:{transformOrigin:"445px 140px"},animate:{rotate:360},transition:{repeat:1/0,duration:4,ease:"linear"}})]}),t(S,{x:620,y:70,w:220,h:120,delay:1,accent:u,children:[t("text",{x:640,y:98,fontSize:13,fontWeight:700,fill:l,children:["3 · ",a({it:"Online sul tuo dominio",en:"Live on your domain",es:"En vivo en tu dominio",fr:"En ligne sur ton domaine",de:"Live auf deiner Domain",zh:"在你的域名上线"})]}),e("rect",{x:640,y:112,width:180,height:30,rx:15,fill:u,opacity:.14}),e("text",{x:676,y:132,fontSize:12,fontWeight:700,fill:l,children:"🔒 www.tuosito.com"}),e(m.path,{d:"M666 165 l8 8 16 -18",fill:"none",stroke:u,strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",initial:{pathLength:0},animate:{pathLength:1},transition:{delay:1.5,duration:.5}}),e("text",{x:720,y:184,fontSize:11,fill:p,children:"HTTPS"})]})]})},Va=()=>{const a=A();return t(P,{viewBox:"0 0 880 240",caption:a({it:"La tua app invia email automatiche: conferme, ricevute e notifiche arrivano nella casella del cliente.",en:"Your app sends automatic emails: confirmations, receipts and notifications land in the customer inbox.",es:"Tu app envía correos automáticos: confirmaciones, recibos y avisos llegan al buzón del cliente.",fr:"Ton app envoie des e-mails automatiques : confirmations, reçus et notifications arrivent dans la boîte du client.",de:"Deine App sendet automatische E-Mails: Bestätigungen, Belege und Benachrichtigungen landen im Postfach des Kunden.",zh:"你的应用自动发送邮件:确认、收据和通知会送达客户收件箱。"}),children:[t(S,{x:60,y:70,w:190,h:110,children:[e("rect",{x:60,y:70,width:190,height:30,rx:14,fill:d,opacity:.12}),e("text",{x:80,y:90,fontSize:12,fontWeight:700,fill:l,children:a({it:"La tua app",en:"Your app",es:"Tu app",fr:"Ton app",de:"Deine App",zh:"你的应用"})}),e("text",{x:100,y:150,fontSize:34,children:"⚙️"}),e("text",{x:155,y:150,fontSize:12,fill:p,children:a({it:"nuovo ordine",en:"new order",es:"nuevo pedido",fr:"nouvelle commande",de:"neue Bestellung",zh:"新订单"})})]}),e("path",{d:"M250 120 C400 60, 500 60, 630 120",fill:"none",stroke:"var(--line)",strokeWidth:2,strokeDasharray:"4 7"}),t(m.g,{animate:{offsetDistance:["0%","100%"],opacity:[0,1,1,0]},transition:{repeat:1/0,duration:3,ease:"easeInOut"},style:{offsetPath:"path('M250 120 C400 60, 500 60, 630 120')"},children:[e("rect",{x:-18,y:-13,width:36,height:26,rx:4,fill:d}),e("path",{d:"M-18 -13 L0 2 L18 -13",fill:"none",stroke:"#fff",strokeWidth:2})]}),t(S,{x:630,y:60,w:200,h:130,children:[t("text",{x:650,y:86,fontSize:12,fontWeight:700,fill:l,children:["📬 ",a({it:"Casella cliente",en:"Customer inbox",es:"Buzón del cliente",fr:"Boîte du client",de:"Kunden-Postfach",zh:"客户收件箱"})]}
15),t(m.g,{animate:{opacity:[0,0,1]},transition:{repeat:1/0,duration:3,times:[0,.8,.9]},children:[e("rect",{x:650,y:98,width:160,height:28,rx:6,fill:u,opacity:.16}),e("text",{x:680,y:116,fontSize:11,fontWeight:700,fill:l,children:a({it:"Conferma ordine ✓",en:"Order confirmed ✓",es:"Pedido confirmado ✓",fr:"Commande confirmée ✓",de:"Bestellung bestätigt ✓",zh:"订单已确认 ✓"})})]}),e("rect",{x:650,y:132,width:160,height:22,rx:5,fill:p,opacity:.18})]})]})},Oa=()=>{const a=A(),n=[{cy:88,label:a({it:"aggiunto carrello",en:"added cart",es:"añadido carrito",fr:"panier ajouté",de:"Warenkorb ergänzt",zh:"添加购物车"}),delay:1.3},{cy:126,label:a({it:"pagina prodotti",en:"products page",es:"página productos",fr:"page produits",de:"Produktseite",zh:"商品页面"}),delay:.8},{cy:164,label:a({it:"setup iniziale",en:"initial setup",es:"configuración inicial",fr:"config initiale",de:"Erst-Setup",zh:"初始设置"}),delay:.3}];return t(P,{viewBox:"0 0 880 240",caption:a({it:"Colleghi GitHub e ogni modifica del progetto viene salvata in un repository, con lo storico di tutte le versioni.",en:"Connect GitHub and every change to your project is saved to a repository, with the full history of every version.",es:"Conectas GitHub y cada cambio del proyecto se guarda en un repositorio, con el historial de todas las versiones.",fr:"Tu connectes GitHub et chaque changement du projet est enregistré dans un dépôt, avec tout l’historique des versions.",de:"Du verbindest GitHub und jede Änderung wird in einem Repository gespeichert, mit der vollständigen Versionshistorie.",zh:"连接 GitHub,项目的每次更改都会保存到仓库中,并保留所有版本的历史记录。"}),children:[t(S,{x:60,y:70,w:180,h:100,children:[e("rect",{x:60,y:70,width:180,height:30,rx:14,fill:d,opacity:.12}),e("text",{x:80,y:90,fontSize:12,fontWeight:700,fill:l,children:a({it:"Il tuo progetto",en:"Your project",es:"Tu proyecto",fr:"Ton projet",de:"Dein Projekt",zh:"你的项目"})}),e("rect",{x:84,y:116,width:132,height:9,rx:4.5,fill:p,opacity:.5})]}),e(E,{d:"M245 120 H330",color:u}),e("circle",{cx:400,cy:120,r:42,fill:l}),e("text",{x:400,y:134,fontSize:40,textAnchor:"middle",children:"🐙"}),e("text",{x:400,y:192,fontSize:13,fontWeight:700,fill:l,textAnchor:"middle",children:"GitHub"}),e(E,{d:"M448 120 H520",color:u}),e("line",{x1:560,y1:70,x2:560,y2:180,stroke:"var(--line)",strokeWidth:2}),n.map((i,s)=>t(m.g,{initial:{opacity:0,x:-4},animate:{opacity:1,x:0},transition:{delay:i.delay},children:[e("circle",{cx:560,cy:i.cy,r:7,fill:u}),e("rect",{x:580,y:i.cy-8,width:230,height:18,rx:6,fill:"var(--card)",stroke:"var(--line)"}),e("text",{x:592,y:i.cy+5,fontSize:11,fill:p,children:i.label})]},s))]})},_a=()=>{const a=A();return t(P,{viewBox:"0 0 880 240",caption:a({it:"I crediti sono il carburante: ogni messaggio all'AI ne consuma un po', si ricaricano ogni mese o li acquisti quando servono.",en:"Credits are the fuel: every message to the AI uses some, they refill each month or you buy more when needed.",es:"Los créditos son el combustible: cada mensaje a la IA consume algunos, se recargan cada mes o compras más cuando hace falta.",fr:"Les crédits sont le carburant : chaque message à l'IA en consomme, ils se rechargent chaque mois ou tu en achètes au besoin.",de:"Credits sind der Treibstoff: jede Nachricht an die KI verbraucht etwas, sie füllen sich monatlich auf oder du kaufst nach.",zh:"积分就是燃料:每条发给 AI 的消息都会消耗一些,每月自动补充,也可按需购买。"}),children:[t(m.g,{style:{transformOrigin:"120px 120px"},animate:{scale:[1,1.12,1]},transition:{repeat:1/0,duration:3},children:[e("circle",{cx:120,cy:120,r:46,fill:w,opacity:.2}),e("circle",{cx:120,cy:120,r:34,fill:w}),e("text",{x:120,y:132,fontSize:30,textAnchor:"middle",children:"⚡"})]}),e("text",{x:120,y:196,fontSize:13,fontWeight:700,fill:l,textAnchor:"middle",children:a({it:"Crediti = carburante",en:"Credits = fuel",es:"Créditos = combustible",fr:"Crédits = carburant",de:"Credits = Treibstoff",zh:"积分 = 燃料"})}),e("rect",{x:260,y:66,width:320,height:30,rx:15,fill:"var(--card)",stroke:"var(--line)"}),e(m.rect,{x:260,y:66,height:30,rx:15,fill:u,opacity:.55,animate:{width:[300,120,300]},transition:{repeat:1/0,duration:5,ease:"easeInOut"}}),e("text",{x:260,y:122,fontSize:12,fill:p,children:a({it:"ogni messaggio consuma un po' di crediti",en:"each message uses a bit of credits",es:"cada mensaje consume algo de créditos",fr:"chaque message consomme un peu de crédits",de:"jede Nachricht verbraucht etwas Credits",zh:"每条消息消耗少量积分"})}),t(S,{x:620,y:70,w:220,h:120,children:[e("text",{x:640,y:98,fontSize:13,fontWeight:700,fill:l,children:a({it:"Come si ricaricano",en:"How they refill",es:"Cómo se recargan",fr:"Comment ils se rechargent",de:"Wie sie sich füllen",zh:"如何补充"})}),t("text",{x:640,y:126,fontSize:12,fill:p,children:["🔄 ",a({it:"ogni mese col tuo piano",en:"monthly with your plan",es:"cada mes con tu plan",fr:"chaque mois avec ton offre",de:"monatlich mit deinem Plan",zh:"每月随套餐补充"})]}),t("text",{x:640,y:152,fontSize:12,fill:p,children:["➕ ",a({it:"acquisti extra quando servono",en:"buy extra when needed",es:"compra extra cuando haga falta",fr:"achète-en au besoin",de:"bei Bedarf nac
15hkaufen",zh:"按需购买额外积分"})]})]})]})},Ua=()=>{const a=A();return t(P,{viewBox:"0 0 880 280",caption:a({it:"I piani a confronto: Community gratis per iniziare, Pro e Business con più crediti e funzionalità man mano che cresci.",en:"The plans side by side: Community free to start, Pro and Business with more credits and features as you grow.",es:"Los planes comparados: Community gratis para empezar, Pro y Business con más créditos y funciones al crecer.",fr:"Les offres comparées : Community gratuit pour démarrer, Pro et Business avec plus de crédits et de fonctions.",de:"Die Pläne im Vergleich: Community gratis zum Start, Pro und Business mit mehr Credits und Funktionen.",zh:"套餐对比:Community 免费起步,Pro 和 Business 随成长提供更多积分与功能。"}),children:[e("text",{x:440,y:40,fontSize:13,fill:p,textAnchor:"middle",children:a({it:"Cresci quando vuoi: cambi piano in ogni momento",en:"Grow anytime: switch plans whenever you like",es:"Crece cuando quieras: cambia de plan en cualquier momento",fr:"Évolue quand tu veux : change d’offre à tout moment",de:"Wachse jederzeit: wechsle den Plan wann du willst",zh:"随时成长:任何时候都可更换套餐"})}),t(S,{x:50,y:90,w:230,h:150,delay:.15,children:[e("text",{x:70,y:122,fontSize:16,fontWeight:700,fill:l,children:"Community"}),e("text",{x:70,y:150,fontSize:22,fontWeight:700,fill:u,children:a({it:"Gratis",en:"Free",es:"Gratis",fr:"Gratuit",de:"Gratis",zh:"免费"})}),t("text",{x:70,y:186,fontSize:12,fill:p,children:["✓ ",a({it:"Crea e provi le tue app",en:"Build & test your apps",es:"Crea y prueba tus apps",fr:"Crée et teste tes apps",de:"Apps bauen & testen",zh:"创建并测试应用"})]})]}),e(m.g,{animate:{y:[0,-4,0]},transition:{repeat:1/0,duration:2.4},children:t(S,{x:300,y:70,w:240,h:170,delay:.4,accent:d,children:[e("rect",{x:300,y:70,width:240,height:30,rx:16,fill:d}),e("text",{x:420,y:90,fontSize:12,fontWeight:700,fill:"#fff",textAnchor:"middle",children:a({it:"PIÙ SCELTO",en:"MOST POPULAR",es:"MÁS ELEGIDO",fr:"LE PLUS CHOISI",de:"BELIEBT",zh:"最受欢迎"})}),e("text",{x:320,y:132,fontSize:16,fontWeight:700,fill:l,children:"Pro"}),e("text",{x:320,y:160,fontSize:20,fontWeight:700,fill:d,children:a({it:"più crediti",en:"more credits",es:"más créditos",fr:"plus de crédits",de:"mehr Credits",zh:"更多积分"})}),t("text",{x:320,y:190,fontSize:12,fill:p,children:["✓ ",a({it:"Tutti i modelli + progetti illimitati",en:"All models + unlimited projects",es:"Todos los modelos + proyectos ilimitados",fr:"Tous les modèles + projets illimités",de:"Alle Modelle + unbegrenzte Projekte",zh:"全部模型 + 无限项目"})]})]})}),t(S,{x:560,y:90,w:230,h:150,delay:.65,children:[e("text",{x:580,y:122,fontSize:16,fontWeight:700,fill:l,children:"Business"}),e("text",{x:580,y:150,fontSize:22,fontWeight:700,fill:z,children:a({it:"massimo",en:"maximum",es:"máximo",fr:"maximum",de:"Maximum",zh:"最高"})}),t("text",{x:580,y:186,fontSize:12,fill:p,children:["✓ ",a({it:"Team, priorità e supporto",en:"Team, priority & support",es:"Equipo, prioridad y soporte",fr:"Équipe, priorité et support",de:"Team, Priorität & Support",zh:"团队、优先级与支持"})]})]})]})},Ka=()=>{const a=A();return t(P,{viewBox:"0 0 880 240",caption:a({it:"Trascini un'immagine nella chat: viene caricata in modo sicuro e usata subito nella tua app.",en:"Drag an image into the chat: it is uploaded securely and used in your app right away.",es:"Arrastras una imagen al chat: se sube de forma segura y se usa en tu app al instante.",fr:"Tu glisses une image dans le chat : elle est envoyée en toute sécurité et utilisée aussitôt dans ton app.",de:"Zieh ein Bild in den Chat: es wird sicher hochgeladen und sofort in deiner App verwendet.",zh:"把图片拖进聊天:它会被安全上传并立即用于你的应用。"}),children:[e("rect",{x:60,y:60,width:240,height:130,rx:14,fill:d,opacity:.08,stroke:d,strokeWidth:2,strokeDasharray:"8 6"}),t(m.g,{animate:{y:[-30,0,0,0],opacity:[0,1,1,0]},transition:{repeat:1/0,duration:3,times:[0,.2,.6,.75]},children:[e("rect",{x:140,y:86,width:80,height:60,rx:8,fill:"var(--card)",stroke:"var(--line)"}),e("circle",{cx:162,cy:106,r:8,fill:d,opacity:.7}),e("path",{d:"M148 138 l20 -20 16 14 12 -8 16 14 z",fill:u,opacity:.7})]}),e("text",{x:180,y:176,fontSize:12,fill:p,textAnchor:"middle",children:a({it:"trascina qui",en:"drop here",es:"suelta aquí",fr:"dépose ici",de:"hier ablegen",zh:"拖放到此"})}),e("rect",{x:365,y:112,width:150,height:12,rx:6,fill:"var(--card)",stroke:"var(--line)"}),e(m.rect,{x:365,y:112,height:12,rx:6,fill:u,animate:{width:[0,150,150]},transition:{repeat:1/0,duration:3,times:[0,.6,1]}}),e("text",{x:440,y:100,fontSize:12,fontWeight:700,fill:l,textAnchor:"middle",children:a({it:"Upload sicuro",en:"Secure upload",es:"Subida segura",fr:"Envoi sécurisé",de:"Sicherer Upload",zh:"安全上传"})}),t(S,{x:580,y:60,w:240,h:130,children:[e("rect",{x:580,y:60,width:240,height:30,rx:14,fill:d,opacity:.12}),e("text",{x:600,y:80,fontSize:12,fontWeight:700,fill:l,children:a({it:"La tua app",en:"Your app",es:"Tu app",fr:"Ton app",de:"Deine App",zh:"你的应用"})}
15),t(m.g,{animate:{opacity:[0,0,1]},transition:{repeat:1/0,duration:3,times:[0,.7,.85]},children:[e("rect",{x:600,y:104,width:90,height:66,rx:8,fill:d,opacity:.2}),e("path",{d:"M606 162 l16 -16 12 10 10 -8 12 14 z",fill:u,opacity:.7})]})]})]})},Ha=()=>{const a=A(),n=[a({it:"aggiungi una galleria foto",en:"add a photo gallery",es:"añade una galería",fr:"ajoute une galerie",de:"Fotogalerie hinzufügen",zh:"添加照片画廊"}),a({it:'crea la pagina "chi siamo"',en:'create the "about" page',es:'crea la página "acerca de"',fr:"crée la page « à propos »",de:"Über-uns-Seite erstellen",zh:"创建“关于”页面"}),a({it:"imposta i colori del brand",en:"set the brand colors",es:"define los colores de marca",fr:"définis les couleurs de marque",de:"Markenfarben festlegen",zh:"设置品牌配色"})];return t(P,{viewBox:"0 0 880 240",caption:a({it:"Metti in coda più richieste che partono da sole una dopo l'altra, e fermi l'AI quando vuoi con Stop.",en:"Queue up several requests that run on their own one after another, and stop the AI whenever you want.",es:"Pon en cola varias peticiones que se ejecutan solas una tras otra, y detén la IA cuando quieras.",fr:"Mets en file plusieurs demandes qui s'exécutent seules l'une après l'autre, et arrête l'IA quand tu veux.",de:"Reihe mehrere Anfragen ein, die nacheinander von selbst laufen, und stoppe die KI, wann du willst.",zh:"将多个请求排队,它们会依次自动执行,你也可以随时点击停止。"}),children:[e(m.g,{animate:{opacity:[.6,1,.6]},transition:{repeat:1/0,duration:2.4},children:e("rect",{x:60,y:70,width:180,height:100,rx:14,fill:"var(--card)",stroke:d,strokeWidth:2})}),e(m.g,{style:{transformOrigin:"150px 120px"},animate:{rotate:360},transition:{repeat:1/0,duration:1.5,ease:"linear"},children:e("path",{d:"M150 100 a20 20 0 1 0 14 6",fill:"none",stroke:d,strokeWidth:4,strokeLinecap:"round"})}),e("text",{x:150,y:188,fontSize:12,fontWeight:700,fill:l,textAnchor:"middle",children:a({it:"in esecuzione…",en:"running…",es:"en ejecución…",fr:"en cours…",de:"läuft…",zh:"执行中…"})}),e("text",{x:270,y:60,fontSize:13,fontWeight:700,fill:l,children:a({it:"In coda (partono da sole)",en:"Queued (run on their own)",es:"En cola (se ejecutan solas)",fr:"En file (auto)",de:"In Warteschlange (auto)",zh:"排队中(自动执行)"})}),n.map((i,s)=>t("g",{children:[e("rect",{x:270,y:72+s*38,width:330,height:30,rx:8,fill:"var(--card)",stroke:"var(--line)"}),e("circle",{cx:290,cy:87+s*38,r:6,fill:p,opacity:.5-s*.1}),e("text",{x:306,y:91+s*38,fontSize:11,fill:p,children:i})]},s)),t(m.g,{style:{transformOrigin:"720px 120px"},animate:{scale:[1,1.08,1]},transition:{repeat:1/0,duration:2.4},children:[e("circle",{cx:720,cy:115,r:42,fill:"var(--red)",opacity:.16}),e("circle",{cx:720,cy:115,r:30,fill:"var(--red)"}),e("rect",{x:708,y:103,width:24,height:24,rx:4,fill:"#fff"})]}),e("text",{x:720,y:184,fontSize:13,fontWeight:700,fill:l,textAnchor:"middle",children:"Stop"})]})},$a=()=>{const a=A(),n=[{n:"1",label:a({it:"Dashboard",en:"Dashboard",es:"Panel",fr:"Tableau",de:"Dashboard",zh:"仪表盘"}),x:30,w:165},{n:"2",label:a({it:"Scegli base",en:"Pick a base",es:"Elige base",fr:"Choisis une base",de:"Basis wählen",zh:"选择基础"}),x:240,w:165},{n:"3",label:a({it:"Dai un nome",en:"Name it",es:"Ponle nombre",fr:"Nomme-le",de:"Benennen",zh:"命名"}),x:450,w:165},{n:"4",label:a({it:"Chatta con l'AI",en:"Chat with the AI",es:"Chatea con la IA",fr:"Discute avec l'IA",de:"Mit der KI chatten",zh:"与 AI 聊天"}),x:660,w:185}];return t(P,{viewBox:"0 0 880 260",caption:a({it:"Dai primi passi al primo messaggio: apri la dashboard, scegli una base, dai un nome e inizia a chattare con l’AI.",en:"From zero to your first message: open the dashboard, pick a base, name it and start chatting with the AI.",es:"De cero a tu primer mensaje: abre el panel, elige una base, ponle nombre y empieza a chatear con la IA.",fr:"De zéro à ton premier message : ouvre le tableau de bord, choisis une base, nomme-le et discute avec l'IA.",de:"Von null zur ersten Nachricht: Dashboard öffnen, Basis wählen, benennen und mit der K
15I chatten.",zh:"从零到第一条消息:打开仪表盘、选择基础、命名并开始与 AI 聊天。"}),children:[e(E,{d:"M195 130 H225 M405 130 H435 M615 130 H645"}),n.map((i,s)=>t(S,{x:i.x,y:80,w:i.w,h:100,delay:.15+s*.4,accent:s===3?u:void 0,children:[e("circle",{cx:i.x+30,cy:122,r:16,fill:s===3?u:d,opacity:.18}),e("text",{x:i.x+30,y:128,fontSize:15,fontWeight:700,fill:s===3?u:d,textAnchor:"middle",children:i.n}),e("text",{x:i.x+i.w/2+14,y:128,fontSize:13,fontWeight:700,fill:l,textAnchor:"middle",children:i.label})]},s))]})},Qa=()=>{const a=A();return t(P,{viewBox:"0 0 880 240",caption:a({it:"Prima provi i pagamenti in modalità Test con carte finte, poi passi a Live per incassare soldi veri.",en:"First you test payments in Test mode with fake cards, then you switch to Live to collect real money.",es:"Primero pruebas los pagos en modo Test con tarjetas falsas, luego pasas a Live para cobrar dinero real.",fr:"D’abord tu testes les paiements en mode Test avec de fausses cartes, puis tu passes en Live pour encaisser vraiment.",de:"Zuerst testest du Zahlungen im Test-Modus mit Testkarten, dann wechselst du zu Live für echtes Geld.",zh:"先在测试模式用测试卡验证支付,然后切换到 Live 收取真实款项。"}),children:[e("text",{x:440,y:52,fontSize:13,fill:p,textAnchor:"middle",children:a({it:"Un interruttore: Test → Live",en:"One switch: Test → Live",es:"Un interruptor: Test → Live",fr:"Un interrupteur : Test → Live",de:"Ein Schalter: Test → Live",zh:"一个开关:测试 → 上线"})}),e(m.rect,{x:392,y:70,width:96,height:40,rx:20,animate:{fill:[w,w,u]},transition:{repeat:1/0,duration:4,times:[0,.4,.6]},opacity:.85}),e(m.circle,{cy:90,r:15,fill:"#fff",animate:{cx:[412,412,464]},transition:{repeat:1/0,duration:4,times:[0,.4,.6]}}),t(m.g,{animate:{opacity:[1,1,.25]},transition:{repeat:1/0,duration:4,times:[0,.5,.65]},children:[e("rect",{x:60,y:130,width:330,height:80,rx:14,fill:"var(--card)",stroke:w,strokeWidth:1.5}),t("text",{x:82,y:160,fontSize:14,fontWeight:700,fill:w,children:["🧪 ",a({it:"Modalità Test",en:"Test mode",es:"Modo Test",fr:"Mode Test",de:"Test-Modus",zh:"测试模式"})]}),e("text",{x:82,y:186,fontSize:12,fill:p,children:a({it:"carte finte · nessun soldo reale",en:"fake cards · no real money",es:"tarjetas falsas · sin dinero real",fr:"fausses cartes · pas d’argent réel",de:"Testkarten · kein echtes Geld",zh:"测试卡 · 无真实资金"})})]}),t(m.g,{animate:{opacity:[0,0,1]},transition:{repeat:1/0,duration:4,times:[0,.5,.65]},children:[e("rect",{x:490,y:130,width:330,height:80,rx:14,fill:"var(--card)",stroke:u,strokeWidth:2}),t("text",{x:512,y:160,fontSize:14,fontWeight:700,fill:u,children:["💳 ",a({it:"Modalità Live",en:"Live mode",es:"Modo Live",fr:"Mode Live",de:"Live-Modus",zh:"上线模式"})]}),e("text",{x:512,y:186,fontSize:12,fill:p,children:a({it:"carte vere · incassi reali",en:"real cards · real income",es:"tarjetas reales · ingresos reales",fr:"vraies cartes · vrais revenus",de:"echte Karten · echte Einnahmen",zh:"真实卡 · 真实收入"})})]})]})},Za=()=>{const a=A(),n=[{cx:150,c:d,top:!0,title:"v1",sub:a({it:"creazione app",en:"build apps",es:"crear apps",fr:"créer des apps",de:"Apps bauen",zh:"创建应用"})},{cx:360,c:z,top:!1,title:"v2",sub:a({it:"pagamenti",en:"payments",es:"pagos",fr:"paiements",de:"Zahlungen",zh:"支付"})},{cx:570,c:u,top:!0,title:"v3",sub:a({it:"team AI",en:"AI team",es:"equipo IA",fr:"équipe IA",de:"KI-Team",zh:"AI 团队"})},{cx:760,c:d,top:!1,title:a({it:"oggi",en:"today",es:"hoy",fr:"aujourd'hui",de:"heute",zh:"今天"}),sub:a({it:"novità ✨",en:"new ✨",es:"novedades ✨",fr:"nouveautés ✨",de:"Neues ✨",zh:"新功能 ✨"}),pulse:!0}];return t(P,{viewBox:"0 0 880 220",caption:a({it:"Il changelog è la linea del tempo delle novità: ogni versione porta nuove funzionalità e miglioramenti.",en:"The changelog is the timeline of what's new: every version brings fresh features and improvements.",es:"El changelog es la línea de tiempo de novedades: cada versión trae nuevas funciones y mejoras.",fr:"Le changelog est la frise des nouveautés : chaque version apporte de nouvelles fonctions et améliorations.",de:"Das Changelog ist die Zeitleiste der Neuerungen: jede Version bringt neue Funktionen und Verbesserungen.",zh:"更新日志是新功能的时间线:每个版本都带来新功能和改进。"}),children:[e(m.line,{x1:70,y1:110,x2:810,y2:110,stroke:"var(--line)",strokeWidth:3,initial:{pathLength:0},animate:{pathLength:1},transition:{duration:1.4}}),n.map((i,s)=>t(m.g,{initial:{opacity:0,scale:.8}
15,animate:{opacity:1,scale:1},transition:{delay:.2+s*.3},style:{transformOrigin:`${i.cx}px 110px`},children:[i.pulse?e(Y,{cx:i.cx,cy:110,r:12,color:i.c}):e("circle",{cx:i.cx,cy:110,r:10,fill:i.c}),e("rect",{x:i.cx-60,y:i.top?40:130,width:140,height:46,rx:10,fill:"var(--card)",stroke:i.pulse?d:"var(--line)",strokeWidth:i.pulse?2:1.5}),e("text",{x:i.cx-46,y:i.top?60:150,fontSize:12,fontWeight:700,fill:l,children:i.title}),e("text",{x:i.cx-46,y:i.top?77:167,fontSize:11,fill:p,children:i.sub})]},s))]})},Ya={"build-loop":Ta,"payment-funnel":La,"preview-vs-production":Ea,"project-types":Da,modes:Ma,"hot-reload":Na,"agents-team":qa,"knowledge-base":Fa,prompting:Ra,templates:Ga,database:ja,secrets:Ba,"custom-domain":Wa,email:Va,github:Oa,credits:_a,plans:Ua,media:Ka,queue:Ha,"create-project":$a,golive:Qa,changelog:Za},Ja=({name:a})=>{const n=Ya[a.trim()];return n?e(n,{}):null};function Q(a){return a.toLowerCase().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").trim()}function Xa(a){const n=[],i=a.split(`
16`);for(const s of i){const o=s.match(/^## (.+)/),r=s.match(/^### (.+)/);o?n.push({id:Q(o[1]),text:o[1],level:2}):r&&n.push({id:Q(r[1]),text:r[1],level:3})}return n}const ei={info:{icon:e(ge,{className:"w-4 h-4"}),border:"border-blue-500/40",bg:"bg-blue-50 dark:bg-blue-500/10",iconColor:"text-blue-500 dark:text-blue-400",titleColor:"text-blue-600 dark:text-blue-300"},tip:{icon:e(be,{className:"w-4 h-4"}),border:"border-emerald-500/40",bg:"bg-emerald-50 dark:bg-emerald-500/10",iconColor:"text-emerald-500 dark:text-emerald-400",titleColor:"text-emerald-600 dark:text-emerald-300"},warning:{icon:e(fe,{className:"w-4 h-4"}),border:"border-amber-500/40",bg:"bg-amber-50 dark:bg-amber-500/10",iconColor:"text-amber-500 dark:text-amber-400",titleColor:"text-amber-600 dark:text-amber-300"},danger:{icon:e(He,{className:"w-4 h-4"}),border:"border-red-500/40",bg:"bg-red-50 dark:bg-red-500/10",iconColor:"text-red-500 dark:text-red-400",titleColor:"text-red-600 dark:text-red-300"}},ai={info:"Info",tip:"Tip",warning:"Warning",danger:"Danger"};function ii(a){const n=ee.Children.toArray(a)[0];if(!n||typeof n!="object"||!("props"in n))return null;const i=n.props?.children;if(typeof i!="string"&&!Array.isArray(i))return null;const s=typeof i=="string"?i:String(i[0]??""),o=[[/^\[!TIP\]/i,"tip"],[/^\[!INFO\]/i,"info"],[/^\[!WARNING\]/i,"warning"],[/^\[!DANGER\]/i,"danger"],[/^💡\s?/i,"tip"],[/^ℹ️\s?/i,"info"],[/^⚠️\s?/i,"warning"],[/^🚨\s?/i,"danger"]];for(const[r,c]of o)if(r.test(s)){const h=typeof i=="string"?i.replace(r,"").trim():[String(i[0]).replace(r,"").trim(),...i.slice(1)],v=ee.Children.toArray(a).slice(1);return{type:c,content:t(he,{children:[(Array.isArray(h),h),v]})}}return null}function ti(){const[a,n]=ee.useState(()=>typeof document<"u"&&document.documentElement.classList.contains("dark"));return ee.useEffect(()=>{const i=new MutationObserver(()=>{n(document.documentElement.classList.contains("dark"))});return i.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>i.disconnect()},[]),a}const Ce=({content:a,className:n=""})=>{const i=ti(),s=g.useMemo(()=>({h1:({children:o,...r})=>{const c=String(o),h=Q(c);return e("h1",{id:h,className:"text-3xl sm:text-4xl font-bold text-gray-900 dark:text-white mt-0 mb-6 pb-3 border-b border-gray-200 dark:border-zinc-800",...r,children:o})},h2:({children:o,...r})=>{const c=String(o),h=Q(c);return e("h2",{id:h,className:"text-2xl font-semibold text-gray-900 dark:text-white mt-10 mb-4 scroll-mt-20",...r,children:o})},h3:({children:o,...r})=>{const c=String(o),h=Q(c);return e("h3",{id:h,className:"text-xl font-semibold text-gray-800 dark:text-zinc-100 mt-8 mb-3 scroll-mt-20",...r,children:o})},h4:({children:o,...r})=>e("h4",{className:"text-lg font-medium text-gray-700 dark:text-zinc-200 mt-6 mb-2",...r,children:o}),p:({children:o,...r})=>e("p",{className:"text-gray-600 dark:text-zinc-300 leading-7 mb-4",...r,children:o}),a:({children:o,href:r,...c})=>e("a",{href:r,className:"text-blue-600 dark:text-blue-400 hover:text-blue-500 dark:hover:text-blue-300 underline underline-offset-2 decoration-blue-600/30 dark:decoration-blue-400/30 hover:decoration-blue-500/60 dark:hover:decoration-blue-300/60 transition-colors",target:r?.startsWith("http")?"_blank":void 0,rel:r?.startsWith("http")?"noopener noreferrer":void 0,...c,children:o}),ul:({children:o,...r})=>e("ul",{className:"list-disc list-outside ml-5 mb-4 space-y-1.5 text-gray-600 dark:text-zinc-300 marker:text-gray-400 dark:marker:text-zinc-500",...r,children:o}),ol:({children:o,...r})=>e("ol",{className:"list-decimal list-outside ml-5 mb-4 space-y-1.5 text-gray-600 dark:text-zinc-300 marker:text-gray-400 dark:marker:text-zinc-500",...r,children:o}),li:({children:o,...r})=>e("li",{className:"leading-7 pl-1",...r,children:o}),blockquote:({children:o,...r})=>{const c=ii(o);if(c){const h=ei[c.type];return t("div",{className:`${h.bg} ${h.border} border-l-4 rounded-r-lg px-4 py-3 my-4`,...r,children:[t("div",{className:`flex items-center gap-2 ${h.iconColor} font-medium text-sm mb-1`,children:[h.icon,e("span",{className:h.titleColor,children:ai[c.type]})]}),e("div",{className:"text-gray-600 dark:text-zinc-300 text-sm leading-relaxed [&>p]:mb-0",children:c.content})]})}return e("blockquote",{className:"border-l-4 border-gray-300 dark:border-zinc-700 pl-4 my-4 text-gray-500 dark:text-zinc-400 italic",...r,children:o})},pre:({children:o})=>e(he,{children:o}),code({node:o,inline:r,className:c,children:h,...v}){const f=/language-(\w+)/.exec(c||"");return!r&&f&&f[1]==="anim"?e(Ja,{name:String(h).replace(/\n$/,"").trim()}
16):!r&&f?t("div",{className:"relative group my-4 rounded-lg overflow-hidden border border-gray-200 dark:border-zinc-800",children:[e("div",{className:"flex items-center justify-between px-4 py-2 bg-gray-50 dark:bg-zinc-800/80 border-b border-gray-200 dark:border-zinc-700/50",children:e("span",{className:"text-xs font-mono text-gray-500 dark:text-zinc-400",children:f[1]})}),e(le,{style:i?de:ce,language:f[1],PreTag:"div",customStyle:{margin:0,borderRadius:0,fontSize:"0.85em",background:i?"rgb(24, 24, 27)":"rgb(250, 250, 250)",padding:"1rem"},...v,children:String(h).replace(/\n$/,"")})]}):!r&&!f?e("div",{className:"my-4 rounded-lg overflow-hidden border border-gray-200 dark:border-zinc-800",children:e(le,{style:i?de:ce,language:"text",PreTag:"div",customStyle:{margin:0,borderRadius:0,fontSize:"0.85em",background:i?"rgb(24, 24, 27)":"rgb(250, 250, 250)",padding:"1rem"},...v,children:String(h).replace(/\n$/,"")})}):e("code",{className:"bg-gray-100 dark:bg-zinc-800 text-blue-600 dark:text-blue-300 px-1.5 py-0.5 rounded text-[0.85em] font-mono",...v,children:h})},table:({children:o,...r})=>e("div",{className:"my-4 overflow-x-auto rounded-lg border border-gray-200 dark:border-zinc-800",children:e("table",{className:"min-w-full text-sm",...r,children:o})}),thead:({children:o,...r})=>e("thead",{className:"bg-gray-50 dark:bg-zinc-800/60",...r,children:o}),th:({children:o,...r})=>e("th",{className:"px-4 py-2.5 text-left text-xs font-semibold text-gray-600 dark:text-zinc-300 uppercase tracking-wider",...r,children:o}),td:({children:o,...r})=>e("td",{className:"px-4 py-2.5 text-gray-600 dark:text-zinc-300 border-t border-gray-100 dark:border-zinc-800/60",...r,children:o}),hr:o=>e("hr",{className:"border-gray-200 dark:border-zinc-800 my-8",...o}),img:({alt:o,src:r,...c})=>t("span",{className:"block my-6",children:[e("img",{alt:o,src:r,className:"block w-full mx-auto rounded-xl border border-gray-200 dark:border-zinc-800 shadow-sm bg-white dark:bg-zinc-900/40",loading:"lazy",...c}),o?e("span",{className:"block text-center text-xs text-gray-500 dark:text-zinc-400 mt-2.5 italic px-4",children:o}):null]}),strong:({children:o,...r})=>e("strong",{className:"text-gray-900 dark:text-white font-semibold",...r,children:o}),em:({children:o,...r})=>e("em",{className:"text-gray-600 dark:text-zinc-300 italic",...r,children:o})}),[i]);return e("div",{className:`docs-markdown max-w-none ${n}`,children:e(fa,{remarkPlugins:[va,ka],components:s,children:a})})},ni=[{icon:Qe,label:"Bold",before:"**",after:"**"},{icon:Ze,label:"Italic",before:"_",after:"_"},{icon:ne,label:"Inline code",before:"`",after:"`"},{divider:!0},{icon:Ye,label:"H1",before:"# ",after:"",line:!0},{icon:Je,label:"H2",before:"## ",after:"",line:!0},{icon:Xe,label:"H3",before:"### ",after:"",line:!0},{divider:!0},{icon:ea,label:"Bullet list",before:"- ",after:"",line:!0},{icon:aa,label:"Numbered list",before:"1. ",after:"",line:!0},{icon:ia,label:"Checklist",before:"- [ ] ",after:"",line:!0},{divider:!0},{icon:ta,label:"Link",before:"[",after:"](url)"},{icon:pe,label:"Image",before:"![alt](",after:")"},{icon:na,label:"Blockquote",before:"> ",after:"",line:!0},{icon:oa,label:"Horizontal rule",before:`
17---
18`,after:"",line:!0},{icon:ra,label:"Table",before:`
19| Column 1 | Column 2 |
20|----------|----------|
21| Cell | Cell |
22`,after:"",line:!0},{divider:!0},{icon:be,label:"Tip callout",before:"> [!TIP] ",after:"",line:!0},{icon:ge,label:"Info callout",before:"> [!INFO] ",after:"",line:!0},{icon:fe,label:"Warning callout",before:"> [!WARNING] ",after:"",line:!0}],oi=({initialContent:a,initialTitle:n,slug:i,lang:s,onSave:o,onCancel:r})=>{const[c,h]=g.useState(a),[v,f]=g.useState(n),[C,G]=g.useState("split"),[R,D]=g.useState(!1),[x,T]=g.useState(!1),q=g.useRef(null);g.useEffect(()=>{T(c!==a||v!==n)},[c,v,a,n]);const N=g.useCallback((b,j,U)=>{const k=q.current;if(!k)return;const L=k.selectionStart,F=k.selectionEnd,B=c.substring(L,F);let K,W;if(U){const H=c.lastIndexOf(`
23`,L-1)+1;K=c.substring(0,H)+b+c.substring(H),W=L+b.length}else K=c.substring(0,L)+b+B+j+c.substring(F),W=B?L+b.length+B.length+j.length:L+b.length;h(K),requestAnimationFrame(()=>{k.focus(),k.setSelectionRange(W,W)})},[c]),_=g.useCallback(async()=>{D(!0);try{await o(c,v)}finally{D(!1)}},[c,v,o]),ie=g.useCallback(b=>{(b.metaKey||b.ctrlKey)&&b.key==="s"&&(b.preventDefault(),_())},[_]);return t("div",{className:"fixed inset-0 z-50 bg-white dark:bg-zinc-950 flex flex-col",onKeyDown:ie,children:[t("div",{className:"flex items-center justify-between px-4 h-14 border-b border-gray-200 dark:border-zinc-800 shrink-0",children:[t("div",{className:"flex items-center gap-3",children:[e("button",{onClick:r,className:"p-1.5 text-gray-500 dark:text-zinc-400 hover:text-gray-900 dark:hover:text-white rounded hover:bg-gray-100 dark:hover:bg-zinc-800",children:e(ue,{className:"w-5 h-5"})}),t("div",{className:"flex items-center gap-2 text-sm text-gray-500 dark:text-zinc-400",children:[e("span",{className:"text-gray-400 dark:text-zinc-500",children:"docs"}),e("span",{className:"text-gray-300 dark:text-zinc-600",children:"/"}),e("span",{className:"text-gray-700 dark:text-zinc-300",children:i}),e("span",{className:"text-gray-300 dark:text-zinc-600",children:"/"}),e("span",{className:"uppercase text-xs font-medium px-1.5 py-0.5 rounded bg-gray-100 dark:bg-zinc-800 text-gray-500 dark:text-zinc-400",children:s})]}
23),x&&e("span",{className:"text-xs text-amber-600 dark:text-amber-500 ml-2",children:"Unsaved changes"})]}),t("div",{className:"flex items-center gap-2",children:[e("div",{className:"flex items-center bg-gray-100 dark:bg-zinc-800 rounded-lg p-0.5",children:["edit","split","preview"].map(b=>e("button",{onClick:()=>G(b),className:`px-3 py-1 text-xs font-medium rounded-md transition-colors ${C===b?"bg-white dark:bg-zinc-700 text-gray-900 dark:text-white shadow-sm":"text-gray-500 dark:text-zinc-400 hover:text-gray-700 dark:hover:text-zinc-300"}`,children:b==="edit"?e(ne,{className:"w-3.5 h-3.5"}):b==="preview"?e(se,{className:"w-3.5 h-3.5"}):t("span",{className:"flex gap-1",children:[e(ne,{className:"w-3.5 h-3.5"}),e(se,{className:"w-3.5 h-3.5"})]})},b))}),t("button",{onClick:_,disabled:R||!x,className:"flex items-center gap-2 px-4 py-1.5 text-sm font-medium rounded-lg bg-indigo-600 hover:bg-indigo-500 text-white disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:[R?e(ve,{className:"w-4 h-4 animate-spin"}):e($e,{className:"w-4 h-4"}),R?"Saving…":"Save"]})]})]}),C!=="preview"&&e("div",{className:"flex items-center gap-0.5 px-4 h-10 border-b border-gray-100 dark:border-zinc-800/50 bg-gray-50/50 dark:bg-zinc-900/50 shrink-0 overflow-x-auto",children:ni.map((b,j)=>{if("divider"in b)return e("div",{className:"w-px h-5 bg-gray-200 dark:bg-zinc-700 mx-1"},`d${j}`);const U=b.icon;return e("button",{title:b.label,onClick:()=>N(b.before,b.after,"line"in b?b.line:!1),className:"p-1.5 text-gray-400 dark:text-zinc-500 hover:text-gray-700 dark:hover:text-zinc-300 hover:bg-gray-100 dark:hover:bg-zinc-800 rounded transition-colors",children:e(U,{className:"w-4 h-4"})},b.label)})}),e("div",{className:"px-4 py-2 border-b border-gray-100 dark:border-zinc-800/30 shrink-0",children:e("input",{type:"text",value:v,onChange:b=>f(b.target.value),placeholder:"Page title...",className:"w-full bg-transparent text-lg font-semibold text-gray-900 dark:text-white outline-none placeholder:text-gray-300 dark:placeholder:text-zinc-600"})}),t("div",{className:"flex-1 flex min-h-0",children:[C!=="preview"&&e("div",{className:`flex flex-col ${C==="split"?"w-1/2 border-r border-gray-200 dark:border-zinc-800":"w-full"}`,children:e("textarea",{ref:q,value:c,onChange:b=>h(b.target.value),spellCheck:!1,className:"flex-1 w-full p-4 bg-white dark:bg-zinc-950 text-gray-700 dark:text-zinc-300 text-sm font-mono leading-relaxed resize-none outline-none placeholder:text-gray-300 dark:placeholder:text-zinc-700",placeholder:"Write markdown content here..."})}),C!=="edit"&&e("div",{className:`overflow-y-auto ${C==="split"?"w-1/2":"w-full"}`,children:e("div",{className:"max-w-3xl mx-auto p-6",children:e(Ce,{content:c})})})]})]})},ri=a=>`Explain this page of the Coderblock documentation: ${a}`,si=({className:a})=>e("svg",{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,className:a,children:e("path",{d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm
231.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"})}),li=({className:a})=>e("svg",{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,className:a,children:e("path",{d:"M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.541Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z"})}),te="flex w-full items-center gap-2.5 px-3 py-2 text-[13px] text-gray-600 dark:text-zinc-300 hover:bg-gray-100 dark:hover:bg-zinc-800/70 hover:text-gray-900 dark:hover:text-white transition-colors focus:outline-none focus-visible:bg-gray-100 dark:focus-visible:bg-zinc-800/70",di=({markdown:a,slug:n,lang:i})=>{const[s,o]=g.useState(!1),[r,c]=g.useState(!1),h=g.useRef(null),v=g.useMemo(()=>`${typeof window<"u"?window.location.origin:"https://coderblock.ai"}/docs/${n}`,[n]),f=g.useMemo(()=>encodeURIComponent(ri(v)),[v]),C=`https://chatgpt.com/?q=${f}`,G=`https://claude.ai/new?q=${f}`;g.useEffect(()=>{if(!s)return;const x=q=>{h.current&&!h.current.contains(q.target)&&o(!1)},T=q=>{q.key==="Escape"&&o(!1)};return document.addEventListener("mousedown",x),document.addEventListener("keydown",T),()=>{document.removeEventListener("mousedown",x),document.removeEventListener("keydown",T)}},[s]);const R=g.useCallback(async()=>{const x=()=>{c(!0),o(!1),setTimeout(()=>c(!1),2e3)};try{await navigator.clipboard.writeText(a),x()}catch{const T=document.createElement("textarea");T.value=a,T.style.position="fixed",T.style.opacity="0",document.body.appendChild(T),T.select();try{document.execCommand("copy"),x()}catch{}document.body.removeChild(T)}},[a]),D={trigger:i==="it"?"Azioni pagina":"Page actions",chatgpt:i==="it"?"Descrivi su ChatGPT":"Describe on ChatGPT",claude:i==="it"?"Descrivi su Claude":"Describe on Claude",copy:i==="it"?"Copia come Markdown":"Copy as Markdown",copied:i==="it"?"Copiato!":"Copied!"};return t("div",{ref:h,className:"relative flex items-center justify-end",children:[t("button",{type:"button",onClick:()=>o(x=>!x),className:"flex items-center gap-1.5 rounded-lg border border-gray-200 dark:border-zinc-800 bg-white dark:bg-zinc-900 px-2.5 py-1.5 text-gray-500 dark:text-zinc-400 hover:text-gray-900 dark:hover:text-white hover:bg-gray-50 dark:hover:bg-zinc-800/70 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500/50",title:D.trigger,"aria-label":D.trigger,"aria-haspopup":"menu","aria-expanded":s,children:[r?e(sa,{className:"h-4 w-4 text-emerald-500"}):e(la,{className:"h-4 w-4"}),e(me,{className:`h-3.5 w-3.5 transition-transform ${s?"rotate-180":""}`})]}),s&&t("div",{role:"menu",className:"absolute right-0 top-full z-50 mt-1.5 w-56 overflow-hidden rounded-xl border border-gray-200 dark:border-zinc-800 bg-white dark:bg-zinc-900 py-1 shadow-lg shadow-black/5 dark:shadow-black/40",children:[t("a",{href:C,target:"_blank",rel:"noopener noreferrer",role:"menuitem",className:te,onClick:()=>o(!1),children:[e(si,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"flex-1",children:D.chatgpt})]}),t("a",{href:G,target:"_blank",rel:"noopener noreferrer",role:"menuitem",className:te,onClick:()=>o(!1),children:[e(li,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"flex-1",children:D.claude})]}),e("div",{className:"my-1 h-px bg-gray-100 dark:bg-zinc-800"}),t("button",{type:"button",role:"menuitem",onClick:R,className:te,children:[e(da,{className:"h-4 w-4 flex-shrink-0"}),e("span",{className:"flex-1 text-left",children:D.copy})]})]})]})},X={async list(a){const n=a?`?lang=${a}`:"",{data:i}=await J.get(`/docs/content${n}`);return i},async get(a,n){const{data:i}=await J.get(`/docs/content/${a}/${n}`);return i},async update(a,n,i){const{data:s}=await J.put(`/docs/content/${a}/${n}`,i);return s},async seed(a){const{data:n}=await J.post("/docs/content/seed",a);return n}},ci={welcome:{es:`# Bienvenido a Coderblock
24
25\`\`\`anim
26build-loop
27\`\`\`
28
29Coderblock es una plataforma de **vibe coding** que te permite crear aplicaciones web fullstack (frontend, backend y base de datos) simplemente describiendo lo que quieres en lenguaje natural. No necesitas experiencia en programación: nuestro agente de IA se encarga de todo, desde la estructura de las páginas hasta la lógica del servidor y el despliegue en producción.
30
31## ¿Qué es el Vibe Coding?
32
33El **vibe coding** es un nuevo paradigma de desarrollo de software en el que describes tu idea y la inteligencia artificial escribe el código por ti. A diferencia de los creadores de webs tradicionales de arrastrar y soltar, con Coderblock obtienes código real y limpio (React, TypeScript, Tailwind CSS para el frontend, Python y FastAPI para el backend) que puedes exportar, modificar y controlar por completo.
34
35## Cómo funciona
36
371. **Describe** lo que quieres construir en lenguaje natural (español, inglés o italiano)
382. El **agente de IA** analiza tu petición, planifica los cambios y genera código en tiempo real
393. **Vista previa en vivo**: ve los cambios al instante en el navegador en \`*.coderblock.dev\`
404. **Itera**: sigue chateando para añadir funciones, corregir errores o refinar el diseño
415. **Publica** con un clic en un dominio \`.coderblock.app\` o en tu propio dominio
42
43## Qué puedes construir
44
45Coderblock está pensado para crear aplicaciones web completas. Algunos ejemplos:
46
47- **E-commerce**: catálogo de productos, carrito, pago con Stripe
48- **Plataformas de reservas**: calendarios, disponibilidad, pagos
49- **Paneles analíticos**: gráficos, métricas, exportación de datos
50- **Blogs y CMS**: gestión de contenidos, categorías, SEO
51- **SaaS**: autenticación, panel de usuario, suscripciones
52- **Portfolios y landing pages**: diseño responsive, animaciones, formularios de contacto
53- **Juegos de navegador**: con Phaser.js o Three.js para experiencias 3D
54
55## El stack tecnológico
56
57| Componente | Tecnología |
58|-----------|------------|
59| Frontend | React 18 + TypeScript + Vite + Tailwind CSS |
60| Backend | Python + FastAPI |
61| Base de datos | NeonDB (PostgreSQL serverless) |
62| Almacenamiento | AWS S3 |
63| Vista previa | VM Fly.io con Vite HMR |
64| Producción | Contenedor Docker en Fly.io |
65| Pagos | Stripe |
66| Email | Resend |
67| Autenticación | Login social (Google, GitHub) |
68
69> [!INFO] Coderblock ofrece dos tipos de proyecto: **Web app** (backend gestionado, recomendado) y **Web Platform** (Python + FastAPI). La tabla anterior refleja Web Platform; con Web app el backend está incluido y gestionado por ti. Más información en [Web app vs Web Platform](/docs/project-types).
70
71## Primeros pasos
72
73\`\`\`anim
74create-project
75\`\`\`
76
77- Crea un nuevo proyecto desde el [panel](/apps)
78- Elige una **plantilla de producto** (32 apps listas para usar) o un **proyecto en blanco**
79- Empieza a chatear con la IA para construir tu app
80- Usa la **vista previa en vivo** para ver los resultados en tiempo real
81- Cuando estés satisfecho, haz clic en **Deploy** para publicar
82
83> [!TIP] Usa prompts claros y específicos para obtener los mejores resultados. En lugar de "hazme una web", prueba "Crea una landing para un restaurante con sección hero, menú y formulario de reserva".
84
85## Recursos
86
87| Recurso | Enlace |
88|----------|------|
89| Panel | [coderblock.ai/apps](/apps) |
90| Precios | [coderblock.ai/pricing](/pricing) |
91| Estado | [status.coderblock.ai](https://status.coderblock.ai) |
92`,fr:`# Bienvenue sur Coderblock
93
94\`\`\`anim
95build-loop
96\`\`\`
97
98Coderblock est une plateforme de **vibe coding** qui te permet de créer des applications web fullstack (frontend, backend et base de données) simplement en décrivant ce que tu veux en langage naturel. Aucune expérience en programmation requise : notre agent IA s'occupe de tout, de la structure des pages à la logique serveur jusqu'au déploiement en production.
99
100## Qu'est-ce que le Vibe Coding ?
101
102Le **vibe coding** est un nouveau paradigme de développement logiciel où tu décris ton idée et l'intelligence artificielle écrit le code pour toi. Contrairement aux créateurs de sites classiques en glisser-déposer, avec Coderblock tu obtiens du vrai code propre (React, TypeScript, Tailwind CSS pour le frontend, Python et FastAPI pour le backend) que tu peux exporter, modifier et contrôler entièrement.
103
104## Comment ça marche
105
1061. **Décris** ce que tu veux construire en langage naturel (français, anglais ou italien)
1072. L'**agent IA** analyse ta demande, planifie les changements et génère le code en temps réel
1083. **Aperçu en direct** : vois les changements instantanément dans le navigateur sur \`*.coderblock.dev\`
1094. **Itère** : continue de discuter pour ajouter des fonctions, corriger des bugs ou affiner le design
1105. **Publie** en un clic sur un domaine \`.coderblock.app\` ou ton propre domaine
111
112## Ce que tu peux construire
113
114Coderblock est conçu pour créer des applications web complètes. Quelques exemples :
115
116- **E-commerce** : catalogue produits, panier, paiement Stripe
117- **Plateformes de réservation** : calendriers, disponibilités, paiements
118- **Tableaux de bord analytiques** : graphiques, métriques, export de données
119- **Blogs et CMS** : gestion de contenu, catégories, SEO
120- **SaaS** : authentification, espace utilisateur, abonnements
121- **Portfolios et landing pages** : design responsive, animations, formulaires de contact
122- **Jeux navigateur** : avec Phaser.js ou Three.js pour des expériences 3D
123
124## La stack technique
125
126| Composant | Technologie |
127|-----------|------------|
128| Frontend | React 18 + TypeScript + Vite + Tailwind CSS |
129| Backend | Python + FastAPI |
130| Base de données | NeonDB (PostgreSQL serverless) |
131| Stockage fichiers | AWS S3 |
132| Aperçu | VM Fly.io avec Vite HMR |
133| Production | Conteneur Docker sur Fly.io |
134| Paiements | Stripe |
135| E-mail | Resend |
136| Auth | Connexion sociale (Google, GitHub) |
137
138> [!INFO] Coderblock propose deux types de projet : **Web app** (backend géré, recommandé) et **Web Platform** (Python + FastAPI). Le tableau ci-dessus concerne Web Platform ; avec Web app le backend est inclus et géré pour toi. En savoir plus dans [Web app vs Web Platform](/docs/project-types).
139
140## Premiers pas
141
142\`\`\`anim
143create-project
144\`\`\`
145
146- Crée un nouveau projet depuis le [tableau de bord](/apps)
147- Choisis un **template produit** (32 apps prêtes à l'emploi) ou un **projet vierge**
148- Commence à discuter avec l'IA pour construire ton app
149- Utilise l'**aperçu en direct** pour voir les résultats en temps réel
150- Quand tu es satisfait, clique sur **Deploy** pour publier
151
152> [!TIP] Utilise des prompts clairs et précis pour de meilleurs résultats. Au lieu de « fais-moi un site », essaie « Crée une landing page pour un restaurant avec section hero, menu et formulaire de réservation ».
153
154## Ressources
155
156| Ressource | Lien |
157|----------|------|
158| Tableau de bord | [coderblock.ai/apps](/apps) |
159| Tarifs | [coderblock.ai/pricing](/pricing) |
160| Statut | [status.coderblock.ai](https://status.coderblock.ai) |
161`,de:`# Willkommen bei Coderblock
162
163\`\`\`anim
164build-loop
165\`\`\`
166
167Coderblock ist eine **Vibe-Coding**-Plattform, mit der du fullstack Web-Anwendungen (Frontend, Backend und Datenbank) erstellst, indem du einfach in natürlicher Sprache beschreibst, was du möchtest. Keine Programmiererfahrung nötig: Unser KI-Agent kümmert sich um alles – von der Seitenstruktur über die Server-Logik bis zum Produktions-Deployment.
168
169## Was ist Vibe Coding?
170
171**Vibe Coding** ist ein neues Software-Entwicklungsparadigma, bei dem du deine Idee beschreibst und die künstliche Intelligenz den Code für dich schreibt. Anders als klassische Drag-and-drop-Baukästen erhältst du mit Coderblock echten, sauberen Code (React, TypeScript, Tailwind CSS fürs Frontend, Python und FastAPI fürs Backend), den du exportieren, ändern und vollständig kontrollieren kannst.
172
173## So funktioniert es
174
1751. **Beschreibe**, was du bauen willst, in natürlicher Sprache (Deutsch, Englisch oder Italienisch)
1762. Der **KI-Agent** analysiert deine Anfrage, plant die Änderungen und generiert Code in Echtzeit
1773. **Live-Vorschau**: Sieh Änderungen sofort im Browser unter \`*.coderblock.dev\`
1784. **Iteriere**: Chatte weiter, um Funktionen hinzuzufügen, Fehler zu beheben oder das Design zu verfeinern
1795. **Veröffentliche** mit einem Klick auf einer \`.coderblock.app\`-Domain oder deiner eigenen Domain
180
181## Was du bauen kannst
182
183Coderblock ist für vollständige Web-Anwendungen gemacht. Einige Beispiele:
184
185- **E-Commerce**: Produktkatalog, Warenkorb, Stripe-Checkout
186- **Buchungsplattformen**: Kalender, Verfügbarkeit, Zahlungen
187- **Analyse-Dashboards**: Diagramme, Kennzahlen, Datenexport
188- **Blogs und CMS**: Content-Verwaltung, Kategorien, SEO
189- **SaaS**: Authentifizierung, Nutzer-Dashboard, Abonnements
190- **Portfolios und Landingpages**: responsives Design, Animationen, Kontaktformulare
191- **Browser-Spiele**: mit Phaser.js oder Three.js für 3D-Erlebnisse
192
193## Der Tech-Stack
194
195| Komponente | Technologie |
196|-----------|------------|
197| Frontend | React 18 + TypeScript + Vite + Tailwind CSS |
198| Backend | Python + FastAPI |
199| Datenbank | NeonDB (serverloses PostgreSQL) |
200| Dateispeicher | AWS S3 |
201| Vorschau | Fly.io-VM mit Vite HMR |
202| Produktion | Fly.io-Docker-Container |
203| Zahlungen | Stripe |
204| E-Mail | Resend |
205| Auth | Social Login (Google, GitHub) |
206
207> [!INFO] Coderblock bietet zwei Projekttypen: **Web app** (verwaltetes Backend, empfohlen) und **Web Platform** (Python + FastAPI). Die Tabelle oben bezieht sich auf Web Platform; bei Web app ist das Backend enthalten und wird für dich verwaltet. Mehr dazu unter [Web app vs Web Platform](/docs/project-types).
208
209## Erste Schritte
210
211\`\`\`anim
212create-project
213\`\`\`
214
215- Erstelle ein neues Projekt im [Dashboard](/apps)
216- Wähle eine **Produktvorlage** (32 einsatzbereite Apps) oder ein **leeres Projekt**
217- Beginne mit der KI zu chatten, um deine App zu bauen
218- Nutze die **Live-Vorschau**, um Ergebnisse in Echtzeit zu sehen
219- Wenn du zufrieden bist, klicke auf **Deploy**, um zu veröffentlichen
220
221> [!TIP] Nutze klare, konkrete Prompts für die besten Ergebnisse. Statt „bau mir eine Website" versuche „Erstelle eine Landingpage für ein Restaurant mit Hero-Bereich, Menü und Reservierungsformular".
222
223## Ressourcen
224
225| Ressource | Link |
226|----------|------|
227| Dashboard | [coderblock.ai/apps](/apps) |
228| Preise | [coderblock.ai/pricing](/pricing) |
229| Status | [status.coderblock.ai](https://status.coderblock.ai) |
230`,zh:`# 欢迎使用 Coderblock
231
232\`\`\`anim
233build-loop
234\`\`\`
235
236Coderblock 是一个 **vibe coding**(氛围编程)平台,让你只需用自然语言描述需求,即可创建全栈 Web 应用(前端、后端和数据库)。无需编程经验:我们的 AI 智能体会处理一切,从页面结构到服务器逻辑,直至生产环境部署。
237
238## 什么是 Vibe Coding?
239
240**Vibe coding** 是一种全新的软件开发范式:你描述想法,人工智能替你编写代码。与传统的拖拽式建站工具不同,使用 Coderblock 你会得到真实、干净的代码(前端用 React、TypeScript、Tailwind CSS,后端用 Python 和 FastAPI),你可以导出、修改并完全掌控。
241
242## 工作原理
243
2441. 用自然语言(中文、英文或意大利文)**描述**你想构建的内容
2452. **AI 智能体**分析你的请求、规划改动并实时生成代码
2463. **实时预览**:在浏览器中通过 \`*.coderblock.dev\` 立即看到改动
2474. **迭代**:继续对话以添加功能、修复问题或优化设计
2485. 一键**发布**到 \`.coderblock.app\` 域名或你自己的自定义域名
249
250## 你能构建什么
251
252Coderblock 专为构建完整的 Web 应用而设计。一些示例:
253
254- **电商**:商品目录、购物车、Stripe 结账
255- **预订平台**:日历、可用性、支付
256- **数据看板**:图表、指标、数据导出
257- **博客与 CMS**:内容管理、分类、SEO
258- **SaaS**:身份验证、用户面板、订阅
259- **作品集与落地页**:响应式设计、动画、联系表单
260- **浏览器游戏**:使用 Phaser.js 或 Three.js 打造 3D 体验
261
262## 技术栈
263
264| 组件 | 技术 |
265|-----------|------------|
266| 前端 | React 18 + TypeScript + Vite + Tailwind CSS |
267| 后端 | Python + FastAPI |
268| 数据库 | NeonDB(无服务器 PostgreSQL) |
269| 文件存储 | AWS S3 |
270| 预览 | 带 Vite HMR 的 Fly.io 虚拟机 |
271| 生产 | Fly.io Docker 容器 |
272| 支付 | Stripe |
273| 邮件 | Resend |
274| 认证 | 社交登录(Google、GitHub) |
275
276> [!INFO] Coderblock 提供两种项目类型:**Web app**(托管后端,推荐)和 **Web Platform**(Python + FastAPI)。上表对应 Web Platform;使用 Web app 时后端已包含并为你托管。详见 [Web app 对比 Web Platform](/docs/project-types)。
277
278## 快速开始
279
280\`\`\`anim
281create-project
282\`\`\`
283
284- 在[仪表盘](/apps)中创建新项目
285- 选择一个**产品模板**(32 个开箱即用的应用)或一个**空白项目**
286- 开始与 AI 聊天来构建你的应用
287- 使用**实时预览**即时查看结果
288- 满意后,点击 **Deploy** 发布
289
290> [!TIP] 使用清晰、具体的提示以获得最佳效果。与其说“给我做个网站”,不如试试“为一家餐厅创建落地页,包含主视觉区、菜单和预订表单”。
291
292## 资源
293
294| 资源 | 链接 |
295|----------|------|
296| 仪表盘 | [coderblock.ai/apps](/apps) |
297| ä»·æ ¼ | [coderblock.ai/pricing](/pricing) |
298| 状态 | [status.coderblock.ai](https://status.coderblock.ai) |
299`},"getting-started":{es:`# Guía rápida
300
301\`\`\`anim
302create-project
303\`\`\`
304
305Crea tu primera app en menos de 5 minutos. Esta guía te lleva desde el registro hasta la publicación.
306
307## 1. Crea una cuenta
308
309Regístrate en [coderblock.ai](/signup) con email o Google SSO. Todos los usuarios nuevos reciben **créditos gratis** para probar la plataforma.
310
311## 2. Crea un proyecto
312
313Desde el [panel](/apps), haz clic en **"Nuevo proyecto"** y elige:
314
315- **Plantilla de producto**: 32 apps completas listas para usar (e-commerce, reservas, panel, juegos, etc.). Se copian en 1-2 segundos.
316- **Proyecto en blanco**: empieza desde cero con React + Vite + TypeScript + Tailwind CSS
317
318Ponle un nombre al proyecto y, opcionalmente, una descripción de la app que quieres construir.
319
320## 3. La interfaz del editor
321
322El editor se divide en dos paneles:
323
324- **Izquierda**: Chat IA + gestor de archivos + editor de código
325- **Derecha**: vista previa en vivo de tu app
326
327En la parte inferior del chat encontrarás:
328- **Selector de modelo** (Auto, Frontier o un modelo concreto, ver [Modelos](/docs/models))
329- **Botón de adjuntar** para subir imágenes de referencia
330- **Campo de texto** para las instrucciones a la IA
331
332## 4. Chatea con la IA
333
334Escribe en el chat lo que quieres construir. La IA analizará tu petición, generará el código y lo mostrará en la vista previa. Algunos ejemplos para empezar:
335
336\`\`\`
337Crea una landing con sección hero, funciones y precios
338\`\`\`
339
340\`\`\`
341Añade un formulario de contacto con validación de email y mensaje
342\`\`\`
343
344\`\`\`
345Crea una página "Sobre nosotros" con sección de equipo e historia de la empresa
346\`\`\`
347
348### Consejos para prompts efectivos
349
350- **Sé específico**: "Crea un e-commerce de zapatillas con filtros de marca y talla" es mejor que "Hazme una web"
351- **Un paso a la vez**: primero la estructura, luego los detalles
352- **Da contexto**: puedes referenciar archivos, componentes o páginas existentes
353- **Sube capturas**: usa el adjunto para subir mockups o capturas de sitios que te gusten
354
355## 5. Vista previa en vivo
356
357La vista previa arranca automáticamente en un dominio \`*.coderblock.dev\`:
358- **Primer arranque**: ~60-90 segundos (la VM debe iniciarse)
359- **Cambios siguientes**: ~7-13 segundos (hot-reload dirigido)
360- **Navegación**: puedes hacer clic en enlaces y navegar por tu app directamente en la vista previa
361
362## 6. Itera y refina
363
364Sigue chateando con la IA para:
365- Añadir nuevas páginas y funciones
366- Modificar colores, tipografías y diseño
367- Integrar servicios externos (base de datos, pagos, email)
368- Corregir errores o problemas de diseño
369
370## 7. Publica
371
372Cuando estés satisfecho con el resultado:
3731. Haz clic en el botón **"Deploy"** de la barra superior
3742. En 60-90 segundos tu app estará en vivo en \`{id}.coderblock.app\`
3753. Opcionalmente, conecta un dominio personalizado
376
377> [!TIP] No tienes que esperar a que todo esté terminado para publicar. Puedes desplegar en cualquier momento y actualizar después. Las actualizaciones son mucho más rápidas que el primer deploy.
378`,fr:`# Démarrage
379
380\`\`\`anim
381create-project
382\`\`\`
383
384Crée ta première app en moins de 5 minutes. Ce guide t'emmène de l'inscription à la publication.
385
386## 1. Crée un compte
387
388Inscris-toi sur [coderblock.ai](/signup) avec e-mail ou Google SSO. Tous les nouveaux utilisateurs reçoivent des **crédits gratuits** pour tester la plateforme.
389
390## 2. Crée un projet
391
392Depuis le [tableau de bord](/apps), clique sur **« Nouveau projet »** et choisis :
393
394- **Template produit** : 32 apps complètes prêtes à l'emploi (e-commerce, réservation, tableau de bord, jeux, etc.). Copiées en 1-2 secondes.
395- **Projet vierge** : pars de zéro avec React + Vite + TypeScript + Tailwind CSS
396
397Donne un nom à ton projet et, en option, une description de l'app que tu veux construire.
398
399## 3. L'interface de l'éditeur
400
401L'éditeur est divisé en deux panneaux :
402
403- **Gauche** : Chat IA + gestionnaire de fichiers + éditeur de code
404- **Droite** : aperçu en direct de ton app
405
406En bas du chat, tu trouveras :
407- **Sélecteur de modèle** (Auto, Frontier ou un modèle précis, voir [Modèles](/docs/models))
408- **Bouton de pièce jointe** pour envoyer des images de référence
409- **Champ de texte** pour les instructions à l'IA
410
411## 4. Discute avec l'IA
412
413Écris dans le chat ce que tu veux construire. L'IA analysera ta demande, générera le code et l'affichera dans l'aperçu. Quelques exemples pour commencer :
414
415\`\`\`
416Crée une landing page avec section hero, fonctionnalités et tarifs
417\`\`\`
418
419\`\`\`
420Ajoute un formulaire de contact avec validation de l'e-mail et du message
421\`\`\`
422
423\`\`\`
424Crée une page « À propos » avec section équipe et historique de l'entreprise
425\`\`\`
426
427### Conseils pour des prompts efficaces
428
429- **Sois précis** : « Crée un e-commerce de chaussures de sport avec filtres marque et taille » vaut mieux que « Fais-moi un site »
430- **Une étape à la fois** : d'abord la structure, puis les détails
431- **Donne du contexte** : tu peux référencer des fichiers, composants ou pages existants
432- **Envoie des captures** : utilise la pièce jointe pour envoyer des maquettes ou des captures de sites que tu aimes
433
434## 5. Aperçu en direct
435
436L'aperçu démarre automatiquement sur un domaine \`*.coderblock.dev\` :
437- **Premier démarrage** : ~60-90 secondes (la VM doit démarrer)
438- **Changements suivants** : ~7-13 secondes (hot-reload ciblé)
439- **Navigation** : tu peux cliquer sur les liens et naviguer dans ton app directement dans l'aperçu
440
441## 6. Itère et affine
442
443Continue de discuter avec l'IA pour :
444- Ajouter de nouvelles pages et fonctionnalités
445- Modifier couleurs, polices et mise en page
446- Intégrer des services externes (base de données, paiements, e-mail)
447- Corriger des bugs ou des problèmes de mise en page
448
449## 7. Publie
450
451Quand tu es satisfait du résultat :
4521. Clique sur le bouton **« Deploy »** dans la barre du haut
4532. En 60-90 secondes ton app sera en ligne sur \`{id}.coderblock.app\`
4543. En option, connecte un domaine personnalisé
455
456> [!TIP] Tu n'as pas à attendre que tout soit terminé pour publier. Tu peux déployer à tout moment et mettre à jour ensuite. Les mises à jour sont bien plus rapides que le premier déploiement.
457`,de:`# Erste Schritte
458
459\`\`\`anim
460create-project
461\`\`\`
462
463Baue deine erste App in unter 5 Minuten. Diese Anleitung führt dich von der Registrierung bis zur Veröffentlichung.
464
465## 1. Konto erstellen
466
467Registriere dich auf [coderblock.ai](/signup) mit E-Mail oder Google SSO. Alle neuen Nutzer erhalten **kostenlose Credits**, um die Plattform au
467szuprobieren.
468
469## 2. Projekt erstellen
470
471Klicke im [Dashboard](/apps) auf **„Neues Projekt"** und wähle:
472
473- **Produktvorlage**: 32 komplette, einsatzbereite Apps (E-Commerce, Buchung, Dashboard, Spiele usw.). In 1-2 Sekunden kopiert.
474- **Leeres Projekt**: starte von Grund auf mit React + Vite + TypeScript + Tailwind CSS
475
476Gib deinem Projekt einen Namen und optional eine Beschreibung der App, die du bauen willst.
477
478## 3. Die Editor-Oberfläche
479
480Der Editor ist in zwei Bereiche geteilt:
481
482- **Links**: KI-Chat + Dateimanager + Code-Editor
483- **Rechts**: Live-Vorschau deiner App
484
485Unten im Chat findest du:
486- **Modellauswahl** (Auto, Frontier oder ein bestimmtes Modell, siehe [Modelle](/docs/models))
487- **Anhang-Button** zum Hochladen von Referenzbildern
488- **Textfeld** für die Anweisungen an die KI
489
490## 4. Mit der KI chatten
491
492Schreibe im Chat, was du bauen willst. Die KI analysiert deine Anfrage, generiert den Code und zeigt ihn in der Vorschau. Ein paar Beispiele für den Start:
493
494\`\`\`
495Erstelle eine Landingpage mit Hero-Bereich, Funktionen und Preisen
496\`\`\`
497
498\`\`\`
499Füge ein Kontaktformular mit E-Mail- und Nachrichtenvalidierung hinzu
500\`\`\`
501
502\`\`\`
503Erstelle eine „Über uns"-Seite mit Team-Bereich und Firmenzeitleiste
504\`\`\`
505
506### Tipps für wirksame Prompts
507
508- **Sei konkret**: „Erstelle einen Sportschuh-Shop mit Marken- und Größenfiltern" ist besser als „Bau mir eine Website"
509- **Schritt für Schritt**: zuerst die Struktur, dann die Details
510- **Gib Kontext**: du kannst bestehende Dateien, Komponenten oder Seiten referenzieren
511- **Screenshots hochladen**: nutze den Anhang, um Mockups oder Screenshots von Seiten hochzuladen, die dir gefallen
512
513## 5. Live-Vorschau
514
515Die Vorschau startet automatisch auf einer \`*.coderblock.dev\`-Domain:
516- **Erster Start**: ~60-90 Sekunden (die VM muss booten)
517- **Weitere Änderungen**: ~7-13 Sekunden (gezieltes Hot-Reload)
518- **Navigation**: du kannst Links anklicken und deine App direkt in der Vorschau durchklicken
519
520## 6. Iterieren und verfeinern
521
522Chatte weiter mit der KI, um:
523- neue Seiten und Funktionen hinzuzufügen
524- Farben, Schriften und Layout zu ändern
525- externe Dienste einzubinden (Datenbank, Zahlungen, E-Mail)
526- Fehler oder Layout-Probleme zu beheben
527
528## 7. Veröffentlichen
529
530Wenn du mit dem Ergebnis zufrieden bist:
5311. Klicke auf **„Deploy"** in der oberen Leiste
5322. In 60-90 Sekunden ist deine App live unter \`{id}.coderblock.app\`
5333. Optional: verbinde eine eigene Domain
534
535> [!TIP] Du musst nicht warten, bis alles fertig ist, um zu veröffentlichen. Du kannst jederzeit deployen und später aktualisieren. Updates sind viel schneller als der erste Deploy.
536`,zh:`# 快速开始
537
538\`\`\`anim
539create-project
540\`\`\`
541
542在 5 分钟内构建你的第一个应用。本指南带你从注册到发布。
543
544## 1. 创建账户
545
546在 [coderblock.ai](/signup) 使用邮箱或 Google SSO 注册。所有新用户都会获得**免费积分**来试用平台。
547
548## 2. 创建项目
549
550在[仪表盘](/apps)中点击 **“新建项目”** 并选择:
551
552- **产品模板**:32 个完整、开箱即用的应用(电商、预订、看板、游戏等),1-2 秒即可复制。
553- **空白项目**:从零开始,使用 React + Vite + TypeScript + Tailwind CSS
554
555为项目命名,并可选填写你想构建的应用描述。
556
557## 3. 编辑器界面
558
559编辑器分为两个面板:
560
561- **左侧**:AI 聊天 + 文件管理器 + 代码编辑器
562- **右侧**:应用的实时预览
563
564聊天框底部你会看到:
565- **模型选择器**(Auto、Frontier 或指定模型,参见[模型](/docs/models))
566- **附件按钮**,用于上传参考图片
567- **文本输入框**,用于向 AI 下达指令
568
569## 4. 与 AI 聊天
570
571在聊天中输入你想构建的内容。AI 会分析你的请求、生成代码并在预览中展示。以下是一些入门示例:
572
573\`\`\`
574创建一个包含主视觉区、功能和价格的落地页
575\`\`\`
576
577\`\`\`
578添加一个带邮箱和留言校验的联系表单
579\`\`\`
580
581\`\`\`
582创建一个“关于我们”页面,包含团队区块和公司历程
583\`\`\`
584
585### 高效提示词的技巧
586
587- **具体明确**:“创建一个运动鞋电商,带品牌和尺码筛选”比“给我做个网站”更好
588- **循序渐进**:先搭结构,再做细节
589- **提供上下文**:你可以引用现有的文件、组件或页面
590- **上传截图**:用附件上传你喜欢网站的原型图或截图
591
592## 5. 实时预览
593
594预览会自动在 \`*.coderblock.dev\` 域名上启动:
595- **首次启动**:约 60-90 秒(虚拟机需要启动)
596- **后续更改**:约 7-13 秒(定向热重载)
597- **导航**:你可以点击链接,直接在预览中浏览你的应用
598
599## 6. 迭代与优化
600
601继续与 AI 聊天来:
602- 添加新页面和功能
603- 修改颜色、字体和布局
604- 集成外部服务(数据库、支付、邮件)
605- 修复缺陷或布局问题
606
607## 7. 发布
608
609当你对结果满意时:
6101. 点击顶栏的 **“Deploy”** 按钮
6112. 60-90 秒后,你的应用将在 \`{id}.coderblock.app\` 上线
6123. 可选:连接自定义域名
613
614> [!TIP] 不必等到一切都完成才发布。你可以随时部署并在之后更新。更新比首次部署快得多。
615`},"project-types":{es:`# Web app vs Web Platform
616
617\`\`\`anim
618project-types
619\`\`\`
620
621Cuando creas un proyecto nuevo, Coderblock te pide elegir un **tipo de proyecto**. Es la primera decisión importante: define las tecnologías que la IA usará para construir tu app. No necesitas ser técnico: esta guía te ayuda a elegir en un minuto.
622
623## Las dos opciones de un vistazo
624
625| | Web app | Web Platform |
626|---|---|---|
627| Ideal para | SaaS, paneles, marketplaces, apps de IA | Integraciones B2B, proyectos ML/datos, equipos Python |
628| Tiempo para empezar | Rapidísimo (vista previa en segundos) | Alto |
629| Backend | Incluido y gestionado automáticamente | Python + FastAPI |
630| Etiqueta | Recomendado | Estable |
631
632## Web app (recomendado)
633
634La opción **por defecto y recomendada** para la mayoría de proyectos. Obtienes una app web completa con todo el "detrás de escena" ya configurado y gestionado por Coderblock:
635
636- **Inicio de sesión y cuentas de usuario** seguros de serie (email/contraseña y login social)
637- **Base de datos y almacenamiento** integrados
638- **Actualizaciones en tiempo real** y **funciones de IA** incluidas
639- **Vista previa en vivo en segundos**
640
641No configuras nada técnico: describe la app y la IA la construye. Perfecto para lanzar un producto rápido, validar una idea o crear un SaaS.
642
643> [!TIP] Si tienes dudas, elige **Web app**. Cubre la gran mayoría de casos y es la forma más rápida de estar en línea.
644
645## Web Platform
646
647Pensado para quien necesita un **backend Python a medida**. Es la opción correcta para:
648
649- **Integraciones B2B** complejas y APIs personalizadas
650- **Machine learning, análisis de datos** y lógica de cálculo
651- Equipos que ya trabajan en el ecosistema **Python**
652
653Usa **Python + FastAPI** con una base de datos PostgreSQL y se combina con las plantillas 3D (Three.js / React Three Fiber).
654
655> [!INFO] Las **plantillas de producto** (p. ej. plataforma de reservas, tienda online) están disponibles en **Web Platform**. Con **Web app** la IA construye todo desde cero según tu petición.
656
657## Comparación completa
658
659| Función | Web app | Web Platform |
660|---|---|---|
661| Frontend | React + TypeScript + Tailwind | React + TypeScript + Tailwind |
662| Backend | Gestionado (auth, BD, almacenamiento, IA) | Python + FastAPI |
663| Base de datos | Incluida | PostgreSQL |
664| Login de usuario | De serie | Configurable |
665| Funciones de IA | Incluidas (ver AI Agents) | Disponibles |
666| Plantillas de producto | Construcción a medida | 32 plantillas listas |
667| Ideal para | SaaS, apps de IA, MVP | B2B, ML, integraciones |
668
669## Cómo elegirlo y cambiarlo
670
671Elige el tipo de proyecto en la pantalla de **creación del proyecto**, usando las dos tarjetas. La elección determina las tecnologías y las sugerencias de la IA.
672
673> [!WARNING] El tipo de proyecto se define al crearlo. Si necesitas cambiarlo, lo más sencillo es crear un proyecto nuevo con el tipo correcto.
674
675## ¿Qué sigue?
676
677- ¿Elegiste **Web app**? Añade chat de IA e imágenes desde la sección [AI Agents](/docs/ai-agents).
678- ¿Quieres empezar desde una plantilla? Consulta [Plantillas de producto](/docs/product-templates).
679`,fr:`# Web app vs Web Platform
680
681\`\`\`anim
682project-types
683\`\`\`
684
685Quand tu crées un nouveau projet, Coderblock te demande de choisir un **type de projet**. C'est la première décision importante : elle définit les technologies que l'IA utilisera pour construire ton app. Pas besoin d'être technique : ce guide t'aide à choisir en une minute.
686
687## Les deux options en un coup d'œil
688
689| | Web app | Web Platform |
690|---|---|---|
691| Idéal pour | SaaS, tableaux de bord, marketplaces, apps IA | Intégrations B2B, projets ML/données, équipes Python |
692| Temps pour démarrer | Le plus rapide (aperçu en secondes) | Élevé |
693| Backend | Inclus et géré automatiquement | Python + FastAPI |
694| Badge | Recommandé | Stable |
695
696## Web app (recommandé)
697
698Le choix **par défaut et recommandé** pour la plupart des projets. Tu obtiens une app web complète avec toutes les « coulisses » dé
698jà configurées et gérées par Coderblock :
699
700- **Connexion et comptes utilisateurs** sécurisés prêts à l'emploi (e-mail/mot de passe et login social)
701- **Base de données et stockage de fichiers** intégrés
702- **Mises à jour en temps réel** et **fonctions IA** incluses
703- **Aperçu en direct en quelques secondes**
704
705Tu ne configures rien de technique : décris l'app et l'IA la construit. Parfait pour lancer un produit vite, valider une idée ou créer un SaaS.
706
707> [!TIP] En cas de doute, choisis **Web app**. Il couvre la grande majorité des cas et c'est le moyen le plus rapide d'être en ligne.
708
709## Web Platform
710
711Conçu pour ceux qui ont besoin d'un **backend Python sur mesure**. C'est le bon choix pour :
712
713- **Intégrations B2B** complexes et APIs personnalisées
714- **Machine learning, analyse de données** et logique de calcul
715- Les équipes travaillant déjà dans l'écosystème **Python**
716
717Il utilise **Python + FastAPI** avec une base de données PostgreSQL et s'associe aux templates 3D (Three.js / React Three Fiber).
718
719> [!INFO] Les **templates produit** (p. ex. plateforme de réservation, boutique en ligne) sont disponibles sur **Web Platform**. Avec **Web app**, l'IA construit tout à partir de zéro selon ta demande.
720
721## Comparaison complète
722
723| Fonctionnalité | Web app | Web Platform |
724|---|---|---|
725| Frontend | React + TypeScript + Tailwind | React + TypeScript + Tailwind |
726| Backend | Géré (auth, BD, stockage, IA) | Python + FastAPI |
727| Base de données | Incluse | PostgreSQL |
728| Login utilisateur | Prêt à l'emploi | Configurable |
729| Fonctions IA | Incluses (voir AI Agents) | Disponibles |
730| Templates produit | Construction sur mesure | 32 templates prêts |
731| Idéal pour | SaaS, apps IA, MVP | B2B, ML, intégrations |
732
733## Comment le choisir et le changer
734
735Choisis le type de projet sur l'écran de **création du projet**, via les deux cartes. Le choix détermine les technologies et les suggestions de l'IA.
736
737> [!WARNING] Le type de projet est fixé à la création. Si tu dois le changer, le plus simple est de créer un nouveau projet avec le bon type.
738
739## Et ensuite ?
740
741- Tu as choisi **Web app** ? Ajoute le chat IA et les images depuis la section [AI Agents](/docs/ai-agents).
742- Envie de partir d'un template ? Voir [Templates produit](/docs/product-templates).
743`,de:`# Web app vs Web Platform
744
745\`\`\`anim
746project-types
747\`\`\`
748
749Wenn du ein neues Projekt erstellst, bittet dich Coderblock, einen **Projekttyp** zu wählen. Das ist die erste wichtige Entscheidung: Sie legt fest, welche Technologien die KI zum Bau deiner App verwendet. Du musst nicht technisch sein – dieser Leitfaden hilft dir, in einer Minute zu wählen.
750
751## Die zwei Optionen auf einen Blick
752
753| | Web app | Web Platform |
754|---|---|---|
755| Ideal für | SaaS, Dashboards, Marktplätze, KI-Apps | B2B-Integrationen, ML-/Daten-Projekte, Python-Teams |
756| Startzeit | Am schnellsten (Vorschau in Sekunden) | Hoch |
757| Backend | Enthalten und automatisch verwaltet | Python + FastAPI |
758| Badge | Empfohlen | Stabil |
759
760## Web app (empfohlen)
761
762Die **Standard- und empfohlene** Wahl für die meisten Projekte. Du erhältst eine komplette Web-App mit allem „hinter den Kulissen", bereits eingerichtet und von Coderblock verwaltet:
763
764- Sichere **Anmeldung & Nutzerkonten** von Haus aus (E-Mail/Passwort und Social Login)
765- Integrierte **Datenbank & Dateispeicherung**
766- **Echtzeit-Updates** und **KI-Funktionen** inklusive
767- **Live-Vorschau in Sekunden**
768
769Du konfigurierst nichts Technisches: Beschreibe die App und die KI baut sie. Perfekt, um schnell ein Produkt zu launchen, eine Idee zu validieren oder ein SaaS zu bauen.
770
771> [!TIP] Wenn du unsicher bist, wähle **Web app**. Es deckt die allermeisten Fälle ab und ist der schnellste Weg online.
772
773## Web Platform
774
775Gebaut für alle, die ein **eigenes Python-Backend** brauchen. Die richtige Wahl für:
776
777- Komplexe **B2B-Integrationen** und eigene APIs
778- **Machine Learning, Datenanalyse** und Rechenlogik
779- Teams, die bereits im **Python**-Ökosystem arbeiten
780
781Es nutzt **Python + FastAPI** mit einer PostgreSQL-Datenbank und passt zu den 3D-Vorlagen (Three.js / React Three Fiber).
782
783> [!INFO] **Produktvorlagen** (z. B. Buchungsplattform, Online-Shop) sind auf **Web Platform** verfügbar. Bei **Web app** baut die KI alles von Grund auf nach deiner Anfrage.
784
785## Vollständiger Vergleich
786
787| Funktion | Web app | Web Platform |
788|---|---|---|
789| Frontend | React + TypeScript + Tailwind | React + TypeScript + Tailwind |
790| Backend | Verwaltet (Auth, DB, Speicher, KI) | Python + FastAPI |
791| Datenbank | Enthalten | PostgreSQL |
792| Nutzer-Login | Von Haus aus | Konfigurierbar |
793| KI-Funktionen | Enthalten (siehe AI Agents) | Verfügbar |
794| Produktvorlagen | Maßgeschneiderter Bau | 32 fertige Vorlagen |
795| Ideal für | SaaS, KI-Apps, MVP | B2B, ML, Integrationen |
796
797## Wie du ihn wählst und änderst
798
799Wähle den Projekttyp auf dem **Projekterstellungs**-Bildschirm über die zwei Karten. Die Wahl bestimmt die Technologien und die Vorschläge der KI.
800
801> [!WARNING] Der Projekttyp wird bei der Erstellung festgelegt. Musst du ihn ändern, ist der einfachste Weg, ein neues Projekt mit dem richtigen Typ zu erstellen.
802
803## Wie geht's weiter?
804
805- **Web app** gewählt? Füge KI-Chat und Bilder über den Abschnitt [AI Agents](/docs/ai-agents) hinzu.
806- Von einer Vorlage starten? Siehe [Produktvorlagen](/docs/product-templates).
807`,zh:`# Web app 对比 Web Platform
808
809\`\`\`anim
810project-types
811\`\`\`
812
813当你创建新项目时,Coderblock 会让你选择一个**项目类型**。这是第一个重要决定:它决定了 AI 构建应用所用的技术。你无需懂技术——本指南帮你一分钟内做出选择。
814
815## 两种选项一览
816
817| | Web app | Web Platform |
818|---|---|---|
819| 适合 | SaaS、看板、市场平台、AI 应用 | B2B 集成、ML/数据项目、Python 团队 |
820| 上手时间 | 最快(几秒即可预览) | 较高 |
821| 后端 | 内置并自动托管 | Python + FastAPI |
822| 标签 | 推荐 | 稳定 |
823
824## Web app(推荐)
825
826大多数项目的**默认且推荐**选择。你会得到一个完整的 Web 应用,所有“幕后”部分都已由 Coderblock 配置并托管:
827
828- 开箱即用的安全**登录与用户账户**(邮箱/密码与社交登录)
829- 内置**数据库与文件存储**
830- 内置**实时更新**与 **AI 功能**
831- **几秒即可实时预览**
832
833你无需配置任何技术细节:描述应用,AI 就会构建它。非常适合快速上线产品、验证想法或搭建 SaaS。
834
835> [!TIP] 如果拿不准,就选 **Web app**。它覆盖了绝大多数场景,是最快上线的方式。
836
837## Web Platform
838
839面向需要**自定义 Python 后端**的用户。它适合:
840
841- 复杂的 **B2B 集成**与自定义 API
842- **机器学习、数据分析**与计算逻辑
843- 已在 **Python** 生态中工作的团队
844
845它使用 **Python + FastAPI** 搭配 PostgreSQL 数据库,并与 3D 模板(Three.js / React Three Fiber)配合。
846
847> [!INFO] **产品模板**(如预订平台、在线商店)在 **Web Platform** 上可用。使用 **Web app** 时,AI 会根据你的请求从零构建一切。
848
849## 完整对比
850
851| 功能 | Web app | Web Platform |
852|---|---|---|
853| 前端 | React + TypeScript + Tailwind | React + TypeScript + Tailwind |
854| 后端 | 托管(认证、数据库、存储、AI) | Python + FastAPI |
855| 数据库 | 内置 | PostgreSQL |
856| 用户登录 | 开箱即用 | 可配置 |
857| AI 功能 | 内置(见 AI Agents) | 可用 |
858| 产品模板 | 定制构建 | 32 个现成模板 |
859| 适合 | SaaS、AI 应用、MVP | B2B、ML、集成 |
860
861## 如何选择与更改
862
863在**项目创建**界面通过两张卡片选择项目类型。该选择决定了技术栈与 AI 的建议。
864
865> [!WARNING] 项目类型在创建时确定。若需更改,最简单的方式是用正确的类型新建一个项目。
866
867## 接下来?
868
869- 选了 **Web app**?在 [AI Agents](/docs/ai-agents) 部分添加 AI 聊天与图片。
870- 想从模板开始?参见[产品模板](/docs/product-templates)。
871`},prompting:{es:`# Prompting
872
873\`\`\`anim
874prompting
875\`\`\`
876
877Escrivir buenos prompts es la clave para obtener resultados excelentes de Coderblock.
878
879## Buenas prácticas
880
881### Sé específico
882
883En lugar de escribir *"hazme una web"*, prueba:
884
885\`\`\`
886Crea una landing para un restaurante italiano con:
887- Sección hero con imagen de fondo
888- Menú con 3 categorías (entrantes, primeros, segundos)
889- Formulario de reserva de mesa
890- Pie de página con mapa y contactos
891\`\`\`
892
893### Da contexto
894
895La IA tiene acceso a todos los archivos del proyecto. Si quieres modificar algo concreto, menciónalo:
896
897\`\`\`
898En el componente Header.tsx, cambia el color del logo de azul a verde
899\`\`\`
900
901### Un paso a la vez
902
903Para proyectos complejos, ve por pasos:
904
9051. Primero la estructura de la página
9062. Luego los componentes de UI
9073. Por último la lógica y las APIs
908
909> [!WARNING] Evita prompts muy largos con muchas peticiones distintas. La IA funciona mejor con tareas enfocadas.
910
911## Ejemplos de prompts
912
913| Objetivo | Prompt |
914|------|--------|
915| Nueva página | *"Crea una página Acerca de con sección de equipo"* |
916| Cambio de estilo | *"Cambia el tema a modo oscuro"* |
917| Añadir función | *"Añade autenticación con email y contraseña"* |
918| Corregir error | *"El botón de envío no funciona, revisa el formulario"* |
919| Integración | *"Integra Stripe para los pagos"* |
920`,fr:`# Prompting
921
922\`\`\`anim
923prompting
924\`\`\`
925
926Écrire de bons prompts est la clé pour obtenir d'excellents résultats avec Coderblock.
927
928## Bonnes pratiques
929
930### Sois précis
931
932Au lieu d'écrire *« fais-moi un site »*, essaie :
933
934\`\`\`
935Crée une landing page pour un restaurant italien avec :
936- Section hero avec image de fond
937- Menu avec 3 catégories (entrées, plats, desserts)
938- Formulaire de réservation de table
939- Pied de page avec carte et contacts
940\`\`\`
941
942### Donne du contexte
943
944L'IA a accès à tous les fichiers du projet. Si tu veux modifier quelque chose de précis, mentionne-le :
945
946\`\`\`
947Dans le composant Header.tsx, change la couleur du logo de bleu à vert
948\`\`\`
949
950### Une étape à la fois
951
952Pour les projets complexes, procède par étapes :
953
9541. D'abord la structure de la page
9552. Puis les composants d'UI
9563. Enfin la logique et les APIs
957
958> [!WARNING] Évite les prompts très longs avec beaucoup de demandes différentes. L'IA fonctionne mieux avec des tâches ciblées.
959
960## Exemples de prompts
961
962| Objectif | Prompt |
963|------|--------|
964| Nouvelle page | *« Crée une page À propos avec une section équipe »* |
965| Changement de style | *« Passe le thème en mode sombre »* |
966| Ajouter une fonction | *« Ajoute l'authentification par e-mail et mot de passe »* |
967| Corriger un bug | *« Le bouton d'envoi ne marche pas, vérifie le formulaire »* |
968| Intégration | *« Intègre Stripe pour les paiements »* |
969`,de:`# Prompting
970
971\`\`\`anim
972prompting
973\`\`\`
974
975Gute Prompts zu schreiben ist der Schlüssel zu hervorragenden Ergebnissen mit Coderblock.
976
977## Best Practices
978
979### Sei konkret
980
981Statt *„bau mir eine Website"* versuche:
982
983\`\`\`
984Erstelle eine Landingpage für ein italienisches Restaurant mit:
985- Hero-Bereich mit Hintergrundbild
986- Menü mit 3 Kategorien (Vorspeisen, erste Gänge, Hauptgerichte)
987- Formular zur Tischreservierung
988- Fußzeile mit Karte und Kontakten
989\`\`\`
990
991### Gib Kontext
992
993Die KI hat Zugriff auf alle Projektdateien. Willst du etwas Bestimmtes ändern, nenne es:
994
995\`\`\`
996Ändere im Header.tsx-Komponente die Logo-Farbe von Blau auf Grün
997\`\`\`
998
999### Schritt für Schritt
1000
1001Bei komplexen Projekten gehe in Schritten vor:
1002
10031. Zuerst die Seitenstruktur
10042. Dann die UI-Komponenten
10053. Zuletzt Logik und APIs
1006
1007> [!WARNING] Vermeide sehr lange Prompts mit vielen verschiedenen Anfragen. Die KI arbeitet am besten mit fokussierten Aufgaben.
1008
1009## Beispiel-Prompts
1010
1011| Ziel | Prompt |
1012|------|--------|
1013| Neue Seite | *„Erstelle eine Über-uns-Seite mit Team-Bereich"* |
1014| Stiländerung | *„Stelle das Theme auf Dark Mode um"* |
1015| Funktion hinzufügen | *„Füge Authentifizierung mit E-Mail und Passwort hinzu"* |
1016| Fehler beheben | *„Der Absende-Button funktioniert nicht, prüfe das Formular"* |
1017| Integration | *„Integriere Stripe für Zahlungen"* |
1018`,zh:`# Prompting
1019
1020\`\`\`anim
1021prompting
1022\`\`\`
1023
1024写好提示词是从 Coderblock 获得优秀结果的关键。
1025
1026## 最佳实践
1027
1028### 具体明确
1029
1030与其写 *“给我做个网站”*,不如试试:
1031
1032\`\`\`
1033为一家意大利餐厅创建落地页,包含:
1034- 带背景图的主视觉区
1035- 3 个分类的菜单(前菜、第一道、主菜)
1036- 餐桌预订表单
1037- 含地图和联系方式的页脚
1038\`\`\`
1039
1040### 提供上下文
1041
1042AI 可以访问项目的所有文件。若想修改某个具体内容,请指明:
1043
1044\`\`\`
1045在 Header.tsx 组件中,把 Logo 颜色从蓝色改为绿色
1046\`\`\`
1047
1048### 循序渐进
1049
1050对复杂项目,分步进行:
1051
10521. 先做页面结构
10532. 再做 UI 组件
10543. 最后做逻辑和 API
1055
1056> [!WARNING] 避免在一个很长的提示里塞入许多不同的请求。AI 对聚焦的任务效果最好。
1057
1058## 提示词示例
1059
1060| 目标 | 提示词 |
1061|------|--------|
1062| 新页面 | *“创建一个包含团队区块的关于页面”* |
1063| 样式修改 | *“把主题切换为暗色模式”* |
1064| 添加功能 | *“添加邮箱和密码认证”* |
1065| 修复缺陷 | *“提交按钮无效,检查一下表单”* |
1066| 集成 | *“集成 Stripe 支付”* |
1067`},modes:{es:`# Selector de modelo
1068
1069\`\`\`anim
1070modes
1071\`\`\`
1072
1073Eliges qué modelo de IA trabaja en tu proyecto desde el **selector de modelo**, en la parte inferior del chat. El mismo selector aparece al crear un proyecto nuevo, y puedes cambiar de modelo en cualquier momento: el proyecto y la conversación siguen siendo los mismos.
1074
1075## Las tres opciones
1076
1077- **Auto**: la plataforma elige un modelo para cada parte de la tarea según los niveles de calidad que definas. Funciona con modelos abiertos eficientes en coste. Disponible en todos los planes.
1078- **Frontier**: modelos frontier premium seleccionados por el equipo de Coderblock, para la máxima calidad. Consume más créditos. Solo en planes de pago.
1079- **Custom**: eliges tú un modelo concreto. Los modelos se agrupan por proveedor (**OpenAI**, **Anthropic**, **Open models**) y bajo cada nombre verás el proveedor y su rasgo principal.
1080
1081En qué destaca (y en qué no) cada modelo se explica en [Modelos](/docs/models).
1082
1083## Niveles de calidad (Auto y Frontier)
1084
1085La primera vez que eliges Auto o Frontier se abre una ventana con cuatro controles. Puedes volver a abrirla cuando quieras desde el icono de engranaje junto al selector.
1086
1087| Control | Qué controla |
1088|---------|--------------|
1089| **General AI Intelligence** | el modelo que planifica y coordina el trabajo |
1090| **Creativity & Design** | el modelo que construye la interfaz |
1091| **Functionality & Database** | el modelo que escribe la lógica y los datos |
1092| **Adaptability** | el modelo para investigar y leer |
1093
1094Cada control va de **Low** a **Ultra High**. Los niveles más altos usan modelos más potentes y más créditos. Para Auto (y para Frontier cuando está disponible) la ventana muestra una **estimación** de créditos por mensaje que se actualiza al mover los controles. Auto y Frontier guardan ajustes por separado.
1095
1096## Nivel de rendimiento (modelos Custom)
1097
1098Cuando eliges un modelo concreto, el icono de engranaje fija su **nivel de rendimiento**: un nivel más alto hace que el modelo razone más antes de responder, lo que suele ayudar en tareas difíciles, pero es más lento y consume más créditos. Los niveles disponibles dependen del modelo: en Claude Opus 5.5, por ejemplo, el razonamiento no se puede desactivar. En algunos modelos también verás la opción **Automatic** (recomendada donde está disponible): la plataforma sube el nivel mientras planifica, lo baja mientras ejecuta y lo vuelve a subir si algo falla.
1099
1100## Conviene saber
1101
1102- Los modelos con candado están reservados a los planes de pago: actualiza tu plan para desbloquearlos.
1103- El editor recuerda en tu navegador el último modelo que usaste.
1104- La página de creación de proyectos parte siempre de **GLM 5.3 Flash**, para que c
1104ada proyecto nuevo empiece con una elección consciente: cámbialo antes de crear el proyecto si prefieres otro modelo.
1105- La lista de modelos puede cambiar con el tiempo: el selector del editor siempre muestra los que tienes disponibles.
1106
1107> [!TIP] ¿No sabes por dónde empezar? Construye con Auto o GLM 5.3 Flash y pasa a un modelo más potente como Claude Opus 5.5 para las páginas o los errores que requieren más cuidado.
1108`,fr:`# Sélecteur de modèle
1109
1110\`\`\`anim
1111modes
1112\`\`\`
1113
1114Tu choisis le modèle d'IA qui travaille sur ton projet depuis le **sélecteur de modèle**, en bas du chat. Le même sélecteur apparaît quand tu crées un nouveau projet, et tu peux changer de modèle à tout moment : le projet et la conversation restent les mêmes.
1115
1116## Les trois options
1117
1118- **Auto** : la plateforme choisit un modèle pour chaque partie de la tâche, selon les niveaux de qualité que tu fixes. Elle s'appuie sur des modèles ouverts économiques. Disponible dans toutes les offres.
1119- **Frontier** : des modèles frontier premium sélectionnés par l'équipe Coderblock, pour la meilleure qualité. Consomme plus de crédits. Offres payantes uniquement.
1120- **Custom** : tu choisis toi-même un modèle précis. Les modèles sont regroupés par fournisseur (**OpenAI**, **Anthropic**, **Open models**) et chacun affiche sous son nom le fournisseur et son point fort.
1121
1122Les forces et les limites de chaque modèle sont détaillées dans [Modèles](/docs/models).
1123
1124## Niveaux de qualité (Auto et Frontier)
1125
1126La première fois que tu sélectionnes Auto ou Frontier, une fenêtre s'ouvre avec quatre curseurs. Tu peux la rouvrir à tout moment via l'icône d'engrenage à côté du sélecteur.
1127
1128| Curseur | Ce qu'il contrôle |
1129|---------|-------------------|
1130| **General AI Intelligence** | le modèle qui planifie et coordonne le travail |
1131| **Creativity & Design** | le modèle qui construit l'interface |
1132| **Functionality & Database** | le modèle qui écrit la logique et les données |
1133| **Adaptability** | le modèle utilisé pour la recherche et la lecture |
1134
1135Chaque curseur va de **Low** à **Ultra High**. Les niveaux élevés utilisent des modèles plus puissants et plus de crédits. Pour Auto (et pour Frontier quand c'est disponible), la fenêtre affiche une **estimation** des crédits par message, mise à jour à chaque réglage. Auto et Frontier ont des réglages distincts.
1136
1137## Niveau de performance (modèles Custom)
1138
1139Quand tu choisis un modèle précis, l'icône d'engrenage règle son **niveau de performance** : un niveau plus élevé fait davantage réfléchir le modèle avant de répondre, ce qui aide souvent sur les tâches difficiles, mais c'est plus lent et consomme plus de crédits. Les niveaux proposés dépendent du modèle : sur Claude Opus 5.5, par exemple, le raisonnement ne peut pas être désactivé. Sur certains modèles, tu verras aussi l'option **Automatic** (recommandée quand elle existe) : la plateforme monte le niveau pendant la planification, le baisse pendant l'exécution et le remonte en cas d'échec.
1140
1141## Bon à savoir
1142
1143- Les modèles marqués d'un cadenas sont réservés aux offres payantes : passe à une offre payante pour les débloquer.
1144- L'éditeur mémorise dans ton navigateur le dernier modèle utilisé.
1145- La page de création de projet démarre toujours sur **GLM 5.3 Flash**, pour que chaque nouveau projet parte d'un choix délibéré : change-le avant de créer le projet si tu préfères un autre modèle.
1146- La liste des modèles peut évoluer : le sélecteur de l'éditeur montre toujours ceux qui te sont accessibles.
1147
1148> [!TIP] Tu ne sais pas par où commencer ? Construis avec Auto ou GLM 5.3 Flash, puis passe à un modèle plus puissant comme Claude Opus 5.5 pour les pages ou les bugs qui demandent plus de soin.
1149`,de:`# Modellauswahl
1150
1151\`\`\`anim
1152modes
1153\`\`\`
1154
1155Welches KI-Modell an deinem Projekt arbeitet, wählst du in der **Modellauswahl** unten im Chat. Dieselbe Auswahl erscheint beim Anlegen eines neuen Projekts, und du kannst das Modell jederzeit wechseln: Projekt und Unterhaltung bleiben dieselben.
1156
1157## Die drei Optionen
1158
1159- **Auto**: Die Plattform wählt für jeden Teil der Aufgabe ein Modell, passend zu den Qualitätsstufen, die du festlegst. Sie nutzt kosteneffiziente offene Modelle. In allen Plänen verfügbar.
1160- **Frontier**: Premium-Frontier-Modelle, ausgewählt vom Coderblock-Team, für höchste Qualität. Verbraucht mehr Credits. Nur in Bezahlplänen.
1161- **Custom**: Du wählst selbst ein bestimmtes Modell. Die Modelle sind nach Anbieter gruppiert (**OpenAI**, **Anthropic**, **Open models**), und unter jedem Namen stehen Anbieter und wichtigste Eigenschaft.
1162
1163Was jedes Modell gut (und weniger gut) kann, erklärt die Seite [Modelle](/docs/models).
1164
1165## Qualitätsstufen (Auto und Frontier)
1166
1167Wenn du Auto oder Frontier zum ersten Mal wählst, öffnet sich ein Fenster mit vier Reglern. Über das Zahnrad-Symbol neben der Auswahl kannst du es jederzeit wieder öffnen.
1168
1169| Regler | Was er steuert |
1170|--------|----------------|
1171| **General AI Intelligence** | das Modell, das die Arbeit plant und koordiniert |
1172| **Creativity & Design** | das Modell, das die Oberfläche baut |
1173| **Functionality & Database** | das Modell, das Logik und Daten schreibt |
1174| **Adaptability** | das Modell für Recherche und Lesen |
1175
1176Jeder Regler reicht von **Low** bis **Ultra High**. Höhere Stufen nutzen stärkere Modelle und mehr Credits. Für Auto (und für Frontier, wenn verfügbar) zeigt das Fenster eine **Schätzung** der Credits pro Nachricht, die sich beim Verschieben der Regler aktualisiert. Auto und Frontier speichern getrennte Einstellungen.
1177
1178## Leistungsstufe (Custom-Modelle)
1179
1180Wenn du ein bestimmtes Modell wählst, stellt das Zahnrad seine **Leistungsstufe** ein: Eine höhere Stufe lässt das Modell vor der Antwort länger nachdenken. Das hilft meist bei schwierigen Aufgaben, ist aber langsamer und verbraucht mehr Credits. Welche Stufen es gibt, hängt vom Modell ab: Bei Claude Opus 5.5 lässt sich das Nachdenken zum Beispiel nicht abschalten. Bei einigen Modellen siehst du außerdem die Option **Automatic** (empfohlen, wo verfügbar): Die Plattform erhöht die Stufe beim Planen, senkt sie beim Ausführen und erhöht sie wieder, wenn etw
1180as schiefgeht.
1181
1182## Gut zu wissen
1183
1184- Modelle mit Schloss-Symbol sind Bezahlplänen vorbehalten: Mit einem Upgrade schaltest du sie frei.
1185- Der Editor merkt sich in deinem Browser das zuletzt verwendete Modell.
1186- Die Seite zum Anlegen eines Projekts startet immer mit **GLM 5.3 Flash**, damit jedes neue Projekt mit einer bewussten Wahl beginnt: Wechsle das Modell vor dem Anlegen, wenn du ein anderes möchtest.
1187- Die Modellliste kann sich mit der Zeit ändern: Die Auswahl im Editor zeigt immer, was dir zur Verfügung steht.
1188
1189> [!TIP] Unsicher, womit du anfangen sollst? Baue mit Auto oder GLM 5.3 Flash und wechsle für Seiten oder Bugs, die mehr Sorgfalt brauchen, zu einem stärkeren Modell wie Claude Opus 5.5.
1190`,zh:`# 模型选择器
1191
1192\`\`\`anim
1193modes
1194\`\`\`
1195
1196你可以在聊天框底部的**模型选择器**中,选择由哪个 AI 模型来处理你的项目。创建新项目时也会出现同一个选择器,而且你可以随时切换模型:项目和对话都保持不变。
1197
1198## 三种选项
1199
1200- **Auto**:平台根据你设定的质量等级,为任务的每个部分挑选模型。它使用高性价比的开放模型。所有套餐均可使用。
1201- **Frontier**:由 Coderblock 团队挑选的高级前沿模型,追求最高质量。消耗更多积分。仅限付费套餐。
1202- **Custom**:由你自己指定某个模型。模型按提供商分组(**OpenAI**、**Anthropic**、**Open models**),每个名称下方会显示提供商及其主要特点。
1203
1204每个模型擅长和不擅长的地方,请见[模型](/docs/models)。
1205
1206## 质量等级(Auto 与 Frontier)
1207
1208第一次选择 Auto 或 Frontier 时,会弹出一个包含四个调节项的窗口。之后随时可以通过选择器旁的齿轮图标重新打开。
1209
1210| 调节项 | 控制内容 |
1211|--------|----------|
1212| **General AI Intelligence** | 负责规划和协调工作的模型 |
1213| **Creativity & Design** | 负责构建界面的模型 |
1214| **Functionality & Database** | 负责编写逻辑和数据的模型 |
1215| **Adaptability** | 用于调研和阅读的模型 |
1216
1217每个调节项从 **Low** 到 **Ultra High**。等级越高,使用的模型越强,消耗的积分也越多。对于 Auto(以及可用时的 Frontier),窗口会显示每条消息的**预估**积分,并随调节实时更新。Auto 和 Frontier 的设置彼此独立。
1218
1219## 性能等级(Custom 模型)
1220
1221选择具体模型时,齿轮图标用于设置其**性能等级**:等级越高,模型在回答前思考得越多,通常有助于处理困难任务,但速度更慢、积分消耗更多。可选等级取决于模型:例如在 Claude Opus 5.5 上,推理无法关闭。部分模型还提供 **Automatic** 选项(在可用时推荐使用):平台在规划时提高等级,在执行时降低等级,出现问题时再重新提高。
1222
1223## 须知
1224
1225- 带锁图标的模型仅限付费套餐:升级即可解锁。
1226- 编辑器会在你的浏览器中记住你上次使用的模型。
1227- 创建项目页面总是从 **GLM 5.3 Flash** 开始,让每个新项目都源于一次明确的选择:如果你更想用其他模型,请在创建项目之前更换。
1228- 模型列表可能会随时间变化:编辑器中的选择器始终显示你当前可用的模型。
1229
1230> [!TIP] 不知道从哪里开始?先用 Auto 或 GLM 5.3 Flash 构建,再在需要格外用心的页面或缺陷上切换到更强的模型,比如 Claude Opus 5.5。
1231`},models:{es:`# Modelos
1232
1233\`\`\`anim
1234modes
1235\`\`\`
1236
1237En Coderblock eliges qué modelo de IA construye tu app. Cada modelo tiene su propio equilibrio entre calidad, velocidad y coste: en esta página encontrarás los modelos que puedes elegir hoy, en qué rinde mejor (y peor) cada uno en general y cómo decidir.
1238
1239> [!INFO] La lista refleja los modelos disponibles en el momento de escribirla. Los que ves en tu selector pueden variar: añadimos, actualizamos o pausamos temporalmente algunos modelos, y algunos están reservados a los planes de pago. El selector del editor es siempre la referencia.
1240
1241## Auto y Frontier
1242
1243Además de los modelos individuales, el selector ofrece dos opciones en las que la plataforma elige por ti (ver [Selector de modelo](/docs/modes)):
1244
1245- **Auto** divide el trabajo en cuatro áreas y usa modelos abiertos eficientes en coste, con los niveles de calida
1245d que definas. Disponible en todos los planes.
1246- **Frontier** funciona igual, pero usa modelos frontier premium seleccionados por nuestro equipo. Máxima calidad, más créditos. Solo en planes de pago.
1247
1248## Los modelos de un vistazo
1249
1250El coste relativo es orientativo: compara cuántos créditos suele consumir la misma tarea, de $ (el más barato) a $$$$$ (el más caro). El consumo real depende de la tarea, de cuánto razona el modelo y de tu plan.
1251
1252| Modelo | Proveedor | Coste relativo | Planes |
1253|--------|-----------|----------------|--------|
1254| Claude Sonnet 5.5 | Anthropic | $$$ | Planes de pago |
1255| Claude Opus 5.5 | Anthropic | $$$$ | Planes de pago |
1256| Claude Fable 5 | Anthropic | $$$$$ | Planes de pago |
1257| GPT-6.1 Sol | OpenAI | $$$ | Planes de pago |
1258| GPT-5.6 Terra | OpenAI | $$$ | Planes de pago |
1259| GPT-6 Luna | OpenAI | $ | Todos los planes |
1260| GLM 5.3 Flash | Z.ai | $ | Todos los planes |
1261| GLM 5.3 FlashX | Z.ai | $ | Todos los planes |
1262| GLM 5.2 | Z.ai | $$ | Todos los planes |
1263| DeepSeek V4 Pro | DeepSeek | $$ | Todos los planes |
1264| DeepSeek V4 Flash | DeepSeek | $ | Todos los planes |
1265| Kimi K2.6 | Moonshot AI | $$ | Todos los planes |
1266| MiMo 2.6 Pro | Xiaomi | $ | Todos los planes |
1267| MiMo 2.6 Flash | Xiaomi | $ | Todos los planes |
1268
1269## Anthropic
1270
1271### Claude Sonnet 5.5
1272
1273El modelo frontier rápido de Anthropic: genera código completo de frontend y backend y es muy bueno planificando y llevando a cabo trabajos de varios pasos.
1274
1275- **Puntos fuertes**: un todoterreno fiable para el desarrollo diario; rápido para ser un modelo frontier.
1276- **Puntos débiles**: consume bastantes más créditos que los modelos abiertos.
1277
1278### Claude Opus 5.5
1279
1280El modelo insignia de Anthropic para código y la opción más potente de esta lista para programación y trabajo agéntico. El razonamiento está siempre activo.
1281
1282- **Puntos fuertes**: máxima calidad en interfaces complejas, arquitectura y errores difíciles; la mejor opción cuando importa acertar a la primera.
1283- **Puntos débiles**: más lento y con un precio por token aproximadamente el doble que Claude Sonnet 5.5, así que consume más créditos.
1284
1285### Claude Fable 5
1286
1287El nivel premium de Anthropic: la referencia para los problemas de razonamiento más difíciles.
1288
1289- **Puntos fuertes**: el razonamiento más profundo.
1290- **Puntos débiles**: el modelo que más créditos consume (el doble que Claude Opus 5.5). En programación y trabajo agéntico, los benchmarks publicados sitúan a Claude Opus 5.5 por delante por menos de la mitad del precio, así que para la mayoría del trabajo de desarrollo Opus 5.5 compensa más.
1291
1292## OpenAI
1293
1294### GPT-6.1 Sol
1295
1296El modelo frontier de OpenAI, fuerte en programación y en trabajo agéntico de varios pasos.
1297
1298- **Puntos fuertes**: código y bugs difíciles (mucho más fuerte que GPT-6 Sol con el mismo nivel de razonamiento), uso de herramientas y tareas largas.
1299- **Puntos débiles**: usa algo más de tokens por tarea que su predecesor; consumo de créditos en la misma franja que Claude Sonnet 5.
1300
1301### GPT-5.6 Terra
1302
1303El nivel intermedio equilibrado de OpenAI: buena calidad para el día a día a un precio por token más bajo que los modelos insignia.
1304
1305- **Puntos fuertes**: preguntas, análisis y tareas cortas.
1306- **Puntos débiles**: en pruebas de terceros con tareas de programación largas acertó menos veces y usó muchos más tokens por tarea, así que una build larga puede costar más de lo previsto. No es la primera opción para generar una app completa.
1307
1308### GPT-6 Luna
1309
1310La opción de OpenAI más rápida y barata.
1311
1312- **Puntos fuertes**: tareas cortas y bien acotadas: leer código, cambios pequeños, arreglos rápidos.
1313- **Puntos débiles**: más flojo en tareas largas y complejas y al recordar detalles en conversaciones largas. No es adecuado para construir una app completa.
1314
1315## Modelos abiertos
1316
1317### GLM 5.3 Flash (Z.ai)
1318
1319Programación agéntica nativamente multimodal (puede leer capturas de pantalla) por una fracción del precio de los modelos frontier. Es el modelo preseleccionado al crear un proyecto nuevo.
1320
1321- **Puntos fuertes**: coste muy bajo, uso fiable de herramientas, lee imágenes.
1322- **Puntos débiles**: siempre razona antes de responder, lo que puede hacer más lentas algunas respuestas; su resistencia en ejecuciones muy largas está menos probada que la de GLM 5.2.
1323
1324### GLM 5.3 FlashX (Z.ai)
1325
1326El mismo modelo que GLM 5.3 Flash, servido por Z.ai en un nivel más rápido: mismas capacidades (imágenes, herramientas, niveles de razonamiento), con ejecuciones unas tres veces más rápidas en nuestras pruebas.
1327
1328- **Fortalezas**: velocidad; por lo demás idéntico a GLM 5.3 Flash.
1329- **Debilidades**: cuesta unas 2,5 veces GLM 5.3 Flash, aunque sigue entre los modelos más económicos.
1330
1331### GLM 5.2 (Z.ai)
1332
1333El mejor modelo abierto para programación agéntica autónoma en tareas largas, cerca de los modelos frontier en programación y orquestación de herramientas.
1334
1335- **Puntos fuertes**: tareas largas de varios pasos, refactorización, backend.
1336- **Puntos débiles**: interfaces menos pulidas que DeepSeek V4 Pro o Claude Opus (no puede revisar visualmente su propio trabajo); en las ejecuciones más largas sigue por detrás de los modelos de Anthropic; es el modelo abierto más caro.
1337
1338### DeepSeek V4 Pro
1339
1340La mejor relación calidad/precio entre los modelos abiertos y el modelo abierto más fuerte generando frontend.
1341
1342- **Puntos fuertes**: código de frontend y backend limpio a bajo coste.
1343- **Puntos débiles**: más flojo que GLM y que los modelos frontier en la ingeniería real más difícil y en tareas muy largas de varios pasos.
1344
1345### DeepSeek V4 Flash
1346
1347Barato y rápido, con una ventana de contexto muy amplia.
1348
1349- **Puntos fuertes**: leer código, preguntas y tareas pequeñas.
1350- **Puntos débiles**: calidad de interfaz inferior a DeepSeek V4 Pro; resistencia en ejecuciones largas menos probada.
1351
1352### Kimi K2.6 (Moonshot AI)
1353
1354Un modelo abierto fuerte en razonamiento e investigación, que aguanta bien sesiones largas con muchas herramientas.
1355
1356- **Puntos fuertes**: razonamiento, investigación, planificación.
1357- **Puntos débiles**: su salida es más cara que la de los otros modelos abiertos, así que el trabajo con mucho código cuesta más que con DeepSeek V4 Pro o GLM; ventana de contexto más pequeña que la mayoría de los modelos de esta lista; más lento.
1358
1359### MiMo 2.6 Pro (Xiaomi)
1360
1361Experimental: el modelo abierto insignia de Xiaomi, lanzado en septiembre de 2026, con un gran salto en el trabajo agéntico respecto a la versión anterior.
1362
1363- **Puntos fuertes**: coding agéntico cercano a los modelos de frontera en los benchmarks públicos, bajo coste.
1364- **Puntos débiles**: generación lenta (un archivo grande puede tardar minutos); experimental.
1365
1366### MiMo 2.6 Flash (Xiaomi)
1367
1368Experimental: el modelo abierto económico de la misma familia, al precio de DeepSeek V4 Flash.
1369
1370- **Puntos fuertes**: coste muy bajo, buen coding agéntico.
1371- **Puntos débiles**: generación lenta; experimental.
1372
1373## ¿Qué modelo elijo?
1374
1375| Situación | Opción recomendada |
1376|-----------|--------------------|
1377| Para empezar, o con el plan Community | GLM 5.3 Flash o Auto |
1378| Desarrollo diario con un plan de pago | Claude Sonnet 5.5 |
1379| Interfaces complejas, arquitectura, errores difíciles | Claude Opus 5.5 |
1380| Los problemas de razonamiento más difíciles, el coste es secundario | Claude Fable 5 |
1381| Tareas largas, autónomas y de varios pasos | GLM 5.2, GPT-6.1 Sol o Claude Sonnet 5.5 |
1382| Un frontend cuidado con poco presupuesto | DeepSeek V4 Pro |
1383| Cambios rápidos de texto o estilo, preguntas sobre el código | GPT-6 Luna, DeepSeek V4 Flash o GLM 5.3 Flash |
1384| Prefieres no elegir | Auto (o Frontier con un plan de pago) |
1385
1386> [!TIP] Puedes cambiar de modelo cuando quieras. Un patrón habitual: construir con un modelo eficiente en coste y pasar a Claude Opus 5.5 para las páginas o los errores que requieren más cuidado. Antes de enviar, la estimación de la app (Auto y Frontier) y después tu historial de consumo muestran el coste real en créditos.
1387`,fr:`# Modèles
1388
1389\`\`\`anim
1390modes
1391\`\`\`
1392
1393Sur Coderblock, tu choisis le modèle d'IA qui construit ton app. Chaque modèle a son propre équilibre entre qualité, vitesse et coût : cette page présente les modèles disponibles aujourd'hui, ce que chacun fait bien (ou moins bien) en général, et comment choisir.
1394
1395> [!INFO] La liste reflète les modèles disponibles au moment de la rédaction. Ceux que tu vois dans ton sélecteur peuvent varier : nous ajoutons, mettons à jour ou suspendons temporairement certains modèles, et certains sont réservés aux offres payantes. Le sélecteur de l'éditeur fait toujours foi.
1396
1397## Auto et Frontier
1398
1399En plus des modèles individuels, le sélecteur propose deux options où la plateforme choisit pour toi (voir [Sélecteur de modèle](/docs/modes)) :
1400
1401- **Auto** répartit le travail en quatre domaines et utilise des modèles ouverts économiques, aux niveaux de qualité que tu fixes. Disponible dans toutes les offres.
1402- **Frontier** fonctionne de la même façon, mais avec des modèles frontier premium sélectionnés par notre équipe. Qualité maximale, plus de crédits. Offres payantes uniquement.
1403
1404## Les modèles en un coup d'œil
1405
1406Le coût relatif est indicatif : il compare le nombre de crédits que consomme généralement une même tâche, de $ (le moins cher) à $$$$$ (le plus cher). La consommation réelle dépend de la tâche, du niveau de réflexion du modèle et de ton offre.
1407
1408| Modèle | Fournisseur | Coût relatif | Offres |
1409|--------|-------------|--------------|--------|
1410| Claude Sonnet 5.5 | Anthropic | $$$ | Offres payantes |
1411| Claude Opus 5.5 | Anthropic | $$$$ | Offres payantes |
1412| Claude Fable 5 | Anthropic | $$$$$ | Offres payantes |
1413| GPT-6.1 Sol | OpenAI | $$$ | Offres payantes |
1414| GPT-5.6 Terra | OpenAI | $$$ | Offres payantes |
1415| GPT-6 Luna | OpenAI | $ | Toutes les offres |
1416| GLM 5.3 Flash | Z.ai | $ | Toutes les offres |
1417| GLM 5.3 FlashX | Z.ai | $ | Toutes les offres |
1418| GLM 5.2 | Z.ai | $$ | Toutes les offres |
1419| DeepSeek V4 Pro | DeepSeek | $$ | Toutes les offres |
1420| DeepSeek V4 Flash | DeepSeek | $ | Toutes les offres |
1421| Kimi K2.6 | Moonshot AI | $$ | Toutes les offres |
1422| MiMo 2.6 Pro | Xiaomi | $ | Toutes les offres |
1423| MiMo 2.6 Flash | Xiaomi | $ | Toutes les offres |
1424
1425## Anthropic
1426
1427### Claude Sonnet 5.5
1428
1429Le modèle frontier rapide d'Anthropic : il génère du code complet côté frontend comme backend et excelle à planifier et mener des tâches en plusieurs étapes.
1430
1431- **Points forts** : un polyvalent fiable pour le développement au quotidien ; rapide pour un modèle frontier.
1432- **Points faibles** : consomme nettement plus de crédits que les modèles ouverts.
1433
1434### Claude Opus 5.5
1435
1436Le modèle phare d'Anthropic pour le code, et l'option la plus puissante de cette liste pour le développement et le travail agentique. Le raisonnement est toujours actif.
1437
1438- **Points forts** : qualité maximale sur les interfaces complexes, l'architecture et les bugs difficiles ; le meilleur choix quand il faut réussir du premier coup.
1439- **Points faibles** : plus lent, avec un prix par token environ deux fois plus élevé que Claude Sonnet 5.5, donc plus de crédits consommés.
1440
1441### Claude Fable 5
1442
1443Le niveau premium d'Anthropic : la référence pour les problèmes de raisonnement les plus difficiles.
1444
1445- **Points forts** : le raisonnement le plus poussé.
1446- **Points faibles** : le modèle le plus gourmand en crédits (deux fois plus que Claude Opus 5.5). Sur le code et le travail agentique, les benchmarks publiés placent Claude Opus 5.5 devant, pour moins de la moitié du prix : pour la plupart des développements, Opus 5.5 est le meilleur rapport qualité/prix.
1447
1448## OpenAI
1449
1450### GPT-6.1 Sol
1451
1452Le modèle frontier d'OpenAI, solide en code et sur le travail agentique en plusieurs étapes.
1453
1454- **Points forts** : code et bugs difficiles (bien plus fort que GPT-6 Sol au même niveau de raisonnement), utilisation d'outils et tâches longues.
1455- **Points faibles** : il utilise un peu plus de tokens par tâche que son prédécesseur ; consommation de crédits du même ordre que Claude Sonnet 5.
1456
1457### GPT-5.6 Terra
1458
1459Le niveau intermédiaire équilibré d'OpenAI : une bonne qualité au quotidien, à un prix par token inférieur aux modèles phares.
1460
1461- **Points forts** : questions, analyses et tâches courtes.
1462- **Points faibles** : dans des tests indépendants sur de longues tâches de code, il a moins souvent réussi et a utilisé beaucoup plus de tokens par tâche : un long build peut coûter plus que prévu. Ce n'est pas le premier choix pour générer une app entière.
1463
1464### GPT-6 Luna
1465
1466L'option OpenAI la plus rapide et la moins chère.
1467
1468- **Points forts** : tâches courtes et bien délimitées : lire du code, petites modifications, corrections rapides.
1469- **Points faibles** : moins bon sur les tâches longues et complexes et pour se souvenir des détails dans les longues conversations. Pas adapté pour construire une app entière.
1470
1471## Modèles ouverts
1472
1473### GLM 5.3 Flash (Z.ai)
1474
1475Du code agentique nativement multimodal (il sait lire les captures d'écran) pour une fraction du prix des modèles frontier. C'est le modèle présélectionné à la création d'un n
1475ouveau projet.
1476
1477- **Points forts** : coût très bas, utilisation fiable des outils, lit les images.
1478- **Points faibles** : il réfléchit toujours avant de répondre, ce qui peut ralentir certaines réponses ; son endurance sur les très longues exécutions est moins éprouvée que celle de GLM 5.2.
1479
1480### GLM 5.3 FlashX (Z.ai)
1481
1482Le même modèle que GLM 5.3 Flash, servi par Z.ai sur un niveau plus rapide : mêmes capacités (images, outils, niveaux de raisonnement), avec des exécutions environ trois fois plus rapides dans nos tests.
1483
1484- **Points forts** : la vitesse ; pour le reste identique à GLM 5.3 Flash.
1485- **Points faibles** : il coûte environ 2,5 fois GLM 5.3 Flash, tout en restant parmi les modèles les moins chers.
1486
1487### GLM 5.2 (Z.ai)
1488
1489Le meilleur modèle ouvert pour le code agentique autonome sur des tâches longues, proche des modèles frontier en code et en orchestration d'outils.
1490
1491- **Points forts** : tâches longues en plusieurs étapes, refactoring, backend.
1492- **Points faibles** : interfaces moins soignées que DeepSeek V4 Pro ou Claude Opus (il ne peut pas vérifier visuellement son travail) ; sur les exécutions les plus longues, il reste derrière les modèles d'Anthropic ; c'est le modèle ouvert le plus cher.
1493
1494### DeepSeek V4 Pro
1495
1496Le meilleur rapport qualité/prix parmi les modèles ouverts, et le modèle ouvert le plus fort pour générer du frontend.
1497
1498- **Points forts** : code frontend et backend propre à faible coût.
1499- **Points faibles** : moins bon que GLM et que les modèles frontier sur l'ingénierie réelle la plus difficile et les très longues tâches en plusieurs étapes.
1500
1501### DeepSeek V4 Flash
1502
1503Économique et rapide, avec une très grande fenêtre de contexte.
1504
1505- **Points forts** : lecture de code, questions et petites tâches.
1506- **Points faibles** : qualité d'interface inférieure à DeepSeek V4 Pro ; endurance sur les longues exécutions moins éprouvée.
1507
1508### Kimi K2.6 (Moonshot AI)
1509
1510Un modèle ouvert solide en raisonnement et en recherche, qui tient bien les longues sessions avec de nombreux outils.
1511
1512- **Points forts** : raisonnement, recherche, planification.
1513- **Points faibles** : sa sortie coûte plus cher que celle des autres modèles ouverts, donc le travail riche en code revient plus cher qu'avec DeepSeek V4 Pro ou GLM ; fenêtre de contexte plus petite que la plupart des modèles de cette liste ; plus lent.
1514
1515### MiMo 2.6 Pro (Xiaomi)
1516
1517Expérimental : le modèle ouvert phare de Xiaomi, sorti en septembre 2026, avec un grand bond sur le travail agentique par rapport à la version précédente.
1518
1519- **Points forts** : coding agentique proche des modèles de pointe dans les benchmarks publics, coût bas.
1520- **Points faibles** : génération lente (un gros fichier peut prendre plusieurs minutes) ; expérimental.
1521
1522### MiMo 2.6 Flash (Xiaomi)
1523
1524Expérimental : le modèle ouvert économique de la même famille, au prix de DeepSeek V4 Flash.
1525
1526- **Points forts** : coût très bas, bon coding agentique.
1527- **Points faibles** : génération lente ; expérimental.
1528
1529## Quel modèle choisir ?
1530
1531| Situation | Choix conseillé |
1532|-----------|-----------------|
1533| Pour démarrer, ou avec l'offre Community | GLM 5.3 Flash ou Auto |
1534| Développement quotidien avec une offre payante | Claude Sonnet 5.5 |
1535| Interfaces complexes, architecture, bugs difficiles | Claude Opus 5.5 |
1536| Les problèmes de raisonnement les plus durs, le coût passe après | Claude Fable 5 |
1537| Tâches longues, autonomes, en plusieurs étapes | GLM 5.2, GPT-6.1 Sol ou Claude Sonnet 5.5 |
1538| Un frontend soigné avec un petit budget | DeepSeek V4 Pro |
1539| Petites retouches de texte ou de style, questions sur le code | GPT-6 Luna, DeepSeek V4 Flash ou GLM 5.3 Flash |
1540| Tu préfères ne pas choisir | Auto (ou Frontier avec une offre payante) |
1541
1542> [!TIP] Tu peux changer de modèle quand tu veux. Une approche courante : construire avec un modèle économique, puis passer à Claude Opus 5.5 pour les pages ou les bugs qui demandent plus de soin. Avant l'envoi, l'estimation dans l'app (Auto et Frontier), puis ton historique de consommation, indiquent le coût réel en crédits.
1543`,de:`# Modelle
1544
1545\`\`\`anim
1546modes
1547\`\`\`
1548
1549Bei Coderblock wählst du, welches KI-Modell deine App baut. Jedes Modell hat seine eigene Balance aus Qualität, Geschwindigkeit und Kosten: Diese Seite listet die Modelle, die du heute wählen kannst, zeigt, was jedes davon allgemein gut (und weniger gut) kann, und hilft dir bei der Wahl.
1550
1551> [!INFO] Die Liste gibt die Modelle zum Zeitpunkt der Erstellung wieder. Was du in deiner Modellauswahl siehst, k
1551ann abweichen: Wir fügen Modelle hinzu, aktualisieren sie oder pausieren sie vorübergehend, und manche sind Bezahlplänen vorbehalten. Maßgeblich ist immer die Auswahl im Editor.
1552
1553## Auto und Frontier
1554
1555Neben den einzelnen Modellen bietet die Auswahl zwei Optionen, bei denen die Plattform für dich wählt (siehe [Modellauswahl](/docs/modes)):
1556
1557- **Auto** teilt die Arbeit in vier Bereiche und nutzt kosteneffiziente offene Modelle, auf den Qualitätsstufen, die du festlegst. In allen Plänen verfügbar.
1558- **Frontier** funktioniert genauso, nutzt aber Premium-Frontier-Modelle, die unser Team auswählt. Höchste Qualität, mehr Credits. Nur in Bezahlplänen.
1559
1560## Die Modelle im Überblick
1561
1562Die relativen Kosten sind ein Richtwert: Sie vergleichen, wie viele Credits dieselbe Aufgabe typischerweise verbraucht, von $ (am günstigsten) bis $$$$$ (am teuersten). Der tatsächliche Verbrauch hängt von der Aufgabe, davon, wie viel das Modell nachdenkt, und von deinem Plan ab.
1563
1564| Modell | Anbieter | Relative Kosten | Pläne |
1565|--------|----------|-----------------|-------|
1566| Claude Sonnet 5.5 | Anthropic | $$$ | Bezahlpläne |
1567| Claude Opus 5.5 | Anthropic | $$$$ | Bezahlpläne |
1568| Claude Fable 5 | Anthropic | $$$$$ | Bezahlpläne |
1569| GPT-6.1 Sol | OpenAI | $$$ | Bezahlpläne |
1570| GPT-5.6 Terra | OpenAI | $$$ | Bezahlpläne |
1571| GPT-6 Luna | OpenAI | $ | Alle Pläne |
1572| GLM 5.3 Flash | Z.ai | $ | Alle Pläne |
1573| GLM 5.3 FlashX | Z.ai | $ | Alle Pläne |
1574| GLM 5.2 | Z.ai | $$ | Alle Pläne |
1575| DeepSeek V4 Pro | DeepSeek | $$ | Alle Pläne |
1576| DeepSeek V4 Flash | DeepSeek | $ | Alle Pläne |
1577| Kimi K2.6 | Moonshot AI | $$ | Alle Pläne |
1578| MiMo 2.6 Pro | Xiaomi | $ | Alle Pläne |
1579| MiMo 2.6 Flash | Xiaomi | $ | Alle Pläne |
1580
1581## Anthropic
1582
1583### Claude Sonnet 5.5
1584
1585Das schnelle Frontier-Modell von Anthropic: erzeugt vollständigen Code für Frontend und Backend und plant und erledigt mehrstufige Aufgaben sehr gut.
1586
1587- **Stärken**: ein zuverlässiger Allrounder für die tägliche Entwicklung; schnell für ein Frontier-Modell.
1588- **Schwächen**: verbraucht deutlich mehr Credits als die offenen Modelle.
1589
1590### Claude Opus 5.5
1591
1592Das Spitzenmodell von Anthropic für Code und die stärkste Option in dieser Liste für Programmierung und agentisches Arbeiten. Das Nachdenken ist immer aktiv.
1593
1594- **Stärken**: höchste Qualität bei komplexen Oberflächen, Architektur und schwierigen Bugs; die beste Wahl, wenn es beim ersten Versuch sitzen muss.
1595- **Schwächen**: langsamer und mit etwa doppeltem Preis pro Token gegenüber Claude Sonnet 5.5, verbraucht also mehr Credits.
1596
1597### Claude Fable 5
1598
1599Die Premium-Stufe von Anthropic: die Referenz für die schwierigsten Denkaufgaben.
1600
1601- **Stärken**: das tiefste Nachdenken.
1602- **Schwächen**: das Modell mit dem höchsten Credit-Verbrauch (doppelt so viel wie Claude Opus 5.5). Bei Programmierung und agentischem Arbeiten sehen veröffentlichte Benchmarks Claude Opus 5.5 vorn, zu weniger als dem halben Preis. Für die meisten Entwicklungsaufgaben ist Opus 5.5 daher das bessere Preis-Leistungs-Verhältnis.
1603
1604## OpenAI
1605
1606### GPT-6.1 Sol
1607
1608Das Frontier-Modell von OpenAI, stark beim Programmieren und bei agentischen, mehrstufigen Aufgaben.
1609
1610- **Stärken**: Code und schwierige Bugs (deutlich stärker als GPT-6 Sol bei gleicher Denkstufe), Werkzeugnutzung und lange Aufgaben.
1611- **Schwächen**: braucht pro Aufgabe etwas mehr Tokens als sein Vorgänger; Credit-Verbrauch im selben Bereich wie Claude Sonnet 5.
1612
1613### GPT-5.6 Terra
1614
1615Die ausgewogene Mittelklasse von OpenAI: gute Alltagsqualität zu einem niedrigeren Preis pro Token als die Spitzenmodelle.
1616
1617- **Stärken**: Fragen, Analysen und kürzere Aufgaben.
1618- **Schwächen**: In unabhängigen Tests mit langen Programmieraufgaben war es seltener erfolgreich und brauchte deutlich mehr Tokens pro Aufgabe, sodass ein langer Build teurer werden kann als erwartet. Nicht die erste Wahl, um eine ganze App zu erzeugen.
1619
1620### GPT-6 Luna
1621
1622Die schnellste und günstigste Option von OpenAI.
1623
1624- **Stärken**: kurze, klar umrissene Aufgaben: Code lesen, kleine Änderungen, schnelle Fixes.
1625- **Schwächen**: schwächer bei langen, komplexen Aufgaben und beim Erinnern von Details in langen Unterhaltungen. Nicht geeignet, um eine ganze App zu bauen.
1626
1627## Offene Modelle
1628
1629### GLM 5.3 Flash (Z.ai)
1630
1631Nativ multimodales (es kann Screenshots lesen) agentisches Programmieren zu einem Bruchteil des Preises der Frontier-Modelle. Es ist vorausgewählt, wenn du ein neues Projekt anlegst.
1632
1633- **Stärken**: sehr niedrige Kosten, zuverlässige Werkzeugnutzung, liest Bilder.
1634- **Schwächen**: Es denkt vor jeder Antwort nach, was manche Antworten verlangsamen kann; seine Ausdauer bei sehr langen Läufen ist weniger erprobt als die von GLM 5.2.
1635
1636### GLM 5.3 FlashX (Z.ai)
1637
1638Dasselbe Modell wie GLM 5.3 Flash, von Z.ai auf einer schnelleren Stufe bereitgestellt: gleiche Fähigkeiten (Bilder, Tools, Denkstufen), in unseren Tests etwa dreimal schnellere Läufe.
1639
1640- **Stärken**: Geschwindigkeit; sonst identisch mit GLM 5.3 Flash.
1641- **Schwächen**: kostet etwa das 2,5-Fache von GLM 5.3 Flash, bleibt aber unter den günstigsten Modellen.
1642
1643### GLM 5.2 (Z.ai)
1644
1645Das beste offene Modell für autonomes, agentisches Programmieren bei langen Aufgaben, nah an den Frontier-Modellen bei Code und Werkzeug-Orchestrierung.
1646
1647- **Stärken**: lange mehrstufige Aufgaben, Refactoring, Backend.
1648- **Schwächen**: weniger ausgefeilte Oberflächen als DeepSeek V4 Pro oder Claude Opus (es kann seine Arbeit nicht visuell prüfen); bei den längsten Läufen noch hinter den Anthropic-Modellen; das teuerste offene Modell.
1649
1650### DeepSeek V4 Pro
1651
1652Das beste Preis-Leistungs-Verhältnis unter den offenen Modellen und das stärkste offene Modell für Frontend-Generierung.
1653
1654- **Stärken**: sauberer Frontend- und Backend-Code zu geringen Kosten.
1655- **Schwächen**: schwächer als GLM und die Frontier-Modelle bei der schwierigsten realen Softwareentwicklung und sehr langen mehrstufigen Aufgaben.
1656
1657### DeepSeek V4 Flash
1658
1659Günstig und schnell, mit einem sehr großen Kontextfenster.
1660
1661- **Stärken**: Code lesen, Fragen und kleine Aufgaben.
1662- **Schwächen**: Oberflächenqualität unter DeepSeek V4 Pro; Ausdauer bei langen Läufen weniger erprobt.
1663
1664### Kimi K2.6 (Moonshot AI)
1665
1666Ein offenes Modell, stark im Schlussfolgern und in der Recherche, das auch lange Sitzungen mit vielen Werkzeugen gut durchhält.
1667
1668- **Stärken**: Schlussfolgern, Recherche, Planung.
1669- **Schwächen**: Die Ausgabe ist teurer als bei den anderen offenen Modellen, codelastige Arbeit kostet daher mehr als mit DeepSeek V4 Pro oder GLM; kleineres Kontextfenster als die meisten Modelle hier; langsamer.
1670
1671### MiMo 2.6 Pro (Xiaomi)
1672
1673Experimentell: Xiaomis offenes Spitzenmodell, erschienen im September 2026, mit einem großen Sprung bei agentischer Arbeit gegenüber der Vorversion.
1674
1675- **Stärken**: agentisches Coding nahe an Frontier-Modellen in öffentlichen Benchmarks, niedrige Kosten.
1676- **Schwächen**: langsame Generierung (eine große Datei kann Minuten dauern); experimentell.
1677
1678### MiMo 2.6 Flash (Xiaomi)
1679
1680Experimentell: das günstige offene Modell derselben Familie, zum Preis von DeepSeek V4 Flash.
1681
1682- **Stärken**: sehr niedrige Kosten, gutes agentisches Coding.
1683- **Schwächen**: langsame Generierung; experimentell.
1684
1685## Welches Modell soll ich wählen?
1686
1687| Situation | Empfehlung |
1688|-----------|------------|
1689| Zum Einstieg oder im Community-Plan | GLM 5.3 Flash oder Auto |
1690| Tägliche Entwicklung mit einem Bezahlplan | Claude Sonnet 5.5 |
1691| Komplexe Oberflächen, Architektur, schwierige Bugs | Claude Opus 5.5 |
1692| Die schwierigsten Denkaufgaben, Kosten zweitrangig | Claude Fable 5 |
1693| Lange, autonome, mehrstufige Aufgaben | GLM 5.2, GPT-6.1 Sol oder Claude Sonnet 5.5 |
1694| Ein ausgefeiltes Frontend mit kleinem Budget | DeepSeek V4 Pro |
1695| Schnelle Text- oder Stiländerungen, Fragen zum Code | GPT-6 Luna, DeepSeek V4 Flash oder GLM 5.3 Flash |
1696| Du willst lieber nicht wählen | Auto (oder Frontier mit einem Bezahlplan) |
1697
1698> [!TIP] Du kannst das Modell jederzeit wechseln. Ein bewährtes Vorgehen: mit einem kosteneffizienten Modell bauen und für Seiten oder Bugs, die mehr Sorgfalt brauchen, zu Claude Opus 5.5 wechseln. Vor dem Senden zeigt die Schätzung in der App (Auto und Frontier), danach dein Verbrauchsverlauf die tatsächlichen Credit-Kosten.
1699`,zh:`# 模型
1700
1701\`\`\`anim
1702modes
1703\`\`\`
1704
1705在 Coderblock 上,由你决定用哪个 AI 模型来构建你的应用。每个模型在质量、速度和成本之间各有取舍:本页列出了你现在可以选择的模型、它们总体上擅长与不擅长的地方,以及如何选择。
1706
1707> [!INFO] 此列表反映撰写时可用的模型。你在选择器中看到的模型可能有所不同:我们会新增、更新或暂时停用某些模型,部分模型仅限付费套餐。一切以编辑器中的选择器为准。
1708
1709## Auto 与 Frontier
1710
1711除了单个模型,选择器还提供两种由平台替你选择的选项(参见[模型选择器](/docs/modes)):
1712
1713- **Auto** 将工作分为四个领域,按你设定的质量等级使用高性价比的开放模型。所有套餐均可使用。
1714- **Frontier** 的工作方式相同,但使用我们团队挑选的高级前沿模型。质量最高,积分消耗更多。仅限付费套餐。
1715
1716## 模型一览
1717
1718相对成本仅供参考:它比较的是同一任务通常消耗多少积分,从 $(最便宜)到 $$$$$(最贵)。实际消耗取决于任务本身、模型思考的多少以及你的套餐。
1719
1720| 模型 | 提供商 | 相对成本 | 套餐 |
1721|------|--------|----------|------|
1722| Claude Sonnet 5.5 | Anthropic | $$$ | 付费套餐 |
1723| Claude Opus 5.5 | Anthropic | $$$$ | 付费套餐 |
1724| Claude Fable 5 | Anthropic | $$$$$ | 付费套餐 |
1725| GPT-6.1 Sol | OpenAI | $$$ | 付费套餐 |
1726| GPT-5.6 Terra | OpenAI | $$$ | 付费套餐 |
1727| GPT-6 Luna | OpenAI | $ | 所有套餐 |
1728| GLM 5.3 Flash | Z.ai | $ | 所有套餐 |
1729| GLM 5.3 FlashX | Z.ai | $ | 所有套餐 |
1730| GLM 5.2 | Z.ai | $$ | 所有套餐 |
1731| DeepSeek V4 Pro | DeepSeek | $$ | 所有套餐 |
1732| DeepSeek V4 Flash | DeepSeek | $ | 所有套餐 |
1733| Kimi K2.6 | Moonshot AI | $$ | 所有套餐 |
1734| MiMo 2.6 Pro | Xiaomi | $ | 所有套餐 |
1735| MiMo 2.6 Flash | Xiaomi | $ | 所有套餐 |
1736
1737## Anthropic
1738
1739### Claude Sonnet 5.5
1740
1741Anthropic 的快速前沿模型:可完整生成前端和后端代码,非常擅长规划并完成多步骤工作。
1742
1743- **优势**:日常开发中可靠的全能选手;作为前沿模型,响应较快。
1744- **不足**:积分消耗明显高于开放模型。
1745
1746### Claude Opus 5.5
1747
1748Anthropic 面向代码的旗舰模型,也是本列表中编程和智能体任务最强的选择。推理始终开启。
1749
1750- **优势**:在复杂界面、架构和棘手缺陷上质量顶尖;当一次做对很重要时是最佳选择。
1751- **不足**:速度较慢,每 token 价格约为 Claude Sonnet 5.5 的两倍,因此消耗更多积分。
1752
1753### Claude Fable 5
1754
1755Anthropic 的高级档位:处理最困难推理问题的标杆。
1756
1757- **优势**:最深入的推理能力。
1758- **不足**:积分消耗最高的模型(是 Claude Opus 5.5 的两倍)。在编程和智能体任务上,公开的基准测试显示 Claude Opus 5.5 更胜一筹,而价格不到一半,因此对大多数构建工作来说,Opus 5.5 更划算。
1759
1760## OpenAI
1761
1762### GPT-6.1 Sol
1763
1764OpenAI 的前沿模型,擅长编程和多步骤的智能体工作。
1765
1766- **优势**:代码和疑难 bug(在相同推理强度下明显强于 GPT-6 Sol)、工具调用和长任务。
1767- **不足**:每个任务使用的 token 比前代略多;积分消耗与 Claude Sonnet 5.5 处于同一区间。
1768
1769### GPT-5.6 Terra
1770
1771OpenAI 的均衡中档模型:日常质量不错,每 token 价格低于旗舰模型。
1772
1773- **优势**:问答、分析和较短的任务。
1774- **不足**:在第三方的长编程任务测试中,成功率较低且每个任务消耗的 token 多得多,因此较长的构建可能比预期更贵。不是生成整个应用的首选。
1775
1776### GPT-6 Luna
1777
1778OpenAI 最快、最便宜的选项。
1779
1780- **优势**:简短、范围明确的任务:阅读代码、小修改、快速修复。
1781- **不足**:在长而复杂的任务上较弱,在长对话中记住细节的能力也较弱。不适合构建整个应用。
1782
1783## 开放模型
1784
1785### GLM 5.3 Flash(Z.ai)
1786
1787原生多模态(可以读取截图)的智能体编程模型,价格只是前沿模型的零头。创建新项目时默认预选它。
1788
1789- **优势**:成本极低,工具调用可靠,能读取图片。
1790- **不足**:回答前总会先思考,某些回复可能因此变慢;在超长任务中的持久表现不如 GLM 5.2 经过充分验证。
1791
1792### GLM 5.3 FlashX(Z.ai)
1793
1794与 GLM 5.3 Flash 是同一个模型,由 Z.ai 以更快的档位提供:能力相同(图片、工具、推理级别),在我们的测试中运行速度约快三倍。
1795
1796- **优势**:速度快;其余与 GLM 5.3 Flash 完全相同。
1797- **不足**:价格约为 GLM 5.3 Flash 的 2.5 倍,但仍属于最便宜的模型之一。
1798
1799### GLM 5.2(Z.ai)
1800
1801面向长程、自主智能体编程的顶级开放模型,在编程和工具编排上接近前沿模型。
1802
1803- **优势**:长的多步骤任务、重构、后端。
1804- **不足**:界面不如 DeepSeek V4 Pro 或 Claude Opus 精致(它无法在视觉上检查自己的成果);在最长的任务中仍落后于 Anthropic 的模型;是最贵的开放模型。
1805
1806### DeepSeek V4 Pro
1807
1808开放模型中性价比最高,也是生成前端最强的开放模型。
1809
1810- **优势**:以低成本产出整洁的前端和后端代码。
1811- **不足**:在最困难的真实工程任务和超长多步骤任务上,弱于 GLM 和前沿模型。
1812
1813### DeepSeek V4 Flash
1814
1815便宜又快速,拥有非常大的上下文窗口。
1816
1817- **优势**:阅读代码、问答和小任务。
1818- **不足**:界面质量低于 DeepSeek V4 Pro;长任务中的持久表现验证较少。
1819
1820### Kimi K2.6(Moonshot AI)
1821
1822在推理和调研方面很强的开放模型,能较好地支撑使用大量工具的长会话。
1823
1824- **优势**:推理、调研、规划。
1825- **不足**:输出价格高于其他开放模型,因此代码量大的工作比用 DeepSeek V4 Pro 或 GLM 更贵;上下文窗口小于本列表中的大多数模型;速度较慢。
1826
1827### MiMo 2.6 Pro(Xiaomi)
1828
1829实验性:小米于 2026 年 9 月发布的开放权重旗舰模型,智能体任务能力较上一代大幅提升。
1830
1831- **优势**:公开基准中的智能体编码能力接近前沿模型,成本低。
1832- **不足**:生成速度慢(大文件可能需要几分钟);仍处于实验阶段。
1833
1834### MiMo 2.6 Flash(Xiaomi)
1835
1836实验性:同一系列的低成本开放模型,价格与 DeepSeek V4 Flash 相同。
1837
1838- **优势**:成本很低,智能体编码能力不错。
1839- **不足**:生成速度慢;仍处于实验阶段。
1840
1841## 我该选哪个模型?
1842
1843| 场景 | 推荐选择 |
1844|------|----------|
1845| 刚开始使用,或使用 Community 套餐 | GLM 5.3 Flash 或 Auto |
1846| 付费套餐下的日常开发 | Claude Sonnet 5.5 |
1847| 复杂界面、架构、棘手缺陷 | Claude Opus 5.5 |
1848| 最困难的推理问题,成本其次 | Claude Fable 5 |
1849| 长时间、自主的多步骤任务 | GLM 5.2、GPT-6.1 Sol 或 Claude Sonnet 5.5 |
1850| 预算有限但想要精致的前端 | DeepSeek V4 Pro |
1851| 快速的文本或样式修改、关于代码的提问 | GPT-6 Luna、DeepSeek V4 Flash 或 GLM 5.3 Flash |
1852| 不想自己选 | Auto(付费套餐可用 Frontier) |
1853
1854> [!TIP] 你可以随时切换模型。常见做法:先用高性价比的模型构建,再在需要格外用心的页面或缺陷上切换到 Claude Opus 5.5。发送前,应用内的预估(Auto 和 Frontier)会显示预计积分;发送后,使用记录会显示实际消耗。
1855`},"abort-queue":{es:`# Cola y cancelar
1856
1857\`\`\`anim
1858queue
1859\`\`\`
1860
1861## Cancelar una petición
1862
1863Puedes cancelar una petición en curso pulsando el botón **"Stop"** que sustituye al botón "Enviar" durante la ejecución. El agente de IA se detendrá de forma limpia:
1864
1865- Los **archivos ya escritos** se conservan: los cambios completados quedan en el proyecto
1866- El **contenido ya generado** en el chat permanece visible
1867- Solo se cancelan las operaciones **aún no completadas**
1868- El chat mostrará un mensaje "Ejecución detenida"
1869
1870### Cuándo usar Stop
1871
1872- La IA va en la dirección equivocada
1873- Quieres cambiar de enfoque a mitad de la ejecución
1874- La operación tarda demasiado
1875- Has cambiado de idea sobre qué construir
1876
1877## Cola de mensajes
1878
1879Si envías un mensaje mientras la IA todavía procesa el anterior, el nuevo mensaje se pone en cola automáticamente, como en Cursor.
1880
1881### Cómo funciona
1882
18831. **Escribe durante la ejecución**: el campo del chat sigue activo
18842. El mensaje aparece como una **pastilla "en cola"** debajo del bloque en ejecución
18853. Cuando la ejecución actual termina, el mensaje en cola se **envía automáticamente**
18864. También puedes **forzar el envío inmediato** pulsando el icono de flecha hacia arriba. Esto interrumpe la ejecución actual y envía tu mensaje al instante
1887
1888### Indicadores visuales
1889
1890- **Insignia parpadeante** en la cola cuando hay mensajes esperando
1891- **Etiqueta** "Mensaje en cola: se enviará tras la ejecución actual"
1892- La cola se vacía al cancelar o cuando se han procesado todos los mensajes en cola
1893
1894> [!TIP] Puedes escribir instrucciones de corrección mientras la IA trabaja. Se enviarán en cuanto termine la ejecución actual, ahorrándote tiempo.
1895`,fr:`# File & Annuler
1896
1897\`\`\`anim
1898queue
1899\`\`\`
1900
1901## Annuler une requête
1902
1903Tu peux annuler une requête en cours en cliquant sur le bouton **« Stop »** qui remplace le bouton « Envoyer » pendant l'exécution. L'agent IA s'arrêtera proprement :
1904
1905- Les **fichiers déjà écrits** sont conservés : les modifications terminées restent dans le projet
1906- Le **contenu déjà généré** dans le chat reste visible
1907- Seules les opérations **pas encore terminées** sont annulées
1908- Le chat affichera un message « Exécution arrêtée »
1909
1910### Quand utiliser Stop
1911
1912- L'IA part dans la mauvaise direction
1913- Tu veux changer d'approche en cours d'exécution
1914- L'opération prend trop de temps
1915- Tu as changé d'avis sur ce que tu veux construire
1916
1917## File d'attente des messages
1918
1919Si tu envoies un message pendant que l'IA traite encore le précédent, le nouveau message est automatiquement mis en file, comme dans Cursor.
1920
1921### Comment ça marche
1922
19231. **Écris pendant l'exécution** : le champ du chat reste actif
19242. Le message apparaît comme une **pastille « en file »** sous le bloc en cours
19253. Quand l'exécution actuelle se termine, le message en file est **envoyé automatiquement**
19264. Tu peux aussi **forcer l'envoi immédiat** en cliquant sur l'icône flèche vers le haut. Cela interrompt l'exécution en cours et envoie ton message aussitôt
1927
1928### Indicateurs visuels
1929
1930- **Badge clignotant** sur la file quand des messages attendent
1931- **Libellé** « Message en file : sera envoyé après l'exécution en cours »
1932- La file se vide en cas d'annulation ou quand tous les messages en file ont été traités
1933
1934> [!TIP] Tu peux écrire des instructions de correction pendant que l'IA travaille. Elles seront envoyées dès la fin de l'exécution en cours, ce qui te fait gagner du temps.
1935`,de:`# Warteschlange & Abbruch
1936
1937\`\`\`anim
1938queue
1939\`\`\`
1940
1941## Eine Anfrage abbrechen
1942
1943Du kannst eine laufende Anfrage abbrechen, indem du auf **„Stop"** klickst, das während der Ausführung den „Senden"-Button ersetzt. Der KI-Agent hält sauber an:
1944
1945- **Bereits geschriebene Dateien** bleiben erhalten: abgeschlossene Änderungen bleiben im Projekt
1946- **Bereits generierte Inhalte** im Chat bleiben sichtbar
1947- Nur **noch nicht abgeschlossene** Operationen werden abgebrochen
1948- Der Chat zeigt die Meldung „Ausführung gestoppt"
1949
1950### Wann Stop nutzen
1951
1952- Die KI geht in die falsche Richtung
1953- Du willst mitten in der Ausführung den Ansatz ändern
1954- Die Operation dauert zu lange
1955- Du hast deine Meinung geändert, was gebaut werden soll
1956
1957## Nachrichten-Warteschlange
1958
1959Wenn du eine Nachricht sendest, während die KI die vorige noch verarbeitet, wird die neue automatisch in die Warteschlange gestellt — wie in Cursor.
1960
1961### So funktioniert es
1962
19631. **Schreibe während der Ausführung**: das Chat-Eingabefeld bleibt aktiv
19642. Die Nachricht erscheint als **„in Warteschlange"-Pille** unter dem laufenden Block
19653. Wenn die aktuelle Ausführung endet, wird die wartende Nachricht **automatisch gesendet**
19664. Du kannst das **sofortige Senden erzwingen**, indem du auf das Pfeil-nach-oben-Symbol klickst. Das unterbricht die aktuelle Ausführung und sendet deine Nachricht sofort
1967
1968### Visuelle Hinweise
1969
1970- **Pulsierendes Abzeichen** an der Warteschlange, wenn Nachrichten warten
1971- **Beschriftung** „Nachricht in Warteschlange: wird nach der aktuellen Ausführung gesendet"
1972- Die Warteschlange wird beim Abbruch geleert oder wenn alle wartenden Nachrichten verarbeitet sind
1973
1974> [!TIP] Du kannst Korrekturanweisungen schreiben, während die KI arbeitet. Sie werden gesendet, sobald die aktuelle Ausführung endet — das spart Zeit.
1975`,zh:`# 队列与中止
1976
1977\`\`\`anim
1978queue
1979\`\`\`
1980
1981## 取消一个请求
1982
1983你可以在执行过程中点击 **“Stop”** 按钮(执行时它会取代“发送”按钮)来取消进行中的请求。AI 智能体会干净地停止:
1984
1985- **已写入的文件**会保留:已完成的更改留在项目中
1986- 聊天中**已生成的内容**仍然可见
1987- 只有**尚未完成**的操作会被取消
1988- 聊天会显示一条“执行已停止”的消息
1989
1990### 何时使用 Stop
1991
1992- AI 走向了错误的方向
1993- 你想在执行中途更换思路
1994- 操作耗时过长
1995- 你改变了要构建的内容的想法
1996
1997## 消息队列
1998
1999如果在 AI 仍在处理上一条消息时你又发送了一条,新消息会像在 Cursor 中一样自动进入队列。
2000
2001### 工作原理
2002
20031. **在执行期间输入**:聊天输入框保持可用
20042. 消息会作为一个**“排队中”的标签**显示在运行中的区块下方
20053. 当当前执行完成后,排队的消息会**自动发送**
20064. 你也可以点击向上箭头图标**强制立即发送**。这会中断当前执行并立刻发送你的消息
2007
2008### 视觉提示
2009
2010- 有消息等待时,队列上会有**闪烁的徽标**
2011- **标签**“消息已排队:将在当前执行后发送”
2012- 中止时,或所有排队消息处理完毕后,队列会被清空
2013
2014> [!TIP] 你可以在 AI 工作时就写下修正指令。它们会在当前执行结束后立即发送,为你节省时间。
2015`},"ai-agents":{es:`# Agentes IA del proyecto
2016
2017\`\`\`anim
2018agents-team
2019\`\`\`
2020
2021Cada proyecto **Web app** tiene una pestaña **AI Agents** en el editor: es el panel de control de todas las funciones de IA de tu aplicación. Aquí ves qué agentes de IA están activos, cómo están conectados y los configuras — sin código y sin claves API.
2022
2023## Qué es la pestaña AI Agents
2024
2025Abre un proyecto y selecciona la pestaña **AI Agents** en la parte superior. Verás un **diagrama** que muestra, para cada función de IA:
2026
2027- la **página o componente** de tu app que la usa,
2028- el **endpoint** que la procesa,
2029- el **Coderblock AI Gateway**, el motor que habla con los modelos de IA,
2030- el **modelo** en uso (para chat o para imágenes).
2031
2032El diagrama se actualiza automáticamente cada vez que añades una nueva función de IA desde el Chat IA.
2033
2034## Los agentes que tienes de serie
2035
2036| Agente | Qué hace |
2037|---|---|
2038| **AI Chat** | Un chat que responde a tus usuarios en tiempo real |
2039| **AI Image** | Genera imágenes a partir de una descripción de texto |
2040
2041> [!INFO] Cada función de IA pasa por el **Coderblock AI Gateway**: nunca introduces claves API de OpenAI, Anthropic o Google. El uso se factura contra tus **créditos** de Coderblock.
2042
2043## Añadir un nuevo agente
2044
2045Para añadir una función de IA, basta con pedirla en el **Chat IA** del proyecto, en lenguaje natural. Ejemplos:
2046
2047- "Añade un chat de IA de soporte que responda a las preguntas de los visitantes"
2048- "Añade un generador de imágenes a partir de una descripción"
2049
2050Una vez creado, el agente aparece automáticamente en la pestaña **AI Agents**.
2051
2052## Configurar un agente
2053
2054Haz clic en **Configurar** arriba a la derecha para abrir el panel lateral. Para cada agente puedes:
2055
2056### Cambiar el modelo de IA
2057
2058En el desplegable **modelo de IA** elige el modelo a usar:
2059
2060- Para agentes de **chat**: modelos de conversación (p. ej. Claude Haiku/Sonnet, GPT-4o / GPT-4o mini)
2061- Para agentes de **imagen**: modelos de generación de imágenes (p. ej. Gemini 2.5 Flash Image)
2062
2063Al cambiar el modelo, Coderblock actualiza automáticamente el código de la función y la vuelve a desplegar: el nuevo modelo se activa al instante, sin trabajo técnico.
2064
2065> [!TIP] Los modelos más ligeros (Haiku, GPT-4o mini) son más rápidos y baratos; los más potentes (Sonnet, GPT-4o) dan respuestas más cuidadas. Cámbialos cuando quieras.
2066
2067### Base de conocimiento (RAG)
2068
2069Para agentes de chat puedes adjuntar documentos que la IA usará para responder. Consulta la guía dedicada: [Base de conocimiento (RAG)](/docs/ai-knowledge-base).
2070
2071## Créditos y coste
2072
2073Cada petición de IA consume créditos según el modelo elegido. Los detalles están en la sección [Créditos](/docs/credits).
2074`,fr:`# Agents IA du projet
2075
2076\`\`\`anim
2077agents-team
2078\`\`\`
2079
2080Chaque projet **Web app** possède un onglet **AI Agents** dans l'éditeur : c'est le panneau de contrôle de toutes les fonctions d'IA de ton application. Ici tu vois quels agents IA sont actifs, comment ils sont reliés, et tu les configures — sans code et sans clés API.
2081
2082## Ce qu'est l'onglet AI Agents
2083
2084Ouvre un projet et sélectionne l'onglet **AI Agents** en haut. Tu verras un **diagramme** qui montre, pour chaque fonction d'IA :
2085
2086- la **page ou le composant** de ton app qui l'utilise,
2087- l'**endpoint** qui la traite,
2088- le **Coderblock AI Gateway**, le moteur qui dialogue avec les modèles d'IA,
2089- le **modèle** utilisé (pour le chat ou pour les images).
2090
2091Le diagramme se met à jour automatiquement à chaque nouvelle fonction d'IA ajoutée via le Chat IA.
2092
2093## Les agents fournis d'office
2094
2095| Agent | Ce qu'il fait |
2096|---|---|
2097| **AI Chat** | Un chat qui répond à tes utilisateurs en temps réel |
2098| **AI Image** | Génère des images à partir d'une description textuelle |
2099
2100>
2100 [!INFO] Chaque fonction d'IA passe par le **Coderblock AI Gateway** : tu ne saisis jamais de clés API OpenAI, Anthropic ou Google. L'usage est facturé sur tes **crédits** Coderblock.
2101
2102## Ajouter un nouvel agent
2103
2104Pour ajouter une fonction d'IA, il suffit de la demander dans le **Chat IA** du projet, en langage naturel. Exemples :
2105
2106- « Ajoute un chat IA de support qui répond aux questions des visiteurs »
2107- « Ajoute un générateur d'images à partir d'une description »
2108
2109Une fois créé, l'agent apparaît automatiquement dans l'onglet **AI Agents**.
2110
2111## Configurer un agent
2112
2113Clique sur **Configurer** en haut à droite pour ouvrir le panneau latéral. Pour chaque agent tu peux :
2114
2115### Changer le modèle d'IA
2116
2117Dans le menu **modèle d'IA**, choisis le modèle à utiliser :
2118
2119- Pour les agents **chat** : modèles de conversation (p. ex. Claude Haiku/Sonnet, GPT-4o / GPT-4o mini)
2120- Pour les agents **image** : modèles de génération d'images (p. ex. Gemini 2.5 Flash Image)
2121
2122Quand tu changes de modèle, Coderblock met automatiquement à jour le code de la fonction et la redéploie : le nouveau modèle est actif immédiatement, sans travail technique.
2123
2124> [!TIP] Les modèles plus légers (Haiku, GPT-4o mini) sont plus rapides et économiques ; les plus puissants (Sonnet, GPT-4o) donnent des réponses plus soignées. Change-les quand tu veux.
2125
2126### Base de connaissances (RAG)
2127
2128Pour les agents chat, tu peux joindre des documents que l'IA utilisera pour répondre. Voir le guide dédié : [Base de connaissances (RAG)](/docs/ai-knowledge-base).
2129
2130## Crédits et coût
2131
2132Chaque requête d'IA consomme des crédits selon le modèle choisi. Les détails sont dans la section [Crédits](/docs/credits).
2133`,de:`# KI-Agenten des Projekts
2134
2135\`\`\`anim
2136agents-team
2137\`\`\`
2138
2139Jedes **Web app**-Projekt hat im Editor einen **AI Agents**-Tab: die Steuerzentrale für alle KI-Funktionen deiner Anwendung. Hier siehst du, welche KI-Agenten aktiv sind, wie sie verbunden sind, und konfigurierst sie — ohne Code und ohne API-Schlüssel.
2140
2141## Was der AI-Agents-Tab ist
2142
2143Öffne ein Projekt und wähle oben den Tab **AI Agents**. Du siehst ein **Diagramm**, das für jede KI-Funktion zeigt:
2144
2145- die **Seite oder Komponente** deiner App, die sie nutzt,
2146- den **Endpoint**, der sie verarbeitet,
2147- das **Coderblock AI Gateway**, die Engine, die mit den KI-Modellen spricht,
2148- das verwendete **Modell** (für Chat oder Bilder).
2149
2150Das Diagramm aktualisiert sich automatisch, sobald du über den KI-Chat eine neue KI-Funktion hinzufügst.
2151
2152## Die Agenten von Haus aus
2153
2154| Agent | Was er tut |
2155|---|---|
2156| **AI Chat** | Ein Chat, der deinen Nutzern in Echtzeit antwortet |
2157| **AI Image** | Erzeugt Bilder aus einer Textbeschreibung |
2158
2159> [!INFO] Jede KI-Funktion läuft über das **Coderblock AI Gateway**: du gibst nie API-Schlüssel von OpenAI, Anthropic oder Google ein. Die Nutzung wird gegen deine Coderblock-**Credits** abgerechnet.
2160
2161## Einen neuen Agenten hinzufügen
2162
2163Um eine KI-Funktion hinzuzufügen, bitte einfach im **KI-Chat** des Projekts in natürlicher Sprache darum. Beispiele:
2164
2165- „Füge einen Support-KI-Chat hinzu, der Besucherfragen beantwortet"
2166- „Füge einen Bildgenerator aus einer Beschreibung hinzu"
2167
2168Nach dem Erstellen erscheint der Agent automatisch im **AI Agents**-Tab.
2169
2170## Einen Agenten konfigurieren
2171
2172Klicke oben rechts auf **Konfigurieren**, um das Seitenpanel zu öffnen. Für jeden Agenten kannst du:
2173
2174### Das KI-Modell wechseln
2175
2176Wähle im Dropdown **KI-Modell** das zu verwendende Modell:
2177
2178- Für **Chat**-Agenten: Konversationsmodelle (z. B. Claude Haiku/Sonnet, GPT-4o / GPT-4o mini)
2179- Für **Bild**-Agenten: Bildgenerierungsmodelle (z. B. Gemini 2.5 Flash Image)
2180
2181Beim Modellwechsel aktualisiert Coderblock automatisch den Funktionscode und deployt neu: das neue Modell ist sofort aktiv, ohne technischen Aufwand.
2182
2183> [!TIP] Leichtere Modelle (Haiku, GPT-4o mini) sind schneller und günstiger; stärkere (Sonnet, GPT-4o) liefern feinere Antworten. Wechsle sie jederzeit.
2184
2185### Wissensdatenbank (RAG)
2186
2187Für Chat-Agenten kannst du Dokumente anhängen, die die KI zum Antworten nutzt. Siehe den eigenen Leitfaden: [Wissensdatenbank (RAG)](/docs/ai-knowledge-base).
2188
2189## Credits und Kosten
2190
2191Jede KI-Anfrage verbraucht Credits je nach gewähltem Modell. Details im Abschnitt [Credits](/docs/credits).
2192`,zh:`# 项目 AI 智能体
2193
2194\`\`\`anim
2195agents-team
2196\`\`\`
2197
2198每个 **Web app** 项目在编辑器中都有一个 **AI Agents** 标签页:它是你应用中所有 AI 功能的控制台。在这里你可以看到哪些 AI 智能体处于激活状态、它们如何连接,并进行配置——无需代码,也无需 API 密钥。
2199
2200## AI Agents 标签页是什么
2201
2202打开一个项目并选择顶部的 **AI Agents** 标签。你会看到一张**图**,为每个 AI 功能展示:
2203
2204- 使用它的应用**页面或组件**,
2205- 处理它的**端点**,
2206- **Coderblock AI Gateway**,即与 AI 模型对话的引擎,
2207- 正在使用的**模型**(用于聊天或图片)。
2208
2209每当你通过 AI 聊天添加新的 AI 功能,这张图都会自动更新。
2210
2211## 开箱即用的智能体
2212
2213| 智能体 | 作用 |
2214|---|---|
2215| **AI Chat** | 实时回答用户的聊天 |
2216| **AI Image** | 根据文字描述生成图片 |
2217
2218> [!INFO] 每个 AI 功能都经过 **Coderblock AI Gateway**:你永远不必输入 OpenAI、Anthropic 或 Google 的 API 密钥。用量按你的 Coderblock **积分**计费。
2219
2220## 添加新的智能体
2221
2222要添加一个 AI 功能,只需在项目的 **AI 聊天**中用自然语言提出即可。例如:
2223
2224- “添加一个客服 AI 聊天,回答访客的问题”
2225- “添加一个根据描述生成图片的生成器”
2226
2227创建后,该智能体会自动出现在 **AI Agents** 标签页中。
2228
2229## 配置智能体
2230
2231点击右上角的**配置**打开侧边面板。对每个智能体你可以:
2232
2233### 切换 AI 模型
2234
2235在 **AI 模型**下拉菜单中选择要使用的模型:
2236
2237- 对于**聊天**智能体:对话模型(如 Claude Haiku/Sonnet、GPT-4o / GPT-4o mini)
2238- 对于**图片**智能体:图片生成模型(如 Gemini 2.5 Flash Image)
2239
2240切换模型时,Coderblock 会自动更新该函数的代码并重新部署:新模型立即生效,无需任何技术操作。
2241
2242> [!TIP] 更轻量的模型(Haiku、GPT-4o mini)更快更省;更强的模型(Sonnet、GPT-4o)回答更精致。你可以随时更换。
2243
2244### 知识库 (RAG)
2245
2246对聊天智能体,你可以附加文档,供 AI 用于回答。参见专门的指南:[知识库 (RAG)](/docs/ai-knowledge-base)。
2247
2248## 积分与成本
2249
2250每次 AI 请求会根据所选模型消耗积分。详情见[积分](/docs/credits)部分。
2251`},"ai-knowledge-base":{es:`# Base de conocimiento (RAG)
2252
2253\`\`\`anim
2254knowledge-base
2255\`\`\`
2256
2257La **base de conocimiento** te permite "entrenar" el chat de IA de tu app con **tus propios documentos**: la IA responderá a tus usuarios basándose en el contenido que subas (tarifas, FAQ, políticas, manuales, etc.). Esta técnica se llama **RAG** (Retrieval-Augmented Generation), pero lo único que tienes que hacer es subir los archivos — Coderblock se encarga del resto.
2258
2259## Para qué sirve
2260
2261Sin base de conocimiento, el chat responde con conocimiento general. Con base de conocimiento, **además** responde usando tu información específica de negocio. Ejemplos:
2262
2263- Una FAQ de empresa para responder a los clientes
2264- Tu tarifa y tu política de devoluciones
2265- Un manual de producto o una guía interna
2266
2267## Cómo añadir documentos
2268
22691. Abre la pestaña **AI Agents** y haz clic en **Configurar**
22702. En el agente de chat, ve a la sección **Base de conocimiento (RAG)**
22713. Haz clic en **Subir archivo** (o **Texto** para pegar texto)
22724. El documento se procesa y queda disponible para la IA al instante
2273
2274Los archivos se dividen en pequeños fragmentos y se indexan, para que la IA siempre encuentre la parte más relevante a la pregunta del usuario.
2275
2276## Formatos admitidos
2277
2278| Formato | Admitido |
2279|---|---|
2280| Texto (.txt) | Sí |
2281| Markdown (.md) | Sí |
2282| CSV (.csv) | Sí |
2283| JSON (.json) | Sí |
2284| PDF / Word | Todavía no — pega el texto |
2285
2286> [!TIP] Para los PDF, por ahora copia y pega el contenido con el botón **Texto**. Documentos claros y bien redactados dan mejores respuestas.
2287
2288## Cómo usa la IA tus documentos
2289
2290Cuando un usuario hace una pregunta en el chat, la IA:
2291
22921. busca en tus documentos los pasajes más relevantes,
22932. los usa como contexto para redactar la respuesta,
22943. si la información no está, lo dice y responde con conocimiento general.
2295
2296Todo esto ocurre **en el servidor**, de forma segura, en cada mensaje.
2297
2298## Gestionar documentos
2299
2300En la misma sección ves la lista de documentos subidos, con el número de "fragmentos" indexad
2300os. Para eliminar uno, haz clic en el icono de la **papelera**: la IA deja de usarlo de inmediato.
2301
2302## Privacidad
2303
2304Los documentos se guardan en la base de datos de **tu** app y solo los usa tu chat de IA. Cada agente tiene su propia base de conocimiento separada.
2305
2306> [!INFO] La base de conocimiento está disponible para los agentes de **chat**. La generación de imágenes no usa documentos.
2307`,fr:`# Base de connaissances (RAG)
2308
2309\`\`\`anim
2310knowledge-base
2311\`\`\`
2312
2313La **base de connaissances** te permet d'« entraîner » le chat IA de ton app avec **tes propres documents** : l'IA répondra à tes utilisateurs à partir du contenu que tu téléverses (tarifs, FAQ, politiques, manuels, etc.). Cette technique s'appelle **RAG** (Retrieval-Augmented Generation), mais tu n'as qu'à téléverser les fichiers — Coderblock s'occupe du reste.
2314
2315## À quoi ça sert
2316
2317Sans base de connaissances, le chat répond avec des connaissances générales. Avec une base de connaissances, il répond **aussi** en utilisant tes informations métier spécifiques. Exemples :
2318
2319- Une FAQ d'entreprise pour répondre aux clients
2320- Ta grille tarifaire et ta politique de retour
2321- Un manuel produit ou un guide interne
2322
2323## Comment ajouter des documents
2324
23251. Ouvre l'onglet **AI Agents** et clique sur **Configurer**
23262. Sur l'agent de chat, va à la section **Base de connaissances (RAG)**
23273. Clique sur **Téléverser un fichier** (ou **Texte** pour coller du texte)
23284. Le document est traité et devient disponible pour l'IA immédiatement
2329
2330Les fichiers sont découpés en petits morceaux et indexés, pour que l'IA trouve toujours la partie la plus pertinente à la question de l'utilisateur.
2331
2332## Formats pris en charge
2333
2334| Format | Pris en charge |
2335|---|---|
2336| Texte (.txt) | Oui |
2337| Markdown (.md) | Oui |
2338| CSV (.csv) | Oui |
2339| JSON (.json) | Oui |
2340| PDF / Word | Pas encore — colle le texte |
2341
2342> [!TIP] Pour les PDF, pour l'instant copie-colle le contenu avec le bouton **Texte**. Des documents clairs et bien rédigés donnent de meilleures réponses.
2343
2344## Comment l'IA utilise tes documents
2345
2346Quand un utilisateur pose une question dans le chat, l'IA :
2347
23481. cherche dans tes documents les passages les plus pertinents,
23492. les utilise comme contexte pour rédiger la réponse,
23503. si l'information n'y est pas, elle le dit et répond avec des connaissances générales.
2351
2352Tout cela se passe **côté serveur**, en toute sécurité, à chaque message.
2353
2354## Gérer les documents
2355
2356Dans la même section, tu vois la liste des documents téléversés, avec le nombre de « morceaux » indexés. Pour en supprimer un, clique sur l'icône **corbeille** : l'IA cesse aussitôt de l'utiliser.
2357
2358## Confidentialité
2359
2360Les documents sont stockés dans la base de données de **ton** app et utilisés uniquement par ton chat IA. Chaque agent a sa propre base de connaissances distincte.
2361
2362> [!INFO] La base de connaissances est disponible pour les agents **chat**. La génération d'images n'utilise pas de documents.
2363`,de:`# Wissensdatenbank (RAG)
2364
2365\`\`\`anim
2366knowledge-base
2367\`\`\`
2368
2369Mit der **Wissensdatenbank** kannst du den KI-Chat deiner App mit **deinen eigenen Dokumenten** „trainieren": Die KI antwortet deinen Nutzern auf Basis der Inhalte, die du hochlädst (Preislisten, FAQs, Richtlinien, Handbücher usw.). Diese Technik heißt **RAG** (Retrieval-Augmented Generation), aber du musst nur die Dateien hochladen — den Rest übernimmt Coderblock.
2370
2371## Wofür es gut ist
2372
2373Ohne Wissensdatenbank antwortet der Chat mit Allgemeinwissen. Mit Wissensdatenbank antwortet er **zusätzlich** anhand deiner geschäftsspezifischen Informationen. Beispiele:
2374
2375- Eine Firmen-FAQ zur Beantwortung von Kundenfragen
2376- Deine Preisliste und Rückgaberichtlinie
2377- Ein Produkthandbuch oder ein internes Handbuch
2378
2379## Dokumente hinzufügen
2380
23811. Öffne den Tab **AI Agents** und klicke auf **Konfigurieren**
23822. Gehe beim Chat-Agenten zum Abschnitt **Wissensdatenbank (RAG)**
23833. Klicke auf **Datei hochladen** (oder **Text**, um Text einzufügen)
23844. Das Dokument wird verarbeitet und steht der KI sofort zur Verfügung
2385
2386Dateien werden in kleine Teile zerlegt und indiziert, damit die KI immer den zur Nutzerfrage passendsten Teil findet.
2387
2388## Unterstützte Formate
2389
2390| Format | Unterstützt |
2391|---|---|
2392| Text (.txt) | Ja |
2393| Markdown (.md) | Ja |
2394| CSV (.csv) | Ja |
2395| JSON (.json) | Ja |
2396| PDF / Word | Noch nicht — füge den Text ein |
2397
2398> [!TIP] Kopiere bei PDFs den Inhalt vorerst mit dem **Text**-Button. Klare, gut geschriebene Dokumente ergeben bessere Antworten.
2399
2400## Wie die KI deine Dokumente nutzt
2401
2402Wenn ein Nutzer im Chat eine Frage stellt, wird die KI:
2403
24041. in deinen Dokumenten nach den relevantesten Passagen suchen,
24052. sie als Kontext für die Antwort verwenden,
24063. falls die Information fehlt, das sagen und mit Allgemeinwissen antworten.
2407
2408All das passiert **serverseitig**, sicher, bei jeder Nachricht.
2409
2410## Dokumente verwalten
2411
2412Im selben Abschnitt siehst du die Liste der hochgeladenen Dokumente mit der Zahl der indizierten „Teile". Zum Entfernen klicke auf das **Papierkorb**-Symbol: die KI nutzt es sofort nicht mehr.
2413
2414## Datenschutz
2415
2416Dokumente werden in der Datenbank **deiner** App gespeichert und nur von deinem KI-Chat genutzt. Jeder Agent hat seine eigene, getrennte Wissensdatenbank.
2417
2418> [!INFO] Die Wissensdatenbank ist für **Chat**-Agenten verfügbar. Die Bildgenerierung nutzt keine Dokumente.
2419`,zh:`# 知识库 (RAG)
2420
2421\`\`\`anim
2422knowledge-base
2423\`\`\`
2424
2425**知识库**让你用**自己的文档**来“训练”应用的 AI 聊天:AI 会根据你上传的内容(价目表、常见问题、政策、手册等)回答用户。这项技术叫 **RAG**(检索增强生成),但你要做的只是上传文件——其余交给 Coderblock。
2426
2427## 有什么用
2428
2429没有知识库时,聊天用通用知识回答。有了知识库,它**还会**使用你特定的业务信息来回答。例如:
2430
2431- 用于回答客户的公司常见问题
2432- 你的价目表和退货政策
2433- 产品手册或内部指南
2434
2435## 如何添加文档
2436
24371. 打开 **AI Agents** 标签并点击**配置**
24382. 在聊天智能体上,进入**知识库 (RAG)**部分
24393. 点击**上传文件**(或**文本**以粘贴文字)
24404. 文档会被处理,并立即可供 AI 使用
2441
2442文件会被切分成小块并建立索引,这样 AI 总能找到与用户问题最相关的部分。
2443
2444## 支持的格式
2445
2446| 格式 | 是否支持 |
2447|---|---|
2448| 文本 (.txt) | 是 |
2449| Markdown (.md) | 是 |
2450| CSV (.csv) | 是 |
2451| JSON (.json) | 是 |
2452| PDF / Word | 暂不支持——请粘贴文本 |
2453
2454> [!TIP] 对于 PDF,目前请用**文本**按钮复制粘贴内容。清晰、写得好的文档能带来更好的回答。
2455
2456## AI 如何使用你的文档
2457
2458当用户在聊天中提问时,AI 会:
2459
24601. 在你的文档中搜索最相关的段落,
24612. 将其作为上下文来撰写回答,
24623. 如果其中没有相关信息,就会说明并用通用知识回答。
2463
2464这一切都在**服务器端**安全地进行,每条消息都是如此。
2465
2466## 管理文档
2467
2468在同一部分你可以看到已上传文档的列表,以及已索引“块”的数量。要删除某个文档,点击**垃圾桶**图标:AI 会立即停止使用它。
2469
2470## 隐私
2471
2472文档保存在**你**应用的数据库中,仅由你的 AI 聊天使用。每个智能体都有各自独立的知识库。
2473
2474> [!INFO] 知识库适用于**聊天**智能体。图片生成不使用文档。
2475`},"team-office":{es:`# Oficina 3D y agentes IA
2476
2477\`\`\`anim
2478agents-team
2479\`\`\`
2480
2481Más allá de la IA que escribe código, Coderblock te da un **equipo de agentes de IA especializados** que colaboran en tu proyecto como lo haría un equipo real. Puedes conocerlos en una **oficina 3D** interactiva y configurarlos uno a uno.
2482
2483## El equipo de especialistas
2484
2485Cada proyecto puede tener un equipo con distintos roles, cada uno experto en su campo:
2486
2487| Rol | Se ocupa de |
2488|---|---|
2489| **UX Design** | Experiencia de usuario, interfaces, usabilidad |
2490| **Frontend** | La parte visible de la app |
2491| **Backend** | Lógica del servidor y manejo de datos |
2492| **Arquitectura** | Estructura técnica y decisiones clave |
2493| **Ciberseguridad** | Seguridad y vulnerabilidades |
2494| **Marketing** | Análisis de mercado, contenidos, SEO |
2495| **GTM** | Estrategia de salida al mercado |
2496| **Ventas** | Precios, conversiones, venta |
2497
2498## La oficina 3D
2499
2500La **oficina 3D** es un espacio interactivo donde ves a los miembros del equipo como personajes en un entorno tridimensional. Puedes acercarte a un agente para hablar con él, verlos "pensar" y colaborar entre sí. Es una forma inmediata y visual de gestionar tu equipo de IA.
2501
2502## Configurar un agente
2503
2504Cada agente es **personalizable**. Para cada uno puedes definir:
2505
2506- **Modelo de IA**: qué modelo usa para razonar
2507- **Personalidad** y **tono**: cómo se comunica
2508- **Instrucciones personalizadas**: pautas específicas de tu proyecto
2509- **Creatividad**: respuestas más predecibles o más creativas
2510- **Activo / inactivo**: enciende solo los especialistas que necesitas
2511
2512## Cómo colaboran
2513
2514Los agentes pueden:
2515
2516- **Analizar** tu proyecto y proponer mejoras
2517- Generar **propuestas** (sugerencias, preguntas, peticiones de colaboración, revisiones)
2518- Iniciar **debates de equipo** sobre un tema
2519
2520Cuando un agente propone una acción, la ves como una **tarjeta**: puedes **aceptarla** (la propuesta pasa al Chat IA, que la ejecuta) o ignorarla.
2521
2522> [!TIP] Usa el equipo para obtener perspectivas diversas: pide a Marketing un análisis de la competencia, a Ciberseguridad una revisión de seguridad, a UX una mejora de la interfaz.
2523
2524## Créditos
2525
2526Las conversaciones y análisis del equipo también consumen créditos, según el modelo configurado para cada agente. Ver [Créditos](/docs/credits).
2527`,fr:`# Bureau 3D & agents IA
2528
2529\`\`\`anim
2530agents-team
2531\`\`\`
2532
2533Au-delà de l'IA qui écrit du code, Coderblock te donne une **équipe d'agents IA spécialisés** qui collaborent sur ton projet comme le ferait une vraie équipe. Tu peux les rencontrer dans un **bureau 3D** interactif et les configurer un par un.
2534
2535## L'équipe de spécialistes
2536
2537Chaque projet peut avoir une équipe avec différents rôles, chacun expert dans son domaine :
2538
2539| Rôle | Se concentre sur |
2540|---|---|
2541| **UX Design** | Expérience utilisateur, interfaces, ergonomie |
2542| **Frontend** | La partie visible de l'app |
2543| **Backend** | Logique serveur et gestion des données |
2544| **Architecture** | Structure technique et décisions clés |
2545| **Cybersécurité** | Sécurité et vulnérabilités |
2546| **Marketing** | Analyse de marché, contenus, SEO |
2547| **GTM** | Stratégie de mise sur le marché |
2548| **Ventes** | Tarification, conversions, vente |
2549
2550## Le bureau 3D
2551
2552Le **bureau 3D** est un espace interactif où tu vois les membres de l'équipe comme des personnages dans un environnement en trois dimensions. Tu peux t'approcher d'un agent pour lui parler, les voir « réfléchir » et collaborer entre eux. C'est une façon immédiate et visuelle de gérer ton équipe d'IA.
2553
2554## Configurer un agent
2555
2556Chaque agent est **personnalisable**. Pour chacun tu peux définir :
2557
2558- **Modèle d'IA** : quel modèle il utilise pour raisonner
2559- **Personnalité** et **ton** : comment il communique
2560- **Instructions personnalisées** : consignes spécifiques à ton projet
2561- **Créativité** : des réponses plus prévisibles ou plus créatives
2562- **Actif / inactif** : n'active que les spécialistes dont tu as besoin
2563
2564## Comment ils collaborent
2565
2566Les agents peuvent :
2567
2568- **Analyser** ton projet et proposer des améliorations
2569- Générer des **propositions** (suggestions, questions, demandes de collaboration, revues)
2570- Lancer des **discussions d'équipe** sur un sujet
2571
2572Quand un agent propose une action, tu la vois sous forme de **carte** : tu peux **l'accepter** (la proposition est transmise au Chat IA, qui l'exécute) ou l'ignorer.
2573
2574> [!TIP] Utilise l'équipe pour des perspectives variées : demande à Marketing une analyse de la concurrence, à Cybersécurité une vérification de sécurité, à UX une amélioration d'interface.
2575
2576## Crédits
2577
2578Les conversations et analyses de l'équipe consomment aussi des crédits, selon le modèle configuré pour chaque agent. Voir [Crédits](/docs/credits).
2579`,de:`# 3D-Büro & KI-Agenten
2580
2581\`\`\`anim
2582agents-team
2583\`\`\`
2584
2585Über die KI hinaus, die Code schreibt, gibt dir Coderblock ein **Team spezialisierter KI-Agenten**, die an deinem Projekt zusammenarbeiten wie ein echtes Team. Du kannst sie in einem interaktiven **3D-Büro** treffen und einzeln konfigurieren.
2586
2587## Das Team der Spezialisten
2588
2589Jedes Projekt kann ein Team mit verschiedenen Rollen haben, jede Experte in ihrem Feld:
2590
2591| Rolle | Kümmert sich um |
2592|---|---|
2593| **UX Design** | Nutzererlebnis, Interfaces, Usability |
2594| **Frontend** | Den sichtbaren Teil der App |
2595| **Backend** | Server-Logik und Datenverarbeitung |
2596| **Architektur** | Technische Struktur und Schlüsselentscheidungen |
2597| **Cybersicherheit** | Sicherheit und Schwachstellen |
2598| **Marketing** | Marktanalyse, Inhalte, SEO |
2599| **GTM** | Go-to-Market-Strategie |
2600| **Vertrieb** | Preise, Conversions, Verkauf |
2601
2602## Das 3D-Büro
2603
2604Das **3D-Büro** ist ein interaktiver Raum, in dem du die Teammitglieder als Figuren in einer dreidimensionalen Umgebung siehst. Du kannst auf einen Agenten zugehen, um mit ihm zu sprechen, ihnen beim „Denken" und Zusammenarbeiten zusehen. Eine unmittelbare, visuelle Art, dein KI-Team zu steuern.
2605
2606## Einen Agenten konfigurieren
2607
2608Jeder Agent ist **anpassbar**. Für jeden kannst du festlegen:
2609
2610- **KI-Modell**: welches Modell er zum Denken nutzt
2611- **Persönlichkeit** und **Ton**: wie er kommuniziert
2612- **Eigene Anweisungen**: spezifische Vorgaben für dein Projekt
2613- **Kreativität**: vorhersehbarere oder kreativere Antworten
2614- **Aktiv / inaktiv**: aktiviere nur die Spezialisten, die du brauchst
2615
2616## Wie sie zusammenarbeiten
2617
2618Agenten können:
2619
2620- dein Projekt **analysieren** und Verbesserungen vorschlagen
2621- **Vorschläge** erzeugen (Anregungen, Fragen, Kooperationsanfragen, Reviews)
2622- **Team-Diskussionen** zu einem Thema starten
2623
2624Wenn ein Agent eine Aktion vorschlägt, siehst du sie als **Karte**: du kannst sie **annehmen** (der Vorschlag geht an den KI-Chat, der ihn ausführt) oder ignorieren.
2625
2626> [!TIP] Nutze das Team für vielfältige Perspektiven: bitte Marketing um eine Wettbewerbsanalyse, Cybersicherheit um einen Sicherheitscheck, UX um eine Interface-Verbesserung.
2627
2628## Credits
2629
2630Team-Gespräche und -Analysen verbrauchen ebenfalls Credits, je nach dem für jeden Agenten konfigurierten Modell. Siehe [Credits](/docs/credits).
2631`,zh:`# 3D 办公室与 AI 智能体
2632
2633\`\`\`anim
2634agents-team
2635\`\`\`
2636
2637除了写代码的 AI,Coderblock 还为你提供一支**专业 AI 智能体团队**,它们像真正的团队一样协作推进你的项目。你可以在一个交互式 **3D 办公室**里与它们见面,并逐个配置。
2638
2639## 专家团队
2640
2641每个项目都可以拥有一支具备不同角色的团队,各自是所在领域的专家:
2642
2643| 角色 | 关注 |
2644|---|---|
2645| **UX Design** | 用户体验、界面、可用性 |
2646| **Frontend** | 应用的可见部分 |
2647| **Backend** | 服务器逻辑与数据处理 |
2648| **架构** | 技术结构与关键决策 |
2649| **网络安全** | 安全与漏洞 |
2650| **市场营销** | 市场分析、内容、SEO |
2651| **GTM** | 进入市场策略 |
2652| **销售** | 定价、转化、销售 |
2653
2654## 3D 办公室
2655
2656**3D 办公室**是一个交互空间,你会看到团队成员化身为三维环境中的角色。你可以走近某个智能体与它交谈,看它们“思考”并彼此协作。这是一种直观、可视化的方式来管理你的 AI 团队。
2657
2658## 配置智能体
2659
2660每个智能体都**可定制**。对每个你都可以设置:
2661
2662- **AI 模型**:它用于推理的模型
2663- **性格**与**语气**:它如何沟通
2664- **自定义指令**:针对你项目的具体准则
2665- **创造力**:更可预测或更有创意的回答
2666- **激活 / 停用**:只开启你需要的专家
2667
2668## 它们如何协作
2669
2670智能体可以:
2671
2672- **分析**你的项目并提出改进
2673- 生成**提案**(建议、问题、协作请求、评审)
2674- 就某个主题发起**团队讨论**
2675
2676当某个智能体提出一个行动时,你会看到一张**卡片**:你可以**接受**(提案会交给 AI 聊天来执行)或忽略。
2677
2678>
2678 [!TIP] 用团队获取多元视角:让市场营销做竞品分析,让网络安全做安全检查,让 UX 做界面优化。
2679
2680## 积分
2681
2682团队的对话与分析也会消耗积分,取决于为每个智能体配置的模型。参见[积分](/docs/credits)。
2683`},"product-templates":{es:`# Plantillas de producto
2684
2685\`\`\`anim
2686templates
2687\`\`\`
2688
2689Las plantillas de producto son **aplicaciones fullstack completas** listas para usar. Se copian a tu proyecto mediante copia S3 a S3 en solo **1-2 segundos**, incluyendo frontend React, backend FastAPI y esquema de base de datos donde sea necesario.
2690
2691## Plantillas disponibles (32)
2692
2693### Negocio y productividad
2694
2695| Plantilla | Descripción |
2696|----------|-------------|
2697| Business Dashboard | Panel analítico con gráficos, métricas y KPIs |
2698| Todo App | Gestor de tareas con proyectos, categorías y prioridades |
2699| Social Media Scheduler | Planificación y gestión de publicaciones en redes |
2700| Project Management | Gestión de proyectos con tablero kanban y timeline |
2701| CRM | Gestión de relaciones con clientes y embudo de ventas |
2702
2703### E-commerce y marketplace
2704
2705| Plantilla | Descripción |
2706|----------|-------------|
2707| Online Store | E-commerce completo con catálogo, carrito y pago con Stripe |
2708| Marketplace | Plataforma multivendedor con gestión de tiendas |
2709| Digital Products | Venta de productos digitales (cursos, ebooks, plantillas) |
2710
2711### Servicios y reservas
2712
2713| Plantilla | Descripción |
2714|----------|-------------|
2715| Booking Platform | Plataforma de reservas con calendario y pagos |
2716| Restaurant | Web de restaurante con menú, galería y reserva de mesas |
2717| Wellness App | App de bienestar con seguimiento de actividad y programas |
2718
2719### Contenido y medios
2720
2721| Plantilla | Descripción |
2722|----------|-------------|
2723| Content Platform | Blog / CMS con editor, categorías y SEO |
2724| Portfolio | Portfolio personal/de agencia con galería y casos |
2725| Entertainment | Plataforma de contenidos de streaming/medios |
2726
2727### Juegos
2728
2729| Plantilla | Descripción |
2730|----------|-------------|
2731| Phaser Game | Juego 2D de navegador con Phaser.js |
2732| 3D Product Configurator | Configurador de producto 3D con Three.js |
2733
2734Y muchas más: **32 plantillas** en total, incluyendo apps para inmobiliaria, salud, educación, fintech, eventos y más.
2735
2736## Cómo usar una plantilla
2737
27381. Crea un nuevo proyecto desde el [panel](/apps)
27392. Selecciona **"Usar plantilla"** y elige en la cuadrícula
27403. El proyecto se inicializa al instante (~1-2 segundos)
27414. La vista previa arranca automáticamente
27425. **Personaliza** todo desde el chat de IA: colores, diseño, contenido, funciones
2743
2744## Qué incluye cada plantilla
2745
2746Cada plantilla de producto incluye:
2747- **Frontend completo**: páginas, componentes, enrutado, estilos Tailwind
2748- **API backend**: endpoints FastAPI con modelos y validación
2749- **Esquema de base de datos**: tablas, relaciones, datos de ejemplo
2750- **Autenticación**: login social (Google + GitHub) preconfigurado
2751- **Diseño responsive**: optimizado para escritorio, tablet y móvil
2752
2753> [!TIP] Las plantillas son un punto de partida. Puedes modificar cualquier aspecto desde el chat de IA: añadir páginas, cambiar el diseño, integrar servicios externos.
2754`,fr:`# Templates produit
2755
2756\`\`\`anim
2757templates
2758\`\`\`
2759
2760Les templates produit sont des **applications fullstack complètes** prêtes à l'emploi. Ils sont copiés dans ton projet par copie S3 à S3 en seulement **1-2 secondes**, avec le frontend React, le backend FastAPI et le schéma de base de données si nécessaire.
2761
2762## Templates disponibles (32)
2763
2764### Business et productivité
2765
2766| Template | Description |
2767|----------|-------------|
2768| Business Dashboard | Tableau de bord analytique avec graphiques, métriques et KPI |
2769| Todo App | Gestionnaire de tâches avec projets, catégories et priorités |
2770| Social Media Scheduler | Planification et gestion des publications sur les réseaux |
2771| Project Management | Gestion de projet avec tableau kanban et timeline |
2772| CRM | Gestion de la relation client avec pipeline de vente |
2773
2774### E-commerce et marketplace
2775
2776| Template | Description |
2777|----------|-------------|
2778| Online Store | E-commerce complet avec catalogue, panier, paiement Stripe |
2779| Marketplace | Plateforme multi-vendeurs avec gestion des boutiques |
2780| Digital Products | Vente de produits numériques (cours, ebooks, templates) |
2781
2782### Services et réservations
2783
2784| Template | Description |
2785|----------|-------------|
2786| Booking Platform | Plateforme de réservation avec calendrier et paiements |
2787| Restaurant | Site de restaurant avec menu, galerie et réservation de tables |
2788| Wellness App | App bien-être avec suivi d'activité et programmes |
2789
2790### Contenu et médias
2791
2792| Template | Description |
2793|----------|-------------|
2794| Content Platform | Blog / CMS avec éditeur, catégories et SEO |
2795| Portfolio | Portfolio personnel/d'agence avec galerie et études de cas |
2796| Entertainment | Plateforme de contenus streaming/médias |
2797
2798### Jeux
2799
2800| Template | Description |
2801|----------|-------------|
2802| Phaser Game | Jeu 2D navigateur avec Phaser.js |
2803| 3D Product Configurator | Configurateur de produit 3D avec Three.js |
2804
2805Et bien plus : **32 templates** au total, dont des apps pour l'immobilier, la santé, l'éducation, la fintech, l'événementiel, etc.
2806
2807## Comment utiliser un template
2808
28091. Crée un nouveau projet depuis le [tableau de bord](/apps)
28102. Sélectionne **« Utiliser un template »** et choisis dans la grille
28113. Le projet est initialisé instantanément (~1-2 secondes)
28124. L'aperçu démarre automatiquement
28135. **Personnalise** tout via le chat IA : couleurs, mise en page, contenu, fonctions
2814
2815## Ce que chaque template inclut
2816
2817Chaque template produit inclut :
2818- **Frontend complet** : pages, composants, routage, styles Tailwind
2819- **API backend** : endpoints FastAPI avec modèles et validation
2820- **Schéma de base de données** : tables, relations, données d'exemple
2821- **Authentification** : login social (Google + GitHub) préconfiguré
2822- **Design responsive** : optimisé pour desktop, tablette et mobile
2823
2824> [!TIP] Les templates sont un point de départ. Tu peux modifier n'importe quel aspect via le chat IA : ajouter des pages, changer le design, intégrer des services externes.
2825`,de:`# Produktvorlagen
2826
2827\`\`\`anim
2828templates
2829\`\`\`
2830
2831Produktvorlagen sind **komplette Fullstack-Anwendungen**, einsatzbereit. Sie werden per S3-zu-S3-Kopie in nur **1-2 Sekunden** in dein Projekt kopiert — inklusive React-Frontend, FastAPI-Backend und Datenbankschema, wo nötig.
2832
2833## Verfügbare Vorlagen (32)
2834
2835### Business & Produktivität
2836
2837| Vorlage | Beschreibung |
2838|----------|-------------|
2839| Business Dashboard | Analyse-Dashboard mit Diagrammen, Kennzahlen und KPIs |
2840| Todo App | Aufgabenmanager mit Projekten, Kategorien und Prioritäten |
2841| Social Media Scheduler | Planung und Verwaltung von Social-Media-Beiträgen |
2842| Project Management | Projektmanagement mit Kanban-Board und Timeline |
2843| CRM | Kundenbeziehungsmanagement mit Sales-Pipeline |
2844
2845### E-Commerce & Marktplatz
2846
2847| Vorlage | Beschreibung |
2848|----------|-------------|
2849| Online Store | Komplettes E-Commerce mit Katalog, Warenkorb, Str
2849ipe-Checkout |
2850| Marketplace | Multi-Vendor-Plattform mit Shop-Verwaltung |
2851| Digital Products | Verkauf digitaler Produkte (Kurse, E-Books, Vorlagen) |
2852
2853### Dienstleistungen & Buchungen
2854
2855| Vorlage | Beschreibung |
2856|----------|-------------|
2857| Booking Platform | Buchungsplattform mit Kalender und Zahlungen |
2858| Restaurant | Restaurant-Website mit Menü, Galerie und Tischreservierung |
2859| Wellness App | Wellness-App mit Aktivitäts-Tracking und Programmen |
2860
2861### Inhalte & Medien
2862
2863| Vorlage | Beschreibung |
2864|----------|-------------|
2865| Content Platform | Blog / CMS mit Editor, Kategorien und SEO |
2866| Portfolio | Persönliches/Agentur-Portfolio mit Galerie und Fallstudien |
2867| Entertainment | Streaming-/Medien-Content-Plattform |
2868
2869### Gaming
2870
2871| Vorlage | Beschreibung |
2872|----------|-------------|
2873| Phaser Game | 2D-Browserspiel mit Phaser.js |
2874| 3D Product Configurator | 3D-Produktkonfigurator mit Three.js |
2875
2876Und viele mehr: insgesamt **32 Vorlagen**, darunter Apps für Immobilien, Gesundheit, Bildung, Fintech, Events und mehr.
2877
2878## Eine Vorlage verwenden
2879
28801. Erstelle ein neues Projekt im [Dashboard](/apps)
28812. Wähle **„Vorlage verwenden"** und wähle aus dem Raster
28823. Das Projekt wird sofort initialisiert (~1-2 Sekunden)
28834. Die Vorschau startet automatisch
28845. **Passe** alles über den KI-Chat an: Farben, Layout, Inhalte, Funktionen
2885
2886## Was jede Vorlage enthält
2887
2888Jede Produktvorlage enthält:
2889- **Komplettes Frontend**: Seiten, Komponenten, Routing, Tailwind-Styles
2890- **Backend-API**: FastAPI-Endpoints mit Modellen und Validierung
2891- **Datenbankschema**: Tabellen, Beziehungen, Beispieldaten
2892- **Authentifizierung**: Social Login (Google + GitHub) vorkonfiguriert
2893- **Responsives Design**: optimiert für Desktop, Tablet und Mobil
2894
2895> [!TIP] Vorlagen sind ein Ausgangspunkt. Du kannst jeden Aspekt über den KI-Chat ändern: Seiten hinzufügen, das Design ändern, externe Dienste einbinden.
2896`,zh:`# 产品模板
2897
2898\`\`\`anim
2899templates
2900\`\`\`
2901
2902产品模板是**完整的全栈应用**,开箱即用。它们通过 S3 到 S3 复制在**仅 1-2 秒**内被复制到你的项目中,包含 React 前端、FastAPI 后端,以及必要时的数据库结构。
2903
2904## 可用模板(32 个)
2905
2906### 商业与生产力
2907
2908| 模板 | 描述 |
2909|----------|-------------|
2910| Business Dashboard | 带图表、指标和 KPI 的分析看板 |
2911| Todo App | 带项目、分类和优先级的任务管理器 |
2912| Social Media Scheduler | 社交媒体发帖的规划与管理 |
2913| Project Management | 带看板与时间线的项目管理 |
2914| CRM | 带销售漏斗的客户关系管理 |
2915
2916### 电商与市场平台
2917
2918| 模板 | 描述 |
2919|----------|-------------|
2920| Online Store | 完整电商:目录、购物车、Stripe 结账 |
2921| Marketplace | 带店铺管理的多商家平台 |
2922| Digital Products | 数字产品销售(课程、电子书、模板) |
2923
2924### 服务与预订
2925
2926| 模板 | 描述 |
2927|----------|-------------|
2928| Booking Platform | 带日历与支付的预订平台 |
2929| Restaurant | 带菜单、相册和餐桌预订的餐厅网站 |
2930| Wellness App | 带活动追踪与计划的健康应用 |
2931
2932### 内容与媒体
2933
2934| 模板 | 描述 |
2935|----------|-------------|
2936| Content Platform | 带编辑器、分类和 SEO 的博客 / CMS |
2937| Portfolio | 带作品集与案例的个人/机构作品集 |
2938| Entertainment | 流媒体/媒体内容平台 |
2939
2940### 游戏
2941
2942| 模板 | 描述 |
2943|----------|-------------|
2944| Phaser Game | 使用 Phaser.js 的 2D 浏览器游戏 |
2945| 3D Product Configurator | 使用 Three.js 的 3D 产品配置器 |
2946
2947还有更多:共 **32 个模板**,涵盖房地产、医疗、教育、金融科技、活动等应用。
2948
2949## 如何使用模板
2950
29511. 在[仪表盘](/apps)中创建新项目
29522. 选择**“使用模板”**并从网格中挑选
29533. 项目会即时初始化(约 1-2 秒)
29544. 预览自动启动
29555. 通过 AI 聊天**定制**一切:颜色、布局、内容、功能
2956
2957## 每个模板包含什么
2958
2959每个产品模板都包含:
2960- **完整前端**:页面、组件、路由、Tailwind 样式
2961- **后端 API**:带模型与校验的 FastAPI 端点
2962- **数据库结构**:表、关系、示例数据
2963- **认证**:预配置的社交登录(Google + GitHub)
2964- **响应式设计**:为桌面、平板和手机优化
2965
2966> [!TIP] 模板是一个起点。你可以通过 AI 聊天修改任何方面:添加页面、更改设计、集成外部服务。
2967`},"feature-templates":{es:`# Plantillas de función
2968
2969\`\`\`anim
2970templates
2971\`\`\`
2972
2973Las plantillas de función son **módulos reutilizables** que puedes añadir a cualquier proyecto.
2974
2975## Funciones disponibles
2976
2977- **Auth**: Autenticación con email/contraseña y login social
2978- **Admin Panel**: Panel de administración completo
2979- **Payments**: Integración de pagos con Stripe
2980- **Chat**: Chat en tiempo real
2981- **Notifications**: Sistema de notificaciones push e in-app
2982- **Search**: Búsqueda de texto completo con filtros
2983- **Dashboard**: Panel con widgets y gráficos
2984- **Cart**: Carrito de e-commerce
2985
2986Y más de **20 funciones adicionales**.
2987
2988> [!TIP] Puedes combinar varias plantillas de función en el mismo proyecto. Pide a la IA que las integre.
2989`,fr:`# Templates de fonctionnalité
2990
2991\`\`\`anim
2992templates
2993\`\`\`
2994
2995Les templates de fonctionnalité sont des **modules réutilisables** que tu peux ajouter à n'importe quel projet.
2996
2997## Fonctionnalités disponibles
2998
2999- **Auth** : Authentification par e-mail/mot de passe et login social
3000- **Admin Panel** : Panneau d'administration complet
3001- **Payments** : Intégration des paiements avec Stripe
3002- **Chat** : Chat en temps réel
3003- **Notifications** : Système de notifications push et in-app
3004- **Search** : Recherche plein texte avec filtres
3005- **Dashboard** : Tableau de bord avec widgets et graphiques
3006- **Cart** : Panier e-commerce
3007
3008Et plus de **20 fonctionnalités supplémentaires**.
3009
3010> [!TIP] Tu peux combiner plusieurs templates de fonctionnalité dans le même projet. Demande à l'IA de les intégrer.
3011`,de:`# Funktionsvorlagen
3012
3013\`\`\`anim
3014templates
3015\`\`\`
3016
3017Funktionsvorlagen sind **wiederverwendbare Module**, die du jedem Projekt hinzufügen kannst.
3018
3019## Verfügbare Funktionen
3020
3021- **Auth**: Authentifizierung mit E-Mail/Passwort und Social Login
3022- **Admin Panel**: Vollständiges Admin-Panel
3023- **Payments**: Zahlungsintegration mit Stripe
3024- **Chat**: Echtzeit-Chat
3025- **Notifications**: Push- und In-App-Benachrichtigungssystem
3026- **Search**: Volltextsuche mit Filtern
3027- **Dashboard**: Dashboard mit Widgets und Diagrammen
3028- **Cart**: E-Commerce-Warenkorb
3029
3030Und über **20 weitere Funktionen**.
3031
3032> [!TIP] Du kannst mehrere Funktionsvorlagen im selben Projekt kombinieren. Bitte die KI, sie zu integrieren.
3033`,zh:`# 功能模板
3034
3035\`\`\`anim
3036templates
3037\`\`\`
3038
3039功能模板是可以添加到任何项目的**可复用模块**。
3040
3041## 可用功能
3042
3043- **Auth**:邮箱/密码与社交登录认证
3044- **Admin Panel**:完整的后台管理面板
3045- **Payments**:Stripe 支付集成
3046- **Chat**:实时聊天
3047- **Notifications**:推送与应用内通知系统
3048- **Search**:带筛选的全文搜索
3049- **Dashboard**:带小组件与图表的看板
3050- **Cart**:电商购物车
3051
3052以及 **20 多个额外功能**。
3053
3054> [!TIP] 你可以在同一个项目中组合多个功能模板。让 AI 帮你集成它们。
3055`},preview:{es:`# Vista previa
3056
3057\`\`\`anim
3058hot-reload
3059\`\`\`
3060
3061Cada proyecto Coderblock tiene una vista previa en vivo y en tiempo real en un dominio \`*.coderblock.dev\`. No es una vista previa simulada: es un entorno de desarrollo real que ejecuta tu app en una máquina virtual dedicada.
3062
3063## Cómo funciona
3064
3065La vista previa está integrada directamente en el editor, en el panel a la derecha del chat:
3066
30671. La IA escribe los archivos del proyecto en **AWS S3**
30682. Se dispara una **sincronización dirigida** hacia la VM de vista previa (solo los archivos cambiados)
30693. **Vite HMR** (Hot Module Replacement) detecta los cambios y actualiza el navegador
30704. El **iframe** de la vista previa se refresca solo
3071
3072### Detalles técnicos
3073
3074- Cada proyecto tiene una **VM de Fly.io dedicada** con Node.js, Vite y todas las dependencias preinstaladas
3075- Las dependencias npm comunes (Radix UI, Tailwind, React Hook Form, Three.js, Phaser, etc.) están preinstaladas en la imagen base, y \`npm install\` verifica en ~5 segundos en lugar de ~60-120s
3076- Formato de URL: \`https://{id}.coderblock.dev\`
3077- La VM ejecuta un servidor de desarrollo Vite real con soporte HMR completo
3078
3079## Tiempos
3080
3081| Acción | Tiempo |
3082|--------|------|
3083| Primer arranque (cold start) | 60-90s |
3084| Despertar de suspensión | 5-10s |
3085| Recarga de página | 2-5s |
3086| Cambios de la IA (hot-reload) | ~7-13s |
3087| Añadir dependencia npm | 5-15s |
3088
3089## Navegación en la vista previa
3090
3091El panel de vista previa incluye:
3092- **Barra de direcciones** con la URL de la página actual
3093- **Botones atrás/adelante** para navegar el historial
3094- **Botón de recarga** para forzar una recarga completa
3095- **Botón "Abrir en nueva ventana"** para ver la app a pantalla completa
3096
3097La navegación es SPA (Single Page Application): las transiciones de página ocurren sin parpadeo blanco.
3098
3099## Pausa automática
3100
3101La vista previa se pausa automáticamente tras un período de inactividad para ahorrar recursos. En el siguiente acceso, la VM se despierta en 5-10 segundos.
3102
3103> [!TIP] Si la vista previa muestra errores de compilación, la IA los detecta automáticamente e intenta corregirlos con un bucle de auto-fix.
3104`,fr:`# Aperçu
3105
3106\`\`\`anim
3107hot-reload
3108\`\`\`
3109
3110Chaque projet Coderblock a un aperçu en direct et en temps réel sur un domaine \`*.coderblock.dev\`. Ce n'est pas un aperçu simulé : c'est un vrai environnement de développement qui exécute ton app sur une machine virtuelle dédiée.
3111
3112## Comment ça marche
3113
3114L'aperçu est intégré directement dans l'éditeur, dans le panneau à droite du chat :
3115
31161. L'IA écrit les fichiers du projet sur **AWS S3**
31172. Une **synchronisation ciblée** est déclenchée vers la VM d'aperçu (seulement les fichiers modifiés)
31183. **Vite HMR** (Hot Module Replacement) détecte les changements et met à jour le navigateur
31194. L'**iframe** de l'aperçu se rafraîchit tout seul
3120
3121### Détails techniques
3122
3123- Chaque projet a une **VM Fly.io dédiée** avec Node.js, Vite et toutes les dépendances préinstallées
3124- Les dépendances npm courantes (Radix UI, Tailwind, React Hook Form, Three.js, Phaser, etc.) sont préinstallées dans l'image de base, et \`npm install\` vérifie en ~5 secondes au lieu de ~60-120s
3125- Format d'URL : \`https://{id}.coderblock.dev\`
3126- La VM exécute un vrai serveur de dev Vite avec support HMR complet
3127
3128## Délais
3129
3130| Action | Temps |
3131|--------|------|
3132| Premier démarrage (cold start) | 60-90s |
3133| Réveil après mise en veille | 5-10s |
3134| Rafraîchissement de page | 2-5s |
3135| Changements de l'IA (hot-reload) | ~7-13s |
3136| Ajout de dépendance npm | 5-15s |
3137
3138## Navigation dans l'aperçu
3139
3140Le panneau d'aperçu inclut :
3141- **Barre d'adresse** avec l'URL de la page actuelle
3142- **Boutons précédent/suivant** pour naviguer dans l'historique
3143- **Bouton de rafraîchissement** pour forcer un rechargement complet
3144- **Bouton « Ouvrir dans une nouvelle fenêtre »** pour voir l'app en plein écran
3145
3146La navigation est SPA (Single Page Application) : les transitions de page se font sans flash blanc.
3147
3148## Pause automatique
3149
3150L'aperçu se met en pause automatiquement après une période d'inactivité pour économiser des ressources. Au prochain accès, la VM se réveille en 5-10 secondes.
3151
3152> [!TIP] Si l'aperçu affiche des erreurs de compilation, l'IA les détecte automatiquement et tente de les corriger avec une boucle d'auto-fix.
3153`,de:`# Vorschau
3154
3155\`\`\`anim
3156hot-reload
3157\`\`\`
3158
3159Jedes Coderblock-Projekt hat eine Echtzeit-Live-Vorschau auf einer \`*.coderblock.dev\`-Domain. Das ist keine simulierte Vorschau: es ist eine echte Entwicklungsumgebung, die deine App auf einer dedizierten virtuellen Maschine ausführt.
3160
3161## So funktioniert es
3162
3163Die Vorschau ist direkt im Editor integriert, im Panel rechts vom Chat:
3164
31651. Die KI schreibt die Projektdateien nach **AWS S3**
31662. Eine **gezielte Synchronisation** wird zur Vorschau-VM ausgelöst (nur geänderte Dateien)
31673. **Vite HMR** (Hot Module Replacement) erkennt Änderungen und aktualisiert den Browser
31684. Das Vorschau-**iframe** aktualisiert sich selbst
3169
3170### Technische Details
3171
3172- Jedes Projekt hat eine **dedizierte Fly.io-VM** mit Node.js, Vite und allen vorinstallierten Abhängigkeiten
3173- Häufige npm-Abhängigkeiten (Radix UI, Tailwind, React Hook Form, Three.js, Phaser usw.) sind im Basis-Image vorinstalliert, und \`npm install\` prüft in ~5 Sekunden statt ~60-120s
3174- URL-Format: \`https://{id}.coderblock.dev\`
3175- Die VM betreibt einen echten Vite-Dev-Server mit voller HMR-Unterstützung
3176
3177## Zeiten
3178
3179| Aktion | Zeit |
3180|--------|------|
3181| Erster Start (Cold Start) | 60-90s |
3182| Aufwachen aus dem Schlaf | 5-10s |
3183| Seiten-Neuladen | 2-5s |
3184| KI-Änderungen (Hot-Reload) | ~7-13s |
3185| npm-Abhängigkeit hinzufügen | 5-15s |
3186
3187## Navigation in der Vorschau
3188
3189Das Vorschau-Panel enthält:
3190- **Adressleiste** mit der aktuellen Seiten-URL
3191- **Zurück-/Vorwärts-Buttons** für die Verlaufsnavigation
3192- **Neuladen-Button**, um ein vollständiges Neuladen zu erzwingen
3193- **Button „In neuem Fenster öffnen"**, um die App im Vollbild zu sehen
3194
3195Die Navigation ist SPA (Single Page Application): Seitenwechsel erfolgen ohne weißes Flackern.
3196
3197## Automatische Pause
3198
3199Die Vorschau pausiert nach einer Inaktivitätsphase automatisch, um Ressourcen zu sparen. Beim nächsten Zugriff wacht die VM in 5-10 Sekunden auf.
3200
3201> [!TIP] Zeigt die Vorschau Kompilierfehler, erkennt die KI sie automatisch und versucht, sie mit einer Auto-Fix-Schleife zu beheben.
3202`,zh:`# 预览
3203
3204\`\`\`anim
3205hot-reload
3206\`\`\`
3207
3208每个 Coderblock 项目都在 \`*.coderblock.dev\` 域名上拥有实时在线预览。这不是模拟预览:而是一个真实的开发环境,在专用虚拟机上运行你的应用。
3209
3210## 工作原理
3211
3212预览直接集成在编辑器中,位于聊天右侧的面板里:
3213
32141. AI 将项目文件写入 **AWS S3**
32152. 触发向预览虚拟机的**定向同步**(仅同步已更改的文件)
32163. **Vite HMR**(热模块替换)检测更改并更新浏览器
32174. 预览 **iframe** 自动刷新
3218
3219### 技术细节
3220
3221- 每个项目都有一台**专用的 Fly.io 虚拟机**,预装了 Node.js、Vite 及所有依赖
3222- 常见的 npm 依赖(Radix UI、Tailwind、React Hook Form、Three.js、Phaser 等)已预装在基础镜像中,\`npm install\` 只需约 5 秒验证,而非约 60-120 秒
3223- URL 格式:\`https://{id}.coderblock.dev\`
3224- 虚拟机运行真正的 Vite 开发服务器,完整支持 HMR
3225
3226## 耗时
3227
3228| 操作 | 时间 |
3229|--------|------|
3230| 首次启动(冷启动) | 60-90 秒 |
3231| 从休眠唤醒 | 5-10 秒 |
3232| 页面刷新 | 2-5 秒 |
3233| AI 更改(热重载) | 约 7-13 秒 |
3234| 添加 npm 依赖 | 5-15 秒 |
3235
3236## 预览导航
3237
3238预览面板包含:
3239- 显示当前页面 URL 的**地址栏**
3240- 用于历史导航的**前进/后退按钮**
3241- 用于强制完整重载的**刷新按钮**
3242- 用于全屏查看应用的**“在新窗口打开”按钮**
3243
3244导航是 SPA(单页应用):页面切换不会出现白屏闪烁。
3245
3246## 自动暂停
3247
3248为节省资源,预览在一段时间无操作后会自动暂停。下次访问时,虚拟机会在 5-10 秒内唤醒。
3249
3250> [!TIP] 如果预览出现编译错误,AI 会自动检测并尝试通过自动修复循环来解决。
3251`},production:{es:`# Producción
3252
3253\`\`\`anim
3254preview-vs-production
3255\`\`\`
3256
3257Publica tu app en un dominio \`*.coderblock.app\` con un clic. La app se despliega en un servidor cloud real con SSL automático, lista para recibir tráfico real.
3258
3259## Cómo funciona el despliegue
3260
32611. Haz clic en el botón **"Deploy"** en el editor
32622. El sistema crea un **contenedor Docker unificado** que incluye tanto el frontend (build estático de React servido por Caddy) como el backend (FastAPI con Uvicorn)
32633. El contenedor se despliega en **Fly.io** en una región cercana a tus usuarios
32644. El certificado **SSL** se genera automáticamente
32655. URL: \`https://{id}.coderblock.app\`
3266
3267## Tiempos de despliegue
3268
3269| Acción | Tiempo |
3270|--------|------|
3271| Despliegue completo (primera vez) | 60-90s |
3272| Hot-update del frontend | 15-30s |
3273| Hot-update del backend | 10-20s |
3274
3275## Actualizaciones posteriores
3276
3277Tras el primer despliegue, las actualizaciones son **mucho más rápidas** gracias a:
3278
3279- **Caché de dependencias**: los módulos npm y los paquetes pip se cachean
3280- **Hot-update dirigido**: solo se actualizan los archivos modificados
3281- **Capas de la imagen Docker**: las capas sin cambios se reutilizan
3282
3283## Variables de entorno en producción
3284
3285Las variables de entorno y los secretos configurados en el proyecto se inyectan automáticamente en el contenedor de producción en cada despliegue. No hace falta ninguna acción adicional.
3286
3287## Estado del despliegue
3288
3289En la barra superior del editor puedes ver:
3290- **Estado actual** del despliegue (en curso, completado, fallido)
3291- **URL** de la app en producción
3292- **Registros del despliegue** para depurar
3293
3294## Diferencias entre vista previa y producción
3295
3296| Aspecto | Vista previa (\`.coderblock.dev\`) | Producción (\`.coderblock.app\`) |
3297|--------|----------------------------|-------------------------------|
3298| Entorno | Servidor de dev Vite | Contenedor Docker optimizado |
3299| Build | No (modo desarrollo) | Sí (build de producción) |
3300| Rendimiento | Bueno (HMR) | Excelente (build optimizado) |
3301| SSL | Sí | Sí |
3302| Variables de entorno | Inyectadas | Inyectadas |
3303| Persistencia | Pausa automática por inactividad | Siempre activo |
3304
3305> [!TIP] Prueba siempre en la vista previa antes de desplegar a producción. La vista previa usa la misma configuración, así que si funciona allí, funcionará también en producción.
3306`,fr:`# Production
3307
3308\`\`\`anim
3309preview-vs-production
3310\`\`\`
3311
3312Publie ton app sur un domaine \`*.coderblock.app\` en un clic. L'app est déployée sur un vrai serveur cloud avec SSL automatique, prête à recevoir du trafic réel.
3313
3314## Comment fonctionne le déploiement
3315
33161. Clique sur le bouton **« Deploy »** dans l'éditeur
33172. Le système crée un **conteneur Docker unifié** qui inclut à la fois le frontend (build statique React servi par Caddy) et le backend (FastAPI avec Uvicorn)
33183. Le conteneur est déployé sur **Fly.io** dans une région proche de tes utilisateurs
33194. Le certificat **SSL** est généré automatiquement
33205. URL : \`https://{id}.coderblock.app\`
3321
3322## Délais de déploiement
3323
3324| Action | Temps |
3325|--------|------|
3326| Déploiement complet (première fois) | 60-90s |
3327| Hot-update du frontend | 15-30s |
3328| Hot-update du backend | 10-20s |
3329
3330## Mises à jour suivantes
3331
3332Après le premier déploiement, les mises à jour sont **bien plus rapides** grâce à :
3333
3334- **Cache des dépendances** : les modules npm et les paquets pip sont mis en cache
3335- **Hot-update ciblé** : seuls les fichiers modifiés sont mis à jour
3336- **Couches de l'image Docker** : les couches inchangées sont réutilisées
3337
3338## Variables d'environnement en production
3339
3340Les variables d'environnement et les secrets configurés dans le projet sont automatiquement injectés dans le conteneur de production à chaque déploiement. Aucune action supplémentaire nécessaire.
3341
3342## État du déploiement
3343
3344Dans la barre du haut de l'éditeur, tu peux voir :
3345- **État actuel** du déploiement (en cours, terminé, échoué)
3346- **URL** de l'app en production
3347- **Logs de déploiement** pour le débogage
3348
3349## Différences entre aperçu et production
3350
3351| Aspect | Aperçu (\`.coderblock.dev\`) | Production (\`.coderblock.app\`) |
3352|--------|----------------------------|-------------------------------|
3353| Environnement | Serveur de dev Vite | Conteneur Docker optimisé |
3354| Build | Non (mode développement) | Oui (build de production) |
3355| Performance | Bonne (HMR) | Excellente (build optimisé) |
3356| SSL | Oui | Oui |
3357| Variables d'env | Injectées | Injectées |
3358| Persistance | Pause auto après inactivité | Toujours actif |
3359
3360> [!TIP] Teste toujours dans l'aperçu avant de déployer en production. L'aperçu utilise la même configuration, donc si ça marche là, ça marchera aussi en production.
3361`,de:`# Produktion
3362
3363\`\`\`anim
3364preview-vs-production
3365\`\`\`
3366
3367Veröffentliche deine App mit einem Klick auf einer \`*.coderblock.app\`-Domain. Die App wird auf einem echten Cloud-Server mit automatischem SSL bereitgestellt, bereit für echten Traffic.
3368
3369## Wie das Deployment funktioniert
3370
33711. Klicke im Editor auf den Button **„Deploy"**
33722. Das System erstellt einen **einheitlichen Docker-Container**, der sowohl das Frontend (statischer React-Build, ausgeliefert von Caddy) als auch das Backend (FastAPI mit Uvicorn) enthält
33733. Der Container wird auf **Fly.io** in einer Region nahe deinen Nutzern bereitgestellt
33744. Das **SSL**-Zertifikat wird automatisch generiert
33755. URL: \`https://{id}.coderblock.app\`
3376
3377## Deploy-Zeiten
3378
3379| Aktion | Zeit |
3380|--------|------|
3381| Vollständiges Deploy (erstes Mal) | 60-90s |
3382| Frontend-Hot-Update | 15-30s |
3383| Backend-Hot-Update | 10-20s |
3384
3385## Weitere Updates
3386
3387Nach dem ersten Deploy sind Updates **deutlich schneller** dank:
3388
3389- **Dependency-Caching**: npm-Module und pip-Pakete werden gecacht
3390- **Gezieltes Hot-Update**: nur geänderte Dateien werden aktualisiert
3391- **Docker-Image-Layer**: unveränderte Layer werden wiederverwendet
3392
3393## Umgebungsvariablen in der Produktion
3394
3395Im Projekt konfigurierte Umgebungsvariablen und Secrets werden bei jedem Deploy automatisch in den Produktions-Container injiziert. Keine weitere Aktion nötig.
3396
3397## Deploy-Status
3398
3399In der oberen Leiste des Editors siehst du:
3400- **Aktuellen Status** des Deploys (läuft, abgeschlossen, fehlgeschlagen)
3401- **URL** der Produktions-App
3402- **Deploy-Logs** zur Fehlersuche
3403
3404## Unterschiede zwischen Vorschau und Produktion
3405
3406| Aspekt | Vorschau (\`.coderblock.dev\`) | Produktion (\`.coderblock.app\`) |
3407|--------|----------------------------|-------------------------------|
3408| Umgebung | Vite-Dev-Server | Optimierter Docker-Container |
3409| Build | Nein (Entwicklungsmodus) | Ja (Produktions-Build) |
3410| Performance | Gut (HMR) | Exzellent (optimierter Build) |
3411| SSL | Ja | Ja |
3412| Umgebungsvariablen | Injiziert | Injiziert |
3413| Persistenz | Auto-Pause nach Inaktivität | Immer aktiv |
3414
3415> [!TIP] Teste immer in der Vorschau, bevor du in die Produktion deployst. Die Vorschau nutzt dieselbe Konfiguration — funktioniert es dort, funktioniert es auch in der Produktion.
3416`,zh:`# 生产环境
3417
3418\`\`\`anim
3419preview-vs-production
3420\`\`\`
3421
3422一键将你的应用发布到 \`*.coderblock.app\` 域名。应用部署在真实的云服务器上,自动配置 SSL,可随时接收真实流量。
3423
3424## 部署如何工作
3425
34261. 在编辑器中点击 **“Deploy”** 按钮
34272. 系统会创建一个**统一的 Docker 容器**,同时包含前端(由 Caddy 提供的 React 静态构建)和后端(使用 Uvicorn 的 FastAPI)
34283. 容器部署在 **Fly.io** 上、靠近你用户的区域
34294. **SSL** 证书自动生成
34305. URL:\`https://{id}.coderblock.app\`
3431
3432## 部署耗时
3433
3434| 操作 | 时间 |
3435|--------|------|
3436| 完整部署(首次) | 60-90 秒 |
3437| 前端热更新 | 15-30 秒 |
3438| 后端热更新 | 10-20 秒 |
3439
3440## 后续更新
3441
3442首次部署之后,更新会**快得多**,得益于:
3443
3444- **依赖缓存**:npm 模块和 pip 包会被缓存
3445- **定向热更新**:只更新已修改的文件
3446- **Docker 镜像层**:未变化的层会被复用
3447
3448## 生产环境中的环境变量
3449
3450项目中配置的环境变量和密钥会在每次部署时自动注入生产容器,无需任何额外操作。
3451
3452## 部署状态
3453
3454在编辑器顶栏你可以看到:
3455- 部署的**当前状态**(进行中、已完成、失败)
3456- 生产应用的 **URL**
3457- 用于调试的**部署日志**
3458
3459## 预览与生产的区别
3460
3461| 方面 | 预览 (\`.coderblock.dev\`) | 生产 (\`.coderblock.app\`) |
3462|--------|----------------------------|-------------------------------|
3463| 环境 | Vite 开发服务器 | 优化的 Docker 容器 |
3464| 构建 | 否(开发模式) | 是(生产构建) |
3465| 性能 | 良好(HMR) | 优秀(优化构建) |
3466| SSL | 是 | 是 |
3467| 环境变量 | 已注入 | 已注入 |
3468| 持久性 | 无活动后自动暂停 | 始终在线 |
3469
3470> [!TIP] 部署到生产前请务必在预览中测试。预览使用相同的配置,因此在预览中能用,在生产中也能用。
3471`},"hot-reload":{es:`# Hot Reload
3472
3473\`\`\`anim
3474hot-reload
3475\`\`\`
3476
3477El sistema de hot-reload te permite ver los cambios en tiempo real en la vista previa.
3478
3479## Flujo
3480
34811. La IA escribe los archivos en **S3**
34822. Se dispara una **sincronización** hacia la VM de vista previa
34833. **Vite HMR** detecta los cambios y actualiza el navegador
34844. El iframe de la vista previa se refresca solo
3485
3486## Cuándo hace falta una recarga completa
3487
3488En algunos casos, es necesaria una recarga completa:
3489
3490- Añadir nuevas dependencias npm
3491- Cambios en la configuración de Vite
3492- Cambios en \`index.html\`
3493- Errores de compilación que rompen el HMR
3494
3495> [!INFO] Puedes forzar una recarga completa pulsando el botón de recarga en el panel de vista previa.
3496`,fr:`# Hot Reload
3497
3498\`\`\`anim
3499hot-reload
3500\`\`\`
3501
3502Le système de hot-reload te permet de voir les changements en temps réel dans l'aperçu.
3503
3504## Flux
3505
35061. L'IA écrit les fichiers sur **S3**
35072. Une **synchronisation** est déclenchée vers la VM d'aperçu
35083. **Vite HMR** détecte les changements et met à jour le navigateur
35094. L'iframe de l'aperçu se rafraîchit tout seul
3510
3511## Quand un rechargement complet est nécessaire
3512
3513Dans certains cas, un rechargement complet est nécessaire :
3514
3515- Ajout de nouvelles dépendances npm
3516- Changements dans la configuration de Vite
3517- Changements dans \`index.html\`
3518- Erreurs de compilation qui cassent le HMR
3519
3520> [!INFO] Tu peux forcer un rechargement complet en cliquant sur le bouton de rafraîchissement dans le panneau d'aperçu.
3521`,de:`# Hot Reload
3522
3523\`\`\`anim
3524hot-reload
3525\`\`\`
3526
3527Das Hot-Reload-System lässt dich Änderungen in Echtzeit in der Vorschau sehen.
3528
3529## Ablauf
3530
35311. Die KI schreibt die Dateien nach **S3**
35322. Eine **Synchronisation** wird zur Vorschau-VM ausgelöst
35333. **Vite HMR** erkennt Änderungen und aktualisiert den Browser
35344. Das Vorschau-iframe aktualisiert sich selbst
3535
3536## Wann ein vollständiges Neuladen nötig ist
3537
3538In manchen Fällen ist ein vollständiges Neuladen nötig:
3539
3540- Hinzufügen neuer npm-Abhängigkeiten
3541- Änderungen an der Vite-Konfiguration
3542- Änderungen an \`index.html\`
3543- Kompilierfehler, die HMR unterbrechen
3544
3545> [!INFO] Du kannst ein vollständiges Neuladen erzwingen, indem du im Vorschau-Panel auf den Neuladen-Button klickst.
3546`,zh:`# 热重载
3547
3548\`\`\`anim
3549hot-reload
3550\`\`\`
3551
3552热重载系统让你在预览中实时看到更改。
3553
3554## 流程
3555
35561. AI 将文件写入 **S3**
35572. 触发向预览虚拟机的**同步**
35583. **Vite HMR** 检测更改并更新浏览器
35594. 预览 iframe 自动刷新
3560
3561## 何时需要完整重载
3562
3563在某些情况下,需要完整重载:
3564
3565- 添加新的 npm 依赖
3566- 修改 Vite 配置
3567- 修改 \`index.html\`
3568- 破坏 HMR 的编译错误
3569
3570> [!INFO] 你可以在预览面板中点击刷新按钮来强制完整重载。
3571`},neondb:{es:`# NeonDB
3572
3573\`\`\`anim
3574database
3575\`\`\`
3576
3577Coderblock usa **NeonDB** (PostgreSQL serverless) como base de datos de las apps generadas. NeonDB es un servicio PostgreSQL totalmente gestionado que escala automáticamente y ofrece funciones avanzadas como el branching de la base de datos.
3578
3579## Características
3580
3581- **PostgreSQL completo**: soporte para todos los tipos de datos, índices, triggers, funciones, JSON, arrays
3582- **Serverless** con scale-to-zero: sin coste cuando no se usa
3583- **Branching** para entornos de desarrollo aislados
3584- **Conexión automática** desde vista previa y producción
3585- **Connection pooling integrado** con PgBouncer para gestionar muchas conexiones concurrentes
3586- **Resiliencia**: pool_recycle, pool_pre_ping, manejo automático de errores de conexión
3587
3588## Configuración
3589
3590La base de datos se configura automáticamente cuando pides a la IA añadir funciones que requieren persistencia de datos (usuarios, productos, pedidos, etc.). Las credenciales se guardan como variables de entorno y se inyectan tanto en vista previa como en producción.
3591
3592\`\`\`bash
3593DATABASE_URL=postgresql://user:[email protected]/dbname
3594NEON_DATABASE_URL=postgresql://user:[email protected]/dbname
3595\`\`\`
3596
3597## Consultas SQL directas
3598
3599El agente de IA puede ejecutar consultas SQL directamente en la base de datos de tu proyecto, con capas de seguridad integradas:
3600
3601- **SELECT**: se ejecuta libremente para leer datos
3602- **INSERT/UPDATE**: se ejecuta con confirmación implícita
3603- **DELETE/DROP/ALTER**: requiere **confirmación explícita del usuario** (Human-in-the-Loop)
3604
3605### Ejemplo en el chat
3606
3607\`\`\`
3608Muéstrame todos los usuarios registrados en las últimas 24 horas
3609\`\`\`
3610
3611La IA ejecutará:
3612\`\`\`sql
3613SELECT * FROM users WHERE created_at > NOW() - INTERVAL '24 hours' ORDER BY created_at DESC;
3614\`\`\`
3615
3616## Migraciones
3617
3618La IA gestiona automáticamente las migraciones de esquema. Cuando pides añadir un campo o modificar una tabla, el agente:
3619
36201. Lee el esquema existente
36212. Genera el script SQL de migración
36223. Ejecuta la migración (con confirmación para operaciones destructivas)
3623
3624> [!WARNING] Nunca compartas las credenciales de la base de datos. Usa siempre variables de entorno. Coderblock las gestiona automáticamente.
3625`,fr:`# NeonDB
3626
3627\`\`\`anim
3628database
3629\`\`\`
3630
3631Coderblock utilise **NeonDB** (PostgreSQL serverless) comme base de données des apps générées. NeonDB est un service PostgreSQL entièrement géré qui scale automatiquement et offre des fonctions avancées comme le branching de la base de données.
3632
3633## Fonctionnalités
3634
3635- **PostgreSQL complet** : prise en charge de tous les types de données, index, triggers, fonctions, JSON, arrays
3636- **Serverless** avec scale-to-zero : aucun coût lorsqu'inutilisé
3637- **Branching** pour des environnements de développement isolés
3638- **Connexion automatique** depuis l'aperçu et la production
3639- **Connection pooling intégré** avec PgBouncer pour gérer de nombreuses connexions simultanées
3640- **Résilience** : pool_recycle, pool_pre_ping, gestion automatique des erreurs de connexion
3641
3642## Configuration
3643
3644La base de données est configurée automatiquement quand tu demandes à l'IA d'ajouter des fonctions nécessitant la persistance des données (utilisateurs, produits, commandes, etc.). Les identifiants sont enregistrés comme variables d'environnement et injectés en aperçu comme en production.
3645
3646\`\`\`bash
3647DATABASE_URL=postgresql://user:[email protected]/dbname
3648NEON_DATABASE_URL=postgresql://user:[email protected]/dbname
3649\`\`\`
3650
3651## Requêtes SQL directes
3652
3653L'agent IA peut exécuter des requêtes SQL directement sur la base de données de ton projet, avec des couches de sécurité intégrées :
3654
3655- **SELECT** : exécuté librement pour lire les données
3656- **INSERT/UPDATE** : exécuté avec confirmation implicite
3657- **DELETE/DROP/ALTER** : requiert une **confirmation explicite de l'utilisateur** (Human-in-the-Loop)
3658
3659### Exemple dans le chat
3660
3661\`\`\`
3662Montre-moi tous les utilisateurs inscrits ces dernières 24 heures
3663\`\`\`
3664
3665L'IA exécutera :
3666\`\`\`sql
3667SELECT * FROM users WHERE created_at > NOW() - INTERVAL '24 hours' ORDER BY created_at DESC;
3668\`\`\`
3669
3670## Migrations
3671
3672L'IA gère automatiquement les migrations de schéma. Quand tu demandes d'ajouter un champ ou de modifier une table, l'agent :
3673
36741. Lit le schéma existant
36752. Génère le script SQL de migration
36763. Exécute la migration (avec confirmation pour les opérations destructrices)
3677
3678> [!WARNING] Ne partage jamais les identifiants de la base de données. Utilise toujours des variables d'environnement. Coderblock les gère automatiquement.
3679`,de:`# NeonDB
3680
3681\`\`\`anim
3682database
3683\`\`\`
3684
3685Coderblock nutzt **NeonDB** (serverloses PostgreSQL) als Datenbank für generierte Apps. NeonDB ist ein voll verwalteter PostgreSQL-Dienst, der automatisch skaliert und fortgeschrittene Funktionen wie Datenbank-Branching bietet.
3686
3687## Funktionen
3688
3689- **Vollständiges PostgreSQL**: Unterstützung für alle Datentypen, Indizes, Trigger, Funktionen, JSON, Arrays
3690- **Serverless** mit Scale-to-Zero: keine Kosten bei Nichtnutzung
3691- **Branching** für isolierte Entwicklungsumgebungen
3692- **Automatische Verbindung** aus Vorschau und Produktion
3693- **Integriertes Connection Pooling** mit PgBouncer für viele gleichzeitige Verbindungen
3694- **Resilienz**: pool_recycle, pool_pre_ping, automatische Behandlung von Verbindungsfehlern
3695
3696## Konfiguration
3697
3698Die Datenbank wird automatisch konfiguriert, wenn du die KI bittest, Funktionen mit Datenpersistenz hinzuzufügen (Nutzer, Produkte, Bestellungen usw.). Die Zugangsdaten werden als Umgebungsvariablen gespeichert und sowohl in Vorschau als auch Produktion injiziert.
3699
3700\`\`\`bash
3701DATABASE_URL=postgresql://user:[email protected]/dbname
3702NEON_DATABASE_URL=postgresql://user:[email protected]/dbname
3703\`\`\`
3704
3705## Direkte SQL-Abfragen
3706
3707Der KI-Agent kann SQL-Abfragen direkt auf der Datenbank deines Projekts ausführen, mit integrierten Sicherheitsebenen:
3708
3709- **SELECT**: frei ausgeführt, um Daten zu lesen
3710- **INSERT/UPDATE**: mit impliziter Bestätigung ausgeführt
3711- **DELETE/DROP/ALTER**: erfordert **ausdrückliche Nutzerbestätigung** (Human-in-the-Loop)
3712
3713### Beispiel im Chat
3714
3715\`\`\`
3716Zeig mir alle in den letzten 24 Stunden registrierten Nutzer
3717\`\`\`
3718
3719Die KI führt aus:
3720\`\`\`sql
3721SELECT * FROM users WHERE created_at > NOW() - INTERVAL '24 hours' ORDER BY created_at DESC;
3722\`\`\`
3723
3724## Migrationen
3725
3726Die KI verwaltet Schema-Migrationen automatisch. Wenn du bittest, ein Feld hinzuzufügen oder eine Tabelle zu ändern, wird der Agent:
3727
37281. das bestehende Schema lesen
37292. das SQL-Migrationsskript generieren
37303. die Migration ausführen (mit Bestätigung bei destruktiven Operationen)
3731
3732> [!WARNING] Teile niemals Datenbank-Zugangsdaten. Nutze immer Umgebungsvariablen. Coderblock verwaltet sie automatisch.
3733`,zh:`# NeonDB
3734
3735\`\`\`anim
3736database
3737\`\`\`
3738
3739Coderblock 使用 **NeonDB**(无服务器 PostgreSQL)作为所生成应用的数据库。NeonDB 是一个完全托管的 PostgreSQL 服务,可自动扩缩,并提供数据库分支等高级功能。
3740
3741## 特性
3742
3743- **完整的 PostgreSQL**:支持所有数据类型、索引、触发器、函数、JSON、数组
3744- **无服务器**且可缩容到零:不使用时无成本
3745- **分支**用于隔离的开发环境
3746- 从预览和生产环境**自动连接**
3747- 内置 **PgBouncer 连接池**,处理大量并发连接
3748- **韧性**:pool_recycle、pool_pre_ping、自动处理连接错误
3749
3750## 配置
3751
3752当你让 AI 添加需要数据持久化的功能(用户、商品、订单等)时,数据库会自动配置。凭据会保存为环境变量,并注入到预览和生产环境。
3753
3754\`\`\`bash
3755DATABASE_URL=postgresql://user:[email protected]/dbname
3756NEON_DATABASE_URL=postgresql://user:[email protected]/dbname
3757\`\`\`
3758
3759## 直接 SQL 查询
3760
3761AI 智能体可以直接在你项目的数据库上执行 SQL 查询,并内置安全层:
3762
3763- **SELECT**:可自由执行以读取数据
3764- **INSERT/UPDATE**:以隐式确认执行
3765- **DELETE/DROP/ALTER**:需要**用户显式确认**(Human-in-the-Loop)
3766
3767### 聊天示例
3768
3769\`\`\`
3770显示过去 24 小时内注册的所有用户
3771\`\`\`
3772
3773AI 会执行:
3774\`\`\`sql
3775SELECT * FROM users WHERE created_at > NOW() - INTERVAL '24 hours' ORDER BY created_at DESC;
3776\`\`\`
3777
3778## 迁移
3779
3780AI 会自动处理数据库结构迁移。当你请求添加字段或修改表时,智能体会:
3781
37821. 读取现有结构
37832. 生成 SQL 迁移脚本
37843. 执行迁移(破坏性操作需确认)
3785
3786> [!WARNING] 切勿分享数据库凭据。始终使用环境变量。Coderblock 会自动管理它们。
3787`},"sql-queries":{es:`# Consultas SQL
3788
3789\`\`\`anim
3790database
3791\`\`\`
3792
3793Puedes pedir a la IA que cree y modifique tablas, escriba consultas y gestione migraciones.
3794
3795## Ejemplos
3796
3797\`\`\`sql
3798-- Crear una tabla de usuarios
3799CREATE TABLE users (
3800  id SERIAL PRIMARY KEY,
3801  email VARCHAR(255) UNIQUE NOT NULL,
3802  name VARCHAR(255),
3803  created_at TIMESTAMP DEFAULT NOW()
3804);
3805\`\`\`
3806
3807## Migraciones
3808
3809La IA puede generar scripts de migración para cambios de esquema:
3810
3811\`\`\`
3812Añade un campo "avatar_url" a la tabla users
3813\`\`\`
3814
3815> [!TIP] La IA lee el esquema existente antes de hacer cambios, garantizando la coherencia.
3816`,fr:`# Requêtes SQL
3817
3818\`\`\`anim
3819database
3820\`\`\`
3821
3822Tu peux demander à l'IA de créer et modifier des tables, d'écrire des requêtes et de gérer les migrations.
3823
3824## Exemples
3825
3826\`\`\`sql
3827-- Créer une table utilisateurs
3828CREATE TABLE users (
3829  id SERIAL PRIMARY KEY,
3830  email VARCHAR(255) UNIQUE NOT NULL,
3831  name VARCHAR(255),
3832  created_at TIMESTAMP DEFAULT NOW()
3833);
3834\`\`\`
3835
3836## Migrations
3837
3838L'IA peut générer des scripts de migration pour les changements de schéma :
3839
3840\`\`\`
3841Ajoute un champ « avatar_url » à la table users
3842\`\`\`
3843
3844> [!TIP] L'IA lit le schéma existant avant d'apporter des changements, garantissant la cohérence.
3845`,de:`# SQL-Abfragen
3846
3847\`\`\`anim
3848database
3849\`\`\`
3850
3851Du kannst die KI bitten, Tabellen zu erstellen und zu ändern, Abfragen zu schreiben und Migrationen zu verwalten.
3852
3853## Beispiele
3854
3855\`\`\`sql
3856-- Eine Nutzer-Tabelle erstellen
3857CREATE TABLE users (
3858  id SERIAL PRIMARY KEY,
3859  email VARCHAR(255) UNIQUE NOT NULL,
3860  name VARCHAR(255),
3861  created_at TIMESTAMP DEFAULT NOW()
3862);
3863\`\`\`
3864
3865## Migrationen
3866
3867Die KI kann Migrationsskripte für Schemaänderungen generieren:
3868
3869\`\`\`
3870Füge ein Feld „avatar_url" zur Tabelle users hinzu
3871\`\`\`
3872
3873> [!TIP] Die KI liest das bestehende Schema, bevor sie Änderungen vornimmt, und sorgt so für Konsistenz.
3874`,zh:`# SQL 查询
3875
3876\`\`\`anim
3877database
3878\`\`\`
3879
3880你可以让 AI 创建和修改表、编写查询以及管理迁移。
3881
3882## 示例
3883
3884\`\`\`sql
3885-- 创建一个用户表
3886CREATE TABLE users (
3887  id SERIAL PRIMARY KEY,
3888  email VARCHAR(255) UNIQUE NOT NULL,
3889  name VARCHAR(255),
3890  created_at TIMESTAMP DEFAULT NOW()
3891);
3892\`\`\`
3893
3894## 迁移
3895
3896AI 可以为结构更改生成迁移脚本:
3897
3898\`\`\`
3899给 users 表添加一个 "avatar_url" 字段
3900\`\`\`
3901
3902> [!TIP] AI 会在更改前读取现有结构,确保一致性。
3903`},"env-vars":{es:`# Variables de entorno
3904
3905\`\`\`anim
3906secrets
3907\`\`\`
3908
3909Las variables de entorno te permiten configurar tu app sin exponer credenciales en el código.
3910
3911## Cómo configurarlas
3912
39131. Ve a los **Ajustes** del proyecto
39142. Sección **"Variables de entorno"**
39153. Añade clave y valor
39164. Las variables están disponibles en vista previa y producción
3917
3918## Variables comunes
3919
3920| Variable | Uso |
3921|----------|-------|
3922| \`DATABASE_URL\` | Conexión a la base de datos |
3923| \`STRIPE_SECRET_KEY\` | Pagos con Stripe |
3924| \`RESEND_API_KEY\` | Envío de emails |
3925| \`NEON_DATABASE_URL\` | Cadena de conexión de NeonDB |
3926
3927> [!DANGER] Nunca pongas claves API directamente en el código fuente. Usa siempre variables de entorno.
3928`,fr:`# Variables d'environnement
3929
3930\`\`\`anim
3931secrets
3932\`\`\`
3933
3934Les variables d'environnement te permettent de configurer ton app sans exposer d'identifiants dans le code.
3935
3936## Comment les configurer
3937
39381. Va dans les **Paramètres** du projet
39392. Section **« Variables d'environnement »**
39403. Ajoute une clé et une valeur
39414. Les variables sont disponibles en aperçu et en production
3942
3943## Variables courantes
3944
3945| Variable | Usage |
3946|----------|-------|
3947| \`DATABASE_URL\` | Connexion à la base de données |
3948| \`STRIPE_SECRET_KEY\` | Paiements Stripe |
3949| \`RESEND_API_KEY\` | Envoi d'e-mails |
3950| \`NEON_DATABASE_URL\` | Chaîne de connexion NeonDB |
3951
3952> [!DANGER] Ne mets jamais de clés API directement dans le code source. Utilise toujours des variables d'environnement.
3953`,de:`# Umgebungsvariablen
3954
3955\`\`\`anim
3956secrets
3957\`\`\`
3958
3959Umgebungsvariablen erlauben dir, deine App zu konfigurieren, ohne Zugangsdaten im Code offenzulegen.
3960
3961## So konfigurierst du sie
3962
39631. Gehe zu den **Einstellungen** des Projekts
39642. Abschnitt **„Umgebungsvariablen"**
39653. Füge Schlüssel und Wert hinzu
39664. Die Variablen sind in Vorschau und Produktion verfügbar
3967
3968## Häufige Variablen
3969
3970| Variable | Verwendung |
3971|----------|-------|
3972| \`DATABASE_URL\` | Datenbankverbindung |
3973| \`STRIPE_SECRET_KEY\` | Stripe-Zahlungen |
3974| \`RESEND_API_KEY\` | E-Mail-Versand |
3975| \`NEON_DATABASE_URL\` | NeonDB-Verbindungsstring |
3976
3977> [!DANGER] Setze API-Schlüssel niemals direkt in den Quellcode. Nutze immer Umgebungsvariablen.
3978`,zh:`# 环境变量
3979
3980\`\`\`anim
3981secrets
3982\`\`\`
3983
3984环境变量让你在不将凭据暴露在代码中的情况下配置你的应用。
3985
3986## 如何配置
3987
39881. 进入项目**设置**
39892. **“环境变量”**部分
39903. 添加键和值
39914. 变量在预览和生产环境中均可用
3992
3993## 常见变量
3994
3995| 变量 | 用途 |
3996|----------|-------|
3997| \`DATABASE_URL\` | 数据库连接 |
3998| \`STRIPE_SECRET_KEY\` | Stripe 支付 |
3999| \`RESEND_API_KEY\` | 邮件发送 |
4000| \`NEON_DATABASE_URL\` | NeonDB 连接字符串 |
4001
4002> [!DANGER] 切勿将 API 密钥直接写入源代码。始终使用环境变量。
4003`},secrets:{es:`# Secretos
4004
4005\`\`\`anim
4006secrets
4007\`\`\`
4008
4009Los secretos son variables de entorno sensibles con protección adicional.
4010
4011## Diferencia entre Variables y Secretos
4012
4013- **Variables**: visibles en los ajustes, para configuración genérica
4014- **Secretos**: enmascarados tras guardarlos, para claves API y credenciales
4015
4016## Buenas prácticas
4017
4018- Usa secretos para todas las claves API de terceros
4019- Rota las claves periódicamente
4020- Nunca registres (log) los valores de los secretos
4021
4022> [!WARNING] Los secretos no se pueden leer tras guardarlos. Si pierdes una clave, tendrás que regenerarla desde el proveedor.
4023`,fr:`# Secrets
4024
4025\`\`\`anim
4026secrets
4027\`\`\`
4028
4029Les secrets sont des variables d'environnement sensibles avec une protection supplémentaire.
4030
4031## Différence entre Variables et Secrets
4032
4033- **Variables** : visibles dans les paramètres, pour la configuration générique
4034- **Secrets** : masqués après enregistrement, pour les clés API et les identifiants
4035
4036## Bonnes pratiques
4037
4038- Utilise des secrets pour toutes les clés API tierces
4039- Effectue une rotation régulière des clés
4040- Ne journalise jamais les valeurs des secrets
4041
4042> [!WARNING] Les secrets ne peuvent pas être lus après enregistrement. Si tu perds une clé, tu devras la régénérer depuis le fournisseur.
4043`,de:`# Secrets
4044
4045\`\`\`anim
4046secrets
4047\`\`\`
4048
4049Secrets sind sensible Umgebungsvariablen mit zusätzlichem Schutz.
4050
4051## Unterschied zwischen Variablen und Secrets
4052
4053- **Variablen**: in den Einstellungen sichtbar, für generische Konfiguration
4054- **Secrets**: nach dem Speichern maskiert, für API-Schlüssel und Zugangsdaten
4055
4056## Best Practices
4057
4058- Nutze Secrets für alle Drittanbieter-API-Schlüssel
4059- Rotiere Schlüssel regelmäßig
4060- Logge niemals Secret-Werte
4061
4062> [!WARNING] Secrets können nach dem Speichern nicht mehr gelesen werden. Verlierst du einen Schlüssel, musst du ihn beim Anbieter neu generieren.
4063`,zh:`# 密钥
4064
4065\`\`\`anim
4066secrets
4067\`\`\`
4068
4069密钥是带有额外保护的敏感环境变量。
4070
4071## 变量与密钥的区别
4072
4073- **变量**:在设置中可见,用于通用配置
4074- **密钥**:保存后被遮罩,用于 API 密钥和凭据
4075
4076## 最佳实践
4077
4078- 对所有第三方 API 密钥使用密钥
4079- 定期轮换密钥
4080- 切勿记录(log)密钥的值
4081
4082> [!WARNING] 密钥保存后无法再读取。如果你丢失了某个密钥,需要从提供商处重新生成。
4083`},payments:{es:`# Aceptar pagos en tu app
4084
4085\`\`\`anim
4086payment-funnel
4087\`\`\`
4088
4089Con Coderblock puedes añadir pagos reales (únicos y suscripciones) a tu app solo pidiéndolo en el chat. La integración usa **Stripe**: en test funciona al instante sin configuración, y al pasar a producción los ingresos van directos a tu **propia cuenta dedicada** — Coderblock no añade comisiones extra.
4090
4091## Inicio rápido
4092
4093Dile al chat qué quieres vender, por ejemplo:
4094
4095\`\`\`
4096Añade una suscripción Premium a 9,90 €/mes y desbloquea la sección Informes solo para suscriptores
4097\`\`\`
4098
4099\`\`\`
4100Vende mi ebook por 19 € con un botón "Comprar ahora"
4101\`\`\`
4102
4103La IA se encarga de todo: crea los productos y precios **reales** en Stripe, genera el checkout y las páginas de éxito/cancelación, prepara la base de datos para pedidos y suscripciones — y el webhook que confirma los pagos ya está activo, sin que tengas que hacer nada.
4104
4105## Cero configuración: en test no hace falta nada
4106
4107\`\`\`anim
4108golive
4109\`\`\`
4110
4111Literalmente nada: **sin cuenta de Stripe, sin claves, sin formularios, sin activación**. Pide los pagos en el chat y funcionan: productos, precios y checkout corren en un entorno de test de Stripe gestionado por Coderblock, aislado por proyecto. Los webhooks sencillamente no existen para ti: la plataforma los gestiona.
4112
4113**Tu** cuenta de Stripe dedicada nace solo cuando quieres cobrar tarjetas **reales**: desde **Backend → Payments** completas la activación guiada de Stripe (datos del negocio, cuenta bancaria) — el único paso que verás, necesario solo al pasar a producción. Los ingresos van directos a ti; Coderblock no añade comisiones.
4114
4115### Ya tengo una cuenta de Stripe — ¿puedo usar la mía?
4116
4117Sí (modo avanzado): díselo a la IA y te pedirá tu **Secret Key** mediante un formulario seguro en el chat (Stripe Dashboard → Developers → API keys; usa la \`sk_test_...\` mientras construyes).
4118
4119> [!WARNING] NUNCA pegues tu clave secreta como mensaje de chat. Trátala como las llaves de tu casa: solo el formulario seguro la guarda cifrada.
4120
4121En este modo también el **webhook** se registra automáticamente.
4122
4123## Probar los pagos
4124
4125Los pagos de test funcionan tanto en la **vista previa** como en la app **publicada**:
4126
4127- Tarjeta de test: \`4242 4242 4242 4242\`, cualquier caducidad futura, cualquier CVC
4128- Sin cargos reales
4129- Ve los productos y el estado en la pestaña **Backend → Payments** del editor; los pedidos y suscripciones llegan a la base de datos de tu app
4130
4131## Cómo funciona el mecanismo (siempre dos entornos)
4132
4133Tu app tiene **dos entornos de pago paralelos**, activos a la vez:
4134
4135| | Entorno TEST | Entorno LIVE |
4136|---|---|---|
4137| Dónde | Vista previa del editor (y la app publicada antes de producción) | App publicada, tras pasar a producción |
4138| Cuenta Stripe | Entorno gestionado por Coderblock, aislado por proyecto | **Tu** cuenta dedicada |
4139| Tarjetas | Solo de test (\`4242 4242 4242 4242\`) | Tarjetas reales |
4140| Configuración | Ninguna | Activación guiada única |
4141
4142Reglas importantes:
4143
4144- **La vista previa SIEMPRE paga en test**, incluso tras pasar a producción: puedes seguir probando cambios en el checkout para siempre, sin riesgo de cargos reales. Las tarjetas reales solo funcionan en la app publicada.
4145- Los pedidos/suscripciones de test y reales llegan a las **mismas tablas** de tu base de datos, pero cada fila lleva un campo \`livemode\`: \`false\` = pago de test, \`true\` = dinero real. Siempre puedes distinguirlos (y, si quieres, restringir contenido de producción solo a suscripciones reales — basta pedirlo en el chat).
4146- El **webhook** que confirma los pagos y escribe en tu base de datos es único y gestionado por la plataforma: cubre ambos entornos sin ninguna configuración por tu parte.
4147- Los **price id** en el código de tu app siguen siendo los de test incluso tras pasar a producción: la plataforma los traduce automáticamente a sus gemelos live en el momento del checkout. Cero cambios de código.
4148
4149## Dónde ver tus ingresos
4150
4151**Backend Manager → Payments** muestra: modo activo (TEST/LIVE), salud del webhook, productos y precios, pagos y suscripciones recientes — sin salir de Coderblock.
4152
4153## Problemas comunes
4154
4155| Error | Causa | Solución |
4156|---|---|---|
4157| \`PRICE_KEY_MODE_MISMATCH\` | El price id del código no existe en el entorno activo | Pide al chat: *"vuelve a crear el producto y actualiza el price id"* |
4158| Pago correcto pero ningún pedido registrado | Evento del webhook aún no procesado | Espera unos segundos y recarga; si persiste, repórtalo en el chat |
4159
4160¿Listo para cobrar tarjetas reales? Lee [Pasar a producción](/docs/payments-golive).
4161`,fr:`# Accepter les paiements dans ton app
4162
4163\`\`\`anim
4164payment-funnel
4165\`\`\`
4166
4167Avec Coderblock, tu peux ajouter de vrais paiements (uniques et abonnements) à ton app rien qu'en le demandant dans le chat. L'intégration utilise **Stripe** : en test ça marche tout de suite sans configuration, et au passage en production les revenus vont directement sur ton **propre compte dédié** — Coderblock n'ajoute aucune commission.
4168
4169## Démarrage rapide
4170
4171Dis au chat ce que tu veux vendre, par exemple :
4172
4173\`\`\`
4174Ajoute un abonnement Premium à 9,90 €/mois et débloque la section Rapports uniquement pour les abonnés
4175\`\`\`
4176
4177\`\`\`
4178Vends mon ebook à 19 € avec un bouton « Acheter maintenant »
4179\`\`\`
4180
4181L'IA s'occupe de tout : elle crée les produits et prix **réels** sur Stripe, génère le checkout et les pages succès/annulation, prépare la base de données pour les commandes et abonnements — et le webhook qui confirme les paiements est déjà actif, sans rien à faire de ton côté.
4182
4183## Zéro configuration : rien à faire en test
4184
4185\`\`\`anim
4186golive
4187\`\`\`
4188
4189Littéralement rien : **pas de compte Stripe, pas de clés, pas de formulaires, pas d'activation**. Demande les paiements dans le chat et ils marchent : produits, prix et checkout tournent sur un environnement de test Stripe géré par Coderblock, isolé par projet. Les webhooks n'existent tout simplement pas pour toi : la plateforme les gère.
4190
4191**Ton** compte Stripe dédié ne naît que lorsque tu veux encaisser de **vraies** cartes : depuis **Backend → Payments** tu complètes l'activation guidée de Stripe (infos entreprise, compte bancaire) — la seule étape que tu verras, nécessaire seulement au passage en production. Les revenus vont directement à toi ; Coderblock n'ajoute pas de commission.
4192
4193### J'ai déjà un compte Stripe — puis-je utiliser le mien ?
4194
4195Oui (mode avancé) : dis-le à l'IA et elle te demandera ta **Secret Key** via un formulaire sécurisé dans le chat (Stripe Dashboard → Developers → API keys ;
4195 utilise la \`sk_test_...\` pendant le développement).
4196
4197> [!WARNING] Ne colle JAMAIS ta clé secrète comme message de chat. Traite-la comme les clés de ta maison : seul le formulaire sécurisé la stocke chiffrée.
4198
4199Dans ce mode aussi, le **webhook** est enregistré automatiquement.
4200
4201## Tester les paiements
4202
4203Les paiements de test fonctionnent aussi bien dans l'**aperçu** que sur l'app **publiée** :
4204
4205- Carte de test : \`4242 4242 4242 4242\`, n'importe quelle date future, n'importe quel CVC
4206- Aucun débit réel
4207- Vois les produits et le statut dans l'onglet **Backend → Payments** de l'éditeur ; les commandes et abonnements arrivent dans la base de données de ton app
4208
4209## Comment fonctionne le mécanisme (toujours deux environnements)
4210
4211Ton app a **deux environnements de paiement parallèles**, actifs en même temps :
4212
4213| | Environnement TEST | Environnement LIVE |
4214|---|---|---|
4215| Où | Aperçu de l'éditeur (et l'app publiée avant le passage en prod) | App publiée, après le passage en prod |
4216| Compte Stripe | Environnement géré par Coderblock, isolé par projet | **Ton** compte dédié |
4217| Cartes | Test uniquement (\`4242 4242 4242 4242\`) | Vraies cartes |
4218| Configuration | Aucune | Activation guidée unique |
4219
4220Règles importantes :
4221
4222- **L'aperçu paie TOUJOURS en test**, même après le passage en prod : tu peux continuer à tester les changements du checkout pour toujours, sans risque de débit réel. Les vraies cartes ne marchent que sur l'app publiée.
4223- Les commandes/abonnements de test et réels arrivent dans les **mêmes tables** de ta base de données, mais chaque ligne porte un champ \`livemode\` : \`false\` = paiement de test, \`true\` = argent réel. Tu peux toujours les distinguer (et, si tu veux, réserver le contenu de production aux seuls abonnements réels — demande-le dans le chat).
4224- Le **webhook** qui confirme les paiements et écrit dans ta base de données est unique et géré par la plateforme : il couvre les deux environnements sans aucune configuration de ta part.
4225- Les **price id** dans le code de ton app restent ceux de test même après le passage en prod : la plateforme les traduit automatiquement vers leurs jumeaux live au moment du checkout. Zéro changement de code.
4226
4227## Où voir tes revenus
4228
4229**Backend Manager → Payments** affiche : mode actif (TEST/LIVE), santé du webhook, produits et prix, paiements et abonnements récents — sans quitter Coderblock.
4230
4231## Problèmes courants
4232
4233| Erreur | Cause | Solution |
4234|---|---|---|
4235| \`PRICE_KEY_MODE_MISMATCH\` | Le price id du code n'existe pas dans l'environnement actif | Demande au chat : *« recrée le produit et mets à jour le price id »* |
4236| Paiement réussi mais aucune commande enregistrée | Événement webhook pas encore traité | Attends quelques secondes et recharge ; si ça persiste, signale-le dans le chat |
4237
4238Prêt à encaisser de vraies cartes ? Lis [Passer en live](/docs/payments-golive).
4239`,de:`# Zahlungen in deiner App annehmen
4240
4241\`\`\`anim
4242payment-funnel
4243\`\`\`
4244
4245Mit Coderblock kannst du echte Zahlungen (Einmalzahlungen und Abos) zu deiner App hinzufügen, indem du einfach im Chat danach fragst. Die Integration nutzt **Stripe**: im Test funktioniert sie sofort ohne Konfiguration, und beim Go-Live gehen die Einnahmen direkt auf dein **eigenes dediziertes Konto** — Coderblock erhebt keine zusätzlichen Gebühren.
4246
4247## Schnellstart
4248
4249Sag dem Chat, was du verkaufen willst, zum Beispiel:
4250
4251\`\`\`
4252Füge ein Premium-Abo für 9,90 €/Monat hinzu und schalte den Berichte-Bereich nur für Abonnenten frei
4253\`\`\`
4254
4255\`\`\`
4256Verkaufe mein E-Book für 19 € mit einem „Jetzt kaufen"-Button
4257\`\`\`
4258
4259Die KI übernimmt alles: sie erstellt die **echten** Produkte und Preise in Stripe, generiert den Checkout und die Erfolg-/Abbruch-Seiten, bereitet die Datenbank für Bestellungen und Abos vor — und der Webhook, der Zahlungen bestätigt, ist bereits aktiv, ohne dass du etwas tun musst.
4260
4261## Null Einrichtung: im Test ist nichts nötig
4262
4263\`\`\`anim
4264golive
4265\`\`\`
4266
4267Buchstäblich nichts: **kein Stripe-Konto, keine Schlüssel, keine Formulare, keine Aktivierung**. Frag im Chat nach Zahlungen, und sie funktionieren: Produkte, Preise und Checkout laufen in einer von Coderblock verwalteten Stripe-Testumgebung, pro Projekt isoliert. Webhooks existieren für dich schlicht nicht: die Plattform kümmert sich darum.
4268
4269**Dein** dediziertes Stripe-Konto entsteht erst, wenn du **echte** Karten belasten willst: unter **Backend → Payments** durchläufst du Stripes geführte Aktivierung (Geschäftsdaten, Bankkonto) — der einzige Schritt, den du je siehst, nur beim Go-Live nötig. Die Einnahmen gehen direkt an dich; Coderblock erhebt keine Gebühren.
4270
4271### Ich habe schon ein Stripe-Konto — kann ich meins nutzen?
4272
4273Ja (fortgeschrittener Modus): sag es der KI, und sie fragt über ein sicheres Formular im Chat nach deinem **Secret Key** (Stripe Dashboard → Developers → API keys; nutze beim Bauen den \`sk_test_...\`).
4274
4275> [!WARNING] Füge deinen geheimen Schlüssel NIEMALS als Chatnac
4275hricht ein. Behandle ihn wie deine Haustürschlüssel: nur das sichere Formular speichert ihn verschlüsselt.
4276
4277Auch in diesem Modus wird der **Webhook** automatisch registriert.
4278
4279## Zahlungen testen
4280
4281Testzahlungen funktionieren sowohl in der **Vorschau** als auch in der **veröffentlichten** App:
4282
4283- Testkarte: \`4242 4242 4242 4242\`, beliebiges zukünftiges Ablaufdatum, beliebiger CVC
4284- Keine echten Belastungen
4285- Sieh Produkte und Status im Tab **Backend → Payments** des Editors; Bestellungen und Abos landen in der Datenbank deiner App
4286
4287## Wie der Mechanismus funktioniert (immer zwei Umgebungen)
4288
4289Deine App hat **zwei parallele Zahlungsumgebungen**, gleichzeitig aktiv:
4290
4291| | TEST-Umgebung | LIVE-Umgebung |
4292|---|---|---|
4293| Wo | Editor-Vorschau (und die veröffentlichte App vor dem Go-Live) | Veröffentlichte App, nach dem Go-Live |
4294| Stripe-Konto | Von Coderblock verwaltete Umgebung, pro Projekt isoliert | **Dein** dediziertes Konto |
4295| Karten | Nur Test (\`4242 4242 4242 4242\`) | Echte Karten |
4296| Einrichtung | Keine | Einmalige geführte Aktivierung |
4297
4298Wichtige Regeln:
4299
4300- **Die Vorschau zahlt IMMER im Test**, auch nach dem Go-Live: du kannst Checkout-Änderungen für immer risikofrei testen. Echte Karten funktionieren nur in der veröffentlichten App.
4301- Test- und echte Bestellungen/Abos landen in **denselben Tabellen** deiner Datenbank, aber jede Zeile trägt ein Feld \`livemode\`: \`false\` = Testzahlung, \`true\` = echtes Geld. Du kannst sie immer unterscheiden (und, wenn du willst, Produktionsinhalte nur echten Abos vorbehalten — frag einfach im Chat).
4302- Der **Webhook**, der Zahlungen bestätigt und in deine Datenbank schreibt, ist einzeln und plattformverwaltet: er deckt beide Umgebungen ab, ohne Konfiguration deinerseits.
4303- Die **price ids** im Code deiner App bleiben auch nach dem Go-Live die Test-ids: die Plattform übersetzt sie beim Checkout automatisch in ihre Live-Zwillinge. Null Codeänderungen.
4304
4305## Wo du deine Einnahmen siehst
4306
4307**Backend Manager → Payments** zeigt: aktiven Modus (TEST/LIVE), Webhook-Zustand, Produkte und Preise, kürzliche Zahlungen und Abos — ohne Coderblock zu verlassen.
4308
4309## Häufige Probleme
4310
4311| Fehler | Ursache | Lösung |
4312|---|---|---|
4313| \`PRICE_KEY_MODE_MISMATCH\` | Die price id im Code existiert in der aktiven Umgebung nicht | Frag den Chat: *„erstelle das Produkt neu und aktualisiere die price id"* |
4314| Zahlung erfolgreich, aber keine Bestellung erfasst | Webhook-Ereignis noch nicht verarbeitet | Warte ein paar Sekunden und lade neu; bleibt es bestehen, melde es im Chat |
4315
4316Bereit für echte Karten? Lies [Go-Live](/docs/payments-golive).
4317`,zh:`# 在你的应用中接受支付
4318
4319\`\`\`anim
4320payment-funnel
4321\`\`\`
4322
4323使用 Coderblock,你只需在聊天中提出,就能为应用添加真实支付(一次性与订阅)。集成使用 **Stripe**:测试模式无需配置即可立即使用;正式上线后,收入直接进入你**自己的专属账户**——Coderblock 不收取额外费用。
4324
4325## 快速开始
4326
4327告诉聊天你想卖什么,例如:
4328
4329\`\`\`
4330添加一个每月 9.90 € 的 Premium 订阅,并仅为订阅者解锁“报表”部分
4331\`\`\`
4332
4333\`\`\`
4334以 19 € 出售我的电子书,配一个“立即购买”按钮
4335\`\`\`
4336
4337AI 会处理一切:在 Stripe 上创建**真实的**产品与价格,生成结账页与成功/取消页,为订单和订阅准备好数据库——而且确认支付的 webhook 已经就绪,你无需任何操作。
4338
4339## 零配置:测试模式无需任何东西
4340
4341\`\`\`anim
4342golive
4343\`\`\`
4344
4345真的什么都不用:**无需 Stripe 账户、无需密钥、无需表单、无需激活**。在聊天中请求支付即可使用:产品、价格与结账运行在由 Coderblock 托管、按项目隔离的 Stripe 测试环境中。对你而言 webhook 根本不存在:由平台处理。
4346
4347只有当你想收取**真实**卡付款时,**你**的专属 Stripe 账户才会诞生:在 **Backend → Payments** 中完成 Stripe 的引导式激活(企业信息、银行账户)——这是你唯一会看到的步骤,仅在上线时需要。收入直接归你;Coderblock 不收取任何费用。
4348
4349### 我已经有 Stripe 账户——能用我自己的吗?
4350
4351可以(高级模式):告诉 AI,它会通过聊天中的安全表单向你索取 **Secret Key**(Stripe Dashboard → Developers → API keys;开发时使用 \`sk_test_...\`)。
4352
4353> [!WARNING] 切勿把你的密钥作为聊天消息粘贴。把它当作你家的钥匙:只有安全表单才会加密存储它。
4354
4355在这种模式下,**webhook** 同样会自动注册。
4356
4357## 测试支付
4358
4359测试支付在**预览**和**已发布**的应用中都可用:
4360
4361- 测试卡:\`4242 4242 4242 4242\`,任意将来的有效期,任意 CVC
4362- 不产生真实扣款
4363- 在编辑器的 **Backend → Payments** 标签查看产品与状态;订单和订阅会进入你应用的数据库
4364
4365## 机制如何运作(始终两个环境)
4366
4367你的应用拥有**两个并行的支付环境**,同时激活:
4368
4369| | TEST 环境 | LIVE 环境 |
4370|---|---|---|
4371| 位置 | 编辑器预览(以及上线前已发布的应用) | 已发布的应用,上线之后 |
4372| Stripe 账户 | 由 Coderblock 托管、按项目隔离的环境 | **你**的专属账户 |
4373| 卡 | 仅测试卡(\`4242 4242 4242 4242\`) | 真实卡 |
4374| 配置 | 无 | 一次性引导激活 |
4375
4376重要规则:
4377
4378- **预览始终以测试方式支付**,即使上线之后也是如此:你可以永远无风险地测试结账更改。真实卡只在已发布的应用中生效。
4379- 测试与真实的订单/订阅进入你数据库的**同一批表**,但每行都带有 \`livemode\` 字段:\`false\` = 测试支付,\`true\` = 真实资金。你始终能区分它们(如果愿意,还可以只对真实订阅开放生产内容——在聊天中提出即可)。
4380- 确认支付并写入数据库的 **webhook** 是唯一的、由平台托管的:它覆盖两个环境,你无需任何配置。
4381- 应用代码中的 **price id** 即使上线后仍是测试的:平台会在结账时自动将其转换为对应的 live 版本。零代码更改。
4382
4383## 在哪里查看你的收入
4384
4385**Backend Manager → Payments** 会显示:当前模式(TEST/LIVE)、webhook 健康状况、产品与价格、近期支付与订阅——无需离开 Coderblock。
4386
4387## 常见问题
4388
4389| 错误 | 原因 | 解决 |
4390|---|---|---|
4391| \`PRICE_KEY_MODE_MISMATCH\` | 代码中的 price id 在当前环境中不存在 | 让聊天:*“重新创建产品并更新 price id”* |
4392| 支付成功但没有记录订单 | webhook 事件尚未处理 | 等几秒并刷新;若仍存在,在聊天中反馈 |
4393
4394准备好收取真实卡付款了吗?阅读[正式上线](/docs/payments-golive)。
4395`},"payments-golive":{es:`# Pasar a producción con los pagos
4396
4397\`\`\`anim
4398golive
4399\`\`\`
4400
4401Una vez que tu app funciona con pagos de test, pasar a ingresos reales lleva minutos. Es el único momento que necesita configuración — y es guiado.
4402
4403## Cómo funciona el paso a producción
4404
4405Al pasar a producción, Coderblock crea **tu propia cuenta de Stripe dedicada** (las pruebas corrían en un entorno gestionado por la plataforma): la cuenta es tuya, los ingresos llegan a tu cuenta bancaria y obtienes tu propio panel de Stripe.
4406
44071. **Inicia la activación** — en **Backend → Payments** haz clic en "Activar pagos reales": un breve formulario (email y país) crea tu cuenta de Stripe dedicada.
44082. **Completa la verificación de Stripe** — se abre el flujo guiado oficial de Stripe: datos del negocio o personales, documento de identidad, cuenta bancaria. Es el KYC exigido legalmente a quien cobra tarjetas — se hace una vez.
44093. **Productos y precios: automático** — Coderblock copia por sí mismo tus productos y precios de test a la nueva cuenta y mapea los price id. **El código de tu app no camb
4409ia**: el checkout usa automáticamente los precios live.
44104. **Páginas legales** — Stripe exige que tu app publicada tenga política de privacidad, términos de servicio y política de reembolso. Pide al chat que las añada si faltan.
44115. **Prueba final con una tarjeta real** — haz una pequeña compra real (puedes reembolsarla enseguida desde tu panel de Stripe) y verifica: el pago en tu panel de Stripe, el pedido registrado en la app.
4412
4413## Impuestos y facturación: lo que debes saber
4414
4415Coderblock **no es el vendedor** de tus productos: cobras a los clientes directamente en tu propia cuenta de Stripe, así que **el IVA/impuestos y las facturas son tu responsabilidad**, como para cualquier negocio.
4416
4417- **[Stripe Tax](https://stripe.com/tax)**: cálculo automático de IVA/impuestos por país — actívalo desde el panel, recomendado si vendes internacionalmente
4418- **Facturas**: Stripe puede emitir recibos automáticos; la facturación electrónica de cada país puede requerir herramientas dedicadas (pide al chat que integre una vía API)
4419- Ante la duda, habla con tu asesor antes de pasar a producción
4420
4421## ¿Cuándo cambia, exactamente?
4422
4423No hay un interruptor que accionar: cuando Stripe termina de verificar tu cuenta, avisa a Coderblock automáticamente y **desde ese momento los checkout de la app publicada corren en tu cuenta** — tarjetas reales, ingresos a tu banco. Puedes seguir el estado en **Backend → Payments**.
4424
4425## ¿Y los pagos de test?
4426
4427Siguen funcionando exactamente igual, en paralelo — para siempre: **la vista previa del editor siempre paga en test** con la tarjeta \`4242 4242 4242 4242\`, incluso tras pasar a producción, para que sigas experimentando sin riesgo. Las filas de test en tu base de datos se marcan \`livemode = false\`, las reales \`livemode = true\`. No hay nada que "cambiar".
4428`,fr:`# Passer en live avec les paiements
4429
4430\`\`\`anim
4431golive
4432\`\`\`
4433
4434Une fois que ton app fonctionne avec des paiements de test, passer aux revenus réels prend quelques minutes. C'est le seul moment qui nécessite une configuration — et c'est guidé.
4435
4436## Comment fonctionne le passage en live
4437
4438Au passage en live, Coderblock crée **ton propre compte Stripe dédié** (les tests tournaient sur un environnement géré par la plateforme) : le compte t'appartient, les revenus arrivent sur ton compte bancaire, et tu obtiens ton propre tableau de bord Stripe.
4439
44401. **Lance l'activation** — dans **Backend → Payments** clique sur « Activer les paiements réels » : un court formulaire (e-mail et pays) crée ton compte Stripe dédié.
44412. **Complète la vérification de Stripe** — le flux guidé officiel de Stripe s'ouvre : infos entreprise ou personnelles, pièce d'identité, compte bancaire. C'est le KYC légalement requis pour quiconque encaisse des cartes — fait une seule fois.
44423. **Produits et prix : automatique** — Coderblock copie lui-même tes produits et prix de test vers le nouveau compte et mappe les price id. **Le code de ton app ne change pas** : le checkout utilise automatiquement les prix live.
44434. **Pages légales** — Stripe exige que ton app publiée ait une politique de confidentialité, des conditions d'utilisation et une politique de remboursement. Demande au chat de les ajouter si elles manquent.
44445. **Test final avec une vraie carte** — fais un petit achat réel (tu peux le rembourser aussitôt depuis ton tableau de bord Stripe) et vérifie : le paiement dans ton tableau de bord Stripe, la commande enregistrée dans l'app.
4445
4446## Taxes et facturation : ce que tu dois savoir
4447
4448Coderblock **n'est pas le vendeur** de tes produits : tu encaisses directement les clients sur ton propre compte Stripe, donc **la TVA/taxes et les factures sont ta responsabilité**, comme pour toute entreprise.
4449
4450- **[Stripe Tax](https://stripe.com/tax)** : calcul automatique de la TVA/taxes par pays — active-le depuis le tableau de bord, recommandé si tu vends à l'international
4451- **Factures** : Stripe peut émettre des reçus automatiques ; la facturation électronique propre à chaque pays peut nécessiter des outils dédiés (demande au chat d'en intégrer un via API)
4452- En cas de doute, parle à ton comptable avant de passer en live
4453
4454## Quand ça bascule, exactement ?
4455
4456Il n'y a pas d'interrupteur à actionner : quand Stripe finit de vérifier ton compte, il prévient Coderblock automatiquement et **à partir de ce moment les checkouts de l'app publiée tournent sur ton compte** — vraies cartes, revenus vers ta banque. Tu peux suivre le statut dans **Backend → Payments**.
4457
4458## Et les paiements de test ?
4459
4460Ils continuent de fonctionner exactement comme avant, en parallèle — pour toujours : **l'aperçu de l'éditeur paie toujours en test** avec la carte \`4242 4242 4242 4242\`, même après le passage en live, pour que tu continues à expérimenter sans risque. Les lignes de test dans ta base de données sont marquées \`livemode = false\`, les vraies \`livemode = true\`. Il n'y a rien à « basculer ».
4461`,de:`# Mit Zahlungen live gehen
4462
4463\`\`\`anim
4464golive
4465\`\`\`
4466
4467Sobald deine App mit Testzahlungen funktioniert, dauert der Wechsel zu echten Einnahmen nur Minuten. Es ist der einzige Moment, der Konfiguration braucht — und er ist geführt.
4468
4469## Wie der Go-Live funktioniert
4470
4471Beim Go-Live erstellt Coderblock **dein eigenes dediziertes Stripe-Konto** (die Tests liefen auf einer plattformverwalteten Umgebung): das Konto gehört dir, die Einnahmen landen auf deinem Bankkonto, und du erhältst dein eigenes Stripe-Dashboard.
4472
44731. **Starte die Aktivierung** — klicke in **Backend → Payments** auf „Echte Zahlungen aktivieren": ein kurzes Formular (E-Mail und Land) erstellt dein dediziertes Stripe-Konto.
44742. **Schließe Stripes Verifizierung ab** — der offizielle geführte Ablauf von Stripe öffnet sich: Geschäfts- oder persönliche Daten, Ausweisdokument, Bankkonto. Das ist das gesetzlich vorgeschriebene KYC für alle, die Karten belasten — einmalig.
44753. **Produkte und Preise: automatisch** — Coderblock kopiert deine Testprodukte und -preise selbst in das neue Konto und mappt die price ids. **Der Code deiner App ändert sich nicht**: der Checkout nutzt automatisch die Live-Preise.
44764. **Rechtliche Seiten** — Stripe verlangt, dass deine veröffentlichte App eine Datenschutzerklärung, Nutzungsbedingungen und eine Rückerstattungsrichtlinie hat. Bitte den Chat, sie zu ergänzen, falls sie fehlen.
44775. **Abschlusstest mit echter Karte** — mache einen kleinen echten Kauf (du kannst ihn sofort aus deinem Stripe-Dashboard erstatten) und prüfe: die Zahlung in deinem Stripe-Dashboard, die Bestellung in der App erfasst.
4478
4479## Steuern und Rechnungen: was du wissen musst
4480
4481Coderblock ist **nicht der Verkäufer** deiner Produkte: du belastest die Kunden direkt auf deinem eigenen Stripe-Konto, also **liegen MwSt./Steuern und Rechnungen in deiner Verantwortung**, wie bei jedem Unternehmen.
4482
4483- **[Stripe Tax](https://stripe.com/tax)**: automatische MwSt./Steuerberechnung pro Land — aktiviere es im Dashboard, empfohlen bei internationalem Verkauf
4484- **Rechnungen**: Stripe kann automatische Belege ausstellen; die länderspezifische E-Rechnung kann eigene Tools erfordern (bitte den Chat, eines per API zu integrieren)
4485- Im Zweifel sprich vor dem Go-Live mit deinem Steuerberater
4486
4487## Wann schaltet es genau um?
4488
4489Es gibt keinen Schalter: wenn Stripe die Verifizierung deines Kontos abschließt, benachrichtigt es Coderblock automatisch, und **ab diesem Moment laufen die Checkouts der veröffentlichten App auf deinem Konto** — echte Karten, Einnahmen auf dein Bankkonto. Den Status verfolgst du unter **Backend → Payments**.
4490
4491## Und die Testzahlungen?
4492
4493Sie funktionieren weiter genau wie zuvor, parallel — für immer: **die Editor-Vorschau zahlt immer im Test** mit der Karte \`4242 4242 4242 4242\`, auch nach dem Go-Live, sodass du risikofrei weiter experimentieren kannst. Testzeilen in deiner Datenbank sind mit \`livemode = false\` markiert, echte mit \`livemode = true\`. Es gibt nichts „umzuschalten".
4494`,zh:`# 让支付正式上线
4495
4496\`\`\`anim
4497golive
4498\`\`\`
4499
4500一旦你的应用在测试支付下正常工作,切换到真实收入只需几分钟。这是唯一需要配置的时刻——而且有引导。
4501
4502## 上线如何工作
4503
4504上线时,Coderblock 会创建**你自己的专属 Stripe 账户**(此前测试运行在平台托管的环境上):账户归你所有,收入进入你的银行账户,你也会拥有自己的 Stripe 仪表盘。
4505
45061. **开始激活** —— 在 **Backend → Payments** 中点击“启用真实支付”:一个简短的表单(邮箱与国家)会创建你的专属 Stripe 账户。
45072. **完成 Stripe 的验证** —— 打开 Stripe 官方引导流程:企业或个人信息、身份证件、银行账户。这是对任何收卡者依法要求的 KYC——只需一次。
45083. **产品与价格:自动** —— Coderblock 会自行把你的测试产品与价格复制到新账户,并映射 price id。**你应用的代码不会改变**:结账会自动使用 live 价格。
45094. **法律页面** —— Stripe 要求你已发布的应用具备隐私政策、服务条款和退款政策。如缺失,让聊天帮你添加。
45105. **用真实卡做最终测试** —— 进行一笔小额真实购买(可立即在 Stripe 仪表盘退款)并核实:支付出现在你的 Stripe 仪表盘,订单记录在应用中。
4511
4512## 税务与开票:你需要知道的
4513
4514Coderblock **不是**你产品的销售方:你在自己的 Stripe 账户上直接向客户收款,因此**增值税/销售税与发票由你负责**,与任何企业一样。
4515
4516- **[Stripe Tax](https://stripe.com/tax)**:按国家自动计算增值税/销售税——在仪表盘中启用,若你面向国际销售,推荐使用
4517- **发票**:Stripe 可开具自动收据;各国特定的电子发票可能需要专门工具(让聊天通过 API 集成一个)
4518- 若有疑问,上线前请咨询你的会计
4519
4520## 到底什么时候切换?
4521
4522没有需要拨动的开关:当 Stripe 完成对你账户的验证后,会自动通知 Coderblock,**从那一刻起,已发布应用的结账便在你的账户上运行**——真实卡,收入进入你的银行。你可以在 **Backend → Payments** 中跟踪状态。
4523
4524## 那测试支付呢?
4525
4526它们会一如既往地并行运行——永远如此:**编辑器预览始终以测试方式支付**,使用卡 \`4242 4242 4242 4242\`,即使上线之后也是如此,让你可以无风险地继续试验。数据库中的测试行标记为 \`livemode = false\`,真实行为 \`livemode = true\`。没有什么需要“切换”。
4527`},"stripe-integration":{es:`# Integración de Stripe
4528
4529\`\`\`anim
4530payment-funnel
4531\`\`\`
4532
4533Acepta pagos en tu app con **Stripe**, el procesador de pagos más popular del mundo. Coderblock 
4533incluye un flujo guiado por IA que crea automáticamente tus productos y precios en Stripe, generando código con IDs reales y funcionales.
4534
4535> [!NOTE] Para las **Web apps** (runtime Supabase) los pagos son aún más simples: cero configuración en test y una cuenta dedicada solo al pasar a producción — ver [Aceptar pagos](/docs/payments). Esta página sigue siendo la referencia para el modo avanzado "trae tu propia clave" (BYOK) y los runtimes Python/Node.
4536
4537## Cómo funciona
4538
4539Cuando pides a la IA añadir pagos, el sistema sigue un flujo automatizado:
4540
45411. **La IA pide tu Secret Key** — aparece un campo enmascarado en el chat
45422. **Pegas la clave** — se guarda como secreto del proyecto
45433. **La IA crea productos en Stripe** — productos, precios y payment links se crean directamente en tu cuenta de Stripe
45444. **El código generado usa IDs reales** — sin placeholders, todo funciona de inmediato
4545
4546> [!TIP] Esto significa que no necesitas ir manualmente al panel de Stripe a crear productos: la IA lo hace todo automáticamente.
4547
4548---
4549
4550## Configuración
4551
4552### 1. Crea una cuenta de Stripe
4553
4554Regístrate en [stripe.com](https://stripe.com) si aún no tienes cuenta. Stripe ofrece un entorno de test completo donde puedes probarlo todo sin procesar pagos reales.
4555
4556### 2. Obtén las claves API
4557
4558Desde el [Stripe Dashboard → Developers → API Keys](https://dashboard.stripe.com/apikeys), copia:
4559
4560- **Secret key** (empieza por \`sk_test_...\`): la clave principal que necesita la IA
4561- **Publishable key** (empieza por \`pk_test_...\`): para el frontend
4562
4563> [!INFO] Usa siempre claves de **test** para el desarrollo. Cuando estés listo para producción, reemplázalas por claves **live**.
4564
4565### 3. Introduce las claves en Coderblock
4566
4567Tienes dos opciones:
4568
4569**Opción A (recomendada): vía Chat IA**
4570Simplemente pide a la IA que añada Stripe; aparecerá automáticamente un campo en el chat:
4571\`\`\`
4572Añade pagos con Stripe a mi proyecto
4573\`\`\`
4574
4575**Opción B: manualmente desde Ajustes**
4576Ve a **Ajustes → Secretos** de tu proyecto y añade:
4577- \`STRIPE_SECRET_KEY\` → \`sk_test_...\`
4578- \`STRIPE_PUBLISHABLE_KEY\` → \`pk_test_...\`
4579
4580---
4581
4582## Qué puedes hacer
4583
4584### Pagos únicos
4585
4586Venta de un producto o servicio único. Ejemplo:
4587
4588\`\`\`
4589Crea una página de checkout para vender un curso online por 49 €
4590\`\`\`
4591
4592La IA creará:
4593- Un producto "Curso online" en Stripe
4594- Un precio de 49,00 € (único)
4595- El código de checkout que redirige a Stripe
4596- Páginas de éxito y cancelación
4597
4598### Suscripciones recurrentes
4599
4600Planes con facturación mensual o anual. Ejemplo:
4601
4602\`\`\`
4603Añade suscripciones con 3 planes: Free, Pro a 19 €/mes, Business a 49 €/mes
4604\`\`\`
4605
4606La IA creará:
4607- 3 productos en Stripe (Free, Pro, Business)
4608- Precios recurrentes (mensuales) para cada plan
4609- Una página de precios con comparación de planes
4610- El backend para gestionar el estado de la suscripción
4611- Webhooks para actualizaciones en tiempo real
4612
4613### Payment Link (lo más simple)
4614
4615Si solo quieres un enlace de pago sin código personalizado:
4616
4617\`\`\`
4618Crea un Stripe Payment Link para un producto de 29 €
4619\`\`\`
4620
4621La IA creará el producto y el precio en Stripe, y devolverá una URL lista para usar (p. ej. \`https://buy.stripe.com/xxx\`) que puedes pegar donde quieras.
4622
4623### Stripe Checkout (alojado)
4624
4625La solución más rápida para un checkout completo:
4626
4627\`\`\`
4628Integra Stripe Checkout para mi e-commerce con carrito
4629\`\`\`
4630
4631Stripe Checkout es una página de pago alojada por Stripe: gestiona automáticamente tarjetas, Apple Pay, Google Pay y el cumplimiento PCI.
4632
4633---
4634
4635## Webhooks
4636
4637Los webhooks te permiten recibir notificaciones en tiempo real de Stripe (pago completado, suscripción cancelada, etc.).
4638
4639### Configuración
4640
4641Después de que la IA genere el código del webhook, debes registrar la URL en el panel de Stripe:
4642
46431. Ve a [Stripe Dashboard → Developers → Webhooks](https://dashboard.stripe.com/webhooks)
46442. Haz clic en **"Add endpoint"**
46453. Introduce la URL de tu proyecto: \`https://{tu-id}.coderblock.app/api/payments/webhook\`
46464. Selecciona los eventos a recibir (recomendados: \`checkout.session.completed\`, \`invoice.payment_succeeded\`, \`customer.subscription.deleted\`)
46475. Copia el **Webhook Secret** y añádelo como secreto del proyecto: \`STRIPE_WEBHOOK_SECRET\`
4648
4649> [!WARNING] La URL del webhook debe ser la de **producción** (\`.coderblock.app\`), no la de vista previa (\`.coderblock.dev\`). Los webhooks no funcionan con la vista previa porque Stripe no puede alcanzar la URL de desarrollo.
4650
4651---
4652
4653## Web app Supabase (Edge Functions)
4654
4655En los proyectos con runtime **Supabase**, los pagos se gestionan con dos Edge Functions de Deno en lugar de un servidor backend. Es el patrón validado (estilo Lovable), configurado automáticamente por la IA mediante la skill \`add-stripe-payments-supabase\`.
4656
4657- \`create-checkout\` (\`verify_jwt = true\`) → crea la Stripe Checkout Session y devuelve su URL. Funciona tanto para pagos **únicos** (\`mode: "payment"\`) como para **suscripciones** (\`mode: "subscription"\`).
4658- \`stripe-webhook\` (\`verify_jwt = false\`) → verifica la firma de Stripe y registra pedidos/suscripciones con el cliente service-role. **El webhook es la única fuente de verdad** de que el pago ocurrió — nunca lo confirmes en el lado del cliente.
4659
4660### Secretos necesarios (recogidos en el chat vía HIL)
4661
4662Cuando pides a la IA añadir pagos, aparecen campos seguros Human-in-the-Loop en el chat para pegar los secretos. Se guardan y propagan automáticamente como **secretos de Supabase Edge Function** (\`Deno.env.get\`):
4663
4664| Secreto | Dónde encontrarlo |
4665|--------|------------------|
4666| \`STRIPE_SECRET_KEY\` | Stripe Dashboard → Developers → API keys (\`sk_test_…\` en test) |
4667| \`STRIPE_WEBHOOK_SECRET\` | El signing secret de tu endpoint de webhook (\`whsec_…\`), ver abajo |
4668
46694. Stripe muestra un **Signing secret** (\`whsec_…\`): pégalo en el campo HIL \`STRIPE_WEBHOOK_SECRET\` del chat.
4670
4671> [!TIP] A diferencia del runtime Python, el webhook de Supabase es alcanzable por Stripe incluso antes del despliegue a producción, porque la función vive en tu proyecto Supabase.
4672
4673### Frontend
4674
4675\`\`\`ts
4676import { startCheckout, loadActiveSubscription } from "@/integrations/supabase/payments";
4677
4678await startCheckout({ priceId: "price_oneTime" });                     // único
4679await startCheckout({ priceId: "price_monthly", mode: "subscription" }); // suscripción
4680
4681const sub = await loadActiveSubscription();
4681 // null si no está suscrito → restringe funciones con sub?.status
4682\`\`\`
4683
4684Las tablas \`orders\` y \`subscriptions\` (migración \`0003_payments.sql\`) están protegidas con RLS: cada usuario lee solo sus propias filas, y solo el webhook (service-role) las escribe.
4685
4686---
4687
4688## Ejemplos de prompts
4689
4690| Objetivo | Prompt |
4691|------|--------|
4692| Venta única | *"Crea un checkout para vender una camiseta por 25 €"* |
4693| Suscripción SaaS | *"Añade planes de suscripción Free/Pro/Enterprise con Stripe"* |
4694| Payment link | *"Genera un Payment Link para un producto de 99 €"* |
4695| Donación | *"Añade un botón de donación con importe personalizado"* |
4696| E-commerce | *"Integra Stripe Checkout para el carrito de mi tienda"* |
4697| Portal de cliente | *"Añade un portal donde los usuarios gestionen su suscripción"* |
4698
4699---
4700
4701## Probar los pagos
4702
4703En modo test (\`sk_test_\`, \`pk_test_\`), usa estas tarjetas falsas:
4704
4705| Escenario | Número de tarjeta |
4706|----------|------------|
4707| Pago correcto | \`4242 4242 4242 4242\` |
4708| Pago rechazado | \`4000 0000 0000 0002\` |
4709| Autenticación 3D Secure | \`4000 0025 0000 3155\` |
4710| Fondos insuficientes | \`4000 0000 0000 9995\` |
4711| Tarjeta caducada | \`4000 0000 0000 0069\` |
4712
4713Usa cualquier fecha futura y cualquier CVC de 3 dígitos.
4714
4715---
4716
4717## Claves API
4718
4719| Clave | Prefijo | Dónde se usa | Tipo |
4720|-----|--------|-----------|------|
4721| Secret Key | \`sk_test_\` / \`sk_live_\` | Backend | Secreta (nunca expuesta) |
4722| Publishable Key | \`pk_test_\` / \`pk_live_\` | Frontend | Pública (segura en el navegador) |
4723| Webhook Secret | \`whsec_\` | Backend | Secreta |
4724
4725> [!DANGER] Nunca compartas la **Secret Key** ni el **Webhook Secret**. Usa siempre variables de entorno, nunca escritas directamente en el código.
4726
4727---
4728
4729## Preguntas frecuentes
4730
4731**¿Puedo usar PayPal en lugar de Stripe?**
4732Actualmente Coderblock solo admite Stripe como procesador de pagos. Stripe cubre más de 135 monedas y todos los métodos de pago principales.
4733
4734**¿Cuánto cuesta Stripe?**
4735Stripe cobra un 2,9% + 0,25 € por transacción (estándar europeo). No hay costes fijos mensuales.
4736
4737**¿Puedo pasar de test a live?**
4738Sí, basta con reemplazar las claves de test por las claves live en los Ajustes → Secretos del proyecto y volver a desplegar.
4739
4740**¿La IA puede gestionar reembolsos?**
4741La IA puede generar código para reembolsos vía la API de Stripe, pero también puedes procesar reembolsos directamente desde el panel de Stripe.
4742`,fr:`# Intégration Stripe
4743
4744\`\`\`anim
4745payment-funnel
4746\`\`\`
4747
4748Accepte les paiements dans ton app avec **Stripe**, le processeur de paiement le plus répandu au monde. Coderblock inclut un flux guidé par IA qui crée automatiquement tes produits et prix sur Stripe, en générant du code avec de vrais IDs fonctionnels.
4749
4750> [!NOTE] Pour les **Web apps** (runtime Supabase), les paiements sont encore plus simples : zéro configuration en test et un compte dédié seulement au passage en production — voir [Accepter les paiements](/docs/payments). Cette page reste la référence pour le mode avancé « apporte ta propre clé » (BYOK) et les runtimes Python/Node.
4751
4752## Comment ça marche
4753
4754Quand tu demandes à l'IA d'ajouter des paiements, le système suit un flux automatisé :
4755
47561. **L'IA demande ta Secret Key** — un champ masqué apparaît dans le chat
47572. **Tu colles la clé** — elle est enregistrée comme secret du projet
47583. **L'IA crée les produits sur Stripe** — produits, prix et payment links sont créés directement sur ton compte Stripe
47594. **Le code généré utilise de vrais IDs** — pas de placeholders, tout marche immédiatement
4760
4761> [!TIP] Cela signifie que tu n'as pas besoin d'aller manuellement dans le dashboard Stripe pour créer des produits : l'IA fait tout automatiquement.
4762
4763---
4764
4765## Configuration
4766
4767### 1. Crée un compte Stripe
4768
4769Inscris-toi sur [stripe.com](https://stripe.com) si tu n'as pas encore de compte. Stripe offre un environnement de test complet où tu peux tout essayer sans traiter de vrais paiements.
4770
4771### 2. Récupère les clés API
4772
4773Depuis le [Stripe Dashboard → Developers → API Keys](https://dashboard.stripe.com/apikeys), copie :
4774
4775- **Secret key** (commence par \`sk_test_...\`) : la clé principale dont l'IA a besoin
4776- **Publishable key** (commence par \`pk_test_...\`) : pour le frontend
4777
4778> [!INFO] Utilise toujours des clés **test** pour le développement. Quand tu es prêt pour la production, remplace-les par des clés **live**.
4779
4780### 3. Saisis les clés dans Coderblock
4781
4782Tu as deux options :
4783
4784**Option A (recommandée) : via le Chat IA**
4785Demande simplement à l'IA d'ajouter Stripe ; un champ apparaîtra automatiquement dans le chat :
4786\`\`\`
4787Ajoute les paiements Stripe à mon projet
4788\`\`\`
4789
4790**Option B : manuellement depuis les Paramètres**
4791Va dans **Paramètres → Secrets** de ton projet et ajoute :
4792- \`STRIPE_SECRET_KEY\` → \`sk_test_...\`
4793- \`STRIPE_PUBLISHABLE_KEY\` → \`pk_test_...\`
4794
4795---
4796
4797## Ce que tu peux faire
4798
4799### Paiements uniques
4800
4801Vente d'un produit ou service unique. Exemple :
4802
4803\`\`\`
4804Crée une page de checkout pour vendre un cours en ligne à 49 €
4805\`\`\`
4806
4807L'IA créera :
4808- Un produit « Cours en ligne » sur Stripe
4809- Un prix de 49,00 € (unique)
4810- Le code de checkout qui redirige vers Stripe
4811- Des pages de succès et d'annulation
4812
4813### Abonnements récurrents
4814
4815Des offres avec facturation mensuelle ou annuelle. Exemple :
4816
4817\`\`\`
4818Ajoute des abonnements avec 3 offres : Free, Pro à 19 €/mois, Business à 49 €/mois
4819\`\`\`
4820
4821L'IA créera :
4822- 3 produits sur Stripe (Free, Pro, Business)
4823- Des prix récurrents (mensuels) pour chaque offre
4824- Une page de tarifs avec comparaison des offres
4825- Le backend pour gérer l'état de l'abonnement
4826- Des webhooks pour les mises à jour en temps réel
4827
4828### Payment Link (le plus simple)
4829
4830Si tu veux juste un lien de paiement sans code personnalisé :
4831
4832\`\`\`
4833Crée un Stripe Payment Link pour un produit à 29 €
4834\`\`\`
4835
4836L'IA créera le produit et le prix sur Stripe, et renverra une URL prête à l'emploi (p. ex. \`https://buy.stripe.com/xxx\`) que tu peux coller n'importe où.
4837
4838### Stripe Checkout (hébergé)
4839
4840La solution la plus rapide pour un checkout complet :
4841
4842\`\`\`
4843Intègre Stripe Checkout pour le panier de mon e-commerce
4844\`\`\`
4845
4846Stripe Checkout est une page de paiement hébergée par Stripe : elle gère automatiquement les cartes, Apple Pay, Google Pay et la conformité PCI.
4847
4848---
4849
4850## Webhooks
4851
4852Les webhooks te permettent de recevoir des notifications en temps réel de Stripe (paiement effectué, abonnement annulé, etc.).
4853
4854### Configuration
4855
4856Après que l'IA a généré le code du webhook, tu dois enregistrer l'URL dans le dashboard Stripe :
4857
48581. Va sur [Stripe Dashboard → Developers → Webhooks](https://dashboard.stripe.com/webhooks)
48592. Clique sur **« Add endpoint »**
48603. Saisis l'URL de ton projet : \`https://{ton-id}.coderblock.app/api/payments/webhook\`
48614. Sélectionne les événements à recevoir (recommandés : \`checkout.session.completed\`, \`invoice.payment_succeeded\`, \`customer.subscription.deleted\`)
48625. Copie le **Webhook Secret** et ajoute-le comme secret du projet : \`STRIPE_WEBHOOK_SECRET\`
4863
4864> [!WARNING] L'URL du webhook doit être celle de **production** (\`.coderblock.app\`), pas celle d'aperçu (\`.coderblock.dev\`). Les webhooks ne marchent pas avec l'aperçu car Stripe ne peut pas atteindre l'URL de développement.
4865
4866---
4867
4868## Web app Supabase (Edge Functions)
4869
4870Sur les projets au runtime **Supabase**, les paiements sont gérés par deux Edge Functions Deno au lieu d'un serveur backend. C'est le pattern validé (style Lovable), configuré automatiquement par l'IA via la skill \`add-stripe-payments-supabase\`.
4871
4872- \`create-checkout\` (\`verify_jwt = true\`) → crée la Stripe Checkout Session et renvoie son URL. Fonctionne pour les paiements **uniques** (\`mode: "payment"\`) comme pour les **abonnements** (\`mode: "subscription"\`).
4873- \`stripe-webhook\` (\`verify_jwt = false\`) → vérifie la signature de Stripe et enregistre les commandes/abonnements avec le client service-role. **Le webhook est la seule source de vérité** que le paiement a eu lieu — ne le confirme jamais côté client.
4874
4875### Secrets requis (collectés dans le chat via HIL)
4876
4877Quand tu demandes à l'IA d'ajouter des paiements, des champs sécurisés Human-in-the-Loop apparaissent dans le chat pour coller les secrets. Ils sont enregistrés et propagés automatiquement comme **secrets de Supabase Edge Function** (\`Deno.env.get\`) :
4878
4879| Secret | Où le trouver |
4880|--------|------------------|
4881| \`STRIPE_SECRET_KEY\` | Stripe Dashboard → Developers → API keys (\`sk_test_…\` en test) |
4882| \`STRIPE_WEBHOOK_SECRET\` | Le signing secret de ton endpoint webhook (\`whsec_…\`), voir ci-dessous |
4883
48844. Stripe affiche un **Signing secret** (\`whsec_…\`) : colle-le dans le champ HIL \`STRIPE_WEBHOOK_SECRET\` du chat.
4885
4886> [!TIP] Contrairement au runtime Python, le webhook Supabase est joignable par Stripe même avant le déploiement en production, car la fonction vit sur ton projet Supabase.
4887
4888### Frontend
4889
4890\`\`\`ts
4891import { startCheckout, loadActiveSubscription } from "@/integrations/supabase/payments";
4892
4893await startCheckout({ priceId: "price_oneTime" });                     // unique
4894await startCheckout({ priceId: "price_monthly", mode: "subscription" }); // abonnement
4895
4896const sub = await loadActiveSubscription(); // null si non abonné → conditionne les fonctions à sub?.status
4897\`\`\`
4898
4899Les tables \`orders\` et \`subscriptions\` (migration \`0003_payments.sql\`) sont protégées par RLS : chaque utilisateur ne lit que ses propres lignes, et seul le webhook (service-role) les écrit.
4900
4901---
4902
4903## Exemples de prompts
4904
4905| Objectif | Prompt |
4906|------|--------|
4907| Vente unique | *« Crée un checkout pour vendre un t-shirt à 25 € »* |
4908| Abonnement SaaS | *« Ajoute des offres d'abonnement Free/Pro/Enterprise avec Stripe »* |
4909| Payment link | *« Génère un Payment Link pour un produit à 99 € »* |
4910| Don | *« Ajoute un bouton de don avec montant personnalisé »* |
4911| E-commerce | *« Intègre Stripe Checkout pour le panier de ma boutique »* |
4912| Portail client | *« Ajoute un portail où les utilisateurs gèrent leur abonnement »* |
4913
4914---
4915
4916## Tester les paiements
4917
4918En mode test (\`sk_test_\`, \`pk_test_\`), utilise ces fausses cartes :
4919
4920| Scénario | Numéro de carte |
4921|----------|------------|
4922| Paiement réussi | \`4242 4242 4242 4242\` |
4923| Paiement refusé | \`4000 0000 0000 0002\` |
4924| Authentification 3D Secure | \`4000 0025 0000 3155\` |
4925| Fonds insuffisants | \`4000 0000 0000 9995\` |
4926| Carte expirée | \`4000 0000 0000 0069\` |
4927
4928Utilise n'importe quelle date future et n'importe quel CVC à 3 chiffres.
4929
4930---
4931
4932## Clés API
4933
4934| Clé | Préfixe | Où utilisée | Type |
4935|-----|--------|-----------|------|
4936| Secret Key | \`sk_test_\` / \`sk_live_\` | Backend | Secrète (jamais exposée) |
4937| Publishable Key | \`pk_test_\` / \`pk_live_\` | Frontend | Publique (sûre dans le navigateur) |
4938| Webhook Secret | \`whsec_\` | Backend | Secrète |
4939
4940> [!DANGER] Ne partage jamais la **Secret Key** ni le **Webhook Secret**. Utilise toujours des variables d'environnement, jamais en dur dans le code.
4941
4942---
4943
4944## FAQ
4945
4946**Puis-je utiliser PayPal au lieu de Stripe ?**
4947Actuellement, Coderblock ne prend en charge que Stripe comme processeur de paiement. Stripe couvre plus de 135 devises et tous les principaux moyens de paiement.
4948
4949**Combien coûte Stripe ?**
4950Stripe facture 2,9 % + 0,25 € par transaction (standard européen). Il n'y a pas de coûts fixes mensuels.
4951
4952**Puis-je passer de test à live ?**
4953Oui, il suffit de remplacer les clés de test par les clés live dans Paramètres → Secrets du projet, puis de redéployer.
4954
4955**L'IA peut-elle gérer les remboursements ?**
4956L'IA peut générer du code pour les remboursements via l'API Stripe, mais tu peux aussi traiter les remboursements directement depuis le dashboard Stripe.
4957`,de:`# Stripe-Integration
4958
4959\`\`\`anim
4960payment-funnel
4961\`\`\`
4962
4963Nimm Zahlungen in deiner App mit **Stripe** an, dem weltweit verbreitetsten Zahlungsanbieter. Coderblock enthält einen KI-geführten Ablauf, der deine Produkte und Preise automatisch in Stripe anlegt und Code mit echten, funktionierenden IDs generiert.
4964
4965> [!NOTE] Für **Web apps** (Supabase-Runtime) sind Zahlungen noch einfacher: null Konfiguration im Test und ein dediziertes Konto erst beim Go-Live — siehe [Zahlungen annehmen](/docs/payments). Diese Seite bleibt die Referenz für den fortgeschrittenen „bring deinen eigenen Schlüssel"-Modus (BYOK) und die Python-/Node-Runtimes.
4966
4967## Wie es funktioniert
4968
4969Wenn du die KI bittest, Zahlungen hinzuzufügen, folgt das System einem automatisierten Ablauf:
4970
49711. **Die KI fragt nach deinem Secret Key** — ein maskiertes Eingabefeld erscheint im Chat
49722. **Du fügst den Schlüssel ein** — er wird als Projekt-Secret gespeichert
49733. **Die KI legt Produkte in Stripe an** — Produkte, Preise und Payment Links werden direkt auf deinem Stripe-Konto erstellt
49744. **Der generierte Code nutzt echte IDs** — keine Platzhalter, alles funktioniert sofort
4975
4976> [!TIP] Das bedeutet: du musst nicht manuell ins Stripe-Dashboard, um Produkte anzulegen — die KI macht alles automatisch.
4977
4978---
4979
4980## Einrichtung
4981
4982### 1. Erstelle ein Stripe-Konto
4983
4984Registriere dich auf [stripe.com](https://stripe.com), falls du noch kein Konto hast. Stripe bietet eine komplette Testumgebung, in der du alles ausprobieren kannst, ohne echte Zahlungen zu verarbeiten.
4985
4986### 2. Hole die API-Schlüssel
4987
4988Kopiere im [Stripe Dashboard → Developers → API Keys](https://dashboard.stripe.com/apikeys):
4989
4990- **Secret key** (beginnt mit \`sk_test_...\`): der Hauptschlüssel, den die KI braucht
4991- **Publishable key** (beginnt mit \`pk_test_...\`): für das Frontend
4992
4993> [!INFO] Nutze für die Entwicklung immer **Test**-Schlüssel. Wenn du bereit für den Go-Live bist, ersetze sie durch **Live**-Schlüssel.
4994
4995### 3. Trage die Schlüssel in Coderblock ein
4996
4997Du hast zwei Möglichkeiten:
4998
4999**Option A (empfohlen): über den KI-Chat**
5000Bitte die KI einfach, Stripe hinzuzufügen; ein Eingabefeld erscheint automatisch im Chat:
5001\`\`\`
5002Füge Stripe-Zahlungen zu meinem Projekt hinzu
5003\`\`\`
5004
5005**Option B: manuell über die Einstellungen**
5006Gehe zu **Einstellungen → Secrets** deines Projekts und füge hinzu:
5007- \`STRIPE_SECRET_KEY\` → \`sk_test_...\`
5008- \`STRIPE_PUBLISHABLE_KEY\` → \`pk_test_...\`
5009
5010---
5011
5012## Was du machen kannst
5013
5014### Einmalzahlungen
5015
5016Verkauf eines einzelnen Produkts oder Dienstes. Beispiel:
5017
5018\`\`\`
5019Erstelle eine Checkout-Seite, um einen Online-Kurs für 49 € zu verkaufen
5020\`\`\`
5021
5022Die KI erstellt:
5023- Ein Produkt „Online-Kurs" in Stripe
5024- Einen Preis von 49,00 € (einmalig)
5025- Den Checkout-Code, der zu Stripe weiterleitet
5026- Erfolg- und Abbruch-Seiten
5027
5028### Wiederkehrende Abos
5029
5030Pläne mit monatlicher oder jährlicher Abrechnung. Beispiel:
5031
5032\`\`\`
5033Füge Abos mit 3 Plänen hinzu: Free, Pro für 19 €/Monat, Business für 49 €/Monat
5034\`\`\`
5035
5036Die KI erstellt:
5037- 3 Produkte in Stripe (Free, Pro, Business)
5038- Wiederkehrende (monatliche) Preise für jeden Plan
5039- Eine Preisseite mit Planvergleich
5040- Das Backend zur Verwaltung des Abo-Status
5041- Webhooks für Echtzeit-Updates
5042
5043### Payment Link (am einfachsten)
5044
5045Wenn du nur einen Zahlungslink ohne eigenen Code willst:
5046
5047\`\`\`
5048Erstelle einen Stripe Payment Link für ein Produkt für 29 €
5049\`\`\`
5050
5051Die KI erstellt Produkt und Preis in Stripe und gibt eine einsatzbereite URL zurück (z. B. \`https://buy.stripe.com/xxx\`), die du überall einfügen kannst.
5052
5053### Stripe Checkout (gehostet)
5054
5055Die schnellste Lösung für einen kompletten Checkout:
5056
5057\`\`\`
5058Integriere Stripe Checkout für den Warenkorb meines E-Commerce
5059\`\`\`
5060
5061Stripe Checkout ist eine von Stripe gehostete Zahlungsseite: sie verwaltet automatisch Karten, Apple Pay, Google Pay und die PCI-Konformität.
5062
5063---
5064
5065## Webhooks
5066
5067Webhooks lassen dich Echtzeit-Benachrichtigungen von Stripe empfangen (Zahlung abgeschlossen, Abo gekündigt usw.).
5068
5069### Konfiguration
5070
5071Nachdem die KI den Webhook-Code generiert hat, musst du die URL im Stripe-Dashboard registrieren:
5072
50731. Gehe zu [Stripe Dashboard → Developers → Webhooks](https://dashboard.stripe.com/webhooks)
50742. Klicke auf **„Add endpoint"**
50753. Gib die URL deines Projekts ein: \`https://{deine-id}.coderblock.app/api/payments/webhook\`
50764. Wähle die zu empfangenden Ereignisse (empfohlen: \`checkout.session.completed\`, \`invoice.payment_succeeded\`, \`customer.subscription.deleted\`)
50775. Kopiere das **Webhook Secret** und füge es als Projekt-Secret hinzu: \`STRIPE_WEBHOOK_SECRET\`
5078
5079> [!WARNING] Die Webhook-URL muss die **Produktions**-URL sein (\`.coderblock.app\`), nicht die Vorschau (\`.coderblock.dev\`). Webhooks funktionieren nicht mit der Vorschau, weil Stripe die Entwicklungs-URL nicht erreichen kann.
5080
5081---
5082
5083## Supabase-Web-App (Edge Functions)
5084
5085Bei Projekten mit **Supabase**-Runtime werden Zahlungen von zwei Deno Edge Functions statt einem Backend-Server verwaltet. Das ist das validierte (Lovable-artige) Muster, das die KI automatisch über die Skill \`add-stripe-payments-supabase\` konfiguriert.
5086
5087- \`create-checkout\` (\`verify_jwt = true\`) → erstellt die Stripe Checkout Session und gibt ihre URL zurück. Funktioniert für **Einmal**-Zahlungen (\`mode: "payment"\`) und **Abos** (\`mode: "subscription"\`).
5088- \`stripe-webhook\` (\`verify_jwt = false\`) → prüft Stripes Signatur und erfasst Bestellungen/Abos mit dem Service-Role-Client. **Der Webhook ist die einzige Quelle der Wahrheit**, dass die Zahlung stattfand — bestätige sie nie clientseitig.
5089
5090### Benötigte Secrets (im Chat via HIL erfasst)
5091
5092Wenn du die KI bittest, Zahlungen hinzuzufügen, erscheinen sichere Human-in-the-Loop-Felder im Chat, um die Secrets einzufügen. Sie werden automatisch als **Supabase-Edge-Function-Secrets** (\`Deno.env.get\`) gespeichert und propagiert:
5093
5094| Secret | Wo zu finden |
5095|--------|------------------|
5096| \`STRIPE_SECRET_KEY\` | Stripe Dashboard → Developers → API keys (\`sk_test_…\` im Test) |
5097| \`STRIPE_WEBHOOK_SECRET\` | Das Signing Secret deines Webhook-Endpoints (\`whsec_…\`), siehe unten |
5098
50994. Stripe zeigt ein **Signing secret** (\`whsec_…\`): füge es im Chat in das HIL-Feld \`STRIPE_WEBHOOK_SECRET\` ein.
5100
5101> [!TIP] Anders als bei der Python-Runtime ist der Supabase-Webhook für Stripe schon vor dem Produktions-Deploy erreichbar, weil die Funktion auf deinem Supabase-Projekt lebt.
5102
5103### Frontend
5104
5105\`\`\`ts
5106import { startCheckout, loadActiveSubscription } from "@/integrations/supabase/payments";
5107
5108await startCheckout({ priceId: "price_oneTime" });                     // einmalig
5109await startCheckout({ priceId: "price_monthly", mode: "subscription" }); // Abo
5110
5111const sub = await loadActiveSubscription(); // null wenn nicht abonniert → Funktionen an sub?.status koppeln
5112\`\`\`
5113
5114Die Tabellen \`orders\` und \`subscriptions\` (Migration \`0003_payments.sql\`) sind RLS-geschützt: jeder Nutzer liest nur seine eigenen Zeilen, und nur der Webhook (Service-Role) schreibt sie.
5115
5116---
5117
5118## Prompt-Beispiele
5119
5120| Ziel | Prompt |
5121|------|--------|
5122| Einmalverkauf | *„Erstelle einen Checkout, um ein T-Shirt für 25 € zu verkaufen"* |
5123| SaaS-Abo | *„Füge Abo-Pläne Free/Pro/Enterprise mit Stripe hinzu"* |
5124| Payment Link | *„Generiere einen Payment Link für ein Produkt für 99 €"* |
5125| Spende | *„Füge einen Spenden-Button mit frei wählbarem Betrag hinzu"* |
5126| E-Commerce | *„Integriere Stripe Checkout für meinen Shop-Warenkorb"* |
5127| Kundenportal | *„Füge ein Portal hinzu, in dem Nutzer ihr Abo verwalten"* |
5128
5129---
5130
5131## Zahlungen testen
5132
5133Im Testmodus (\`sk_test_\`, \`pk_test_\`) nutze diese Testkarten:
5134
5135| Szenario | Kartennummer |
5136|----------|------------|
5137| Erfolgreiche Zahlung | \`4242 4242 4242 4242\` |
5138| Abgelehnte Zahlung | \`4000 0000 0000 0002\` |
5139| 3D-Secure-Authentifizierung | \`4000 0025 0000 3155\` |
5140| Unzureichende Deckung | \`4000 0000 0000 9995\` |
5141| Abgelaufene Karte | \`4000 0000 0000 0069\` |
5142
5143Nutze ein beliebiges zukünftiges Datum und einen beliebigen 3-stelligen CVC.
5144
5145---
5146
5147## API-Schlüssel
5148
5149| Schlüssel | Präfix | Wo verwendet | Typ |
5150|-----|--------|-----------|------|
5151| Secret Key | \`sk_test_\` / \`sk_live_\` | Backend | Geheim (nie offengelegt) |
5152| Publishable Key | \`pk_test_\` / \`pk_live_\` | Frontend | Öffentlich (sicher im Browser) |
5153| Webhook Secret | \`whsec_\` | Backend | Geheim |
5154
5155> [!DANGER] Teile niemals den **Secret Key** oder das **Webhook Secret**. Nutze immer Umgebungsvariablen, nie fest im Code.
5156
5157---
5158
5159## FAQ
5160
5161**Kann ich PayPal statt Stripe nutzen?**
5162Derzeit unterstützt Coderblock nur Stripe als Zahlungsanbieter. Stripe deckt über 135 Währungen und alle wichtigen Zahlungsmethoden ab.
5163
5164**Was kostet Stripe?**
5165Stripe berechnet 2,9 % + 0,25 € pro Transaktion (europäischer Standard). Es gibt keine monatlichen Fixkosten.
5166
5167**Kann ich von Test auf Live wechseln?**
5168Ja, ersetze einfach die Test-Schlüssel durch Live-Schlüssel in den Einstellungen → Secrets des Projekts und deploye neu.
5169
5170**Kann die KI Rückerstattungen abwickeln?**
5171Die KI kann Code für Rückerstattungen über die Stripe-API generieren, aber du kannst Rückerstattungen auch direkt im Stripe-Dashboard vornehmen.
5172`,zh:`# Stripe 集成
5173
5174\`\`\`anim
5175payment-funnel
5176\`\`\`
5177
5178用 **Stripe**(全球最流行的支付处理器)在你的应用中接受支付。Coderblock 内置了由 AI 引导的流程,会自动在 Stripe 上创建你的产品与价格,并生成带有真实、可用 ID 的代码。
5179
5180> [!NOTE] 对于 **Web app**(Supabase 运行时)支付更简单:测试模式零配置,只有上线时才需要专属账户——参见[接受支付](/docs/payments)。本页仍是高级“自带密钥”(BYOK)模式以及 Python/Node 运行时的参考。
5181
5182## 工作原理
5183
5184当你让 AI 添加支付时,系统会遵循一个自动化流程:
5185
51861. **AI 索取你的 Secret Key** —— 聊天中出现一个遮罩输入框
51872. **你粘贴密钥** —— 它会保存为项目密钥
51883. **AI 在 Stripe 上创建产品** —— 产品、价格和 payment link 直接在你的 Stripe 账户上创建
51894. **生成的代码使用真实 ID** —— 没有占位符,一切立即可用
5190
5191> [!TIP] 这意味着你无需手动前往 Stripe 仪表盘创建产品:AI 会自动完成一切。
5192
5193---
5194
5195## 设置
5196
5197### 1. 创建 Stripe 账户
5198
5199如果还没有账户,请在 [stripe.com](https://stripe.com) 注册。Stripe 提供完整的测试环境,你可以在不处理真实支付的情况下试验一切。
5200
5201### 2. 获取 API 密钥
5202
5203在 [Stripe Dashboard → Developers → API Keys](https://dashboard.stripe.com/apikeys) 复制:
5204
5205- **Secret key**(以 \`sk_test_...\` 开头):AI 所需的主密钥
5206- **Publishable key**(以 \`pk_test_...\` 开头):用于前端
5207
5208> [!INFO] 开发时始终使用**测试**密钥。准备上线时,将其替换为 **live** 密钥。
5209
5210### 3. 在 Coderblock 中输入密钥
5211
5212你有两个选择:
5213
5214**选项 A(推荐):通过 AI 聊天**
5215只需让 AI 添加 Stripe,聊天中会自动出现一个输入框:
5216\`\`\`
5217为我的项目添加 Stripe 支付
5218\`\`\`
5219
5220**选项 B:从设置手动添加**
5221进入项目的**设置 → 密钥**并添加:
5222- \`STRIPE_SECRET_KEY\` → \`sk_test_...\`
5223- \`STRIPE_PUBLISHABLE_KEY\` → \`pk_test_...\`
5224
5225---
5226
5227## 你能做什么
5228
5229### 一次性支付
5230
5231单个产品或服务的销售。例如:
5232
5233\`\`\`
5234创建一个结账页,以 49 € 出售一门在线课程
5235\`\`\`
5236
5237AI 将创建:
5238- Stripe 上一个“在线课程”产品
5239- 一个 49.00 €(一次性)的价格
5240- 跳转到 Stripe 的结账代码
5241- 成功页与取消页
5242
5243### 循环订阅
5244
5245按月或按年计费的套餐。例如:
5246
5247\`\`\`
5248添加 3 个订阅套餐:Free、Pro 每月 19 €、Business 每月 49 €
5249\`\`\`
5250
5251AI 将创建:
5252- Stripe 上 3 个产品(Free、Pro、Business)
5253- 每个套餐的循环(按月)价格
5254- 一个带套餐对比的价格页
5255- 用于管理订阅状态的后端
5256- 用于实时更新的 webhook
5257
5258### Payment Link(最简单)
5259
5260如果你只想要一个支付链接、无需自定义代码:
5261
5262\`\`\`
5263为一个 29 € 的产品创建一个 Stripe Payment Link
5264\`\`\`
5265
5266AI 会在 Stripe 上创建产品与价格,并返回一个可直接使用的 URL(如 \`https://buy.stripe.com/xxx\`),你可以粘贴到任何地方。
5267
5268### Stripe Checkout(托管)
5269
5270实现完整结账的最快方案:
5271
5272\`\`\`
5273为我的电商购物车集成 Stripe Checkout
5274\`\`\`
5275
5276Stripe Checkout 是由 Stripe 托管的支付页:它会自动处理信用卡、Apple Pay、Google Pay 以及 PCI 合规。
5277
5278---
5279
5280## Webhook
5281
5282Webhook 让你实时接收来自 Stripe 的通知(支付完成、订阅取消等)。
5283
5284### 配置
5285
5286在 AI 生成 webhook 代码后,你需要在 Stripe 仪表盘中注册该 URL:
5287
52881. 前往 [Stripe Dashboard → Developers → Webhooks](https://dashboard.stripe.com/webhooks)
52892. 点击 **“Add endpoint”**
52903. 输入你的项目 URL:\`https://{你的-id}
5290.coderblock.app/api/payments/webhook\`
52914. 选择要接收的事件(推荐:\`checkout.session.completed\`、\`invoice.payment_succeeded\`、\`customer.subscription.deleted\`)
52925. 复制 **Webhook Secret** 并将其作为项目密钥添加:\`STRIPE_WEBHOOK_SECRET\`
5293
5294> [!WARNING] Webhook 的 URL 必须是**生产**地址(\`.coderblock.app\`),而不是预览地址(\`.coderblock.dev\`)。Webhook 不适用于预览,因为 Stripe 无法访问开发环境的 URL。
5295
5296---
5297
5298## Supabase Web app(Edge Functions)
5299
5300在 **Supabase** 运行时的项目中,支付由两个 Deno Edge Function 处理,而非后端服务器。这是经过验证的(Lovable 风格)模式,由 AI 通过 \`add-stripe-payments-supabase\` skill 自动配置。
5301
5302- \`create-checkout\`(\`verify_jwt = true\`)→ 创建 Stripe Checkout Session 并返回其 URL。既适用于**一次性**支付(\`mode: "payment"\`),也适用于**订阅**(\`mode: "subscription"\`)。
5303- \`stripe-webhook\`(\`verify_jwt = false\`)→ 校验 Stripe 的签名,并用 service-role 客户端记录订单/订阅。**webhook 是支付确实发生的唯一可信来源**——切勿在客户端确认。
5304
5305### 所需密钥(通过 HIL 在聊天中收集)
5306
5307当你让 AI 添加支付时,聊天中会出现安全的 Human-in-the-Loop 字段供你粘贴密钥。它们会自动保存并作为 **Supabase Edge Function 密钥**(\`Deno.env.get\`)传播:
5308
5309| 密钥 | 在哪里找到 |
5310|--------|------------------|
5311| \`STRIPE_SECRET_KEY\` | Stripe Dashboard → Developers → API keys(测试为 \`sk_test_…\`) |
5312| \`STRIPE_WEBHOOK_SECRET\` | 你 webhook 端点的签名密钥(\`whsec_…\`),见下文 |
5313
53144. Stripe 会显示一个 **Signing secret**(\`whsec_…\`):将其粘贴到聊天中的 \`STRIPE_WEBHOOK_SECRET\` HIL 字段。
5315
5316> [!TIP] 与 Python 运行时不同,Supabase 的 webhook 在生产部署之前就能被 Stripe 访问,因为该函数位于你的 Supabase 项目上。
5317
5318### 前端
5319
5320\`\`\`ts
5321import { startCheckout, loadActiveSubscription } from "@/integrations/supabase/payments";
5322
5323await startCheckout({ priceId: "price_oneTime" });                     // 一次性
5324await startCheckout({ priceId: "price_monthly", mode: "subscription" }); // 订阅
5325
5326const sub = await loadActiveSubscription(); // 未订阅则为 null → 用 sub?.status 控制功能
5327\`\`\`
5328
5329\`orders\` 和 \`subscriptions\` 表(迁移 \`0003_payments.sql\`)受 RLS 保护:每个用户只读取自己的行,且只有 webhook(service-role)会写入它们。
5330
5331---
5332
5333## 提示词示例
5334
5335| 目标 | 提示词 |
5336|------|--------|
5337| 一次性销售 | *“创建一个结账页,以 25 € 出售一件 T 恤”* |
5338| SaaS 订阅 | *“用 Stripe 添加 Free/Pro/Enterprise 订阅套餐”* |
5339| Payment link | *“为一个 99 € 的产品生成一个 Payment Link”* |
5340| 捐赠 | *“添加一个可自定义金额的捐赠按钮”* |
5341| 电商 | *“为我商店的购物车集成 Stripe Checkout”* |
5342| 客户门户 | *“添加一个让用户管理其订阅的门户”* |
5343
5344---
5345
5346## 测试支付
5347
5348在测试模式下(\`sk_test_\`、\`pk_test_\`),使用这些测试卡:
5349
5350| 场景 | 卡号 |
5351|----------|------------|
5352| 支付成功 | \`4242 4242 4242 4242\` |
5353| 支付被拒 | \`4000 0000 0000 0002\` |
5354| 3D Secure 验证 | \`4000 0025 0000 3155\` |
5355| 余额不足 | \`4000 0000 0000 9995\` |
5356| 卡片过期 | \`4000 0000 0000 0069\` |
5357
5358使用任意将来的日期和任意 3 位 CVC。
5359
5360---
5361
5362## API 密钥
5363
5364| 密钥 | 前缀 | 使用位置 | 类型 |
5365|-----|--------|-----------|------|
5366| Secret Key | \`sk_test_\` / \`sk_live_\` | 后端 | 机密(绝不暴露) |
5367| Publishable Key | \`pk_test_\` / \`pk_live_\` | 前端 | 公开(在浏览器中安全) |
5368| Webhook Secret | \`whsec_\` | 后端 | 机密 |
5369
5370> [!DANGER] 切勿分享 **Secret Key** 或 **Webhook Secret**。始终使用环境变量,绝不硬编码在代码中。
5371
5372---
5373
5374## 常见问题
5375
5376**我能用 PayPal 代替 Stripe 吗?**
5377目前 Coderblock 仅支持 Stripe 作为支付处理器。Stripe 覆盖 135 种以上货币和所有主流支付方式。
5378
5379**Stripe 收费多少?**
5380Stripe 每笔交易收取 2.9% + 0.25 €(欧洲标准)。没有每月固定费用。
5381
5382**我能从测试切换到 live 吗?**
5383可以,只需在项目的 设置 → 密钥 中把测试密钥替换为 live 密钥,然后重新部署。
5384
5385**AI 能处理退款吗?**
5386AI 可以通过 Stripe API 生成退款代码,但你也可以直接在 Stripe 仪表盘中处理退款。
5387`},"image-upload":{es:`# Subir imágenes
5388
5389\`\`\`anim
5390media
5391\`\`\`
5392
5393Sube imágenes personalizadas para tu proyecto.
5394
5395## Formatos admitidos
5396
5397- JPEG / JPG
5398- PNG
5399- GIF
5400- WebP
5401- SVG
5402
5403## Cómo subirlas
5404
54051. En el chat, usa el icono de **adjuntar** para subir una imagen
54062. La IA puede usar la imagen como referencia visual de diseño
54073. Las imágenes subidas se guardan en la carpeta \`public/\` del proyecto
5408
5409## Generación de imágenes con IA
5410
5411La IA también puede **generar imágenes** usando DALL-E:
5412
5413\`\`\`
5414Genera una imagen hero para un sitio de viajes, estilo fotorrealista
5415\`\`\`
5416
5417> [!TIP] Sube capturas o mockups como referencia. La IA los analizará para reproducir el diseño.
5418`,fr:`# Upload d'images
5419
5420\`\`\`anim
5421media
5422\`\`\`
5423
5424Téléverse des images personnalisées pour ton projet.
5425
5426## Formats pris en charge
5427
5428- JPEG / JPG
5429- PNG
5430- GIF
5431- WebP
5432- SVG
5433
5434## Comment les téléverser
5435
54361. Dans le chat, utilise l'icône de **pièce jointe** pour envoyer une image
54372. L'IA peut utiliser l'image comme référence visuelle de design
54383. Les images téléversées sont enregistrées dans le dossier \`public/\` du projet
5439
5440## Génération d'images par IA
5441
5442L'IA peut aussi **générer des images** avec DALL-E :
5443
5444\`\`\`
5445Génère une image hero pour un site de voyage, style photoréaliste
5446\`\`\`
5447
5448> [!TIP] Envoie des captures ou des maquettes en référence. L'IA les analysera pour reproduire le design.
5449`,de:`# Bild-Upload
5450
5451\`\`\`anim
5452media
5453\`\`\`
5454
5455Lade eigene Bilder für dein Projekt hoch.
5456
5457## Unterstützte Formate
5458
5459- JPEG / JPG
5460- PNG
5461- GIF
5462- WebP
5463- SVG
5464
5465## So lädst du sie hoch
5466
54671. Nutze im Chat das **Anhang**-Symbol, um ein Bild hochzuladen
54682. Die KI kann das Bild als visuelle Design-Referenz nutzen
54693. Hochgeladene Bilder werden im Ordner \`public/\` des Projekts gespeichert
5470
5471## KI-Bildgenerierung
5472
5473Die KI kann auch **Bilder generieren** mit DALL-E:
5474
5475\`\`\`
5476Generiere ein Hero-Bild für eine Reise-Website, fotorealistischer Stil
5477\`\`\`
5478
5479> [!TIP] Lade Screenshots oder Mockups als Referenz hoch. Die KI analysiert sie, um das Design nachzubauen.
5480`,zh:`# 图片上传
5481
5482\`\`\`anim
5483media
5484\`\`\`
5485
5486为你的项目上传自定义图片。
5487
5488## 支持的格式
5489
5490- JPEG / JPG
5491- PNG
5492- GIF
5493- WebP
5494- SVG
5495
5496## 如何上传
5497
54981. 在聊天中,使用**附件**图标上传图片
54992. AI 可以将图片作为视觉设计参考
55003. 上传的图片会保存在项目的 \`public/\` 文件夹中
5501
5502## AI 图片生成
5503
5504AI 也可以使用 DALL-E **生成图片**:
5505
5506\`\`\`
5507为一个旅游网站生成一张主视觉图,写实风格
5508\`\`\`
5509
5510> [!TIP] 上传截图或原型图作为参考。AI 会分析它们来还原设计。
5511`},media:{es:`# Media
5512
5513\`\`\`anim
5514media
5515\`\`\`
5516
5517Gestión de archivos multimedia en tu proyecto.
5518
5519## Almacenamiento
5520
5521Los archivos multimedia se guardan en **AWS S3** y se sirven a través del CDN.
5522
5523## Estructura de carpetas
5524
5525\`\`\`
5526public/
5527├── images/          # Imágenes del sitio
5528├── icons/           # Iconos y favicon
5529└── assets/          # Otros recursos estáticos
5530\`\`\`
5531
5532## Tamaños recomendados
5533
5534| Tipo | Tamaño | Formato |
5535|------|------|--------|
5536| Imagen hero | 1920x1080 | WebP / JPEG |
5537| Miniatura | 400x300 | WebP / JPEG |
5538| Icono | 512x512 | PNG / SVG |
5539| Favicon | 32x32 | PNG / ICO |
5540`,fr:`# Média
5541
5542\`\`\`anim
5543media
5544\`\`\`
5545
5546Gestion des fichiers médias dans ton projet.
5547
5548## Stockage
5549
5550Les fichiers médias sont enregistrés sur **AWS S3** et servis via le CDN.
5551
5552## Structure des dossiers
5553
5554\`\`\`
5555public/
5556├── images/          # Images du site
5557├── icons/           # Icônes et favicon
5558└── assets/          # Autres ressources statiques
5559\`\`\`
5560
5561## Tailles recommandées
5562
5563| Type | Taille | Format |
5564|------|------|--------|
5565| Image hero | 1920x1080 | WebP / JPEG |
5566| Vignette | 400x300 | WebP / JPEG |
5567| Icône | 512x512 | PNG / SVG |
5568| Favicon | 32x32 | PNG / ICO |
5569`,de:`# Medien
5570
5571\`\`\`anim
5572media
5573\`\`\`
5574
5575Verwaltung von Mediendateien in deinem Projekt.
5576
5577## Speicherung
5578
5579Mediendateien werden auf **AWS S3** gespeichert und über das CDN ausgeliefert.
5580
5581## Ordnerstruktur
5582
5583\`\`\`
5584public/
5585├── images/          # Website-Bilder
5586├── icons/           # Icons und Favicon
5587└── assets/          # Weitere statische Assets
5588\`\`\`
5589
5590## Empfohlene Größen
5591
5592| Typ | Größe | Format |
5593|------|------|--------|
5594| Hero-Bild | 1920x1080 | WebP / JPEG |
5595| Thumbnail | 400x300 | WebP / JPEG |
5596| Icon | 512x512 | PNG / SVG |
5597| Favicon | 32x32 | PNG / ICO |
5598`,zh:`# 媒体
5599
5600\`\`\`anim
5601media
5602\`\`\`
5603
5604管理项目中的媒体文件。
5605
5606## 存储
5607
5608媒体文件保存在 **AWS S3** 上,并通过 CDN 提供。
5609
5610## 文件夹结构
5611
5612\`\`\`
5613public/
5614├── images/          # 网站图片
5615├── icons/           # 图标与 favicon
5616└── assets/          # 其他静态资源
5617\`\`\`
5618
5619## 推荐尺寸
5620
5621| 类型 | 尺寸 | 格式 |
5622|------|------|--------|
5623| 主视觉图 | 1920x1080 | WebP / JPEG |
5624| 缩略图 | 400x300 | WebP / JPEG |
5625| 图标 | 512x512 | PNG / SVG |
5626| Favicon | 32x32 | PNG / ICO |
5627`},"email-integration":{es:`# Integración de email (Resend)
5628
5629\`\`\`anim
5630email
5631\`\`\`
5632
5633Envía emails transaccionales desde tu app usando **Resend**.
5634
5635## Configuración
5636
56371. Crea una cuenta en [resend.com](https://resend.com)
56382. Genera una clave API
56393. Añádela como secreto: \`RESEND_API_KEY\`
56404. Pide a la IA que integre el envío de emails
5641
5642## Ejemplo
5643
5644\`\`\`
5645Añade el email de confirmación de registro usando Resend
5646\`\`\`
5647
5648La IA generará el código backend para enviar emails con plantillas HTML personalizadas.
5649
5650## Funciones
5651
5652- Emails de bienvenida
5653- Confirmación de registro
5654- Restablecimiento de contraseña
5655- Notificaciones
5656- Newsletter
5657
5658> [!INFO] Resend ofrece 3.000 emails/mes gratis en el plan free.
5659`,fr:`# Intégration e-mail (Resend)
5660
5661\`\`\`anim
5662email
5663\`\`\`
5664
5665Envoie des e-mails transactionnels depuis ton app avec **Resend**.
5666
5667## Configuration
5668
56691. Crée un compte sur [resend.com](https://resend.com)
56702. Génère une clé API
56713. Ajoute-la comme secret : \`RESEND_API_KEY\`
56724. Demande à l'IA d'intégrer l'envoi d'e-mails
5673
5674## Exemple
5675
5676\`\`\`
5677Ajoute l'e-mail de confirmation d'inscription avec Resend
5678\`\`\`
5679
5680L'IA générera le code backend pour envoyer des e-mails avec des templates HTML personnalisés.
5681
5682## Fonctionnalités
5683
5684- E-mails de bienvenue
5685- Confirmation d'inscription
5686- Réinitialisation du mot de passe
5687- Notifications
5688- Newsletter
5689
5690> [!INFO] Resend offre 3 000 e-mails/mois gratuits sur le plan gratuit.
5691`,de:`# E-Mail-Integration (Resend)
5692
5693\`\`\`anim
5694email
5695\`\`\`
5696
5697Sende transaktionale E-Mails aus deiner App mit **Resend**.
5698
5699## Einrichtung
5700
57011. Erstelle ein Konto auf [resend.com](https://resend.com)
57022. Generiere einen API-Schlüssel
57033. Füge ihn als Secret hinzu: \`RESEND_API_KEY\`
57044. Bitte die KI, den E-Mail-Versand zu integrieren
5705
5706## Beispiel
5707
5708\`\`\`
5709Füge die Registrierungs-Bestätigungsmail mit Resend hinzu
5710\`\`\`
5711
5712Die KI generiert den Backend-Code, um E-Mails mit eigenen HTML-Vorlagen zu senden.
5713
5714## Funktionen
5715
5716- Willkommens-E-Mails
5717- Registrierungsbestätigung
5718- Passwort zurücksetzen
5719- Benachrichtigungen
5720- Newsletter
5721
5722> [!INFO] Resend bietet 3.000 E-Mails/Monat kostenlos im Free-Plan.
5723`,zh:`# 邮件集成 (Resend)
5724
5725\`\`\`anim
5726email
5727\`\`\`
5728
5729使用 **Resend** 从你的应用发送事务性邮件。
5730
5731## 设置
5732
57331. 在 [resend.com](https://resend.com) 创建账户
57342. 生成一个 API 密钥
57353. 将其作为密钥添加:\`RESEND_API_KEY\`
57364. 让 AI 集成邮件发送
5737
5738## 示例
5739
5740\`\`\`
5741使用 Resend 添加注册确认邮件
5742\`\`\`
5743
5744AI 会生成后端代码,用自定义 HTML 模板发送邮件。
5745
5746## 功能
5747
5748- 欢迎邮件
5749- 注册确认
5750- 密码重置
5751- 通知
5752- 新闻通讯
5753
5754> [!INFO] Resend 的免费套餐每月提供 3,000 封免费邮件。
5755`},"github-integration":{es:`# Integración de GitHub
5756
5757\`\`\`anim
5758github
5759\`\`\`
5760
5761Conecta tu proyecto a un repositorio de GitHub para control de versiones y colaboración.
5762
5763## Cómo conectarlo
5764
57651. Ve a los **Ajustes** del proyecto
57662. Sección **"GitHub"**
57673. Haz clic en **"Conectar GitHub"** para autorizar vía OAuth
57684. Elige un repositorio existente o crea uno nuevo
5769
5770## Funciones
5771
5772- **Commits automáticos**: cada cambio de la IA se puede confirmar (commit)
5773- **Push/Pull**: sincroniza el código entre Coderblock y GitHub
5774- **Ramas**: trabaja en ramas separadas para distintas funciones
5775
5776## Estructura del repositorio
5777
5778\`\`\`
5779repository/
5780├── frontend/        # Código React/Vite
5781├── backend/         # Código Python/FastAPI
5782└── README.md
5783\`\`\`
5784
5785> [!TIP] Activa los commits automáticos para tener un historial completo de los cambios.
5786`,fr:`# Intégration GitHub
5787
5788\`\`\`anim
5789github
5790\`\`\`
5791
5792Connecte ton projet à un dépôt GitHub pour le contrôle de version et la collaboration.
5793
5794## Comment connecter
5795
57961. Va dans les **Paramètres** du projet
57972. Section **« GitHub »**
57983. Clique sur **« Connecter GitHub »** pour autoriser via OAuth
57994. Choisis un dépôt existant ou crées-en un nouveau
5800
5801## Fonctionnalités
5802
5803- **Commits automatiques** : chaque changement de l'IA peut être commité
5804- **Push/Pull** : synchronise le code entre Coderblock et GitHub
5805- **Branches** : travaille sur des branches séparées pour différentes fonctionnalités
5806
5807## Structure du dépôt
5808
5809\`\`\`
5810repository/
5811├── frontend/        # Code React/Vite
5812├── backend/         # Code Python/FastAPI
5813└── README.md
5814\`\`\`
5815
5816> [!TIP] Active les commits automatiques pour un historique complet des changements.
5817`,de:`# GitHub-Integration
5818
5819\`\`\`anim
5820github
5821\`\`\`
5822
5823Verbinde dein Projekt mit einem GitHub-Repository für Versionskontrolle und Zusammenarbeit.
5824
5825## So verbindest du
5826
58271. Gehe zu den **Einstellungen** des Projekts
58282. Abschnitt **„GitHub"**
58293. Klicke auf **„GitHub verbinden"**, um über OAuth zu autorisieren
58304. Wähle ein bestehendes Repository oder erstelle ein neues
5831
5832## Funktionen
5833
5834- **Automatische Commits**: jede KI-Änderung kann committet werden
5835- **Push/Pull**: synchronisiere den Code zwischen Coderblock und GitHub
5836- **Branches**: arbeite auf separaten Branches für verschiedene Funktionen
5837
5838## Repository-Struktur
5839
5840\`\`\`
5841repository/
5842├── frontend/        # React/Vite-Code
5843├── backend/         # Python/FastAPI-Code
5844└── README.md
5845\`\`\`
5846
5847> [!TIP] Aktiviere automatische Commits für eine vollständige Änderungshistorie.
5848`,zh:`# GitHub 集成
5849
5850\`\`\`anim
5851github
5852\`\`\`
5853
5854将你的项目连接到 GitHub 仓库,用于版本控制和协作。
5855
5856## 如何连接
5857
58581. 进入项目**设置**
58592. **“GitHub”**部分
58603. 点击 **“连接 GitHub”** 以通过 OAuth 授权
58614. 选择一个现有仓库或新建一个
5862
5863## 功能
5864
5865- **自动提交**:每次 AI 的更改都可以提交(commit)
5866- **Push/Pull**:在 Coderblock 与 GitHub 之间同步代码
5867- **分支**:为不同功能在独立分支上工作
5868
5869## 仓库结构
5870
5871\`\`\`
5872repository/
5873├── frontend/        # React/Vite 代码
5874├── backend/         # Python/FastAPI 代码
5875└── README.md
5876\`\`\`
5877
5878> [!TIP] 启用自动提交,以获得完整的更改历史。
5879`},"custom-domains":{es:`# Dominios personalizados
5880
5881\`\`\`anim
5882custom-domain
5883\`\`\`
5884
5885Conecta un dominio personalizado a tu app publicada para un aspecto profesional. En lugar de \`{id}.coderblock.app\`, tus usuarios verán \`www.tudominio.com\`.
5886
5887## Requisitos previos
5888
5889- La app debe estar ya **publicada en producción** (Deploy completado)
5890- Debes tener acceso a la **gestión de DNS** de tu dominio
5891
5892## Cómo configurarlo
5893
5894### Paso 1: Añade el dominio en Coderblock
5895
58961. Abre el proyecto en el editor
58972. Ve a los **Ajustes** del proyecto
58983. Sección **"Dominio personalizado"**
58994. Introduce tu dominio (p. ej. \`midominio.com\` o \`app.midominio.com\`)
59005. Coderblock te mostrará los registros DNS a configurar
5901
5902### Paso 2: Configura el DNS
5903
5904Ve al panel de gestión de DNS (Cloudflare, GoDaddy, Namecheap, etc.) y añade los siguientes registros:
5905
5906**Para el dominio raíz** (\`midominio.com\`):
5907\`\`\`
5908A       @       → [IP proporcionada por Coderblock]
5909\`\`\`
5910
5911**Para un subdominio** (\`www.midominio.com\` o \`app.midominio.com\`):
5912\`\`\`
5913CNAME   www     → {id}.coderblock.app
5914\`\`\`
5915
5916### Paso 3: Verificación y SSL
5917
59181. Coderblock verifica automáticamente la configuración DNS
59192. Una vez confirmada, el **certificado SSL** se genera automáticamente vía Let's Encrypt
59203. Tu dominio está listo: funcionarán tanto \`http://\` como \`https://\`
5921
5922## Tiempos
5923
5924| Operación | Tiempo |
5925|-----------|------|
5926| Propagación DNS | 5 minutos - 48 horas |
5927| Generación del certificado SSL | 1-5 minutos |
5928| Activación del dominio | Automática tras el DNS |
5929
5930## Solución de problemas
5931
5932| Problema | Solución |
5933|-------|----------|
5934| El DNS no se propaga | Espera hasta 48 horas, verifica los registros con \`dig\` o \`nslookup\` |
5935| Error del certificado SSL | Comprueba que el CNAME apunte correctamente, reintenta tras unos minutos |
5936| Dominio inaccesible | Revisa si hay proxies activos (p. ej. el proxy de Cloudflare) que puedan interferir |
5937
5938> [!WARNING] Si usas Cloudflare, pon el proxy en **"DNS only"** (icono gris) para el registro CNAME, al menos durante la configuración inicial. Tras generarse el certificado SSL, puedes reactivar el proxy.
5939`,fr:`# Domaines personnalisés
5940
5941\`\`\`anim
5942custom-domain
5943\`\`\`
5944
5945Connecte un domaine personnalisé à ton app publiée pour une image professionnelle. Au lieu de \`{id}.coderblock.app\`, tes utilisateurs verront \`www.tondomaine.com\`.
5946
5947## Prérequis
5948
5949- L'app doit déjà être **publiée en production** (Deploy terminé)
5950- Tu dois avoir accès à la **gestion DNS** de ton domaine
5951
5952## Comment configurer
5953
5954### Étape 1 : Ajoute le domaine dans Coderblock
5955
59561. Ouvre le projet dans l'éditeur
59572. Va dans les **Paramètres** du projet
59583. Section **« Domaine personnalisé »**
59594. Saisis ton domaine (p. ex. \`mondomaine.com\` ou \`app.mondomaine.com\`)
59605. Coderblock t'indiquera les enregistrements DNS à configurer
5961
5962### Étape 2 : Configure le DNS
5963
5964Va dans ton panneau de gestion DNS (Cloudflare, GoDaddy, Namecheap, etc.) et ajoute les enregistrements suivants :
5965
5966**Pour le domaine racine** (\`mondomaine.com\`) :
5967\`\`\`
5968A       @       → [IP fournie par Coderblock]
5969\`\`\`
5970
5971**Pour un sous-domaine** (\`www.mondomaine.com\` ou \`app.mondomaine.com\`) :
5972\`\`\`
5973CNAME   www     → {id}.coderblock.app
5974\`\`\`
5975
5976### Étape 3 : Vérification et SSL
5977
59781. Coderblock vérifie automatiquement la configuration DNS
59792. Une fois confirmée, le **certificat SSL** est généré automatiquement via Let's Encrypt
59803. Ton domaine est prêt : \`http://\` comme \`https://\` fonctionneront
5981
5982## Délais
5983
5984| Opération | Temps |
5985|-----------|------|
5986| Propagation DNS | 5 minutes - 48 heures |
5987| Génération du certificat SSL | 1-5 minutes |
5988| Activation du domaine | Automatique après le DNS |
5989
5990## Dépannage
5991
5992| Problème | Solution |
5993|-------|----------|
5994| Le DNS ne se propage pas | Attends jusqu'à 48 heures, vérifie les enregistrements avec \`dig\` ou \`nslookup\` |
5995| Erreur du certificat SSL | Vérifie que le CNAME pointe correctement, réessaie après quelques minutes |
5996| Domaine injoignable | Vérifie les proxys actifs (p. ex. le proxy Cloudflare) qui pourraient interférer |
5997
5998> [!WARNING] Si tu utilises Cloudflare, mets le proxy sur **« DNS only »** (icône grise) pour l'enregistrement CNAME, au moins pendant la configuration initiale. Une fois le certificat SSL généré, tu peux réactiver le proxy.
5999`,de:`# Eigene Domains
6000
6001\`\`\`anim
6002custom-domain
6003\`\`\`
6004
6005Verbinde eine eigene Domain mit deiner veröffentlichten App für einen professionellen Auftritt. Statt \`{id}.coderblock.app\` sehen deine Nutzer \`www.deinedomain.de\`.
6006
6007## Voraussetzungen
6008
6009- Die App muss bereits **in Produktion veröffentlicht** sein (Deploy abgeschlossen)
6010- Du brauchst Zugriff auf die **DNS-Verwaltung** deiner Domain
6011
6012## So konfigurierst du
6013
6014### Schritt 1: Domain in Coderblock hinzufügen
6015
60161. Öffne das Projekt im Editor
60172. Gehe zu den **Einstellungen** des Projekts
60183. Abschnitt **„Eigene Domain"**
60194. Gib deine Domain ein (z. B. \`meinedomain.de\` oder \`app.meinedomain.de\`)
60205. Coderblock zeigt dir die zu konfigurierenden DNS-Einträge
6021
6022### Schritt 2: DNS konfigurieren
6023
6024Gehe in dein DNS-Verwaltungspanel (Cloudflare, GoDaddy, Namecheap usw.) und füge folgende Einträge hinzu:
6025
6026**Für die Root-Domain** (\`meinedomain.de\`):
6027\`\`\`
6028A       @       → [von Coderblock bereitgestellte IP]
6029\`\`\`
6030
6031**Für eine Subdomain** (\`www.meinedomain.de\` oder \`app.meinedomain.de\`):
6032\`\`\`
6033CNAME   www     → {id}.coderblock.app
6034\`\`\`
6035
6036### Schritt 3: Verifizierung und SSL
6037
60381. Coderblock prüft die DNS-Konfiguration automatisch
60392. Nach Bestätigung wird das **SSL-Zertifikat** automatisch über Let's Encrypt generiert
60403. Deine Domain ist bereit: sowohl \`http://\` als auch \`https://\` funktionieren
6041
6042## Zeiten
6043
6044| Vorgang | Zeit |
6045|-----------|------|
6046| DNS-Propagierung | 5 Minuten - 48 Stunden |
6047| SSL-Zertifikat-Generierung | 1-5 Minuten |
6048| Domain-Aktivierung | Automatisch nach dem DNS |
6049
6050## Fehlerbehebung
6051
6052| Problem | Lösung |
6053|-------|----------|
6054| DNS propagiert nicht | Warte bis zu 48 Stunden, prüfe die Einträge mit \`dig\` oder \`nslookup\` |
6055| SSL-Zertifikatsfehler | Prüfe, ob der CNAME korrekt zeigt, versuche es nach einigen Minuten erneut |
6056| Domain nicht erreichbar | Prüfe auf aktive Proxys (z. B. Cloudflare-Proxy), die stören könnten |
6057
6058> [!WARNING] Wenn du Cloudflare nutzt, stelle den Proxy für den CNAME-Eintrag auf **„DNS only"** (graues Symbol), zumindest während der Ersteinrichtung. Nach der SSL-Generierung kannst du den Proxy wieder aktivieren.
6059`,zh:`# 自定义域名
6060
6061\`\`\`anim
6062custom-domain
6063\`\`\`
6064
6065为你已发布的应用连接一个自定义域名,让其更专业。用户将看到 \`www.你的域名.com\`,而不是 \`{id}.coderblock.app\`。
6066
6067## 前提条件
6068
6069- 应用必须已**发布到生产环境**(Deploy 已完成)
6070- 你必须能访问域名的 **DNS 管理**
6071
6072## 如何配置
6073
6074### 第 1 步:在 Coderblock 中添加域名
6075
60761. 在编辑器中打开项目
60772. 进入项目**设置**
60783. **“自定义域名”**部分
60794. 输入你的域名(如 \`mydomain.com\` 或 \`app.mydomain.com\`)
60805. Coderblock 会向你展示需要配置的 DNS 记录
6081
6082### 第 2 步:配置 DNS
6083
6084进入你的 DNS 管理面板(Cloudflare、GoDaddy、Namecheap 等)并添加以下记录:
6085
6086**对于根域名**(\`mydomain.com\`):
6087\`\`\`
6088A       @       → [Coderblock 提供的 IP]
6089\`\`\`
6090
6091**对于子域名**(\`www.mydomain.com\` 或 \`app.mydomain.com\`):
6092\`\`\`
6093CNAME   www     → {id}.coderblock.app
6094\`\`\`
6095
6096### 第 3 步:验证与 SSL
6097
60981. Coderblock 会自动验证 DNS 配置
60992. 确认后,**SSL 证书**会通过 Let's Encrypt 自动生成
61003. 你的域名就绪:\`http://\` 和 \`https://\` 都可用
6101
6102## 耗时
6103
6104| 操作 | 时间 |
6105|-----------|------|
6106| DNS 传播 | 5 分钟 - 48 小时 |
6107| SSL 证书生成 | 1-5 分钟 |
6108| 域名激活 | DNS 之后自动 |
6109
6110## 故障排除
6111
6112| 问题 | 解决 |
6113|-------|----------|
6114| DNS 未传播 | 最多等待 48 小时,用 \`dig\` 或 \`nslookup\` 验证记录 |
6115| SSL 证书错误 | 检查 CNAME 是否指向正确,几分钟后重试 |
6116| 域名无法访问 | 检查是否有活跃代理(如 Cloudflare 代理)在干扰 |
6117
6118> [!WARNING] 如果使用 Cloudflare,请至少在初始设置期间将 CNAME 记录的代理设为 **“DNS only”**(灰色图标)。SSL 证书生成后,你可以重新启用代理。
6119`},billing:{es:`# Facturación
6120
6121\`\`\`anim
6122credits
6123\`\`\`
6124
6125Gestiona tu suscripción, pagos y facturas.
6126
6127## Planes
6128
6129| Plan | Precio | Créditos de IA |
6130|------|--------|----------------|
6131| Community | Gratis | ${y} créditos, una sola vez (no se renuevan) |
6132| Pro | $25/mes | 100 créditos cada mes |
6133| Business | $50/mes | 200 créditos cada mes |
6134| Enterprise | A medida | Contacta con ventas |
6135
6136En la UE/EEE, Reino Unido y Suiza los precios se muestran en euros. Los precios ya incluyen el IVA o los impuestos sobre las ventas. La facturación anual cuesta menos que la mensual: la [página de precios](/pricing) muestra siempre el precio exacto y actualizado en tu moneda. La comparativa completa está en [Planes](/docs/plans).
6137
6138## Gestión de la suscripción
6139
6140- Ve a **Cuenta → Suscripción**
6141- Puedes subir o bajar de plan, o cancelar, en cualquier momento
6142- Las subidas de plan se prorratean y tus créditos sin usar pasan al nuevo plan
6143- Los pagos los gestiona **Stripe**: a los clientes de la UE les factura Coderblock S.r.l. (Italia) y al resto Coderblock, Inc. (EE. UU.)
6144- Las facturas están disponibles en la sección de facturación de tu cuenta
6145
6146> [!INFO] Los créditos mensuales se reinician en cada renovación y no se acumulan para el mes siguiente. Los créditos extra que compres se guardan aparte de la asignación mensual.
6147`,fr:`# Facturation
6148
6149\`\`\`anim
6150credits
6151\`\`\`
6152
6153Gère ton abonnement, tes paiements et tes factures.
6154
6155## Offres
6156
6157| Offre | Prix | Crédits IA |
6158|-------|------|------------|
6159| Community | Gratuit | ${y} crédits, une seule fois (non renouvelés) |
6160| Pro | 25 $/mois | 100 crédits chaque mois |
6161| Business | 50 $/mois | 200 crédits chaque mois |
6162| Enterprise | Sur mesure | Contacte l'équipe commerciale |
6163
6164Dans l'UE/EEE, au Royaume-Uni et en Suisse, les prix sont affichés en euros. Les prix incluent déjà la TVA ou les taxes de vente. La facturation annuelle coûte moins cher que la mensuelle : la [page des tarifs](/pricing) affiche toujours le prix exact et à jour dans ta devise. La comparaison complète se trouve dans [Offres](/docs/plans).
6165
6166## Gestion de l'abonnement
6167
6168- Va dans **Account → Subscription**
6169- Tu peux changer d'offre ou résilier à tout moment
6170- Les passages à une offre supérieure sont calculés au prorata, et tes crédits non utilisés sont reportés sur la nouvelle offre
6171- Les paiements sont traités par **Stripe** : les clients de l'UE sont facturés par Coderblock S.r.l. (Italie), les autres par Coderblock, Inc. (États-Unis)
6172- Les factures sont disponibles dans la section facturation de ton compte
6173
6174> [!INFO] Les crédits mensuels sont remis à zéro à chaque renouvellement et ne sont pas reportés au mois suivant. Les crédits supplémentaires que tu achètes sont conservés à part de la dotation mensuelle.
6175`,de:`# Abrechnung
6176
6177\`\`\`anim
6178credits
6179\`\`\`
6180
6181Verwalte Abo, Zahlungen und Rechnungen.
6182
6183## Pläne
6184
6185| Plan | Preis | KI-Credits |
6186|------|-------|------------|
6187| Community | Kostenlos | ${y} Credits, einmalig (keine Erneuerung) |
6188| Pro | 25 $/Monat | 100 Credits pro Monat |
6189| Business | 50 $/Monat | 200 Credits pro Monat |
6190| Enterprise | Individuell | Vertrieb kontaktieren |
6191
6192In der EU/im EWR, im Vereinigten Königreich und in der Schweiz werden die Preise in Euro angezeigt. Die Preise enthalten bereits MwSt. bzw. Umsatzsteuer. Jährliche Abrechnung ist günstiger als monatliche: Die [Preisseite](/pricing) zeigt immer den genauen, aktuellen Preis in deiner Währung. Der vollständige Vergleich steht unter [Pläne](/docs/plans).
6193
6194## Abo-Verwaltung
6195
6196- Gehe zu **Konto → Abo**
6197- Du kannst jederzeit upgraden, downgraden oder kündigen
6198- Upgrades werden anteilig berechnet, und deine ungenutzten Credits gehen in den neuen Plan über
6199- Zahlungen laufen über **Stripe**: Kunden in der EU werden von der Coderblock S.r.l. (Italien) abgerechnet, alle anderen von der Coderblock, Inc. (USA)
6200- Rechnungen findest du im Abrechnungsbereich deines Kontos
6201
6202> [!INFO] Monatliche Credits werden bei jeder Verlängerung zurückgesetzt und nicht in den nächsten Monat übertragen. Zusätzlich gekaufte Credits werden getrennt vom monatlichen Kontingent geführt.
6203`,zh:`# 账单
6204
6205\`\`\`anim
6206credits
6207\`\`\`
6208
6209管理你的订阅、付款和发票。
6210
6211## 套餐
6212
6213| 套餐 | 价格 | AI 积分 |
6214|------|------|---------|
6215| Community | 免费 | ${y} 积分,一次性发放(不续期) |
6216| Pro | 25 美元/月 | 每月 100 积分 |
6217| Business | 50 美元/月 | 每月 200 积分 |
6218| Enterprise | 定制 | 联系销售 |
6219
6220欧盟/欧洲经济区、英国和瑞士的用户看到的是欧元价格。价格已包含增值税或销售税。按年付费比按月付费更便宜:[价格页面](/pricing)始终以你的货币显示准确的最新价格。完整对比见[套餐](/docs/plans)。
6221
6222## 订阅管理
6223
6224- 前往 **账户 → 订阅**
6225- 你可以随时升级、降级或取消
6226- 升级按比例计费,未用完的积分会转入新套餐
6227- 付款由 **Stripe** 处理:欧盟用户由 Coderblock S.r.l.(意大利)开具账单,其他用户由 Coderblock, Inc.(美国)开具账单
6228- 发票可在账户的账单部分查看
6229
6230> [!INFO] 每月积分在每次续订时重置,不会累积到下个月。你额外购买的积分与每月额度分开保存。
6231`},credits:{es:`# Créditos
6232
6233\`\`\`anim
6234credits
6235\`\`\`
6236
6237Los créditos son la unidad que mide el uso de la IA en Coderblock.
6238
6239## De dónde salen los créditos
6240
6241- **Community**: ${y} créditos una sola vez, al registrarte. No se renuevan.
6242- **Prueba de Pro**: +${M} créditos durante los 14 días de la prueba.
6243- **Pro**: 100 créditos cada mes. **Business**: 200 créditos cada mes.
6244- **Créditos extra**: puedes comprar paquetes de créditos en cualquier momento con **Comprar créditos**.
6245
6246## Cómo se consumen los créditos
6247
6248Cada mensaje se cobra según el trabajo de IA que realmente necesitó, no con una tarifa fija. Influyen tres cosas:
6249
62501. **El tamaño de la tarea**: un pequeño cambio de texto consume una fracción de crédito, mientras que generar una app fullstack completa puede requerir varios créditos.
62512. **El modelo**: los modelos premium (Claude, GPT-6.1 Sol, GPT-5.6 Terra y Frontier) consumen más créditos que los modelos abiertos para el mismo trabajo, y Claude Fable 5 es el que más consume. Ver [Modelos](/docs/models).
62523. **Tu plan**: los planes de pago consumen menos créditos por el mismo trabajo.
6253
6254Las herramientas que la IA usa durante un mensaje, como la generación de imágenes, se incluyen en el coste de ese mensaje.
6255
6256> [!INFO] La primera generación de tu primer proyecto corre por cuenta de Coderblock, hasta un límite: una nota en el chat te avisa cuando se aplica.
6257
6258## Estimaciones y consumo real
6259
6260- Con **Auto** (y con **Frontier** cuando está disponible) la ventana de niveles de calidad muestra una **estimación** del coste por mensaje que se actualiza al cambiar los niveles.
6261- Después de cada mensaje, los créditos realmente usados quedan registrados en tu historial de consumo.
6262
6263Lo que cuenta son la estimación de la app y tu historial de consumo: los ejemplos de esta documentación son solo orientativos.
6264
6265## Otros usos de los créditos
6266
6267- Una **IPv4 dedicada** opcional para un dominio personalizado se paga en créditos, un año cada vez.
6268
6269## Seguimiento
6270
6271Desde **Cuenta → Suscripción** puedes ver:
6272
6273- Los créditos restantes
6274- El consumo por tipo de acción
6275- El uso reciente
6276
6277> [!WARNING] Cuando se acaban los créditos, la IA no puede iniciar nuevas peticiones hasta que se renueve tu plan o compres créditos extra.
6278`,fr:`# Crédits
6279
6280\`\`\`anim
6281credits
6282\`\`\`
6283
6284Les crédits sont l'unité qui mesure l'utilisation de l'IA sur Coderblock.
6285
6286## D'où viennent les crédits
6287
6288- **Community** : ${y} crédits une seule fois, à l'inscription. Ils ne se renouvellent pas.
6289- **Essai Pro** : +${M} crédits pendant les 14 jours de l'essai.
6290- **Pro** : 100 crédits chaque mois. **Business** : 200 crédits chaque mois.
6291- **Crédits supplémentaires** : tu peux acheter des packs de crédits à tout moment avec **Buy credits**.
6292
6293## Comment les crédits sont consommés
6294
6295Chaque message est facturé selon le travail d'IA réellement nécessaire, pas selon un forfait. Trois éléments comptent :
6296
62971. **La taille de la tâche** : une petite modification de texte consomme une fraction de crédit, alors que générer une app fullstack complète peut en demander plusieurs.
62982. **Le modèle** : les modèles premium (Claude, GPT-6.1 Sol, GPT-5.6 Terra et Frontier) consomment plus de crédits que les modèles ouverts pour le même travail, et Claude Fable 5 est le plus gourmand. Voir [Modèles](/docs/models).
62993. **Ton offre** : les offres payantes consomment moins de crédits pour le même travail.
6300
6301Les outils que l'IA utilise pendant un message, comme la génération d'images, sont inclus dans le coût de ce message.
6302
6303> [!INFO] La première génération de ton premier projet est offerte par Coderblock, dans une certaine limite : une note dans le chat te le signale quand elle s'applique.
6304
6305## Estimations et consommation réelle
6306
6307- Avec **Auto** (et **Frontier** quand c'est disponible), la fenêtre des niveaux de qualité affiche une **estimation** du coût par message, mise à jour quand tu modifies les niveaux.
6308- Après chaque message, les crédits réellement utilisés sont enregistrés dans ton historique de consommation.
6309
6310Ce qui fait foi, ce sont l'estimation dans l'app et ton historique : les exemples de cette documentation sont seulement indicatifs.
6311
6312## Autres usages des crédits
6313
6314- Une **IPv4 dédiée** optionnelle pour un domaine personnalisé se paie en crédits, par période d'un an.
6315
6316## Suivi
6317
6318Depuis **Account → Subscription**, tu peux voir :
6319
6320- Les crédits restants
6321- La consommation par type d'action
6322- L'utilisation récente
6323
6324> [!WARNING] Quand tes crédits sont épuisés, l'IA ne peut plus lancer de nouvelles requêtes jusqu'au renouvellement de ton offre ou à l'achat de crédits supplémentaires.
6325`,de:`# Credits
6326
6327\`\`\`anim
6328credits
6329\`\`\`
6330
6331Credits sind die Einheit, mit der die KI-Nutzung auf Coderblock gemessen wird.
6332
6333## Woher die Credits kommen
6334
6335- **Community**: ${y} Credits einmalig bei der Registrierung. Sie werden nicht erneuert.
6336- **Pro-Testphase**: +${M} Credits für die 14 Tage der Testphase.
6337- **Pro**: 100 Credits pro Monat. **Business**: 200 Credits pro Monat.
6338- **Zusätzliche Credits**: Über **Credits kaufen** kannst du jederzeit Credit-Pakete erwerben.
6339
6340## Wie Credits verbraucht werden
6341
6342Jede Nachricht wird nach der KI-Arbeit berechnet, die sie tatsächlich gebraucht hat, nicht pauschal. Drei Dinge machen den Unterschied:
6343
63441. **Der Umfang der Aufgabe**: Eine kleine Textänderung kostet einen Bruchteil eines Credits, eine komplette Fullstack-App zu erzeugen kann mehrere Credits kosten.
63452. **Das Modell**: Premium-Modelle (Claude, GPT-6.1 Sol, GPT-5.6 Terra und Frontier) verbrauchen für dieselbe Arbeit mehr Credits als offene Modelle, Claude Fable 5 am meisten. Siehe [Modelle](/docs/models).
63463. **Dein Plan**: Bezahlpläne verbrauchen für dieselbe Arbeit weniger Credits.
6347
6348Werkzeuge, die die KI während einer Nachricht nutzt, etwa die Bildgenerierung, sind in den Kosten dieser Nachricht enthalten.
6349
6350> [!INFO] Die erste Generierung deines ersten Projekts übernimmt Coderblock, bis zu einer Obergrenze: Ein Hinweis im Chat zeigt dir, wann das gilt.
6351
6352## Schätzung und tatsächlicher Verbrauch
6353
6354- Mit **Auto** (und **Frontier**, wenn verfügbar) zeigt das Fenster der Qualitätsstufen eine **Schätzung** der Kosten pro Nachricht, die sich beim Ändern der Stufen aktualisiert.
6355- Nach jeder Nachricht werden die tatsächlich verbrauchten Credits in deinem Verbrauchsverlauf erfasst.
6356
6357Maßgeblich sind die Schätzung in der App und dein Verbrauchsverlauf: Beispiele in dieser Dokumentation sind nur Richtwerte.
6358
6359## Weitere Nutzung von Credits
6360
6361- Eine optionale **dedizierte IPv4** für eine eigene Domain wird in Credits bezahlt, jeweils für ein Jahr.
6362
6363## Übersicht
6364
6365Unter **Konto → Abo** siehst du:
6366
6367- Verbleibende Credits
6368- Verbrauch nach Aktionstyp
6369- Letzte Nutzung
6370
6371> [!WARNING] Wenn deine Credits aufgebraucht sind, kann die KI keine neuen Anfragen starten, bis sich dein Plan verlängert oder du zusätzliche Credits kaufst.
6372`,zh:`# 积分
6373
6374\`\`\`anim
6375credits
6376\`\`\`
6377
6378积分是 Coderblock 上衡量 AI 使用量的单位。
6379
6380## 积分从哪里来
6381
6382- **Community**:注册时一次性获得 ${y} 积分,不会续期。
6383- **Pro 试用**:在 14 天试用期内额外获得 ${M} 积分。
6384- **Pro**:每月 100 积分。**Business**:每月 200 积分。
6385- **额外积分**:随时可以通过 **购买积分** 购买积分包。
6386
6387## 积分如何消耗
6388
6389每条消息按实际所需的 AI 工作量计费,而不是固定收费。影响因素有三个:
6390
63911. **任务的大小**:一次小的文本修改只消耗零点几个积分,而生成一个完整的全栈应用可能需要若干积分。
63922. **模型**:完成同样的工作,高级模型(Claude、GPT-6.1 Sol、GPT-5.6 Terra 和 Frontier)比开放模型消耗更多积分,其中 Claude Fable 5 消耗最多。参见[模型](/docs/models)。
63933. **你的套餐**:付费套餐完成同样的工作消耗更少的积分。
6394
6395AI 在一条消息中使用的工具(例如图片生成)已包含在该消息的费用中。
6396
6397> [!INFO] 你第一个项目的首次生成由 Coderblock 承担,但有上限:适用时聊天中会有提示。
6398
6399## 预估与实际消耗
6400
6401- 使用 **Auto**(以及可用时的 **Frontier**)时,质量等级窗口会显示每条消息的**预估**费用,并随等级调整实时更新。
6402- 每条消息结束后,实际消耗的积分会记录在你的使用记录中。
6403
6404以应用内的预估和你的使用记录为准:本文档中的示例仅供参考。
6405
6406## 积分的其他用途
6407
6408- 为自定义域名开通的可选**独立 IPv4** 以积分支付,每次按一年计费。
6409
6410## 用量查看
6411
6412在 **账户 → 订阅** 中,你可以查看:
6413
6414- 剩余积分
6415- 按操作类型划分的用量
6416- 最近的使用情况
6417
6418> [!WARNING] 积分用完后,在套餐续订或购买额外积分之前,AI 无法开始新的请求。
6419`},plans:{es:`# Planes
6420
6421\`\`\`anim
6422plans
6423\`\`\`
6424
6425Elige el plan que mejor se adapte a lo que necesitas.
6426
6427## Comparativa de planes
6428
6429| | Community | Pro | Business | Enterprise |
6430|---|-----------|-----|----------|------------|
6431| Precio | Gratis | $25/mes | $50/mes | A medida |
6432| Créditos de IA | ${y} (una sola vez) | 100/mes | 200/mes | A medida |
6433| Proyectos | 2 | Ilimitados | Ilimitados | Ilimitados |
6434| Créditos por mensaje | Tarifa estándar | Menos | Menos | A medida |
6435| Modelos | Auto, modelos abiertos, GPT-6 Luna | Todos, incluidos Claude, GPT-6.1 Sol, GPT-5.6 Terra y Frontier | Todos | Todos |
6436| Repositorios de GitHub | Públicos | Privados | Privados | Privados |
6437| Emails transaccionales gestionados | 50/día | 500/día | 2.000/día | A medida |
6438| Generación de vídeo y voz con IA | No | Sí | Sí | Sí |
6439| Soporte | Comunidad | Email | Prioritario | Gestor dedicado |
6440
6441Enterprise añade despliegue on-premise, SSO y garantías de SLA. Los precios incluyen el IVA o los impuestos sobre las ventas; la [página de precios](/pricing) muestra el precio actual en tu moneda, incluido el descuento anual.
6442
6443## Prueba de Pro
6444
6445Los usuarios de Community pueden probar Pro gratis durante **14 días**. La prueba añade **${M} créditos** (en total tendrás ${V} con tus créditos de Community) y desbloquea las funciones de Pro. Los créditos de regalo caducan con la prueba. Si ya tuviste una suscripción Pro de pago, la prueba no se vuelve a ofrecer y puedes suscribirte directamente.
6446
6447## Cómo cambiar de plan
6448
64491. Ve a **Cuenta → Suscripción**
64502. Selecciona el nuevo plan
64513. Las subidas de plan son inmediatas y se prorratean
64524. Tus créditos sin usar pasan al nuevo plan
6453
6454> [!TIP] Empieza con Community (o con la prueba de Pro) para probar la plataforma y pasa a Pro cuando necesites más créditos y los modelos premium.
6455`,fr:`# Offres
6456
6457\`\`\`anim
6458plans
6459\`\`\`
6460
6461Choisis l'offre qui correspond à tes besoins.
6462
6463## Comparatif des offres
6464
6465| | Community | Pro | Business | Enterprise |
6466|---|-----------|-----|----------|------------|
6467| Prix | Gratuit | 25 $/mois | 50 $/mois | Sur mesure |
6468| Crédits IA | ${y} (une seule fois) | 100/mois | 200/mois | Sur mesure |
6469| Projets | 2 | Illimités | Illimités | Illimités |
6470| Crédits par message | Tarif standard | Réduits | Réduits | Sur mesure |
6471| Modèles | Auto, modèles ouverts, GPT-6 Luna | Tous, y compris Claude, GPT-6.1 Sol, GPT-5.6 Terra et Frontier | Tous | Tous |
6472| Dépôts GitHub | Publics | Privés | Privés | Privés |
6473| E-mails transactionnels gérés | 50/jour | 500/jour | 2 000/jour | Sur mesure |
6474| Génération vidéo et voix par IA | Non | Oui | Oui | Oui |
6475| Support | Communauté | E-mail | Prioritaire | Responsable dédié |
6476
6477Enterprise ajoute le déploiement on-premise, le SSO et des garanties de SLA. Les prix incluent la TVA ou les taxes de vente ; la [page des tarifs](/pricing) affiche le prix actuel dans ta devise, remise annuelle comprise.
6478
6479## Essai Pro
6480
6481Les utilisateurs Community peuvent essayer Pro gratuitement pendant **14 jours**. L'essai ajoute **${M} crédits** (soit ${V} au total avec tes crédits Community) et débloque les fonctionnalités Pro. Les crédits bonus expirent avec l'essai. Si tu as déjà eu un abonnement Pro payant, l'essai n'est plus proposé et tu peux t'abonner directement.
6482
6483## Changer d'offre
6484
64851. Va dans **Account → Subscription**
64862. Sélectionne la nouvelle offre
64873. Les passages à une offre supérieure sont immédiats et calculés au prorata
64884. Tes crédits non utilisés sont reportés sur la nouvelle offre
6489
6490> [!TIP] Commence avec Community (ou l'essai Pro) pour découvrir la plateforme, puis passe à Pro quand tu as besoin de plus de crédits et des modèles premium.
6491`,de:`# Pläne
6492
6493\`\`\`anim
6494plans
6495\`\`\`
6496
6497Wähle den Plan, der zu dir passt.
6498
6499## Pläne im Vergleich
6500
6501| | Community | Pro | Business | Enterprise |
6502|---|-----------|-----|----------|------------|
6503| Preis | Kostenlos | 25 $/Monat | 50 $/Monat | Individuell |
6504| KI-Credits | ${y} (einmalig) | 100/Monat | 200/Monat | Individuell |
6505| Projekte | 2 | Unbegrenzt | Unbegrenzt | Unbegrenzt |
6506| Credits pro Nachricht | Standardtarif | Weniger | Weniger | Individuell |
6507| Modelle | Auto, offene Modelle, GPT-6 Luna | Alle, inkl. Claude, GPT-6.1 Sol, GPT-5.6 Terra und Frontier | Alle | Alle |
6508| GitHub-Repositories | Öffentlich | Privat | Privat | Privat |
6509| Verwaltete Transaktions-E-Mails | 50/Tag | 500/Tag | 2.000/Tag | Individuell |
6510| KI-Video- und Sprachgenerierung | Nein | Ja | Ja | Ja |
6511| Support | Community | E-Mail | Priorisiert | Persönlicher Ansprechpartner |
6512
6513Enterprise bietet zusätzlich On-Premise-Betrieb, SSO und SLA-Garantien. Die Preise enthalten MwSt. bzw. Umsatzsteuer; die [Preisseite](/pricing) zeigt den aktuellen Preis in deiner Währung, einschließlich Jahresrabatt.
6514
6515## Pro-Testphase
6516
6517Community-Nutzer können Pro **14 Tage** kostenlos testen. Die Testphase bringt **${M} Credits** dazu (zusammen mit deinen Community-Credits also ${V}) und schaltet die Pro-Funktionen frei. Die Bonus-Credits verfallen mit dem Ende der Testphase. Wenn du schon ein bezahltes Pro-Abo hattest, wird die Testphase nicht erneut angeboten und du kannst direkt abonnieren.
6518
6519## Plan wechseln
6520
65211. Gehe zu **Konto → Abo**
65222. Wähle den neuen Plan
65233. Upgrades gelten sofort und werden anteilig berechnet
65244. Deine ungenutzten Credits gehen in den neuen Plan über
6525
6526> [!TIP] Starte mit Community (oder der Pro-Testphase), um die Plattform kennenzulernen, und wechsle zu Pro, wenn du mehr Credits und die Premium-Modelle brauchst.
6527`,zh:`# 套餐
6528
6529\`\`\`anim
6530plans
6531\`\`\`
6532
6533选择最适合你需求的套餐。
6534
6535## 套餐对比
6536
6537| | Community | Pro | Business | Enterprise |
6538|---|-----------|-----|----------|------------|
6539| 价格 | 免费 | 25 美元/月 | 50 美元/月 | 定制 |
6540| AI 积分 | ${y}(一次性) | 100/月 | 200/月 | 定制 |
6541| 项目 | 2 | 无限 | 无限 | 无限 |
6542| 每条消息的积分 | 标准费率 | 更少 | 更少 | 定制 |
6543| 模型 | Auto、开放模型、GPT-6 Luna | 全部,包括 Claude、GPT-6.1 Sol、GPT-5.6 Terra 和 Frontier | 全部 | 全部 |
6544| GitHub 仓库 | 公开 | 私有 | 私有 | 私有 |
6545| 托管的事务邮件 | 50/天 | 500/天 | 2,000/天 | 定制 |
6546| AI 视频与语音生成 | 否 | 是 | 是 | 是 |
6547| 支持 | 社区 | 邮件 | 优先 | 专属经理 |
6548
6549Enterprise 还提供本地部署、SSO 和 SLA 保障。价格已含增值税或销售税;[价格页面](/pricing)以你的货币显示当前价格,包括年付折扣。
6550
6551## Pro 试用
6552
6553Community 用户可以免费试用 Pro **14 天**。试用期额外提供 **${M} 积分**(加上 Community 积分共 ${V} 积分),并解锁 Pro 功能。赠送的积分随试用结束而失效。如果你曾经订阅过付费的 Pro,将不再提供试用,你可以直接订阅。
6554
6555## 如何更换套餐
6556
65571. 前往 **账户 → 订阅**
65582. 选择新套餐
65593. 升级立即生效并按比例计费
65604. 未用完的积分会转入新套餐
6561
6562> [!TIP] 先用 Community(或 Pro 试用)体验平台,当你需要更多积分和高级模型时再升级到 Pro。
6563`},changelog:{es:`# Changelog
6564
6565\`\`\`anim
6566changelog
6567\`\`\`
6568
6569Últimas novedades y actualizaciones de la plataforma.
6570
6571---
6572
6573## Septiembre 2026
6574
6575### 🚀 Novedades
6576
6577- **Nuevos modelos**: Claude Opus 5.5 es ahora el modelo insignia de Anthropic en Coderblock, y GPT-6 Sol y GPT-6 Luna sustituyen a GPT-5.6 Sol y GPT-5.6 Luna. Claude Sonnet 5 sigue siendo el modelo Claude para el día a día. Ver [Modelos](/docs/models).
6578- **GPT-6.1 Sol** (30 de septiembre): el modo Sol pasa de GPT-6 Sol a GPT-6.1 Sol, al mismo precio y más fuerte en código. Ver [Modelos](/docs/models).
6579- **Selector con nombres reales**: cada opción muestra ahora el nombre real del modelo, agrupado por proveedor, junto a Auto y Frontier.
6580
6581### 💳 Planes
6582
6583- Planes actuales: Community (gratis, ${y} créditos una sola vez), Pro ($25/mes, 100 créditos al mes), Business ($50/mes, 200 créditos al mes) y Enterprise (a medida). Ver [Planes](/docs/plans).
6584
6585> [!INFO] Las entradas siguientes describen la plataforma tal como era entonces: algunos modelos, nombres de modos y precios que mencionan ya se han sustituido.
6586
6587---
6588
6589## Marzo 2026
6590
6591### 🚀 Novedades
6592
6593- **AI Chat: Stop y cola de mensajes**: Ahora puedes detener la ejecución de la IA en cualquier momento con el botón Stop. También puedes escribir mensajes mientras la IA trabaja: se ponen en cola y se envían automáticamente al terminar la ejecución actual, o puedes forzar el envío inmediato.
6594- **Modo Eco (Kimi K2.5)**: Tercer modo de generación con IA junto a Turbo (Sonnet 4.6) y Premium (Opus 4.6). Alrededor de un 80% más barato, ideal para tareas simples.
6595- **Variables de entorno en el chat**: Cuando la IA detecta la necesidad de una clave API, muestra un campo enmascarado directamente en el chat. Guarda con un clic.
6596- **Consultas SQL directas**: El agente de IA puede ejecutar consultas SQL (SELECT, INSERT, UPDATE, DELETE, DDL) directamente en la base de datos del proyecto, con capas de seguridad y confirmación del usuario para operaciones destructivas.
6597- **HIL (Human-in-the-Loop)**: El agente presenta botones de opción múltiple para decisiones ambiguas (alcance de la clonación, cambios en la base de datos, etc.).
6598- **Generación de imágenes en los proyectos**: La IA puede generar imágenes (banners hero, ilustraciones, iconos) directamente en los archivos del proyecto con DALL-E.
6599- **Social Login para los proyectos**: Proxy OAuth compartido de Coderblock con Google + GitHub. Tus usuarios pueden iniciar sesión con un clic.
6600- **Navegación atrás en la vista previa**: Botón atrás en el navegador de la vista previa + navegación SPA sin parpadeo blanco.
6601- **32 plantillas de producto**: Plataforma de reservas, tienda online, juego MMORPG, plataforma de contenidos, app de bienestar y mucho más.
6602- **Más de 20 plantillas de función**: Panel de administración, carrito, chat, CMS, dashboard, notificaciones, pagos, búsqueda, suscripciones, gestión de tareas.
6603
6604### ⚡ Mejoras
6605
6606- **Hot-reload 5 veces más rápido**: De ~60-80s a ~7-13s para cambios de un solo archivo. Ruta optimizada con \`aws s3 cp\` dirigido.
6607- **UI del chat más limpia**: Bloques de herramientas plegables ("N herramientas usadas" al estilo Lovable), sin narración de razonamiento intermedio.
6608- **RAG mejorado**: Indexación automática para las plantillas de producto (de 148 a 284 puntos, de 99 a 103 archivos).
6609- **code_search reescrito**: Corregido un bug fundamental, filtros de exclusión de archivos, caché en memoria.
6610- **Prompt caching**: Reducción de coste de ~27-33% con el prompt c
6610aching de Anthropic.
6611- **Tema claro por defecto**: La homepage ahora usa tema claro; el modo oscuro por elección explícita.
6612
6613### 🔒 Seguridad
6614
6615- **Row Level Security (RLS)**: Activado en las 66 tablas, acceso anónimo revocado en 58 tablas sensibles.
6616- **Backup completo de la base de datos**: pg_dump schema + data con PostgreSQL 17.
6617- **Rate limiting**: slowapi en todos los endpoints de la API.
6618- **Eliminación de cuenta autoservicio**: Cumplimiento del GDPR con limpieza completa de datos.
6619
6620### 💳 Pagos y facturación
6621
6622- **Arquitectura dual-Stripe**: Coderblock Inc (US/no-UE) + Coderblock Srl (IT/UE) con enrutado automático según el país.
6623- **Fatture in Cloud**: Facturación electrónica italiana automática (SDI) para los pagos de la Srl.
6624- **Stripe Adaptive Pricing**: Precios base en USD con conversión automática + Stripe Tax para el IVA.
6625- **Paquetes de créditos**: 25/75/170/400 créditos a 10/25/50/100 $.
6626
6627### 🐛 Corrección de errores
6628
6629- Corregido el import de ReactDOM en todas las plantillas base
6630- Corregida la sincronización bloqueada en la vista previa tras un timeout SSE
6631- Corregido el bucle infinito en operaciones destructivas con confirmación del usuario
6632- Corregida una inyección SQL en el parámetro \`order_dir\`
6633- Corregidos los nombres de usuario duplicados durante el social login
6634
6635---
6636
6637## Febrero 2026
6638
6639### 🚀 Novedades
6640
6641- **Arquitectura Single-Agent**: Migración del sistema multiagente Agno al patrón Claude Code: pensar → actuar → observar → corregir.
6642- **Sub-agentes en paralelo**: Hasta 3-4 sub-agentes concurrentes con \`asyncio.gather()\` para la generación de código frontend y backend.
6643- **Vista previa en Fly.io**: VMs reales con servidor de dev Vite y HMR en \`*.coderblock.dev\`.
6644- **Despliegue en producción**: Contenedor Docker unificado en \`*.coderblock.app\` con Fly.io.
6645- **Clonación de sitios**: La IA puede analizar y clonar sitios web existentes a partir de URLs.
6646- **Auto-descubrimiento de rutas**: \`import.meta.glob\` para el descubrimiento automático de páginas en el frontend.
6647
6648### ⚡ Mejoras
6649
6650- **NeonDB resiliente**: pool_recycle, pool_pre_ping, mejor manejo de errores.
6651- **Web scraper con Playwright**: Navegador headless para sitios renderizados con JS, httpx como fallback.
6652- **Health check del frontend**: Detección automática de errores 500 de Vite con bucle de auto-fix.
6653
6654---
6655
6656## Enero 2026
6657
6658### 🚀 Lanzamiento
6659
6660- Lanzamiento de la plataforma Coderblock.ai
6661- **Claude Sonnet 4.6** como modelo principal
6662- **Claude Opus 4.6** para la generación premium de UI frontend
6663- **Claude Haiku 4.5** para enrutado y análisis
6664- Panel de proyectos, editor a pantalla dividida, gestor de archivos
6665- Sistema de créditos con planes Community y Pro
6666`,fr:`# Changelog
6667
6668\`\`\`anim
6669changelog
6670\`\`\`
6671
6672Dernières nouveautés et mises à jour de la plateforme.
6673
6674---
6675
6676## Septembre 2026
6677
6678### 🚀 Nouveautés
6679
6680- **Nouveaux modèles** : Claude Opus 5.5 est désormais le modèle phare d'Anthropic sur Coderblock, et GPT-6 Sol et GPT-6 Luna remplacent GPT-5.6 Sol et GPT-5.6 Luna. Claude Sonnet 5 reste le modèle Claude du quotidien. Voir [Modèles](/docs/models).
6681- **GPT-6.1 Sol** (30 septembre) : le mode Sol passe de GPT-6 Sol à GPT-6.1 Sol, au même prix et plus fort en code. Voir [Modèles](/docs/models).
6682- **Sélecteur avec les vrais noms** : chaque option affiche désormais le nom réel du modèle, regroupé par fournisseur, à côté d'Auto et Frontier.
6683
6684### 💳 Offres
6685
6686- Offres actuelles : Community (gratuit, ${y} crédits une seule fois), Pro (25 $/mois, 100 crédits par mois), Business (50 $/mois, 200 crédits par mois) et Enterprise (sur mesure). Voir [Offres](/docs/plans).
6687
6688> [!INFO] Les entrées ci-dessous décrivent la plateforme telle qu'elle était à l'époque : certains modèles, noms de modes et prix qu'elles citent ont depuis été remplacés.
6689
6690---
6691
6692## Mars 2026
6693
6694### 🚀 Nouveautés
6695
6696- **AI Chat : Stop et file de messages**: Tu peux désormais arrêter l'exécution de l'IA à tout moment avec le bouton Stop. Tu peux aussi écrire des messages pendant que l'IA travaille : ils sont mis en file et envoyés automatiquement à la fin de l'exécution en cours, ou tu peux forcer l'envoi immédiat.
6697- **Mode Eco (Kimi K2.5)**: Troisième mode de génération IA aux côtés de Turbo (Sonnet 4.6) et Premium (Opus 4.6). Environ 80 % moins cher, idéal pour les tâches simples.
6698- **Variables d'environnement dans le chat**: Quand l'IA détecte le besoin d'une clé API, elle affiche un champ masqué directement dans le chat. Enregistre en un clic.
6699- **Requêtes SQL directes**: L'agent IA peut exécuter des requêtes SQL (SELECT, INSERT, UPDATE, DELETE, DDL) directement sur la base de données du projet, avec des couches de sécurité et une confirmation de l'utilisateur pour les opérations destructrices.
6700- **HIL (Human-in-the-Loop)**: L'agent présente des boutons à choix multiples pour les décisions ambiguës (portée du clonage, changements de base de données, etc.).
6701- **Génération d'images dans les projets**: L'IA peut générer des images (bannières hero, illustrations, icônes) directement dans les fichiers du projet avec DALL-E.
6702- **Social Login pour les projets**: Proxy OAuth partagé Coderblock avec Google + GitHub. Tes utilisateurs peuvent se connecter en un clic.
6703- **Navigation arrière dans l'aperçu**: Bouton retour dans le navigateur de l'aperçu + navigation SPA sans flash blanc.
6704- **32 templates produit**: Plateforme de réservation, boutique en ligne, jeu MMORPG, plateforme de contenus, app bien-être et bien plus.
6705- **Plus de 20 templates de fonctionnalité**: Panneau d'administration, panier, chat, CMS, dashboard, notifications, paiements, recherche, abonnements, gestion des tâches.
6706
6707### ⚡ Améliorations
6708
6709- **Hot-reload 5x plus rapide**: De ~60-80s à ~7-13s pour les changements d'un seul fichier. Chemin optimisé avec \`aws 
6709s3 cp\` ciblé.
6710- **UI du chat épurée**: Blocs d'outils repliables (« N outils utilisés » à la Lovable), sans narration du raisonnement intermédiaire.
6711- **RAG amélioré**: Indexation automatique pour les templates produit (de 148 à 284 points, de 99 à 103 fichiers).
6712- **code_search réécrit**: Bug fondamental corrigé, filtres d'exclusion de fichiers, cache en mémoire.
6713- **Prompt caching**: Réduction des coûts de ~27-33 % avec le prompt caching d'Anthropic.
6714- **Thème clair par défaut**: La homepage utilise désormais le thème clair ; le mode sombre par choix explicite.
6715
6716### 🔒 Sécurité
6717
6718- **Row Level Security (RLS)**: Activé sur les 66 tables, accès anonyme révoqué sur 58 tables sensibles.
6719- **Sauvegarde complète de la base de données**: pg_dump schema + data avec PostgreSQL 17.
6720- **Rate limiting**: slowapi sur tous les endpoints de l'API.
6721- **Suppression de compte en self-service**: Conformité GDPR avec nettoyage complet des données.
6722
6723### 💳 Paiements & facturation
6724
6725- **Architecture dual-Stripe**: Coderblock Inc (US/hors-UE) + Coderblock Srl (IT/UE) avec routage automatique selon le pays.
6726- **Fatture in Cloud**: Facturation électronique italienne automatique (SDI) pour les paiements de la Srl.
6727- **Stripe Adaptive Pricing**: Prix de base en USD avec conversion automatique + Stripe Tax pour la TVA.
6728- **Packs de crédits**: 25/75/170/400 crédits à 10/25/50/100 $.
6729
6730### 🐛 Corrections de bugs
6731
6732- Corrigé l'import de ReactDOM dans tous les templates de base
6733- Corrigée la synchro bloquée dans l'aperçu après un timeout SSE
6734- Corrigée la boucle infinie sur les opérations destructrices avec confirmation utilisateur
6735- Corrigée une injection SQL dans le paramètre \`order_dir\`
6736- Corrigés les noms d'utilisateur en double lors du social login
6737
6738---
6739
6740## Février 2026
6741
6742### 🚀 Nouveautés
6743
6744- **Architecture Single-Agent**: Migration du système multi-agents Agno vers le pattern Claude Code : penser → agir → observer → corriger.
6745- **Sous-agents en parallèle**: Jusqu'à 3-4 sous-agents simultanés avec \`asyncio.gather()\` pour la génération de code frontend et backend.
6746- **Aperçu sur Fly.io**: Vraies VMs avec serveur de dev Vite et HMR sur \`*.coderblock.dev\`.
6747- **Déploiement en production**: Conteneur Docker unifié sur \`*.coderblock.app\` avec Fly.io.
6748- **Clonage de sites**: L'IA peut analyser et cloner des sites web existants à partir d'URLs.
6749- **Auto-découverte des routes**: \`import.meta.glob\` pour la découverte automatique des pages dans le frontend.
6750
6751### ⚡ Améliorations
6752
6753- **NeonDB résilient**: pool_recycle, pool_pre_ping, meilleure gestion des erreurs.
6754- **Web scraper Playwright**: Navigateur headless pour les sites rendus en JS, httpx en fallback.
6755- **Health check du frontend**: Détection automatique des erreurs 500 de Vite avec boucle d'auto-fix.
6756
6757---
6758
6759## Janvier 2026
6760
6761### 🚀 Lancement
6762
6763- Lancement de la plateforme Coderblock.ai
6764- **Claude Sonnet 4.6** comme modèle principal
6765- **Claude Opus 4.6** pour la génération premium d'UI frontend
6766- **Claude Haiku 4.5** pour le routage et l'analyse
6767- Tableau de bord des projets, éditeur en écran partagé, gestionnaire de fichiers
6768- Système de crédits avec offres Community et Pro
6769`,de:`# Changelog
6770
6771\`\`\`anim
6772changelog
6773\`\`\`
6774
6775Neueste Nachrichten und Plattform-Updates.
6776
6777---
6778
6779## September 2026
6780
6781### 🚀 Neue Funktionen
6782
6783- **Neue Modelle**: Claude Opus 5.5 ist jetzt das Spitzenmodell von Anthropic auf Coderblock, und GPT-6 Sol und GPT-6 Luna ersetzen GPT-5.6 Sol und GPT-5.6 Luna. Claude Sonnet 5 bleibt das Claude-Modell für den Alltag. Siehe [Modelle](/docs/models).
6784- **GPT-6.1 Sol** (30. September): Der Sol-Modus wechselt von GPT-6 Sol zu GPT-6.1 Sol, zum gleichen Preis und stärker beim Code. Siehe [Modelle](/docs/models).
6785- **Modellauswahl mit echten Namen**: Jede Option zeigt jetzt den tatsächlichen Modellnamen, nach Anbieter gruppiert, neben Auto und Frontier.
6786
6787### 💳 Pläne
6788
6789- Aktuelle Pläne: Community (kostenlos, ${y} Credits einmalig), Pro (25 $/Monat, 100 Credits pro Monat), Business (50 $/Monat, 200 Credits pro Monat) und Enterprise (individuell). Siehe [Pläne](/docs/plans).
6790
6791> [!INFO] Die folgenden Einträge beschreiben die Plattform zum jeweiligen Zeitpunkt: Einige der genannten Modelle, Modusnamen und Preise wurden inzwischen ersetzt.
6792
6793---
6794
6795## März 2026
6796
6797### 🚀 Neue Funktionen
6798
6799- **AI Chat: Stop & Nachrichten-Warteschlange**: Du kannst die KI-Ausführung jetzt jederzeit mit dem Stop-Button anhalten. Du kannst auch Nachrichten schreiben, während die KI arbeitet: sie werden eingereiht und nach Abschluss der aktuellen Ausführung automatisch gesendet, oder du erzwingst das sofortige Senden.
6800- **Eco-Modus (Kimi K2.5)**: Dritter KI-Generierungsmodus neben Turbo (Sonnet 4.6) und Premium (Opus 4.6). Ru
6800nd 80 % günstiger, ideal für einfache Aufgaben.
6801- **Umgebungsvariablen im Chat**: Erkennt die KI den Bedarf an einem API-Schlüssel, zeigt sie ein maskiertes Eingabefeld direkt im Chat. Mit einem Klick speichern.
6802- **Direkte SQL-Abfragen**: Der KI-Agent kann SQL-Abfragen (SELECT, INSERT, UPDATE, DELETE, DDL) direkt auf der Projektdatenbank ausführen, mit Sicherheitsebenen und Nutzerbestätigung für destruktive Operationen.
6803- **HIL (Human-in-the-Loop)**: Der Agent zeigt Mehrfachauswahl-Buttons für mehrdeutige Entscheidungen (Klon-Umfang, Datenbankänderungen usw.).
6804- **Bildgenerierung in den Projekten**: Die KI kann Bilder (Hero-Banner, Illustrationen, Icons) direkt in den Projektdateien mit DALL-E generieren.
6805- **Social Login für die Projekte**: Gemeinsamer Coderblock-OAuth-Proxy mit Google + GitHub. Deine Nutzer können sich mit einem Klick anmelden.
6806- **Zurück-Navigation in der Vorschau**: Zurück-Button im Vorschau-Browser + SPA-Navigation ohne weißes Flackern.
6807- **32 Produktvorlagen**: Buchungsplattform, Online-Shop, MMORPG-Spiel, Content-Plattform, Wellness-App und vieles mehr.
6808- **Über 20 Funktionsvorlagen**: Admin-Panel, Warenkorb, Chat, CMS, Dashboard, Benachrichtigungen, Zahlungen, Suche, Abos, Aufgabenverwaltung.
6809
6810### ⚡ Verbesserungen
6811
6812- **5x schnelleres Hot-Reload**: Von ~60-80s auf ~7-13s bei Einzeldatei-Änderungen. Optimierter Pfad mit gezieltem \`aws s3 cp\`.
6813- **Aufgeräumte Chat-UI**: Einklappbare Tool-Blöcke („N Tools verwendet" à la Lovable), keine Zwischen-Reasoning-Narration.
6814- **Verbessertes RAG**: Automatische Indizierung für Produktvorlagen (von 148 auf 284 Punkte, von 99 auf 103 Dateien).
6815- **code_search neu geschrieben**: Fundamentaler Bug behoben, Dateiausschluss-Filter, In-Memory-Cache.
6816- **Prompt Caching**: ~27-33 % Kostenreduktion mit Anthropics Prompt Caching.
6817- **Helles Theme als Standard**: Die Homepage nutzt jetzt das helle Theme; Dark Mode auf ausdrückliche Wahl.
6818
6819### 🔒 Sicherheit
6820
6821- **Row Level Security (RLS)**: Auf allen 66 Tabellen aktiviert, anonymer Zugriff auf 58 sensiblen Tabellen entzogen.
6822- **Vollständiges Datenbank-Backup**: pg_dump schema + data mit PostgreSQL 17.
6823- **Rate Limiting**: slowapi auf allen API-Endpoints.
6824- **Self-Service-Kontolöschung**: DSGVO-Konformität mit vollständiger Datenbereinigung.
6825
6826### 💳 Zahlungen & Abrechnung
6827
6828- **Dual-Stripe-Architektur**: Coderblock Inc (US/Nicht-EU) + Coderblock Srl (IT/EU) mit automatischem länderbasiertem Routing.
6829- **Fatture in Cloud**: Automatische italienische E-Rechnung (SDI) für Srl-Zahlungen.
6830- **Stripe Adaptive Pricing**: USD-Basispreise mit automatischer Umrechnung + Stripe Tax für die MwSt.
6831- **Credit-Pakete**: 25/75/170/400 Credits zu 10/25/50/100 $.
6832
6833### 🐛 Fehlerbehebungen
6834
6835- ReactDOM-Import in allen Basisvorlagen korrigiert
6836- Hängende Synchronisation in der Vorschau nach SSE-Timeout behoben
6837- Endlosschleife bei destruktiven Operationen mit Nutzerbestätigung behoben
6838- SQL-Injection im Parameter \`order_dir\` behoben
6839- Doppelte Nutzernamen beim Social Login behoben
6840
6841---
6842
6843## Februar 2026
6844
6845### 🚀 Neue Funktionen
6846
6847- **Single-Agent-Architektur**: Migration vom Multi-Agent-System Agno zum Claude-Code-Muster: denken → handeln → beobachten → korrigieren.
6848- **Parallele Sub-Agenten**: Bis zu 3-4 gleichzeitige Sub-Agenten mit \`asyncio.gather()\` für die Frontend- und Backend-Codegenerierung.
6849- **Vorschau auf Fly.io**: Echte VMs mit Vite-Dev-Server und HMR auf \`*.coderblock.dev\`.
6850- **Produktions-Deployment**: Einheitlicher Docker-Container auf \`*.coderblock.app\` mit Fly.io.
6851- **Website-Klonen**: Die KI kann bestehende Websites aus URLs analysieren und klonen.
6852- **Automatische Routen-Erkennung**: \`import.meta.glob\` zur automatischen Seitenerkennung im Frontend.
6853
6854### ⚡ Verbesserungen
6855
6856- **Resilientes NeonDB**: pool_recycle, pool_pre_ping, verbesserte Fehlerbehandlung.
6857- **Playwright-Web-Scraper**: Headless-Browser für JS-gerenderte Seiten, httpx als Fallback.
6858- **Frontend-Health-Check**: Automatische Erkennung von Vite-500-Fehlern mit Auto-Fix-Schleife.
6859
6860---
6861
6862## Januar 2026
6863
6864### 🚀 Start
6865
6866- Start der Plattform Coderblock.ai
6867- **Claude Sonnet 4.6** als primäres Modell
6868- **Claude Opus 4.6** für die Premium-Frontend-UI-Generierung
6869- **Claude Haiku 4.5** für Routing und Analyse
6870- Projekt-Dashboard, Split-Screen-Editor, Dateimanager
6871- Credit-System mit Community- und Pro-Plänen
6872`,zh:`# 更新日志
6873
6874\`\`\`anim
6875changelog
6876\`\`\`
6877
6878平台的最新动态与更新。
6879
6880---
6881
6882## 2026 年 9 月
6883
6884### 🚀 新功能
6885
6886- **新模型**:Claude Opus 5.5 现为 Coderblock 上 Anthropic 的旗舰模型,GPT-6 Sol 和 GPT-6 Luna 取代了 GPT-5.6 Sol 和 GPT-5.6 Luna。Claude Sonnet 5 仍是日常使用的 Claude 模型。参见[模型](/docs/models)。
6887- **GPT-6.1 Sol**(9 月 30 日):Sol 模式由 GPT-6 Sol 升级为 GPT-6.
68871 Sol,价格不变,编程能力更强。参见[模型](/docs/models)。
6888- **显示真实名称的模型选择器**:每个选项现在都显示实际的模型名称,并按提供商分组,与 Auto 和 Frontier 并列。
6889
6890### 💳 套餐
6891
6892- 当前套餐:Community(免费,一次性 ${y} 积分)、Pro(25 美元/月,每月 100 积分)、Business(50 美元/月,每月 200 积分)和 Enterprise(定制)。参见[套餐](/docs/plans)。
6893
6894> [!INFO] 以下条目描述的是当时的平台:其中提到的部分模型、模式名称和价格已被替换。
6895
6896---
6897
6898## 2026 年 3 月
6899
6900### 🚀 新功能
6901
6902- **AI Chat:停止与消息队列**:现在你可以随时用 Stop 按钮停止 AI 执行。你也可以在 AI 工作时输入消息:它们会进入队列,并在当前执行完成后自动发送,或者你可以强制立即发送。
6903- **Eco 模式(Kimi K2.5)**:继 Turbo(Sonnet 4.6)和 Premium(Opus 4.6)之后的第三种 AI 生成模式。便宜约 80%,适合简单任务。
6904- **聊天中的环境变量**:当 AI 检测到需要 API 密钥时,会直接在聊天中显示一个遮罩输入框。一键保存。
6905- **直接 SQL 查询**:AI 智能体可直接在项目数据库上执行 SQL 查询(SELECT、INSERT、UPDATE、DELETE、DDL),并带有安全层,破坏性操作需用户确认。
6906- **HIL(Human-in-the-Loop)**:对于含糊的决策(克隆范围、数据库更改等),智能体会给出多选按钮。
6907- **项目中的图片生成**:AI 可用 DALL-E 直接在项目文件中生成图片(主视觉横幅、插图、图标)。
6908- **项目的社交登录**:Coderblock 共享 OAuth 代理,支持 Google + GitHub。你的用户可一键登录。
6909- **预览中的后退导航**:预览浏览器中的后退按钮 + 无白屏闪烁的 SPA 导航。
6910- **32 个产品模板**:预订平台、在线商店、MMORPG 游戏、内容平台、健康应用等等。
6911- **20+ 个功能模板**:后台管理、购物车、聊天、CMS、看板、通知、支付、搜索、订阅、任务管理。
6912
6913### ⚡ 改进
6914
6915- **热重载快 5 倍**:单文件更改从约 60-80 秒降到约 7-13 秒。使用定向 \`aws s3 cp\` 优化路径。
6916- **更简洁的聊天 UI**:可折叠的工具区块(Lovable 风格的“使用了 N 个工具”),不再叙述中间推理。
6917- **改进的 RAG**:产品模板自动索引(从 148 增至 284 个点,从 99 增至 103 个文件)。
6918- **重写 code_search**:修复了一个根本性缺陷,增加文件排除过滤器与内存缓存。
6919- **Prompt caching**:使用 Anthropic 的 prompt caching 降低约 27-33% 成本。
6920- **默认浅色主题**:首页现使用浅色主题;暗色模式需显式选择。
6921
6922### 🔒 安全
6923
6924- **行级安全(RLS)**:在全部 66 张表上启用,对 58 张敏感表撤销匿名访问。
6925- **完整数据库备份**:使用 PostgreSQL 17 的 pg_dump 结构 + 数据。
6926- **速率限制**:所有 API 端点使用 slowapi。
6927- **自助账户删除**:符合 GDPR,完整清理数据。
6928
6929### 💳 支付与账单
6930
6931- **双 Stripe 架构**:Coderblock Inc(美国/非欧盟)+ Coderblock Srl(意大利/欧盟),按国家自动路由。
6932- **Fatture in Cloud**:为 Srl 付款自动开具意大利电子发票(SDI)。
6933- **Stripe Adaptive Pricing**:以美元为基准价并自动换算 + Stripe Tax 计算增值税。
6934- **积分套餐**:25/75/170/400 积分,售价 10/25/50/100 美元。
6935
6936### 🐛 缺陷修复
6937
6938- 修复所有基础模板中的 ReactDOM 导入
6939- 修复 SSE 超时后预览中卡住的同步
6940- 修复带用户确认的破坏性操作中的无限循环
6941- 修复 \`order_dir\` 参数中的 SQL 注入
6942- 修复社交登录时的重复用户名
6943
6944---
6945
6946## 2026 年 2 月
6947
6948### 🚀 新功能
6949
6950- **单智能体架构**:从多智能体 Agno 系统迁移到 Claude Code 模式:思考 → 行动 → 观察 → 纠正。
6951- **并行子智能体**:使用 \`asyncio.gather()\` 同时最多 3-4 个子智能体进行前端与后端代码生成。
6952- **Fly.io 上的预览**:在 \`*.coderblock.dev\` 上运行带 Vite 开发服务器与 HMR 的真实虚拟机。
6953- **生产部署**:使用 Fly.io 在 \`*.coderblock.app\` 上的统一 Docker 容器。
6954- **网站克隆**:AI 可以从 URL 分析并克隆现有网站。
6955- **路由自动发现**:使用 \`import.meta.glob\` 在前端自动发现é
6955¡µé¢ã€‚
6956
6957### ⚡ 改进
6958
6959- **有韧性的 NeonDB**:pool_recycle、pool_pre_ping、改进的错误处理。
6960- **Playwright 网页抓取器**:为 JS 渲染的站点提供无头浏览器,httpx 作为回退。
6961- **前端健康检查**:自动检测 Vite 500 错误并进入自动修复循环。
6962
6963---
6964
6965## 2026 年 1 月
6966
6967### 🚀 发布
6968
6969- Coderblock.ai 平台发布
6970- **Claude Sonnet 4.6** 作为主模型
6971- **Claude Opus 4.6** 用于高级前端 UI 生成
6972- **Claude Haiku 4.5** 用于路由与分析
6973- 项目仪表盘、分屏编辑器、文件管理器
6974- 带 Community 与 Pro 套餐的积分系统
6975`}};function ui(a,n){return Z[a]?.[n]??ci[a]?.[n]??Z[a]?.en??O(Z[a],n)??mi(a,n)}const ae=new Map;function pi(a){const n=ae.get(a);if(n)return n;const i=X.list(a).then(s=>{const o={};for(const r of s)o[r.slug]=r;return o}).catch(()=>({}));return ae.set(a,i),i}const Z={welcome:{it:`# Benvenuto su Coderblock
6976
6977\`\`\`anim
6978build-loop
6979\`\`\`
6980
6981Coderblock è una piattaforma di **vibe coding** che ti permette di creare applicazioni web fullstack (frontend, backend e database) semplicemente descrivendo ciò che vuoi in linguaggio naturale. Nessuna esperienza di programmazione richiesta: il nostro agente AI si occupa di tutto, dalla struttura delle pagine alla logica del server, fino al deploy in produzione.
6982
6983## Cos'è il Vibe Coding?
6984
6985Il **vibe coding** è un nuovo paradigma di sviluppo software in cui descrivi la tua idea e l'intelligenza artificiale scrive il codice per te. A differenza dei classici website builder drag-and-drop, con Coderblock ottieni codice vero e pulito (React, TypeScript, Tailwind CSS per il frontend, Python e FastAPI per il backend) che puoi esportare, modificare e controllare completamente.
6986
6987## Come funziona
6988
69891. **Descrivi** ciò che vuoi costruire in linguaggio naturale (italiano o inglese)
69902. L'**agente AI** analizza la richiesta, pianifica le modifiche e genera codice in tempo reale
69913. **Anteprima live**: vedi le modifiche istantaneamente nel browser su \`*.coderblock.dev\`
69924. **Itera**: continua a conversare per aggiungere funzionalità, correggere bug o perfezionare il design
69935. **Pubblica** con un click su un dominio \`.coderblock.app\` o sul tuo dominio personalizzato
6994
6995## Cosa puoi costruire
6996
6997Coderblock è pensato per creare applicazioni web complete. Ecco alcuni esempi:
6998
6999- **E-commerce**: catalogo prodotti, carrello, checkout con Stripe
7000- **Piattaforme di prenotazione**: calendari, disponibilità, pagamenti
7001- **Dashboard analitiche**: grafici, metriche, esportazione dati
7002- **Blog e CMS**: gestione contenuti, categorie, SEO
7003- **SaaS**: autenticazione, dashboard utente, abbonamenti
7004- **Portfolio e landing page**: design responsive, animazioni, form di contatto
7005- **Giochi browser**: con Phaser.js o Three.js per esperienze 3D
7006
7007## Lo stack tecnologico
7008
7009| Componente | Tecnologia |
7010|-----------|------------|
7011| Frontend | React 18 + TypeScript + Vite + Tailwind CSS |
7012| Backend | Python + FastAPI |
7013| Database | NeonDB (PostgreSQL serverless) |
7014| Storage file | AWS S3 |
7015| Preview | Fly.io VM con Vite HMR |
7016| Produzione | Fly.io Docker container |
7017| Pagamenti | Stripe |
7018| Email | Resend |
7019| Auth | Social login (Google, GitHub) |
7020
7021> [!INFO] Coderblock offre due tipi di progetto: **Web app** (backend gestito, consigliato) e **Web Platform** (Python + FastAPI). La tabella qui sopra riflette la Web Platform; con la Web app il backend è incluso e gestito per te. Scopri le differenze in [Web app vs Web Platform](/docs/project-types).
7022
7023## Primi passi
7024
7025\`\`\`anim
7026create-project
7027\`\`\`
7028
7029- Crea un nuovo progetto dalla [dashboard](/apps)
7030- Scegli un **template prodotto** (32 app pronte all'uso) o un **progetto vuoto**
7031- Inizia a chattare con l'AI per costruire la tua app
7032- Usa l'**anteprima live** per vedere i risultati in tempo reale
7033- Quando sei soddisfatto, clicca **Deploy** per pubblicare
7034
7035> [!TIP] Usa prompt chiari e specifici per ottenere i migliori risultati. Invece di "fammi un sito", prova "Crea una landing page per un ristorante con hero section, menù e form di prenotazione".
7036
7037## Risorse
7038
7039| Risorsa | Link |
7040|---------|------|
7041| Dashboard | [coderblock.ai/apps](/apps) |
7042| Pricing | [coderblock.ai/pricing](/pricing) |
7043| Status | [status.coderblock.ai](https://status.coderblock.ai) |
7044`,en:`# Welcome to Coderblock
7045
7046\`\`\`anim
7047build-loop
7048\`\`\`
7049
7050Coderblock is a **vibe coding** platform that lets you create fullstack web applications (frontend, backend, and database) simply by describing what you want in natural language. No programming experience required: our AI agent handles everything, from page structure to server logic to production deployment.
7051
7052## What is Vibe Coding?
7053
7054**Vibe coding** is a new software development paradigm where you describe your idea and artificial intelligence writes the code for you. Unlike traditional drag-and-drop website builders, with Coderblock you get real, clean code (React, TypeScript, Tailwind CSS for the frontend, Python and FastAPI for the backend) that you can export, modify, and fully control.
7055
7056## How it works
7057
70581. **Describe** what you want to build in natural language (English or Italian)
70592. The **AI agent** analyzes your request, plans changes, and generates code in real-time
70603. **Live preview**: see changes instantly in the browser on \`*.coderblock.dev\`
70614. **Iterate**: keep chatting to add features, fix bugs, or refine the design
70625. **Publish** with one click to a \`.coderblock.app\` domain or your own custom domain
7063
7064## What you can build
7065
7066Coderblock is designed for building complete web applications. Here are some examples:
7067
7068- **E-commerce**: product catalog, cart, Stripe checkout
7069- **Booking platforms**: calendars, availability, payments
7070- **Analytics dashboards**: charts, metrics, data export
7071- **Blogs and CMS**: content management, categories, SEO
7072- **SaaS**: authentication, user dashboard, subscriptions
7073- **Portfolios and landing pages**: responsive design, animations, contact forms
7074- **Browser games**: with Phaser.js or Three.js for 3D experiences
7075
7076## The tech stack
7077
7078| Component | Technology |
7079|-----------|------------|
7080| Frontend | React 18 + TypeScript + Vite + Tailwind CSS |
7081| Backend | Python + FastAPI |
7082| Database | NeonDB (serverless PostgreSQL) |
7083| File storage | AWS S3 |
7084| Preview | Fly.io VM with Vite HMR |
7085| Production | Fly.io Docker container |
7086| Payments | Stripe |
7087| Email | Resend |
7088| Auth | Social login (Google, GitHub) |
7089
7090> [!INFO] Coderblock offers two project types: **Web app** (managed backend, recommended) and **Web Platform** (Python + FastAPI). The table above reflects Web Platform; with Web app the backend is included and managed for you. Learn more in [Web app vs Web Platform](/docs/project-types).
7091
7092## Getting started
7093
7094\`\`\`anim
7095create-project
7096\`\`\`
7097
7098- Create a new project from the [dashboard](/apps)
7099- Choose a **product template** (32 ready-to-use apps) or a **blank project**
7100- Start chatting with the AI to build your app
7101- Use the **live preview** to see results in real-time
7102- When you're happy, click **Deploy** to publish
7103
7104> [!TIP] Use clear, specific prompts for the best results. Instead of "make me a website", try "Create a landing page for a restaurant with hero section, menu, and reservation form".
7105
7106## Resources
7107
7108| Resource | Link |
7109|----------|------|
7110| Dashboard | [coderblock.ai/apps](/apps) |
7111| Pricing | [coderblock.ai/pricing](/pricing) |
7112| Status | [status.coderblock.ai](https://status.coderblock.ai) |
7113`},"project-types":{it:`# Web app vs Web Platform
7114
7115\`\`\`anim
7116project-types
7117\`\`\`
7118
7119Quando crei un nuovo progetto, Coderblock ti chiede di scegliere il **tipo di progetto**. È la prima decisione importante: definisce le tecnologie con cui l'AI costruirà la tua applicazione. Non serve essere tecnici — questa guida ti aiuta a scegliere in un minuto.
7120
7121## Le due opzioni in breve
7122
7123| | Web app | Web Platform |
7124|---|---|---|
7125| Ideale per | SaaS, dashboard, marketplace, app con AI | Integrazioni B2B, progetti ML/dati, team Python |
7126| Velocità di avvio | Massima (anteprima in pochi secondi) | Elevata |
7127| Backend | Incluso e gestito automaticamente | Python + FastAPI |
7128| Badge | Consigliato | Stabile |
7129
7130## Web app (consigliato)
7131
7132È la scelta **predefinita e consigliata** per la maggior parte dei progetti. Ottieni un'app web completa con tutto il "dietro le quinte" già pronto e gestito da Coderblock:
7133
7134- **Accesso e account utente** sicuri pronti all'uso (email/password e login social)
7135- **Database e archiviazione file** integrati
7136- **Aggiornamenti in tempo reale** e **funzioni AI** incluse
7137- **Anteprima live in pochi secondi**
7138
7139Non devi configurare nulla a livello tecnico: descrivi l'app e l'AI la costruisce. È perfetta per lanciare velocemente un prodotto, validare un'idea o creare un SaaS.
7140
7141> [!TIP] Se non sai quale scegliere, scegli **Web app**. Copre la grande maggioranza dei casi ed è il modo più rapido per arrivare online.
7142
7143## Web Platform
7144
7145Pensata per chi ha bisogno di un **backend su misura in Python**. È la scelta giusta per:
7146
7147- **Integrazioni B2B** complesse e API personalizzate
7148- **Machine learning, analisi dati** e logiche di calcolo
7149- Team che lavorano già nell'ecosistema **Python**
7150
7151Usa **Python + FastAPI** con un database PostgreSQL e si abbina ai template 3D (Three.js / React Three Fiber).
7152
7153> [!INFO] I **Template Prodotto** (es. piattaforma di prenotazione, negozio online) sono disponibili con **Web Platform**. Con **Web app** l'AI costruisce tutto da zero a partire dalla tua richiesta.
7154
7155## Tabella di confronto completa
7156
7157| Caratteristica | Web app | Web Platform |
7158|---|---|---|
7159| Frontend | React + TypeScript + Tailwind | React + TypeScript + Tailwind |
7160| Backend | Gestito (auth, DB, storage, AI) | Python + FastAPI |
7161| Database | Incluso | PostgreSQL |
7162| Login utenti | Pronto all'uso | Configurabile |
7163| Funzioni AI | Incluse (vedi AI Agents) | Disponibili |
7164| Template prodotto | Build su misura | 32 template pronti |
7165| Ideale per | SaaS, app AI, MVP | B2B, ML, integrazioni |
7166
7167## Come si sceglie e si cambia
7168
7169Scegli il tipo di progetto nella schermata di **creazione del progetto**, tramite le due card. La selezione guida le tecnologie e i suggerimenti dell'AI.
7170
7171> [!WARNING] Il tipo di progetto si imposta alla creazione. Se hai bisogno di cambiarlo, la via più semplice è creare un nuovo progetto con il tipo corretto.
7172
7173## E adesso?
7174
7175- Hai scelto **Web app**? Aggiungi chat e immagini AI dalla sezione [AI Agents](/docs/ai-agents).
7176- Vuoi partire da un template? Vedi [Template Prodotto](/docs/product-templates).
7177`,en:`# Web app vs Web Platform
7178
7179\`\`\`anim
7180project-types
7181\`\`\`
7182
7183When you create a new project, Coderblock asks you to choose a **project type**. It's the first important decision: it defines the technologies the AI will use to build your app. You don't need to be technical — this guide helps you choose in a minute.
7184
7185## The two options at a glance
7186
7187| | Web app | Web Platform |
7188|---|---|---|
7189| Best for | SaaS, dashboards, marketplaces, AI apps | B2B integrations, ML/data projects, Python teams |
7190| Time to start | Fastest (preview in seconds) | High |
7191| Backend | Included and managed automatically | Python + FastAPI |
7192| Badge | Recommended | Stable |
7193
7194## Web app (recommended)
7195
7196The **default and recommended** choice for most projects. You get a complete web app with all the "behind the scenes" already set up and managed by Coderblock:
7197
7198- Secure **sign-in & user accounts** out of the box (email/password and social login)
7199- Built-in **database & file storage**
7200- **Realtime updates** and **AI features** included
7201- **Live preview in seconds**
7202
7203You don't configure anything technical: describe the app and the AI builds it. Perfect for launching a product fast, validating an idea, or building a SaaS.
7204
7205> [!TIP] If you're unsure, choose **Web app**. It covers the vast majority of cases and is the fastest way to get online.
7206
7207## Web Platform
7208
7209Built for those who need a **custom Python backend**. It's the right choice for:
7210
7211- Complex **B2B integrations** and custom APIs
7212- **Machine learning, data analysis** and computation logic
7213- Teams already working in the **Python** ecosystem
7214
7215It uses **Python + FastAPI** with a PostgreSQL database and pairs with the 3D templates (Three.js / React Three Fiber).
7216
7217> [!INFO] **Product Templates** (e.g. booking platform, online store) are available on **Web Platform**. With **Web app** the AI builds everything from scratch based on your request.
7218
7219## Full comparison
7220
7221| Feature | Web app | Web Platform |
7222|---|---|---|
7223| Frontend | React + TypeScript + Tailwind | React + TypeScript + Tailwind |
7224| Backend | Managed (auth, DB, storage, AI) | Python + FastAPI |
7225| Database | Included | PostgreSQL |
7226| User login | Out of the box | Configurable |
7227| AI features | Included (see AI Agents) | Available |
7228| Product templates | Custom build | 32 ready templates |
7229| Best for | SaaS, AI apps, MVP | B2B, ML, integrations |
7230
7231## How to choose and change it
7232
7233Pick the project type on the **project creation** screen, using the two cards. The choice drives the technologies and the AI's suggestions.
7234
7235> [!WARNING] The project type is set at creation time. If you need to change it, the simplest path is to create a new project with the correct type.
7236
7237## What's next?
7238
7239- Chose **Web app**? Add AI chat and images from the [AI Agents](/docs/ai-agents) section.
7240- Want to start from a template? See [Product Templates](/docs/product-templates).
7241`},"ai-agents":{it:`# AI Agents del progetto
7242
7243\`\`\`anim
7244agents-team
7245\`\`\`
7246
7247Ogni progetto **Web app** ha una scheda **AI Agents** nell'editor: è il pannello di controllo di tutte le funzionalità di intelligenza artificiale della tua applicazione. Qui vedi quali agenti AI sono attivi, come sono collegati e li configuri — senza scrivere c
7247odice e senza chiavi API.
7248
7249## Cos'è la scheda AI Agents
7250
7251Apri un progetto e seleziona la scheda **AI Agents** in alto. Vedrai un **diagramma** che mostra, per ogni funzione AI:
7252
7253- la **pagina o il componente** della tua app che la usa,
7254- l'**endpoint** che la elabora,
7255- il **Coderblock AI Gateway**, il motore che parla con i modelli AI,
7256- il **modello** in uso (per la chat o per le immagini).
7257
7258Il diagramma si aggiorna automaticamente ogni volta che aggiungi una nuova funzione AI tramite l'AI Chat.
7259
7260## Gli agenti pronti all'uso
7261
7262| Agente | Cosa fa |
7263|---|---|
7264| **AI Chat** | Una chat che risponde agli utenti in tempo reale |
7265| **AI Image** | Genera immagini a partire da una descrizione testuale |
7266
7267> [!INFO] Tutte le funzioni AI passano dal **Coderblock AI Gateway**: non devi inserire chiavi API di OpenAI, Anthropic o Google. L'utilizzo viene scalato dai tuoi **crediti** Coderblock.
7268
7269## Aggiungere un nuovo agente
7270
7271Per aggiungere una funzione AI basta chiederlo nell'**AI Chat** del progetto, in linguaggio naturale. Esempi:
7272
7273- "Aggiungi una chat AI di assistenza che risponde alle domande dei visitatori"
7274- "Aggiungi un generatore di immagini dalla descrizione"
7275
7276Una volta creato, l'agente appare automaticamente nella scheda **AI Agents**.
7277
7278## Configurare un agente
7279
7280Clicca **Configura** in alto a destra per aprire il pannello laterale. Per ogni agente puoi:
7281
7282### Cambiare il modello AI
7283
7284Dal menu a tendina **Modello AI** scegli il modello da usare:
7285
7286- Per gli agenti **di chat**: modelli di conversazione (es. Claude Haiku/Sonnet, GPT-4o / GPT-4o mini)
7287- Per gli agenti di **immagini**: modelli di generazione immagini (es. Gemini 2.5 Flash Image)
7288
7289Quando cambi il modello, Coderblock aggiorna automaticamente il codice della funzione e lo ripubblica: il nuovo modello è attivo subito, senza alcun intervento tecnico.
7290
7291> [!TIP] I modelli più leggeri (Haiku, GPT-4o mini) sono più veloci ed economici; quelli più potenti (Sonnet, GPT-4o) danno risposte più curate. Puoi cambiarli quando vuoi.
7292
7293### Knowledge base (RAG)
7294
7295Per gli agenti di chat puoi allegare documenti che l'AI userà per rispondere. Vedi la guida dedicata: [Knowledge base (RAG)](/docs/ai-knowledge-base).
7296
7297## Crediti e costi
7298
7299Ogni richiesta AI consuma crediti in base al modello scelto. Trovi i dettagli nella sezione [Crediti](/docs/credits).
7300`,en:`# Project AI Agents
7301
7302\`\`\`anim
7303agents-team
7304\`\`\`
7305
7306Every **Web app** project has an **AI Agents** tab in the editor: it's the control panel for all the AI features in your application. Here you see which AI agents are active, how they're wired up, and you configure them — with no code and no API keys.
7307
7308## What the AI Agents tab is
7309
7310Open a project and select the **AI Agents** tab at the top. You'll see a **diagram** that shows, for each AI feature:
7311
7312- the **page or component** of your app that uses it,
7313- the **endpoint** that processes it,
7314- the **Coderblock AI Gateway**, the engine that talks to the AI models,
7315- the **model** in use (for chat or for images).
7316
7317The diagram updates automatically every time you add a new AI feature through the AI Chat.
7318
7319## The agents you get out of the box
7320
7321| Agent | What it does |
7322|---|---|
7323| **AI Chat** | A chat that answers your users in real time |
7324| **AI Image** | Generates images from a text description |
7325
7326> [!INFO] Every AI feature goes through the **Coderblock AI Gateway**: you never enter OpenAI, Anthropic or Google API keys. Usage is billed against your Coderblock **credits**.
7327
7328## Adding a new agent
7329
7330To add an AI feature, just ask for it in the project's **AI Chat**, in plain language. Examples:
7331
7332- "Add a support AI chat that answers visitor questions"
7333- "Add an image generator from a description"
7334
7335Once created, the agent automatically appears in the **AI Agents** tab.
7336
7337## Configuring an agent
7338
7339Click **Configure** in the top right to open the side panel. For each agent you can:
7340
7341### Switch the AI model
7342
7343From the **AI model** dropdown choose the model to use:
7344
7345- For **chat** agents: conversation models (e.g. Claude Haiku/Sonnet, GPT-4o / GPT-4o mini)
7346- For **image** agents: image-generation models (e.g. Gemini 2.5 Flash Image)
7347
7348When you switch the model, Coderblock automatically updates the function's code and redeploys it: the new model is active immediately, with no technical work.
7349
7350> [!TIP] Lighter models (Haiku, GPT-4o mini) are faster and cheaper; more powerful ones (Sonnet, GPT-4o) give more polished answers. Change them whenever you like.
7351
7352### Knowledge base (RAG)
7353
7354For chat agents you can attach documents the AI will use to answer. See the dedicated guide: [Knowledge base (RAG)](/docs/ai-knowledge-base).
7355
7356## Credits and cost
7357
7358Each AI request consumes credits depending on the chosen model. Details are in the [Credits](/docs/credits) section.
7359`},"ai-knowledge-base":{it:`# Knowledge base (RAG)
7360
7361\`\`\`anim
7362knowledge-base
7363\`\`\`
7364
7365La **knowledge base** ti permette di "addestrare" la chat AI della tua app con i **tuoi documenti**: l'AI risponderà agli utenti basandosi sui contenuti che hai caricato (listini, FAQ, policy, manuali, ecc.). Questa tecnica si chiama **RAG** (Retrieval-Augmented Generation), ma a te basta caricare i file: al resto pensa Coderblock.
7366
7367## A cosa serve
7368
7369Senza knowledge base, la chat risponde con conoscenze generali. Con la knowledge base, risponde **anche** usando le informazioni specifiche della tua attività. Esempi:
7370
7371- Una FAQ aziendale per rispondere ai clienti
7372- Il listino prezzi e le condizioni di reso
7373- Un manuale di prodotto o una guida interna
7374
7375## Come aggiungere documenti
7376
73771. Apri la scheda **AI Agents** e clicca **Configura**
73782. Sull'agente di chat, vai alla sezione **Knowledge base (RAG)**
73793. Clicca **Carica file** (oppure **Testo** per incollare un testo)
73804. Il documento viene elaborato e diventa subito disponibile per l'AI
7381
7382I file vengono suddivisi in piccoli pezzi e indicizzati, così l'AI trova sempre la parte più pertinente alla domanda dell'utente.
7383
7384## Formati supportati
7385
7386| Formato | Supportato |
7387|---|---|
7388| Testo (.txt) | Sì |
7389| Markdown (.md) | Sì |
7390| CSV (.csv) | Sì |
7391| JSON (.json) | Sì |
7392| PDF / Word | Non ancora — incolla il testo |
7393
7394> [!TIP] Per i PDF, per ora copia e incolla il contenuto con il pulsante **Testo**. Documenti chiari e ben scritti danno risposte migliori.
7395
7396## Come l'AI usa i documenti
7397
7398Quando un utente fa una domanda nella chat, l'AI:
7399
74001. cerca nei tuoi documenti i passaggi più pertinenti,
74012. li usa come contesto per formulare la risposta,
74023. se l'informazione non c'è, lo dice e risponde con conoscenze generali.
7403
7404Tutto questo avviene **lato server**, in modo sicuro, ad ogni messaggio.
7405
7406## Gestire i documenti
7407
7408Nella stessa sezione vedi l'elenco dei documenti caricati, con il numero di "pezzi" indicizzati. Per rimuoverne uno, clicca l'icona del **cestino**: l'AI smetterà immediatamente di usarlo.
7409
7410## Privacy
7411
7412I documenti sono salvati nel database della **tua** app e usati solo dalla tua chat AI. Og
7412ni agente ha la sua knowledge base separata.
7413
7414> [!INFO] La knowledge base è disponibile per gli agenti di **chat**. La generazione di immagini non usa documenti.
7415`,en:`# Knowledge base (RAG)
7416
7417\`\`\`anim
7418knowledge-base
7419\`\`\`
7420
7421The **knowledge base** lets you "train" your app's AI chat with **your own documents**: the AI will answer your users based on the content you upload (price lists, FAQs, policies, manuals, etc.). This technique is called **RAG** (Retrieval-Augmented Generation), but all you have to do is upload the files — Coderblock handles the rest.
7422
7423## What it's for
7424
7425Without a knowledge base, the chat answers with general knowledge. With a knowledge base, it **also** answers using your business-specific information. Examples:
7426
7427- A company FAQ to answer customers
7428- Your price list and return policy
7429- A product manual or an internal guide
7430
7431## How to add documents
7432
74331. Open the **AI Agents** tab and click **Configure**
74342. On the chat agent, go to the **Knowledge base (RAG)** section
74353. Click **Upload file** (or **Text** to paste some text)
74364. The document is processed and becomes available to the AI right away
7437
7438Files are split into small pieces and indexed, so the AI always finds the part most relevant to the user's question.
7439
7440## Supported formats
7441
7442| Format | Supported |
7443|---|---|
7444| Text (.txt) | Yes |
7445| Markdown (.md) | Yes |
7446| CSV (.csv) | Yes |
7447| JSON (.json) | Yes |
7448| PDF / Word | Not yet — paste the text |
7449
7450> [!TIP] For PDFs, for now copy and paste the content with the **Text** button. Clear, well-written documents give better answers.
7451
7452## How the AI uses your documents
7453
7454When a user asks a question in the chat, the AI:
7455
74561. searches your documents for the most relevant passages,
74572. uses them as context to craft the answer,
74583. if the information isn't there, it says so and answers with general knowledge.
7459
7460All of this happens **server-side**, securely, on every message.
7461
7462## Managing documents
7463
7464In the same section you see the list of uploaded documents, with the number of indexed "pieces". To remove one, click the **trash** icon: the AI stops using it immediately.
7465
7466## Privacy
7467
7468Documents are stored in **your** app's database and used only by your AI chat. Each agent has its own separate knowledge base.
7469
7470> [!INFO] The knowledge base is available for **chat** agents. Image generation does not use documents.
7471`},"team-office":{it:`# Ufficio 3D & AI Agents
7472
7473\`\`\`anim
7474agents-team
7475\`\`\`
7476
7477Oltre all'AI che scrive codice, Coderblock ti mette a disposizione un **team di agenti AI specializzati** che collaborano al tuo progetto come farebbe un vero team. Puoi incontrarli in un **ufficio 3D** interattivo e configurarli uno per uno.
7478
7479## Il team di specialisti
7480
7481Ogni progetto può avere un team con ruoli diversi, ognuno esperto nel suo campo:
7482
7483| Ruolo | Si occupa di |
7484|---|---|
7485| **UX Design** | Esperienza utente, interfacce, usabilità |
7486| **Frontend** | La parte visibile dell'app |
7487| **Backend** | Logica server e gestione dei dati |
7488| **Architettura** | Struttura tecnica e scelte di fondo |
7489| **Cybersecurity** | Sicurezza e vulnerabilità |
7490| **Marketing** | Analisi di mercato, contenuti, SEO |
7491| **GTM** | Strategia di go-to-market |
7492| **Sales** | Prezzi, conversioni, vendite |
7493
7494## L'ufficio 3D
7495
7496L'**ufficio 3D** è uno spazio interattivo dove vedi i membri del team come personaggi in un ambiente tridimensionale. Puoi avvicinarti a un agente per parlarci, vederli "ragionare" e collaborare tra loro. È un modo immediato e visuale per gestire il tuo team AI.
7497
7498## Configurare un agente
7499
7500Ogni agente è **personalizzabile**. Per ciascuno puoi impostare:
7501
7502- **Modello AI**: quale modello usa per ragionare
7503- **Personalità** e **tono**: come comunica
7504- **Istruzioni personalizzate**: linee guida specifiche per il tuo progetto
7505- **Creatività**: risposte più prevedibili o più creative
7506- **Attivo / non attivo**: accendi solo gli specialisti che ti servono
7507
7508## Come collaborano
7509
7510Gli agenti possono:
7511
7512- **Analizzare** il tuo progetto e proporre miglioramenti
7513- Generare **proposte** (suggerimenti, domande, richieste di collaborazione, review)
7514- Avviare **discussioni di team** su un argomento
7515
7516Quando un agente propone un'azione, la vedi come una **scheda**: puoi **accettarla** (la proposta viene passata all'AI Chat che la realizza) oppure ignorarla.
7517
7518> [!TIP] Usa il team per avere punti di vista diversi: chiedi al Marketing un'analisi della concorrenza, alla Cybersecurity un controllo di sicurezza, all'UX un miglioramento dell'interfaccia.
7519
7520## Crediti
7521
7522Anche le conversazioni e le analisi del team consumano crediti, in base al modello configurato per ogni agente. Vedi [Crediti](/docs/credits).
7523`,en:`# 3D Office & AI Agents
7524
7525\`\`\`anim
7526agents-team
7527\`\`\`
7528
7529Beyond the AI that writes code, Coderblock gives you a **team of specialized AI agents** that collaborate on your project the way a real team would. You can meet them in an interactive **3D office** and configure them one by one.
7530
7531## The team of specialists
7532
7533Each project can have a team with different roles, each an expert in its field:
7534
7535| Role | Focuses on |
7536|---|---|
7537| **UX Design** | User experience, interfaces, usability |
7538| **Frontend** | The visible part of the app |
7539| **Backend** | Server logic and data handling |
7540| **Architecture** | Technical structure and key decisions |
7541| **Cybersecurity** | Security and vulnerabilities |
7542| **Marketing** | Market analysis, content, SEO |
7543| **GTM** | Go-to-market strategy |
7544| **Sales** | Pricing, conversions, selling |
7545
7546## The 3D office
7547
7548The **3D office** is an interactive space where you see team members as characters in a three-dimensional environment. You can walk up to an agent to talk to them, watch them "think" and collaborate with each other. It's an immediate, visual way to manage your AI team.
7549
7550## Configuring an agent
7551
7552Every agent is **customizable**. For each one you can set:
7553
7554- **AI model**: which model it uses to reason
7555- **Personality** and **tone**: how it communicates
7556- **Custom instructions**: specific guidelines for your project
7557- **Creativity**: more predictable or more creative answers
7558- **Active / inactive**: turn on only the specialists you need
7559
7560## How they collaborate
7561
7562Agents can:
7563
7564- **Analyze** your project and propose improvements
7565- Generate **proposals** (suggestions, questions, collaboration requests, reviews)
7566- Start **team discussions** on a topic
7567
7568When an agent proposes an action, you see it as a **card**: you can **accept it** (the proposal is handed to the AI Chat, which carries it out) or ignore it.
7569
7570> [!TIP] Use the team for diverse perspectives: ask Marketing for a competitor analysis, Cybersecurity for a security check, UX for an interface improvement.
7571
7572## Credits
7573
7574Team conversations and analyses also consume credits, based on the model configured for each agent. See [Credits](/docs/credits).
7575`},"getting-started":{it:`# Guida Rapida
7576
7577\`\`\`anim
7578create-project
7579\`\`\`
7580
7581Inizia a creare la tua prima app in meno di 5 minuti. Questa guida ti porta dalla registrazione alla pubblicazione.
7582
7583## 1. Crea un account
7584
7585Registrati su [coderblock.ai](/signup) con email o Google SSO. Tutti i nuovi utenti ricevono **crediti gratuiti** per provare la piattaforma.
7586
7587## 2. Crea un progetto
7588
7589Dalla [dashboard](/apps), clicca **"Nuovo progetto"** e scegli tra:
7590
7591- **Template prodotto**: 32 app complete pronte all'uso (e-commerce, booking, dashboard, giochi, ecc.) Vengono copiate in 1-2 secondi.
7592- **Progetto vuoto**: inizia da zero con React + Vite + TypeScript + Tailwind CSS
7593
7594Dai un nome al progetto e opzionalmente una descrizione dell'app che vuoi costruire.
7595
7596## 3. L'interfaccia editor
7597
7598L'editor è diviso in due pannelli:
7599
7600- **Sinistra**: Chat AI + File manager + Code editor
7601- **Destra**: Anteprima live della tua app
7602
7603Nella parte inferiore della chat trovi:
7604- **Selettore del modello** (Auto, Frontier o un modello specifico, vedi [Modelli](/docs/models))
7605- **Pulsante allegati** per caricare immagini di riferimento
7606- **Input testo** per le istruzioni all'AI
7607
7608## 4. Chatta con l'AI
7609
7610Scrivi nella chat cosa vuoi costruire. L'AI analizzerà la richiesta, genererà il codice e lo mostrerà nell'anteprima. Ecco alcuni esempi per iniziare:
7611
7612\`\`\`
7613Crea una landing page con hero section, features e pricing
7614\`\`\`
7615
7616\`\`\`
7617Aggiungi un form di contatto con validazione email e messaggio
7618\`\`\`
7619
7620\`\`\`
7621Crea una pagina "Chi siamo" con team section e timeline dell'azienda
7622\`\`\`
7623
7624### Suggerimenti per prompt efficaci
7625
7626- **Sii specifico**: "Crea un e-commerce per scarpe sportive con filtro per marca e taglia" è meglio di "Fammi un sito"
7627- **Un passo alla volta**: prima la struttura, poi i dettagli
7628- **Dai contesto**: puoi fare riferimento a file specifici, componenti o pagine esistenti
7629- **Carica screenshot**: usa l'allegato per caricare mockup o screenshot di siti che ti piacciono
7630
7631## 5. Anteprima live
7632
7633L'anteprima si avvia automaticamente su un dominio \`*.coderblock.dev\`:
7634- **Primo avvio**: ~60-90 secondi (la VM deve avviarsi)
7635- **Modifiche successive**: ~7-13 secondi (hot-reload mirato)
7636- **Navigazione**: puoi cliccare i link e navigare nella tua app direttamente nella preview
7637
7638## 6. Itera e perfeziona
7639
7640Continua a conversare con l'AI per:
7641- Aggiungere nuove pagine e funzionalità
7642- Modificare colori, font e layout
7643- Integrare servizi esterni (database, pagamenti, email)
7644- Correggere bug o problemi di layout
7645
7646## 7. Pubblica
7647
7648Quando sei soddisfatto del risultato:
76491. Clicca il pulsante **"Deploy"** nella barra superiore
76502. In 60-90 secondi la tua app sarà live su \`{id}.coderblock.app\`
76513. Opzionalmente, collega un dominio personalizzato
7652
7653> [!TIP] Non devi aspettare di aver finito tutto per pubblicare. Puoi fare deploy in qualsiasi momento e aggiornare successivamente. Gli aggiornamenti sono molto più veloci del primo deploy.
7654`,en:`# Getting Started
7655
7656\`\`\`anim
7657create-project
7658\`\`\`
7659
7660Start building your first app in under 5 minutes. This guide takes you from signup to publishing.
7661
7662## 1. Create an account
7663
7664Sign up at [coderblock.ai](/signup) with email or Google SSO. All new users receive **free credits** to try the platform.
7665
7666## 2. Create a project
7667
7668From the [dashboard](/apps), click **"New Project"** and choose:
7669
7670- **Product template**: 32 complete ready-to-use apps (e-commerce, booking, dashboard, games, etc.) Copied in 1-2 seconds.
7671- **Blank project**: start from scratch with React + Vite + TypeScript + Tailwind CSS
7672
7673Give your project a name and optionally a description of the app you want to build.
7674
7675## 3. The editor interface
7676
7677The editor is split into two panels:
7678
7679- **Left**: AI Chat + File manager + Code editor
7680- **Right**: Live preview of your app
7681
7682At the bottom of the chat you'll find:
7683- **Model picker** (Auto, Frontier or a specific model, see [Models](/docs/models))
7684- **Attachment button** to upload reference images
7685- **Text input** for AI instructions
7686
7687## 4. Chat with the AI
7688
7689Type in the chat what you want to build. The AI will analyze your request, generate code, and show it in the preview. Here are some examples to get started:
7690
7691\`\`\`
7692Create a landing page with hero section, features and pricing
7693\`\`\`
7694
7695\`\`\`
7696Add a contact form with email and message validation
7697\`\`\`
7698
7699\`\`\`
7700Create an "About Us" page with team section and company timeline
7701\`\`\`
7702
7703### Tips for effective prompts
7704
7705- **Be specific**: "Create a sports shoe e-commerce with brand and size filters" is better than "Make me a website"
7706- **One step at a time**: first the structure, then the details
7707- **Give context**: you can reference specific files, components, or existing pages
7708- **Upload screenshots**: use the attachment to upload mockups or screenshots of sites you like
7709
7710## 5. Live preview
7711
7712The preview starts automatically on a \`*.coderblock.dev\` domain:
7713- **First start**: ~60-90 seconds (VM needs to boot)
7714- **Subsequent changes**: ~7-13 seconds (targeted hot-reload)
7715- **Navigation**: you can click links and navigate your app directly in the preview
7716
7717## 6. Iterate and refine
7718
7719Continue chatting with the AI to:
7720- Add new pages and features
7721- Modify colors, fonts, and layout
7722- Integrate external services (database, payments, email)
7723- Fix bugs or layout issues
7724
7725## 7. Publish
7726
7727When you're happy with the result:
77281. Click the **"Deploy"** button in the top bar
77292. In 60-90 seconds your app will be live at \`{id}.coderblock.app\`
77303. Optionally, connect a custom domain
7731
7732> [!TIP] You don't have to wait until everything is done to publish. You can deploy at any time and update later. Updates are much faster than the first deploy.
7733`},prompting:{it:`# Prompting
7734
7735\`\`\`anim
7736prompting
7737\`\`\`
7738
7739Scrivere buoni prompt è la chiave per ottenere risultati eccellenti da Coderblock.
7740
7741## Best practices
7742
7743### Sii specifico
7744
7745Invece di scrivere *"fammi un sito"*, prova:
7746
7747\`\`\`
7748Crea una landing page per un ristorante italiano con:
7749- Hero section con immagine di sfondo
7750- Menù con 3 categorie (antipasti, primi, secondi)
7751- Form di prenotazione tavolo
7752- Footer con mappa e contatti
7753\`\`\`
7754
7755### Dai contesto
7756
7757L'AI ha accesso a tutti i file del progetto. Se vuoi modificare qualcosa di specifico, menzionalo:
7758
7759\`\`\`
7760Nel componente Header.tsx, cambia il colore del logo da blu a verde
7761\`\`\`
7762
7763### Un passo alla volta
7764
7765Per progetti complessi, procedi per step:
7766
77671. Prima la struttura delle pagine
77682. Poi i componenti UI
77693. Infine la logica e le API
7770
7771> [!WARNING] Evita prompt troppo lunghi con molte richieste diverse. L'AI lavora meglio con task focalizzati.
7772
7773## Prompt di esempio
7774
7775| Obiettivo | Prompt |
7776|-----------|--------|
7777| Nuova pagina | *"Crea una pagina About con team section"* |
7778| Modifica stile | *"Cambia il tema in dark mode"* |
7779| Aggiunta feature | *"Aggiungi autenticazione con email e password"* |
7780| Fix bug | *"Il bottone submit non funziona, controlla il form"* |
7781| Integrazione | *"Integra Stripe per i pagamenti"* |
7782`,en:`# Prompting
7783
7784\`\`\`anim
7785prompting
7786\`\`\`
7787
7788Writing good prompts is the key to getting excellent results from Coderblock.
7789
7790## Best practices
7791
7792### Be specific
7793
7794Instead of writing *"make me a website"*, try:
7795
7796\`\`\`
7797Create a landing page for an Italian restaurant with:
7798- Hero section with background image
7799- Menu with 3 categories (appetizers, first courses, main courses)
7800- Table reservation form
7801- Footer with map and contacts
7802\`\`\`
7803
7804### Give context
7805
7806The AI has access to all project files. If you want to modify something specific, mention it:
7807
7808\`\`\`
7809In the Header.tsx component, change the logo color from blue to green
7810\`\`\`
7811
7812### One step at a time
7813
7814For complex projects, proceed in steps:
7815
78161. First the page structure
78172. Then UI components
78183. Finally logic and APIs
7819
7820> [!WARNING] Avoid very long prompts with many different requests. The AI works best with focused tasks.
7821
7822## Example prompts
7823
7824| Goal | Prompt |
7825|------|--------|
7826| New page | *"Create an About page with team section"* |
7827| Style change | *"Switch the theme to dark mode"* |
7828| Add feature | *"Add authentication with email and password"* |
7829| Fix bug | *"The submit button doesn't work, check the form"* |
7830| Integration | *"Integrate Stripe for payments"* |
7831`},modes:{it:`# Selettore del modello
7832
7833\`\`\`anim
7834modes
7835\`\`\`
7836
7837Scegli quale modello AI lavora sul tuo progetto dal **selettore del modello** in basso nella chat. Lo stesso selettore compare quando crei un nuovo progetto, e puoi cambiare modello in qualsiasi momento: progetto e conversazione restano gli stessi.
7838
7839## Le tre opzioni
7840
7841- **Auto**: la piattaforma sceglie un modello per ogni parte del lavoro, in base ai livelli di qualità che imposti. Usa modelli open efficienti nei costi. Disponibile in tutti i piani.
7842- **Frontier**: modelli frontier premium selezionati dal team di Coderblock, per la massima qualità. Consuma più crediti. Solo piani a pagamento.
7843- **Custom**: scegli tu un modello specifico. I modelli sono raggruppati per provider (**OpenAI**, **Anthropic**, **Open models**) e sotto il nome di ciascuno trovi il provider e la sua caratteristica principale.
7844
7845Punti di forza e limiti di ogni modello sono spiegati in [Modelli](/docs/models).
7846
7847## Livelli di qualità (Auto e Frontier)
7848
7849La prima volta che selezioni Auto o Frontier si apre una finestra con quattro manopole. Puoi riaprirla quando vuoi dall'icona a ingranaggio accanto al selettore.
7850
7851| Manopola | Cosa controlla |
7852|----------|----------------|
7853| **General AI Intelligence** | il modello che pianifica e coordina il lavoro |
7854| **Creativity & Design** | il modello che costruisce l'interfaccia |
7855| **Functionality & Database** | il modello che scrive logica e dati |
7856| **Adaptability** | il modello usato per ricerca e lettura |
7857
7858Ogni manopola va da **Low** a **Ultra High**. I livelli più alti usano modelli più forti e più crediti. Per Auto (e per Frontier quando disponibile) la finestra mostra una **stima** dei crediti per messaggio che si aggiorna mentre sposti le manopole. Auto e Frontier hanno impostazioni separate.
7859
7860## Livello di performance (modelli Custom)
7861
7862Quando scegli un modello specifico, l'icona a ingranaggio ne imposta il **livello di performance**: un livello più alto fa ragionare di più il modello prima di rispondere, cosa che di solito aiuta sui task difficili ma è più lenta e consuma più crediti. I livelli disponibili dipendono dal modello: su Claude Opus 5.5, per esempio, il ragionamento non si può disattivare. Su alcuni modelli trovi anche l'opzione **Automatic** (consigliata dove disponibile): la piattaforma alza il livello mentre pianifica, lo abbassa mentre esegue e lo rialza se qualcosa va storto.
7863
7864## Da sapere
7865
7866- I modelli con il lucchetto sono riservati ai piani a pagamento: fai upgrade per sbloccarli.
7867- L'editor ricorda nel tuo browser l'ultimo modello che hai usato.
7868- La pagina di creazione progetto parte sempre da **GLM 5.3 Flash**, così ogni nuovo progetto nasce da una scelta consapevole: cambialo prima di creare il progetto se preferisci un altro modello.
7869- L'elenco dei modelli può cambiare nel tempo: il selettore nell'editor mostra sempre quelli disponibili per te.
7870
7871> [!TIP] Non sai da dove partire? Costruisci con Auto o GLM 5.3 Flash, poi passa a un modello più forte come Claude Opus 5.5 per le pagine o i bug che richiedono più cura.
7872`,en:`# Model picker
7873
7874\`\`\`anim
7875modes
7876\`\`\`
7877
7878You choose which AI model works on your project from the **model picker** at the bottom of the chat. The same picker appears when you create a new project, and you can switch model at any time: the project and the conversation stay the same.
7879
7880## The three options
7881
7882- **Auto**: the platform picks a model for each part of the task, based on the quality levels you set. It runs on cost-efficient open models. Available on every plan.
7883- **Frontier**: premium frontier models selected by the Coderblock team, for the highest quality. It uses more credits. Paid plans only.
7884- **Custom**: you pick a specific model yourself. Models are grouped by provider (**OpenAI**, **Anthropic**, **Open models**) and each one shows its provider and main trait under the name.
7885
7886What each model is good (and less good) at is explained in [Models](/docs/models).
7887
7888## Quality dials (Auto and Frontier)
7889
7890The first time you select Auto or Frontier, a window opens with four dials. You can reopen it at any time from the gear icon next to the picker.
7891
7892| Dial | What it controls |
7893|------|------------------|
7894| **General AI Intelligence** | the model that plans and coordinates the work |
7895| **Creativity & Design** | the model that builds the interface |
7896| **Functionality & Database** | the model that writes logic and data |
7897| **Adaptability** | the model used for research and reading |
7898
7899Each dial goes from **Low** to **Ultra High**. Higher levels use stronger models and more credits. For Auto (and for Frontier when available) the window shows an **estimated** credit cost per message that updates as you move the dials. Auto and Frontier keep separate settings.
7900
7901## Performance level (Custom models)
7902
7903When you pick a specific model, the gear icon sets its **performance level**: a higher level makes the model reason more before answering, which usually helps on hard tasks but is slower and uses more credits. The available levels depend on the model: on Claude Opus 5.5, for example, reasoning can't be switched off. On some models you'll also see an **Automatic** option (recommended where available): the platform raises the level while planning, lowers it while executing and raises it again if something fails.
7904
7905## Good to know
7906
7907- Models marked with a lock are reserved to paid plans: upgrade to unlock them.
7908- The editor remembers the last model you used in your browser.
7909- The project creation page always starts from **GLM 5.3 Flash**, so each new project begins with a deliberate choice: change it before creating the project if you prefer another model.
7910- The list of models can change over time: the picker in the editor always shows what's available to you.
7911
7912> [!TIP] Not sure where to start? Use Auto or GLM 5.3 Flash to build, then switch to a stronger model like Claude Opus 5.5 for the pages or bugs that need extra care.
7913`},models:{it:`# Modelli
7914
7915\`\`\`anim
7916modes
7917\`\`\`
7918
7919Su Coderblock scegli tu quale modello AI costruisce la tua app. Ogni modello ha il suo equilibrio tra qualità, velocità e costo: in questa pagina trovi i modelli che puoi scegliere oggi, dove ciascuno in generale rende meglio (e peggio) e come orientarti.
7920
7921> [!INFO] L'elenco riflette i modelli disponibili al momento della stesura. I modelli che vedi nel tuo selettore possono variare: ne aggiungiamo, aggiorniamo o sospendiamo temporaneamente alcuni, e alcuni sono riservati ai piani a pagamento. Il selettore nell'editor fa sempre fede.
7922
7923## Auto e Frontier
7924
7925Oltre ai singoli modelli, il selettore offre due opzioni in cui è la piattaforma a scegliere per te (vedi [Selettore del modello](/docs/modes)):
7926
7927- **Auto** divide il lavoro in quattro aree e usa modelli open efficienti nei costi, ai livelli di qualità che imposti. Disponibile in tutti i piani.
7928- **Frontier** funziona allo stesso modo ma usa modelli frontier premium selezionati dal nostro team. Massima qualità, più crediti. Solo piani a pagamento.
7929
7930## I modelli in sintesi
7931
7932Il costo relativo è indicativo: confronta quanti crediti tende a consumare lo stesso task, da $ (il più economico) a $$$$$ (il più costoso). Il consumo reale dipende dal task, da quanto ragiona il modello e dal tuo piano.
7933
7934| Modello | Provider | Costo relativo | Piani |
7935|---------|----------|----------------|-------|
7936| Claude Sonnet 5.5 | Anthropic | $$$ | Piani a pagamento |
7937| Claude Opus 5.5 | Anthropic | $$$$ | Piani a pagamento |
7938| Claude Fable 5 | Anthropic | $$$$$ | Piani a pagamento |
7939| GPT-6.1 Sol | OpenAI | $$$ | Piani a pagamento |
7940| GPT-5.6 Terra | OpenAI | $$$ | Piani a pagamento |
7941| GPT-6 Luna | OpenAI | $ | Tutti i piani |
7942| GLM 5.3 Flash | Z.ai | $ | Tutti i piani |
7943| GLM 5.3 FlashX | Z.ai | $ | Tutti i piani |
7944| GLM 5.2 | Z.ai | $$ | Tutti i piani |
7945| DeepSeek V4 Pro | DeepSeek | $$ | Tutti i piani |
7946| DeepSeek V4 Flash | DeepSeek | $ | Tutti i piani |
7947| DeepSeek V4.1 Flash | DeepSeek | $ | Tutti i piani |
7948| Kimi K2.6 | Moonshot AI | $$ | Tutti i piani |
7949| MiMo 2.6 Pro | Xiaomi | $ | Tutti i piani |
7950| MiMo 2.6 Flash | Xiaomi | $ | Tutti i piani |
7951
7952## Anthropic
7953
7954### Claude Sonnet 5.5
7955
7956Il modello frontier veloce di Anthropic: genera codice completo su frontend e backend ed è molto bravo a pianificare e portare a termine lavori in più passaggi.
7957
7958- **Punti di forza**: un tuttofare affidabile per lo sviluppo di tutti i giorni; rapido per essere un modello frontier.
7959- **Limiti**: consuma decisamente più crediti dei modelli open.
7960
7961### Claude Opus 5.5
7962
7963Il modello di punta di Anthropic per il codice, tra le opzioni più forti di questo elenco per coding e lavoro agentico. Il ragionamento è sempre attivo.
7964
7965- **Punti di forza**: qualità al top su interfacce complesse, architettura e bug difficili; la scelta migliore quando conta fare bene al primo colpo.
7966- **Limiti**: più lento e con un prezzo per token circa doppio rispetto a Claude Sonnet 5.5, quindi consuma più crediti.
7967
7968### Claude Fable 5
7969
7970Il livello premium di Anthropic, con il ragionamento più profondo della sua gamma.
7971
7972- **Punti di forza**: il ragionamento più profondo.
7973- **Limiti**: il modello che consuma più crediti (il doppio di Claude Opus 5.5). Su coding e lavoro agentico i benchmark pubblicati danno Claude Opus 5.5 davanti a meno della metà del prezzo, quindi per la maggior parte del lavoro di sviluppo Opus 5.5 conviene di più.
7974
7975## OpenAI
7976
7977### GPT-6.1 Sol
7978
7979Il modello frontier di OpenAI, forte nel ragionamento, nel codice e nel lavoro agentico in più passaggi. È la nostra scelta consigliata per i problemi di ragionamento più difficili.
7980
7981- **Punti di forza**: codice e bug difficili (molto più forte di GPT-6 Sol allo stesso livello di ragionamento), uso degli strumenti e task lunghi.
7982- **Limiti**: usa un po' più token per attività del suo predecessore; consumo di crediti nella stessa fascia di Claude Sonnet 5.
7983
7984### GPT-5.6 Terra
7985
7986Il livello intermedio bilanciato di OpenAI: buona qualità quotidiana a un prezzo per token più basso dei modelli di punta.
7987
7988- **Punti di forza**: domande, analisi e task brevi.
7989- **Limiti**: nei test di terze parti su task di coding lunghi è riuscito meno spesso e ha usato molti più token per task, quindi una build lunga può costare più del previsto. Non è la prima scelta per generare un'app intera.
7990
7991### GPT-6 Luna
7992
7993L'opzione OpenAI più veloce ed economica.
7994
7995- **Punti di forza**: task brevi e ben circoscritti: leggere codice, piccole modifiche, fix rapidi.
7996- **Limiti**: più debole sui task lunghi e complessi e nel ricordare i dettagli nelle conversazioni lunghe. Non adatto a costruire un'app intera.
7997
7998## Modelli open
7999
8000### GLM 5.3 Flash (Z.ai)
8001
8002Coding agentico nativamente multimodale (sa leggere gli screenshot) a una frazione del prezzo dei modelli frontier. È il modello preselezionato quando crei un nuovo progetto.
8003
8004- **Punti di forza**: costo molto basso, uso affidabile degli strumenti, legge le immagini e i PDF pagina per pagina; regge bene i task lunghi (nei nostri test ha completato build di oltre 15 minuti e decine di file). È la nostra scelta consigliata per lo sviluppo di tutti i giorni.
8005- **Limiti**: ragiona sempre prima di rispondere, e questo può rallentare alcune risposte.
8006
8007### GLM 5.3 FlashX (Z.ai)
8008
8009Lo stesso modello di GLM 5.3 Flash, servito da Z.ai su un livello più veloce: stesse capacità (immagini, strumenti, livelli di ragionamento), run circa tre volte più rapide nelle nostre prove.
8010
8011- **Punti di forza**: velocità; per il resto identico a GLM 5.3 Flash.
8012- **Punti deboli**: costa circa 2,5 volte GLM 5.3 Flash, resta comunque tra i modelli più economici.
8013
8014### GLM 5.2 (Z.ai)
8015
8016Un modello open forte nel coding agentico autonomo su task lunghi, vicino ai modelli frontier nel coding e nell'orchestrazione degli strumenti.
8017
8018- **Punti di forza**: task lunghi in più passaggi, refactoring, backend.
8019- **Limiti**: interfacce meno rifinite rispetto a DeepSeek V4 Pro o Claude Opus (non può controllare visivamente il proprio lavoro); sulle esecuzioni più lunghe resta dietro ai modelli frontier; è il modello open più costoso.
8020
8021### DeepSeek V4 Pro
8022
8023Il miglior rapporto qualità/prezzo tra i modelli open e il modello open più forte nella generazione del frontend.
8024
8025- **Punti di forza**: codice frontend e backend pulito a costi contenuti.
8026- **Limiti**: più debole di GLM e dei modelli frontier sull'ingegneria reale più difficile e sui task molto lunghi in più passaggi.
8027
8028### DeepSeek V4 Flash
8029
8030Economico e rapido, con una finestra di contesto molto ampia.
8031
8032- **Punti di forza**: leggere codice, domande e piccoli task.
8033- **Limiti**: qualità delle interfacce inferiore a DeepSeek V4 Pro; tenuta sulle esecuzioni lunghe meno collaudata.
8034
8035### DeepSeek V4.1 Flash
8036
8037La versione più recente di DeepSeek Flash, disponibile accanto a V4 Flash: contesto da 1 milione di token, strumenti e ragionamento nativi, e una cache molto più economica.
8038
8039- **Punti di forza**: task brevi e medi a costo molto basso; nelle conversazioni lunghe le parti già viste costano quasi nulla grazie alla cache.
8040- **Limiti**: appena introdotto, i benchmark ufficiali non sono ancora pubblicati e la tenuta sulle esecuzioni lunghe è ancora da verificare sul campo.
8041
8042### Kimi K2.6 (Moonshot AI)
8043
8044Un modello open forte nel ragionamento e nella ricerca, che regge bene le sessioni lunghe con molti strumenti.
8045
8046- **Punti di forza**: ragionamento, ricerca, pianificazione.
8047- **Limiti**: l'output costa più che negli altri modelli open, quindi il lavoro con molto codice costa più che con DeepSeek V4 Pro o GLM; finestra di contesto più piccola della maggior parte dei modelli di questo elenco; più lento.
8048
8049### MiMo 2.6 Pro (Xiaomi)
8050
8051Sperimentale: il modello open di punta di Xiaomi, uscito a settembre 2026, con un grande salto sul lavoro agentico rispetto alla versione precedente.
8052
8053- **Punti di forza**: coding agentico ai livelli dei modelli di frontiera nei benchmark pubblici, costo basso.
8054- **Limiti**: generazione lenta (un file grande può richiedere minuti); sperimentale.
8055
8056### MiMo 2.6 Flash (Xiaomi)
8057
8058Sperimentale: il modello open economico della stessa famiglia, allo stesso prezzo di DeepSeek V4 Flash.
8059
8060- **Punti di forza**: costo molto basso, buon coding agentico.
8061- **Limiti**: generazione lenta; sperimentale.
8062
8063## Quale modello scegliere?
8064
8065| Situazione | Scelta consigliata |
8066|------------|--------------------|
8067| Per iniziare, o con il piano Community | GLM 5.3 Flash o Auto |
8068| Sviluppo quotidiano | GLM 5.3 Flash |
8069| Interfacce complesse, architettura, bug difficili | Claude Opus 5.5 o GPT-6.1 Sol |
8070| I problemi di ragionamento più difficili | GPT-6.1 Sol |
8071| Task lunghi, autonomi, in più passaggi | GLM 5.3 Flash |
8072| Un frontend curato con un budget contenuto | DeepSeek V4 Pro |
8073| Piccole modifiche di testo o stile, domande sul codice | GPT-6 Luna, DeepSeek V4 Flash o GLM 5.3 Flash |
8074| Preferisci non scegliere | Auto o Frontier (Frontier con un piano a pagamento) |
8075
8076> [!TIP] Puoi cambiare modello quando vuoi. Uno schema comune: costruisci con un modello efficie
8076nte nei costi, poi passa a Claude Opus 5.5 o GPT-6.1 Sol per le pagine o i bug che richiedono più cura. Prima dell'invio la stima in app (Auto e Frontier) e dopo lo storico dei consumi ti mostrano il costo reale in crediti.
8077`,en:`# Models
8078
8079\`\`\`anim
8080modes
8081\`\`\`
8082
8083Coderblock lets you choose which AI model builds your app. Every model strikes its own balance between quality, speed and cost: this page lists the models you can pick today, what each one is generally good (and less good) at, and how to choose.
8084
8085> [!INFO] The list reflects the models available at the time of writing. The exact set in your model picker may vary: we add, update or temporarily pause models, and some are reserved to paid plans. The picker in the editor is always the source of truth.
8086
8087## Auto and Frontier
8088
8089Besides the individual models, the picker offers two options where the platform chooses for you (see [Model picker](/docs/modes)):
8090
8091- **Auto** splits the work into four areas and uses cost-efficient open models, at the quality levels you set. Available on every plan.
8092- **Frontier** works the same way but uses premium frontier models selected by our team. Highest quality, more credits. Paid plans only.
8093
8094## Models at a glance
8095
8096Relative cost is indicative: it compares how many credits the same task tends to use, from $ (cheapest) to $$$$$ (most expensive). Actual usage depends on the task, on how much the model reasons and on your plan.
8097
8098| Model | Provider | Relative cost | Plans |
8099|-------|----------|---------------|-------|
8100| Claude Sonnet 5.5 | Anthropic | $$$ | Paid plans |
8101| Claude Opus 5.5 | Anthropic | $$$$ | Paid plans |
8102| Claude Fable 5 | Anthropic | $$$$$ | Paid plans |
8103| GPT-6.1 Sol | OpenAI | $$$ | Paid plans |
8104| GPT-5.6 Terra | OpenAI | $$$ | Paid plans |
8105| GPT-6 Luna | OpenAI | $ | All plans |
8106| GLM 5.3 Flash | Z.ai | $ | All plans |
8107| GLM 5.3 FlashX | Z.ai | $ | All plans |
8108| GLM 5.2 | Z.ai | $$ | All plans |
8109| DeepSeek V4 Pro | DeepSeek | $$ | All plans |
8110| DeepSeek V4 Flash | DeepSeek | $ | All plans |
8111| DeepSeek V4.1 Flash | DeepSeek | $ | All plans |
8112| Kimi K2.6 | Moonshot AI | $$ | All plans |
8113| MiMo 2.6 Pro | Xiaomi | $ | All plans |
8114| MiMo 2.6 Flash | Xiaomi | $ | All plans |
8115
8116## Anthropic
8117
8118### Claude Sonnet 5.5
8119
8120Anthropic's fast frontier model: complete code generation across frontend and backend, and very good at planning and carrying out multi-step work.
8121
8122- **Strengths**: a reliable all-rounder for everyday development; quick for a frontier model.
8123- **Weaknesses**: uses clearly more credits than the open models.
8124
8125### Claude Opus 5.5
8126
8127Anthropic's flagship model for code, among the strongest options here for coding and agentic work. Reasoning is always on.
8128
8129- **Strengths**: top quality on complex interfaces, architecture and hard bugs; the best pick when getting it right the first time matters.
8130- **Weaknesses**: slower, and about twice the per-token price of Claude Sonnet 5.5, so it uses more credits.
8131
8132### Claude Fable 5
8133
8134Anthropic's premium tier, with the deepest reasoning in its lineup.
8135
8136- **Strengths**: the deepest reasoning.
8137- **Weaknesses**: the most credit-hungry model (twice the credits of Claude Opus 5.5). On coding and agentic work, published benchmarks put Claude Opus 5.5 ahead at less than half the price, so for most building work Opus 5.5 is the better value.
8138
8139## OpenAI
8140
8141### GPT-6.1 Sol
8142
8143OpenAI's frontier model, strong on reasoning, coding and agentic, multi-step work. It's our recommended pick for the hardest reasoning problems.
8144
8145- **Strengths**: code and hard bugs (much stronger than GPT-6 Sol at the same reasoning level), tool use and long tasks.
8146- **Weaknesses**: it uses somewhat more tokens per task than its predecessor; credit usage in the same range as Claude Sonnet 5.
8147
8148### GPT-5.6 Terra
8149
8150OpenAI's balanced mid tier: good everyday quality at a lower per-token price than the flagships.
8151
8152- **Strengths**: questions, analysis and shorter tasks.
8153- **Weaknesses**: in third-party tests on long coding tasks it succeeded less often and used many more tokens per task, so a long build can cost more than expected. Not the first choice for generating a whole app.
8154
8155### GPT-6 Luna
8156
8157The fastest and cheapest OpenAI option.
8158
8159- **Strengths**: short, well-scoped tasks: reading code, small edits, quick fixes.
8160- **Weaknesses**: weaker on long, complex tasks and on recalling details across long conversations. Not suited to building a whole app.
8161
8162## Open models
8163
8164### GLM 5.3 Flash (Z.ai)
8165
8166Natively multimodal (it can read screenshots) agentic coding at a fraction of the price of frontier models. It's preselected when you create a new project.
8167
8168- **Strengths**: very low cost, reliable tool use, reads images and PDFs page by page; holds up well on long tasks (in our tests it completed builds of over 15 minutes and dozens of files). It's our recommended pick for everyday development.
8169- **Weaknesses**: it always reasons before answering, which can make some replies slower.
8170
8171### GLM 5.3 FlashX (Z.ai)
8172
8173The same model as GLM 5.3 Flash, served by Z.ai on a faster tier: s
8173ame capabilities (images, tools, reasoning levels), with runs about three times quicker in our tests.
8174
8175- **Strengths**: speed; otherwise identical to GLM 5.3 Flash.
8176- **Weaknesses**: it costs about 2.5× GLM 5.3 Flash, though it stays among the cheapest models.
8177
8178### GLM 5.2 (Z.ai)
8179
8180A strong open model for autonomous, long-horizon agentic coding, close to the frontier on coding and tool orchestration.
8181
8182- **Strengths**: long multi-step tasks, refactoring, backend work.
8183- **Weaknesses**: rougher UI than DeepSeek V4 Pro or Claude Opus (it can't visually check its own work); on the very longest runs it still trails the frontier models; the most expensive open model.
8184
8185### DeepSeek V4 Pro
8186
8187The best value among open models and the strongest open model for frontend generation.
8188
8189- **Strengths**: clean frontend and backend code at a low cost.
8190- **Weaknesses**: weaker than GLM and the frontier models on hard real-world engineering and very long multi-step tasks.
8191
8192### DeepSeek V4 Flash
8193
8194Cheap and quick, with a very large context window.
8195
8196- **Strengths**: reading code, questions and small tasks.
8197- **Weaknesses**: UI quality below DeepSeek V4 Pro; endurance on long runs less proven.
8198
8199### DeepSeek V4.1 Flash
8200
8201The newest DeepSeek Flash, available alongside V4 Flash: 1-million-token context, native tools and reasoning, and a much cheaper cache.
8202
8203- **Strengths**: short and medium tasks at a very low cost; in long conversations, the parts already seen cost almost nothing thanks to the cache.
8204- **Weaknesses**: newly added, so official benchmarks aren't published yet and its endurance on long runs is still to be proven in the field.
8205
8206### Kimi K2.6 (Moonshot AI)
8207
8208A strong open model for reasoning and research that holds up well in long tool-using sessions.
8209
8210- **Strengths**: reasoning, research, planning.
8211- **Weaknesses**: pricier output than the other open models, so code-heavy work costs more than with DeepSeek V4 Pro or GLM; smaller context window than most models here; slower.
8212
8213### MiMo 2.6 Pro (Xiaomi)
8214
8215Experimental: Xiaomi's open flagship, released in September 2026, with a big jump in agentic work over the previous version.
8216
8217- **Strengths**: agentic coding close to frontier models on public benchmarks, low cost.
8218- **Weaknesses**: slow generation (a large file can take minutes); experimental.
8219
8220### MiMo 2.6 Flash (Xiaomi)
8221
8222Experimental: the low-cost open model of the same family, at the price of DeepSeek V4 Flash.
8223
8224- **Strengths**: very low cost, good agentic coding.
8225- **Weaknesses**: slow generation; experimental.
8226
8227## Which model should I choose?
8228
8229| Situation | Suggested choice |
8230|-----------|------------------|
8231| Getting started, or on the Community plan | GLM 5.3 Flash or Auto |
8232| Everyday development | GLM 5.3 Flash |
8233| Complex interfaces, architecture, hard bugs | Claude Opus 5.5 or GPT-6.1 Sol |
8234| The hardest reasoning problems | GPT-6.1 Sol |
8235| Long, autonomous multi-step tasks | GLM 5.3 Flash |
8236| A polished frontend on a budget | DeepSeek V4 Pro |
8237| Quick text or style edits, questions about the code | GPT-6 Luna, DeepSeek V4 Flash or GLM 5.3 Flash |
8238| You'd rather not choose | Auto or Frontier (Frontier on a paid plan) |
8239
8240> [!TIP] You can switch model whenever you like. A common pattern: build with a cost-efficient model, then switch to Claude Opus 5.5 or GPT-6.1 Sol for the pages or bugs that need extra care. Before sending, the in-app estimate (Auto and Frontier) and afterwards your usage history show the real credit cost.
8241`},"abort-queue":{it:`# Coda & Annulla
8242
8243\`\`\`anim
8244queue
8245\`\`\`
8246
8247## Annullare una richiesta
8248
8249Puoi annullare una richiesta in corso cliccando il pulsante **"Stop"** che sostituisce il pulsante "Invia" durante l'esecuzione. L'agente AI interromperà l'elaborazione in modo pulito:
8250
8251- I **file già scritti** vengono preservati: le modifiche completate restano nel progetto
8252- Il **contenuto già generato** nella chat rimane visibile
8253- Solo le operazioni **non ancora completate** vengono annullate
8254- Nella chat apparirà un messaggio "Esecuzione interrotta"
8255
8256### Quando usare Stop
8257
8258- L'AI sta prendendo una direzione sbagliata
8259- Vuoi cambiare approccio a metà esecuzione
8260- L'operazione sta impiegando troppo tempo
8261- Hai cambiato idea su cosa vuoi costruire
8262
8263## Coda messaggi
8264
8265Se invii un messaggio mentre l'AI sta ancora elaborando il precedente, il nuovo messaggio verrà messo in coda automaticamente, come in Cursor.
8266
8267### Come funziona
8268
82691. **Scrivi durante l'esecuzione**: l'input della chat resta attivo
82702. Il messaggio appare come **pill "in coda"** sotto il blocco in esecuzione
82713. Al termine dell'esecuzione corrente, il messaggio in coda viene **inviato automaticamente**
82724. Puoi anche **forzare l'invio immediato** cliccando l'icona freccia su. Questo interrompe l'esecuzione corrente e invia subito il tuo messaggio
8273
8274### Indicatori visivi
8275
8276- **Badge pulsante** sulla coda quando ci sono messaggi in attesa
8277- **Label** "Messaggio in coda: verrà inviato al termine dell'esecuzione corrente"
8278- La coda viene svuotata in caso di abort o quando tutti i messaggi sono stati processati
8279
8280> [!TIP] Puoi scrivere istruzioni di correzione mentre l'AI lavora. Verranno inviate appena l'esecuzione corrente termina, senza perdere tempo.
8281`,en:`# Abort & Queue
8282
8283\`\`\`anim
8284queue
8285\`\`\`
8286
8287## Cancel a request
8288
8289You can cancel an in-progress request by clicking the **"Stop"** button that replaces the "Send" button during execution. The AI agent will halt cleanly:
8290
8291- **Already written files** are preserved: completed changes stay in the project
8292- **Already generated content** in the chat remains visible
8293- Only **not-yet-completed** operations are cancelled
8294- The chat will show an "Execution stopped" message
8295
8296### When to use Stop
8297
8298- The AI is heading in the wrong direction
8299- You want to change approach mid-execution
8300- The operation is taking too long
8301- You changed your mind about what to build
8302
8303## Message queue
8304
8305If you send a message while the AI is still processing the previous one, the new message is automatically queued, like in Cursor.
8306
8307### How it works
8308
83091. **Type during execution**: the chat input stays active
83102. The message appears as a **"queued" pill** below the running block
83113. When the current execution completes, the queued message is **sent automatically**
83124. You can also **force immediate delivery** by clicking the up arrow icon. This interrupts the current execution and sends your message right away
8313
8314### Visual indicators
8315
8316- **Pulsing badge** on the queue when messages are waiting
8317- **Label** "Message queued: will be sent after current run"
8318- The queue is cleared on abort or when all queued messages have been processed
8319
8320> [!TIP] You can write correction instructions while the AI is working. They'll be sent as soon as the current execution finishes, saving you time.
8321`},"product-templates":{it:`# Template Prodotto
8322
8323\`\`\`anim
8324templates
8325\`\`\`
8326
8327I template prodotto sono **applicazioni fullstack complete** pronte all'uso. Vengono copiati nel tuo progetto tramite copia S3-to-S3 in appena **1-2 secondi**, includendo frontend React, backend FastAPI, e schema database dove necessario.
8328
8329## Template disponibili (32)
8330
8331### Business & Produttività
8332
8333| Template | Descrizione |
8334|----------|-------------|
8335| Business Dashboard | Dashboard analitica con grafici, metriche e KPI |
8336| Todo App | Task manager con progetti, categorie e priorità |
8337| Social Media Scheduler | Pianificazione e gestione post social media |
8338| Project Management | Gestione progetti con kanban board e timeline |
8339| CRM | Customer relationship management con pipeline vendite |
8340
8341### E-commerce & Marketplace
8342
8343| Template | Descrizione |
8344|----------|-------------|
8345| Online Store | E-commerce completo con catalogo, carrello, checkout Stripe |
8346| Marketplace | Piattaforma multi-vendor con gestione negozi |
8347| Digital Products | Vendita prodotti digitali (corsi, ebook, template) |
8348
8349### Servizi & Prenotazioni
8350
8351| Template | Descrizione |
8352|----------|-------------|
8353| Booking Platform | Piattaforma prenotazioni con calendario e pagamenti |
8354| Restaurant | Sito ristorante con menù, gallery e prenotazione tavoli |
8355| Wellness App | App benessere con tracking attività e programmi |
8356
8357### Contenuti & Media
8358
8359| Template | Descrizione |
8360|----------|-------------|
8361| Content Platform | Blog / CMS con editor, categorie e SEO |
8362| Portfolio | Portfolio personale/agency con gallery e case studies |
8363| Entertainment | Piattaforma streaming/contenuti media |
8364
8365### Gaming
8366
8367| Template | Descrizione |
8368|----------|-------------|
8369| Phaser Game | Gioco browser 2D con Phaser.js |
8370| 3D Product Configurator | Configuratore prodotti 3D con Three.js |
8371
8372E molti altri: **32 template** in totale, tra cui app per real estate, healthcare, education, fintech, eventi e altro.
8373
8374## Come usare un template
8375
83761. Crea un nuovo progetto dalla [dashboard](/apps)
83772. Seleziona **"Usa Template"** e scegli dalla griglia
83783. Il progetto viene inizializzato istantaneamente (~1-2 secondi)
83794. L'anteprima si avvia automaticamente
83805. **Personalizza** tutto attraverso la chat AI: colori, layout, contenuti, funzionalità
8381
8382## Cosa include ogni template
8383
8384Ogni template prodotto include:
8385- **Frontend completo**: pagine, componenti, routing, stili Tailwind
8386- **Backend API**: endpoint FastAPI con modelli e validazione
8387- **Schema database**: tabelle, relazioni, dati di esempio
8388- **Autenticazione**: social login (Google + GitHub) pre-configurato
8389- **Design responsive**: ottimizzato per desktop, tablet e mobile
8390
8391> [!TIP] I template sono un punto di partenza. Puoi modificare qualsiasi aspetto tramite la chat AI: aggiungi pagine, cambia il design, integra servizi esterni.
8392`,en:`# Product Templates
8393
8394\`\`\`anim
8395templates
8396\`\`\`
8397
8398Product templates are **complete fullstack applications** ready to use. They are copied to your project via S3-to-S3 copy in just **1-2 seconds**, including React frontend, FastAPI backend, and database schema where needed.
8399
8400## Available templates (32)
8401
8402### Business & Productivity
8403
8404| Template | Description |
8405|----------|-------------|
8406| Business Dashboard | Analytics dashboard with charts, metrics, and KPIs |
8407| Todo App | Task manager with projects, categories, and priorities |
8408| Social Media Scheduler | Social media post planning and management |
8409| Project Management | Project management with kanban board and timeline |
8410| CRM | Customer relationship management with sales pipeline |
8411
8412### E-commerce & Marketplace
8413
8414| Template | Description |
8415|----------|-------------|
8416| Online Store | Complete e-commerce with catalog, cart, Stripe checkout |
8417| Marketplace | Multi-vendor platform with store management |
8418| Digital Products | Digital product sales (courses, ebooks, templates) |
8419
8420### Services & Bookings
8421
8422| Template | Description |
8423|----------|-------------|
8424| Booking Platform | Booking platform with calendar and payments |
8425| Restaurant | Restaurant site with menu, gallery, and table reservations |
8426| Wellness App | Wellness app with activity tracking and programs |
8427
8428### Content & Media
8429
8430| Template | Description |
8431|----------|-------------|
8432| Content Platform | Blog / CMS with editor, categories, and SEO |
8433| Portfolio | Personal/agency portfolio with gallery and case studies |
8434| Entertainment | Streaming/media content platform |
8435
8436### Gaming
8437
8438| Template | Description |
8439|----------|-------------|
8440| Phaser Game | 2D browser game with Phaser.js |
8441| 3D Product Configurator | 3D product configurator with Three.js |
8442
8443And many more: **32 templates** in total, including apps for real estate, healthcare, education, fintech, events, and more.
8444
8445## How to use a template
8446
84471. Create a new project from the [dashboard](/apps)
84482. Select **"Use Template"** and choose from the grid
84493. The project is initialized instantly (~1-2 seconds)
84504. The preview starts automatically
84515. **Customize** everything through the AI chat: colors, layout, content, features
8452
8453## What each template includes
8454
8455Every product template includes:
8456- **Complete frontend**: pages, components, routing, Tailwind styles
8457- **Backend API**: FastAPI endpoints with models and validation
8458- **Database schema**: tables, relationships, sample data
8459- **Authentication**: social login (Google + GitHub) pre-configured
8460- **Responsive design**: optimized for desktop, tablet, and mobile
8461
8462> [!TIP] Templates are a starting point. You can modify any aspect through the AI chat: add pages, change the design, integrate external services.
8463`},"feature-templates":{it:`# Template Feature
8464
8465\`\`\`anim
8466templates
8467\`\`\`
8468
8469I template feature sono **moduli riutilizzabili** che puoi aggiungere a qualsiasi progetto.
8470
8471## Feature disponibili
8472
8473- **Auth**: Autenticazione con email/password e social login
8474- **Admin Panel**: Pannello di amministrazione completo
8475- **Payments**: Integrazione pagamenti con Stripe
8476- **Chat**: Chat in tempo reale
8477- **Notifications**: Sistema notifiche push e in-app
8478- **Search**: Ricerca full-text con filtri
8479- **Dashboard**: Dashboard con widget e grafici
8480- **Cart**: Carrello e-commerce
8481
8482E oltre **20 feature** aggiuntive.
8483
8484> [!TIP] Puoi combinare più feature template nello stesso progetto. Chiedi all'AI di integrarle.
8485`,en:`# Feature Templates
8486
8487\`\`\`anim
8488templates
8489\`\`\`
8490
8491Feature templates are **reusable modules** that you can add to any project.
8492
8493## Available features
8494
8495- **Auth**: Authentication with email/password and social login
8496- **Admin Panel**: Complete admin panel
8497- **Payments**: Payment integration with Stripe
8498- **Chat**: Real-time chat
8499- **Notifications**: Push and in-app notification system
8500- **Search**: Full-text search with filters
8501- **Dashboard**: Dashboard with widgets and charts
8502- **Cart**: E-commerce cart
8503
8504And over **20 additional features**.
8505
8506> [!TIP] You can combine multiple feature templates in the same project. Ask the AI to integrate them.
8507`},preview:{it:`# Anteprima
8508
8509\`\`\`anim
8510hot-reload
8511\`\`\`
8512
8513Ogni progetto Coderblock ha un'anteprima live in tempo reale su un dominio \`*.coderblock.dev\`. Non è un'anteprima simulata: è un vero ambiente di sviluppo che esegue la tua app su una virtual machine dedicata.
8514
8515## Come funziona
8516
8517L'anteprima è integrata direttamente nell'editor, nel pannello a destra della chat:
8518
85191. L'AI scrive i file del progetto su **AWS S3**
85202. Viene triggerato un **sync mirato** verso la VM di preview (solo i file modificati)
85213. **Vite HMR** (Hot Module Replacement) rileva le modifiche e aggiorna il browser
85224. L'**iframe** di preview si ricarica automaticamente
8523
8524### Dettagli tecnici
8525
8526- Ogni progetto ha una **VM Fly.io dedicata** con Node.js, Vite e tutte le dipendenze pre-installate
8527- Le dipendenze npm più comuni (Radix UI, Tailwind, React Hook Form, Three.js, Phaser, ecc.) sono pre-installate nell'immagine base, e \`npm install\` verifica in ~5 secondi invece di ~60-120s
8528- URL formato: \`https://{id}.coderblock.dev\`
8529- La VM esegue un vero Vite dev server con supporto HMR completo
8530
8531## Tempi
8532
8533| Azione | Tempo |
8534|--------|-------|
8535| Primo avvio (cold start) | 60-90s |
8536| Risveglio dopo pausa | 5-10s |
8537| Refresh pagina | 2-5s |
8538| Modifiche AI (hot-reload) | ~7-13s |
8539| Aggiunta dipendenza npm | 5-15s |
8540
8541## Navigazione nella preview
8542
8543Il pannello di preview include:
8544- **Barra indirizzo** con l'URL corrente della pagina
8545- **Pulsante indietro/avanti** per navigare nella cronologia
8546- **Pulsante refresh** per forzare un ricaricamento completo
8547- **Pulsante "Apri in nuova finestra"** per vedere l'app a schermo intero
8548
8549La navigazione è di tipo SPA (Single Page Application): i cambi pagina avvengono senza flash bianco.
8550
8551## Pausa automatica
8552
8553L'anteprima si mette in pausa automaticamente dopo un periodo di inattività per risparmiare risorse. Al prossimo accesso, la VM si risveglia in 5-10 secondi.
8554
8555> [!TIP] Se l'anteprima mostra errori di compilazione, l'AI li rileva automaticamente e tenta di correggerli con un loop di auto-fix.
8556`,en:`# Preview
8557
8558\`\`\`anim
8559hot-reload
8560\`\`\`
8561
8562Every Coderblock project has a real-time live preview on a \`*.coderblock.dev\` domain. This is not a simulated preview: it's a real development environment running your app on a dedicated virtual machine.
8563
8564## How it works
8565
8566The preview is integrated directly in the editor, in the panel to the right of the chat:
8567
85681. The AI writes project files to **AWS S3**
85692. A **targeted sync** is triggered to the preview VM (only changed files)
85703. **Vite HMR** (Hot Module Replacement) detects changes and updates the browser
85714. The preview **iframe** auto-refreshes
8572
8573### Technical details
8574
8575- Each project has a **dedicated Fly.io VM** with Node.js, Vite, and all dependencies pre-installed
8576- Common npm dependencies (Radix UI, Tailwind, React Hook Form, Three.js, Phaser, etc.) are pre-installed in the base image, and \`npm install\` verifies in ~5 seconds instead of ~60-120s
8577- URL format: \`https://{id}.coderblock.dev\`
8578- The VM runs a real Vite dev server with full HMR support
8579
8580## Timing
8581
8582| Action | Time |
8583|--------|------|
8584| First start (cold start) | 60-90s |
8585| Wake from sleep | 5-10s |
8586| Page refresh | 2-5s |
8587| AI changes (hot-reload) | ~7-13s |
8588| Adding npm dependency | 5-15s |
8589
8590## Preview navigation
8591
8592The preview panel includes:
8593- **Address bar** with the current page URL
8594- **Back/forward buttons** for history navigation
8595- **Refresh button** to force a full reload
8596- **"Open in new window" button** to view the app fullscreen
8597
8598Navigation is SPA (Single Page Application): page transitions happen without white flash.
8599
8600## Auto-pause
8601
8602The preview automatically pauses after a period of inactivity to save resources. On next access, the VM wakes up in 5-10 seconds.
8603
8604> [!TIP] If the preview shows compilation errors, the AI automatically detects them and attempts to fix them with an auto-fix loop.
8605`},production:{it:`# Produzione
8606
8607\`\`\`anim
8608preview-vs-production
8609\`\`\`
8610
8611Pubblica la tua app su un dominio \`*.coderblock.app\` con un click. L'app viene distribuita su un vero server cloud con SSL automatico, pronta per ricevere traffico reale.
8612
8613## Come funziona il deploy
8614
86151. Clicca il pulsante **"Deploy"** nell'editor
86162. Il sistema crea un **container Docker unificato** che include sia il frontend (React build statica servita da Caddy) sia il backend (FastAPI con Uvicorn)
86173. Il container viene distribuito su **Fly.io** in una regione vicina ai tuoi utenti
86184. Il certificato **SSL** viene generato automaticamente
86195. URL: \`https://{id}.coderblock.app\`
8620
8621## Tempi di deploy
8622
8623| Azione | Tempo |
8624|--------|-------|
8625| Deploy completo (prima volta) | 60-90s |
8626| Hot-update frontend | 15-30s |
8627| Hot-update backend | 10-20s |
8628
8629## Aggiornamenti successivi
8630
8631Dopo il primo deploy, gli aggiornamenti sono **molto più veloci** grazie a:
8632
8633- **Caching delle dipendenze**: npm modules e pip packages sono cachati
8634- **Hot-update mirato**: solo i file modificati vengono aggiornati
8635- **Immagine Docker layer**: i layer non modificati vengono riutilizzati
8636
8637## Variabili d'ambiente in produzione
8638
8639Le variabili d'ambiente e i secrets configurati nel progetto vengono automaticamente iniettati nel container di produzione ad ogni deploy. Non devi fare nulla di aggiuntivo.
8640
8641## Stato del deploy
8642
8643Nella barra superiore dell'editor puoi vedere:
8644- **Stato corrente** del deploy (in corso, completato, fallito)
8645- **URL** dell'app in produzione
8646- **Log** di deploy per il debug
8647
8648## Differenze tra preview e produzione
8649
8650| Aspetto | Preview (\`.coderblock.dev\`) | Produzione (\`.coderblock.app\`) |
8651|---------|----------------------------|-------------------------------|
8652| Ambiente | Vite dev server | Docker container ottimizzato |
8653| Build | No (development mode) | Sì (production build) |
8654| Performance | Buona (HMR) | Ottima (build ottimizzata) |
8655| SSL | Sì | Sì |
8656| Variabili env | Iniettate | Iniettate |
8657| Persistenza | Auto-pause dopo inattività | Sempre attiva |
8658
8659> [!TIP] Testa sempre nella preview prima di fare deploy in produzione. La preview usa la stessa configurazione, quindi se funziona lì, funzionerà anche in produzione.
8660`,en:`# Production
8661
8662\`\`\`anim
8663preview-vs-production
8664\`\`\`
8665
8666Publish your app to a \`*.coderblock.app\` domain with one click. The app is deployed on a real cloud server with automatic SSL, ready to receive real traffic.
8667
8668## How deployment works
8669
86701. Click the **"Deploy"** button in the editor
86712. The system creates a **unified Docker container** that includes both the frontend (React static build served by Caddy) and the backend (FastAPI with Uvicorn)
86723. The container is deployed on **Fly.io** in a region close to your users
86734. The **SSL** certificate is generated automatically
86745. URL: \`https://{id}.coderblock.app\`
8675
8676## Deploy timing
8677
8678| Action | Time |
8679|--------|------|
8680| Full deploy (first time) | 60-90s |
8681| Frontend hot-update | 15-30s |
8682| Backend hot-update | 10-20s |
8683
8684## Subsequent updates
8685
8686After the first deploy, updates are **much faster** thanks to:
8687
8688- **Dependency caching**: npm modules and pip packages are cached
8689- **Targeted hot-update**: only modified files are updated
8690- **Docker image layers**: unchanged layers are reused
8691
8692## Environment variables in production
8693
8694Environment variables and secrets configured in the project are automatically injected into the production container on every deploy. No additional action needed.
8695
8696## Deploy status
8697
8698In the top bar of the editor you can see:
8699- **Current status** of the deploy (in progress, completed, failed)
8700- **URL** of the production app
8701- **Deploy logs** for debugging
8702
8703## Differences between preview and production
8704
8705| Aspect | Preview (\`.coderblock.dev\`) | Production (\`.coderblock.app\`) |
8706|--------|----------------------------|-------------------------------|
8707| Environment | Vite dev server | Optimized Docker container |
8708| Build | No (development mode) | Yes (production build) |
8709| Performance | Good (HMR) | Excellent (optimized build) |
8710| SSL | Yes | Yes |
8711| Env variables | Injected | Injected |
8712| Persistence | Auto-pause after inactivity | Always active |
8713
8714> [!TIP] Always test in preview before deploying to production. Preview uses the same configuration, so if it works there, it will work in production too.
8715`},"hot-reload":{it:`# Hot Reload
8716
8717\`\`\`anim
8718hot-reload
8719\`\`\`
8720
8721Il sistema di hot-reload permette di vedere le modifiche in tempo reale nell'anteprima.
8722
8723## Flusso
8724
87251. L'AI scrive i file su **S3**
87262. Viene triggerato il **sync** verso la VM di preview
87273. **Vite HMR** rileva le modifiche e aggiorna il browser
87284. L'iframe di preview si ricarica automaticamente
8729
8730## Quando serve un reload completo
8731
8732In alcuni casi, un reload completo è necessario:
8733
8734- Aggiunta di nuove dipendenze npm
8735- Modifiche alla configurazione Vite
8736- Modifiche al file \`index.html\`
8737- Errori di compilazione che interrompono HMR
8738
8739> [!INFO] Puoi forzare un reload completo cliccando il pulsante di refresh nel pannello preview.
8740`,en:`# Hot Reload
8741
8742\`\`\`anim
8743hot-reload
8744\`\`\`
8745
8746The hot-reload system lets you see changes in real-time in the preview.
8747
8748## Flow
8749
87501. The AI writes files to **S3**
87512. A **sync** is triggered to the preview VM
87523. **Vite HMR** detects changes and updates the browser
87534. The preview iframe auto-refreshes
8754
8755## When a full reload is needed
8756
8757In some cases, a full reload is necessary:
8758
8759- Adding new npm dependencies
8760- Changes to Vite configuration
8761- Changes to \`index.html\`
8762- Compilation errors that break HMR
8763
8764> [!INFO] You can force a full reload by clicking the refresh button in the preview panel.
8765`},neondb:{it:`# NeonDB
8766
8767\`\`\`anim
8768database
8769\`\`\`
8770
8771Coderblock utilizza **NeonDB** (PostgreSQL serverless) come database per le app generate. NeonDB è un servizio PostgreSQL completamente gestito che si scala automaticamente e offre funzionalità avanzate come il branching del database.
8772
8773## Caratteristiche
8774
8775- **PostgreSQL completo**: supporto per tutti i tipi di dati, indici, trigger, funzioni, JSON, array
8776- **Serverless** con scale-to-zero: nessun costo quando non in uso
8777- **Branching** del database per ambienti di sviluppo isolati
8778- **Connessione automatica** dalla preview e dalla produzione
8779- **Connection pooling** integrato con PgBouncer per gestire molte connessioni contemporanee
8780- **Resilienza**: pool_recycle, pool_pre_ping, gestione automatica degli errori di connessione
8781
8782## Configurazione
8783
8784Il database viene configurato automaticamente quando chiedi all'AI di aggiungere funzionalità che richiedono persistenza dati (utenti, prodotti, ordini, ecc.). Le credenziali vengono salvate come variabili d'ambiente e iniettate sia in preview che in produzione.
8785
8786\`\`\`bash
8787DATABASE_URL=postgresql://user:[email protected]/dbname
8788NEON_DATABASE_URL=postgresql://user:[email protected]/dbname
8789\`\`\`
8790
8791## Query SQL dirette
8792
8793L'agente AI può eseguire query SQL direttamente sul database del tuo progetto, c
8793on livelli di sicurezza integrati:
8794
8795- **SELECT**: eseguito liberamente per leggere i dati
8796- **INSERT/UPDATE**: eseguito con conferma implicita
8797- **DELETE/DROP/ALTER**: richiede **conferma esplicita** dell'utente (Human-in-the-Loop)
8798
8799### Esempio nella chat
8800
8801\`\`\`
8802Mostrami tutti gli utenti registrati nelle ultime 24 ore
8803\`\`\`
8804
8805L'AI eseguirà:
8806\`\`\`sql
8807SELECT * FROM users WHERE created_at > NOW() - INTERVAL '24 hours' ORDER BY created_at DESC;
8808\`\`\`
8809
8810## Migrazioni
8811
8812L'AI gestisce automaticamente le migrazioni dello schema. Quando chiedi di aggiungere un campo o modificare una tabella, l'agente:
8813
88141. Legge lo schema esistente
88152. Genera lo script SQL di migrazione
88163. Esegue la migrazione (con conferma per operazioni distruttive)
8817
8818> [!WARNING] Non condividere mai le credenziali del database. Usa sempre le variabili d'ambiente. Coderblock le gestisce automaticamente.
8819`,en:`# NeonDB
8820
8821\`\`\`anim
8822database
8823\`\`\`
8824
8825Coderblock uses **NeonDB** (serverless PostgreSQL) as the database for generated apps. NeonDB is a fully managed PostgreSQL service that scales automatically and offers advanced features like database branching.
8826
8827## Features
8828
8829- **Full PostgreSQL**: support for all data types, indexes, triggers, functions, JSON, arrays
8830- **Serverless** with scale-to-zero: no cost when not in use
8831- **Branching** for isolated development environments
8832- **Automatic connection** from preview and production
8833- **Built-in connection pooling** with PgBouncer for handling many concurrent connections
8834- **Resilience**: pool_recycle, pool_pre_ping, automatic connection error handling
8835
8836## Configuration
8837
8838The database is automatically configured when you ask the AI to add features that require data persistence (users, products, orders, etc.). Credentials are saved as environment variables and injected in both preview and production.
8839
8840\`\`\`bash
8841DATABASE_URL=postgresql://user:[email protected]/dbname
8842NEON_DATABASE_URL=postgresql://user:[email protected]/dbname
8843\`\`\`
8844
8845## Direct SQL queries
8846
8847The AI agent can execute SQL queries directly on your project's database, with built-in safety layers:
8848
8849- **SELECT**: executed freely to read data
8850- **INSERT/UPDATE**: executed with implicit confirmation
8851- **DELETE/DROP/ALTER**: requires **explicit user confirmation** (Human-in-the-Loop)
8852
8853### Chat example
8854
8855\`\`\`
8856Show me all users registered in the last 24 hours
8857\`\`\`
8858
8859The AI will execute:
8860\`\`\`sql
8861SELECT * FROM users WHERE created_at > NOW() - INTERVAL '24 hours' ORDER BY created_at DESC;
8862\`\`\`
8863
8864## Migrations
8865
8866The AI automatically handles schema migrations. When you ask to add a field or modify a table, the agent:
8867
88681. Reads the existing schema
88692. Generates the SQL migration script
88703. Executes the migration (with confirmation for destructive operations)
8871
8872> [!WARNING] Never share database credentials. Always use environment variables. Coderblock manages them automatically.
8873`},"sql-queries":{it:`# Query SQL
8874
8875\`\`\`anim
8876database
8877\`\`\`
8878
8879Puoi chiedere all'AI di creare e modificare tabelle, scrivere query e gestire migrazioni.
8880
8881## Esempi
8882
8883\`\`\`sql
8884-- Crea una tabella utenti
8885CREATE TABLE users (
8886  id SERIAL PRIMARY KEY,
8887  email VARCHAR(255) UNIQUE NOT NULL,
8888  name VARCHAR(255),
8889  created_at TIMESTAMP DEFAULT NOW()
8890);
8891\`\`\`
8892
8893## Migrazioni
8894
8895L'AI può generare script di migrazione per modifiche allo schema:
8896
8897\`\`\`
8898Aggiungi un campo "avatar_url" alla tabella users
8899\`\`\`
8900
8901> [!TIP] L'AI legge lo schema esistente prima di fare modifiche, garantendo coerenza.
8902`,en:`# SQL Queries
8903
8904\`\`\`anim
8905database
8906\`\`\`
8907
8908You can ask the AI to create and modify tables, write queries, and manage migrations.
8909
8910## Examples
8911
8912\`\`\`sql
8913-- Create a users table
8914CREATE TABLE users (
8915  id SERIAL PRIMARY KEY,
8916  email VARCHAR(255) UNIQUE NOT NULL,
8917  name VARCHAR(255),
8918  created_at TIMESTAMP DEFAULT NOW()
8919);
8920\`\`\`
8921
8922## Migrations
8923
8924The AI can generate migration scripts for schema changes:
8925
8926\`\`\`
8927Add an "avatar_url" field to the users table
8928\`\`\`
8929
8930> [!TIP] The AI reads the existing schema before making changes, ensuring consistency.
8931`},"env-vars":{it:`# Variabili d'Ambiente
8932
8933\`\`\`anim
8934secrets
8935\`\`\`
8936
8937Le variabili d'ambiente ti permettono di configurare la tua app senza esporre credenziali nel codice.
8938
8939## Come configurarle
8940
89411. Vai nelle **Impostazioni** del progetto
89422. Sezione **"Variabili d'ambiente"**
89433. Aggiungi chiave e valore
89444. Le variabili sono disponibili sia in preview che in produzione
8945
8946## Variabili comuni
8947
8948| Variabile | Uso |
8949|-----------|-----|
8950| \`DATABASE_URL\` | Connessione al database |
8951| \`STRIPE_SECRET_KEY\` | Pagamenti Stripe |
8952| \`RESEND_API_KEY\` | Invio email |
8953| \`NEON_DATABASE_URL\` | NeonDB connection string |
8954
8955> [!DANGER] Non inserire mai chiavi API direttamente nel codice sorgente. Usa sempre le variabili d'ambiente.
8956`,en:`# Environment Variables
8957
8958\`\`\`anim
8959secrets
8960\`\`\`
8961
8962Environment variables let you configure your app without exposing credentials in code.
8963
8964## How to configure
8965
89661. Go to project **Settings**
89672. Section **"Environment Variables"**
89683. Add key and value
89694. Variables are available in both preview and production
8970
8971## Common variables
8972
8973| Variable | Usage |
8974|----------|-------|
8975| \`DATABASE_URL\` | Database connection |
8976| \`STRIPE_SECRET_KEY\` | Stripe payments |
8977| \`RESEND_API_KEY\` | Email sending |
8978| \`NEON_DATABASE_URL\` | NeonDB connection string |
8979
8980> [!DANGER] Never put API keys directly in source code. Always use environment variables.
8981`},secrets:{it:`# Secrets
8982
8983\`\`\`anim
8984secrets
8985\`\`\`
8986
8987I secrets sono variabili d'ambiente sensibili con protezione aggiuntiva.
8988
8989## Differenza tra Variabili e Secrets
8990
8991- **Variabili**: visibili nelle impostazioni, usate per configurazione generica
8992- **Secrets**: mascherati dopo il salvataggio, usati per chiavi API e credenziali
8993
8994## Best practices
8995
8996- Usa secrets per tutte le chiavi API di terze parti
8997- Ruota periodicamente le chiavi
8998- Non loggare mai i valori dei secrets
8999
9000> [!WARNING] I secrets non possono essere letti dopo il salvataggio. Se perdi una chiave, dovrai rigenerarla dal provider.
9001`,en:`# Secrets
9002
9003\`\`\`anim
9004secrets
9005\`\`\`
9006
9007Secrets are sensitive environment variables with additional protection.
9008
9009## Difference between Variables and Secrets
9010
9011- **Variables**: visible in settings, used for generic configuration
9012- **Secrets**: masked after saving, used for API keys and credentials
9013
9014## Best practices
9015
9016- Use secrets for all third-party API keys
9017- Rotate keys periodically
9018- Never log secret values
9019
9020> [!WARNING] Secrets cannot be read after saving. If you lose a key, you'll need to regenerate it from the provider.
9021`},"image-upload":{it:`# Upload Immagini
9022
9023\`\`\`anim
9024media
9025\`\`\`
9026
9027Carica immagini personalizzate per il tuo progetto.
9028
9029## Formati supportati
9030
9031- JPEG / JPG
9032- PNG
9033- GIF
9034- WebP
9035- SVG
9036
9037## Come caricare
9038
90391. Nella chat, usa l'icona **allegato** per caricare un'immagine
90402. L'AI può usare l'immagine come riferimento visivo per il design
90413. Le immagini caricate vengono salvate nella cartella \`public/\` del progetto
9042
9043## Generazione immagini AI
9044
9045L'AI può anche **generare immagini** usando DALL-E:
9046
9047\`\`\`
9048Genera un'immagine hero per un sito di viaggi, stile fotorealistico
9049\`\`\`
9050
9051> [!TIP] Carica screenshot o mockup come riferimento. L'AI li analizzerà per riprodurre il design.
9052`,en:`# Image Upload
9053
9054\`\`\`anim
9055media
9056\`\`\`
9057
9058Upload custom images for your project.
9059
9060## Supported formats
9061
9062- JPEG / JPG
9063- PNG
9064- GIF
9065- WebP
9066- SVG
9067
9068## How to upload
9069
90701. In the chat, use the **attachment** icon to upload an image
90712. The AI can use the image as a visual design reference
90723. Uploaded images are saved in the project's \`public/\` folder
9073
9074## AI image generation
9075
9076The AI can also **generate images** using DALL-E:
9077
9078\`\`\`
9079Generate a hero image for a travel site, photorealistic style
9080\`\`\`
9081
9082> [!TIP] Upload screenshots or mockups as reference. The AI will analyze them to reproduce the design.
9083`},media:{it:`# Media
9084
9085\`\`\`anim
9086media
9087\`\`\`
9088
9089Gestione dei file media nel tuo progetto.
9090
9091## Storage
9092
9093I file media vengono salvati su **AWS S3** e serviti attraverso il CDN.
9094
9095## Struttura cartelle
9096
9097\`\`\`
9098public/
9099├── images/          # Immagini del sito
9100├── icons/           # Icone e favicon
9101└── assets/          # Altri asset statici
9102\`\`\`
9103
9104## Dimensioni consigliate
9105
9106| Tipo | Dimensione | Formato |
9107|------|-----------|---------|
9108| Hero image | 1920x1080 | WebP / JPEG |
9109| Thumbnail | 400x300 | WebP / JPEG |
9110| Icona | 512x512 | PNG / SVG |
9111| Favicon | 32x32 | PNG / ICO |
9112`,en:`# Media
9113
9114\`\`\`anim
9115media
9116\`\`\`
9117
9118Managing media files in your project.
9119
9120## Storage
9121
9122Media files are saved on **AWS S3** and served through the CDN.
9123
9124## Folder structure
9125
9126\`\`\`
9127public/
9128├── images/          # Site images
9129├── icons/           # Icons and favicon
9130└── assets/          # Other static assets
9131\`\`\`
9132
9133## Recommended sizes
9134
9135| Type | Size | Format |
9136|------|------|--------|
9137| Hero image | 1920x1080 | WebP / JPEG |
9138| Thumbnail | 400x300 | WebP / JPEG |
9139| Icon | 512x512 | PNG / SVG |
9140| Favicon | 32x32 | PNG / ICO |
9141`},"email-integration":{it:`# Integrazione Email (Resend)
9142
9143\`\`\`anim
9144email
9145\`\`\`
9146
9147Invia email transazionali dalla tua app usando **Resend**.
9148
9149## Setup
9150
91511. Crea un account su [resend.com](https://resend.com)
91522. Genera una API key
91533. Aggiungila come secret: \`RESEND_API_KEY\`
91544. Chiedi all'AI di integrare l'invio email
9155
9156## Esempio
9157
9158\`\`\`
9159Aggiungi invio email di conferma registrazione usando Resend
9160\`\`\`
9161
9162L'AI genererà il codice backend per inviare email con template HTML personalizzati.
9163
9164## Funzionalità
9165
9166- Email di benvenuto
9167- Conferma registrazione
9168- Reset password
9169- Notifiche
9170- Newsletter
9171
9172> [!INFO] Resend offre 3.000 email/mese gratuite nel piano free.
9173`,en:`# Email Integration (Resend)
9174
9175\`\`\`anim
9176email
9177\`\`\`
9178
9179Send transactional emails from your app using **Resend**.
9180
9181## Setup
9182
91831. Create an account at [resend.com](https://resend.com)
91842. Generate an API key
91853. Add it as a secret: \`RESEND_API_KEY\`
91864. Ask the AI to integrate email sending
9187
9188## Example
9189
9190\`\`\`
9191Add registration confirmation email using Resend
9192\`\`\`
9193
9194The AI will generate backend code to send emails with custom HTML templates.
9195
9196## Features
9197
9198- Welcome emails
9199- Registration confirmation
9200- Password reset
9201- Notifications
9202- Newsletter
9203
9204> [!INFO] Resend offers 3,000 emails/month free on the free plan.
9205`},"stripe-integration":{it:`# Integrazione Stripe
9206
9207\`\`\`anim
9208payment-funnel
9209\`\`\`
9210
9211Accetta pagamenti nella tua app con **Stripe**, il processore di pagamenti più utilizzato al mondo. Coderblock include un flusso guidato dall'AI che crea automaticamente i tuoi prodotti e prezzi su Stripe, generando codice con ID reali e funzionanti.
9212
9213> [!NOTE] Per le **Web app** (runtime Supabase) i pagamenti sono ancora più semplici: zero configurazione in test e account dedicato solo al go-live — vedi [Accettare Pagamenti](/docs/payments). Questa pagina resta il riferimento per la modalità avanzata con chiave propria (BYOK) e per i runtime Python/Node.
9214
9215## Come funziona
9216
9217Quando chiedi all'AI di aggiungere pagamenti, il sistema segue un flusso automatizzato:
9218
92191. **L'AI ti chiede la Secret Key** — appare un campo di input mascherato nella chat
92202. **Tu incolli la chiave** — viene salvata come secret del progetto
92213. **L'AI crea i prodotti su Stripe** — prodotti, prezzi e payment link vengono creati direttamente sul tuo account Stripe
92224. **Il codice generato usa ID reali** — niente placeholder, tutto funziona subito
9223
9224> [!TIP] Questo significa che non devi andare manualmente sulla dashboard Stripe per creare prodotti: l'AI fa tutto in automatico.
9225
9226---
9227
9228## Setup
9229
9230### 1. Crea un account Stripe
9231
9232Registrati su [stripe.com](https://stripe.com) se non hai ancora un account. Stripe offre un ambiente di test c
9232ompleto dove puoi provare tutto senza processare pagamenti reali.
9233
9234### 2. Ottieni le chiavi API
9235
9236Dalla [Dashboard Stripe → Developers → API Keys](https://dashboard.stripe.com/apikeys), copia:
9237
9238- **Secret key** (inizia con \`sk_test_...\`): la chiave principale che serve all'AI
9239- **Publishable key** (inizia con \`pk_test_...\`): per il frontend
9240
9241> [!INFO] Per lo sviluppo usa sempre le chiavi **test**. Quando sei pronto per andare live, sostituiscile con le chiavi **live**.
9242
9243### 3. Inserisci le chiavi in Coderblock
9244
9245Hai due opzioni:
9246
9247**Opzione A (consigliata): tramite AI Chat**
9248Chiedi semplicemente all'AI di aggiungere Stripe, apparirà automaticamente un campo di input nella chat:
9249\`\`\`
9250Aggiungi pagamenti Stripe al mio progetto
9251\`\`\`
9252
9253**Opzione B: manualmente dalle Impostazioni**
9254Vai in **Impostazioni → Secrets** del progetto e aggiungi:
9255- \`STRIPE_SECRET_KEY\` → \`sk_test_...\`
9256- \`STRIPE_PUBLISHABLE_KEY\` → \`pk_test_...\`
9257
9258---
9259
9260## Cosa puoi fare
9261
9262### Pagamenti one-time
9263
9264Vendita singola di un prodotto o servizio. Esempio:
9265
9266\`\`\`
9267Crea una pagina di checkout per vendere un corso online a €49
9268\`\`\`
9269
9270L'AI creerà:
9271- Un prodotto "Corso Online" su Stripe
9272- Un prezzo di €49.00 (one-time)
9273- Il codice di checkout che reindirizza a Stripe
9274- Le pagine di successo e cancellazione
9275
9276### Abbonamenti ricorrenti
9277
9278Piani con addebito mensile o annuale. Esempio:
9279
9280\`\`\`
9281Aggiungi abbonamenti con 3 piani: Free, Pro a €19/mese, Business a €49/mese
9282\`\`\`
9283
9284L'AI creerà:
9285- 3 prodotti su Stripe (Free, Pro, Business)
9286- I prezzi ricorrenti (monthly) per ciascun piano
9287- Una pagina pricing con confronto piani
9288- Il backend per gestire lo stato dell'abbonamento
9289- I webhook per aggiornamenti in tempo reale
9290
9291### Payment Link (il più semplice)
9292
9293Se vuoi solo un link di pagamento senza codice personalizzato:
9294
9295\`\`\`
9296Creami un Payment Link Stripe per un prodotto da €29
9297\`\`\`
9298
9299L'AI creerà il prodotto e il prezzo su Stripe, e ti restituirà un URL pronto all'uso (es. \`https://buy.stripe.com/xxx\`) che puoi incollare ovunque.
9300
9301### Stripe Checkout (hosted)
9302
9303La soluzione più rapida per un checkout completo:
9304
9305\`\`\`
9306Integra Stripe Checkout per il mio e-commerce con carrello
9307\`\`\`
9308
9309Stripe Checkout è una pagina di pagamento hosted da Stripe: gestisce automaticamente carte di credito, Apple Pay, Google Pay, e la conformità PCI.
9310
9311---
9312
9313## Webhook
9314
9315I webhook ti permettono di ricevere notifiche in tempo reale da Stripe (pagamento completato, abbonamento cancellato, ecc.).
9316
9317### Configurazione
9318
9319Dopo che l'AI genera il codice webhook, devi registrare l'URL nella dashboard Stripe:
9320
93211. Vai su [Dashboard Stripe → Developers → Webhooks](https://dashboard.stripe.com/webhooks)
93222. Clicca **"Add endpoint"**
93233. Inserisci l'URL del tuo progetto: \`https://{tuo-id}.coderblock.app/api/payments/webhook\`
93244. Seleziona gli eventi da ricevere (consigliati: \`checkout.session.completed\`, \`invoice.payment_succeeded\`, \`customer.subscription.deleted\`)
93255. Copia il **Webhook Secret** e aggiungilo come secret del progetto: \`STRIPE_WEBHOOK_SECRET\`
9326
9327> [!WARNING] L'URL webhook deve essere quello di **produzione** (\`.coderblock.app\`), non di preview (\`.coderblock.dev\`). I webhook non funzionano con la preview perché Stripe non può raggiungere l'URL di sviluppo.
9328
9329---
9330
9331## App Supabase (Edge Functions)
9332
9333Sui progetti con runtime **Supabase** i pagamenti vengono gestiti da due Edge Function Deno, non da un server backend. È il pattern validato (stile Lovable) e l'AI lo configura automaticamente con la skill \`add-stripe-payments-supabase\`.
9334
9335- \`create-checkout\` (\`verify_jwt = true\`) → crea la Stripe Checkout Session e restituisce l'URL. Funziona sia per pagamenti **una tantum** (\`mode: "payment"\`) sia per **abbonamenti** (\`mode: "subscription"\`).
9336- \`stripe-webhook\` (\`verify_jwt = false\`) → verifica la firma di Stripe e registra ordini/abbonamenti con il client service-role. **Il webhook è l'unica fonte di verità** che il pagamento è avvenuto: mai confermare lato frontend.
9337
9338### Secret richiesti (raccolti via chat con HIL)
9339
9340Quando chiedi all'AI di aggiungere i pagamenti, compaiono in chat dei campi sicuri (Human-in-the-Loop) per incollare i secret. Vengono salvati e propagati automaticamente come **secret delle Edge Function Supabase** (\`Deno.env.get\`):
9341
9342| Secret | Dove trovarlo |
9343|--------|---------------|
9344| \`STRIPE_SECRET_KEY\` | Stripe Dashboard → Developers → API keys (\`sk_test_…\` in test) |
9345| \`STRIPE_WEBHOOK_SECRET\` | Firma dell'endpoint webhook (\`whsec_…\`), vedi sotto |
9346
9347> [!NOTE] \`SUPABASE_URL\`, \`SUPABASE_ANON_KEY\` e \`SUPABASE_SERVICE_ROLE_KEY\` sono iniettati dalla piattaforma: non vanno mai richiesti né scritti a mano.
9348
9349### Configurare il WEBHOOK_TOKEN (signing secret)
9350
93511. La funzione è deployata su: \`https://<project-ref>.supabase.co/functions/v1/stripe-webhook\`
93522. In Stripe Dashboard → **Developers → Webhooks → Add endpoint**, incolla quell'URL.
93533. Seleziona gli eventi: \`checkout.session.completed\`, \`invoice.paid\`, \`customer.subscription.created\`, \`customer.subscription.updated\`, \`customer.subscription.deleted\`.
93544. Stripe mostra un **Signing secret** (\`whsec_…\`): incollalo nel campo HIL \`STRIPE_WEBHOOK_SECRET\` in chat.
9355
9356> [!TIP] A differenza del runtime Python, il webhook Supabase è raggiungibile da Stripe anche prima del deploy in produzione, perché la funzione vive sul tuo progetto Supabase.
9357
9358### Frontend
9359
9360\`\`\`ts
9361import { startCheckout, loadActiveSubscription } from "@/integrations/supabase/payments";
9362
9363await startCheckout({ priceId: "price_oneTime" });                     // una tantum
9364await startCheckout({ priceId: "price_monthly", mode: "subscription" }); // abbonamento
9365
9366const sub = await loadActiveSubscription(); // null se non abbonato → usa sub?.status per sbloccare funzioni
9367\`\`\`
9368
9369Le tabelle \`orders\` e \`subscriptions\` (migration \`0003_payments.sql\`) sono protette da RLS: ogni utente legge solo le proprie righe e solo il webhook (service-role) le scrive.
9370
9371---
9372
9373## Esempi di prompt
9374
9375| Obiettivo | Prompt |
9376|-----------|--------|
9377| Vendita singola | *"Crea un checkout per vendere una maglietta a €25"* |
9378| Abbonamento SaaS | *"Aggiungi piani di abbonamento Free/Pro/Enterprise con Stripe"* |
9379| Payment Link | *"Genera un Payment Link per un prodotto da €99"* |
9380| Donazione | *"Aggiungi un pulsante per donazioni con importo libero"* |
9381| E-commerce | *"Integra Stripe Checkout per il carrello del mio shop"* |
9382| Portale clienti | *"Aggiungi un portale dove gli utenti gestiscono il loro abbonamento"* |
9383
9384---
9385
9386## Test dei pagamenti
9387
9388In modalità test (\`sk_test_\`, \`pk_test_\`), usa queste carte fittizie:
9389
9390| Scenario | Numero carta |
9391|----------|-------------|
9392| Pagamento riuscito | \`4242 4242 4242 4242\` |
9393| Pagamento rifiutato | \`4000 0000 0000 0002\` |
9394| Autenticazione 3D Secure | \`4000 0025 0000 3155\` |
9395| Fondi insufficienti | \`4000 0000 0000 9995\` |
9396| Carta scaduta | \`4000 0000 0000 0069\` |
9397
9398Usa qualsiasi data futura e qualsiasi CVC a 3 cifre.
9399
9400---
9401
9402## Chiavi API
9403
9404| Chiave | Prefisso | Dove si usa | Tipo |
9405|--------|----------|-------------|------|
9406| Secret Key | \`sk_test_\` / \`sk_live_\` | Backend | Secret (mai esposta) |
9407| Publishable Key | \`pk_test_\` / \`pk_live_\` | Frontend | Pubblica (sicura nel browser) |
9408| Webhook Secret | \`whsec_\` | Backend | Secret |
9409
9410> [!DANGER] Non condividere mai la **Secret Key** o il **Webhook Secret**. Usa sempre le variabili d'ambiente, mai hardcoded nel codice.
9411
9412---
9413
9414## FAQ
9415
9416**Posso usare PayPal invece di Stripe?**
9417Attualmente Coderblock supporta solo Stripe come processore di pagamento. Stripe copre oltre 135 valute e tutti i principali metodi di pagamento.
9418
9419**Quanto costa Stripe?**
9420Stripe applica una commissione del 2.9% + €0.25 per transazione (standard europeo). Non ci sono costi fissi mensili.
9421
9422**Posso passare da test a live?**
9423Sì, basta sostituire le chiavi test con le chiavi live nelle Impostazioni → Secrets del progetto, e ridistribuire.
9424
9425**L'AI può gestire i rimborsi?**
9426L'AI può generare il codice per i rimborsi tramite l'API Stripe, ma il rimborso effettivo lo puoi anche fare dalla dashboard Stripe.
9427`,en:`# Stripe Integration
9428
9429\`\`\`anim
9430payment-funnel
9431\`\`\`
9432
9433Accept payments in your app with **Stripe**, the world's most popular payment processor. Coderblock 
9433includes an AI-guided flow that automatically creates your products and prices on Stripe, generating code with real, working IDs.
9434
9435> [!NOTE] For **Web apps** (Supabase runtime) payments are even simpler: zero configuration in test and a dedicated account only at go-live — see [Accept Payments](/docs/payments). This page remains the reference for the advanced bring-your-own-key (BYOK) mode and the Python/Node runtimes.
9436
9437## How it works
9438
9439When you ask the AI to add payments, the system follows an automated flow:
9440
94411. **The AI asks for your Secret Key** — a masked input field appears in the chat
94422. **You paste the key** — it's saved as a project secret
94433. **The AI creates products on Stripe** — products, prices and payment links are created directly on your Stripe account
94444. **Generated code uses real IDs** — no placeholders, everything works immediately
9445
9446> [!TIP] This means you don't need to manually go to the Stripe dashboard to create products: the AI does everything automatically.
9447
9448---
9449
9450## Setup
9451
9452### 1. Create a Stripe account
9453
9454Sign up at [stripe.com](https://stripe.com) if you don't have an account yet. Stripe offers a complete test environment where you can try everything without processing real payments.
9455
9456### 2. Get API keys
9457
9458From the [Stripe Dashboard → Developers → API Keys](https://dashboard.stripe.com/apikeys), copy:
9459
9460- **Secret key** (starts with \`sk_test_...\`): the main key the AI needs
9461- **Publishable key** (starts with \`pk_test_...\`): for the frontend
9462
9463> [!INFO] Always use **test** keys for development. When you're ready to go live, replace them with **live** keys.
9464
9465### 3. Enter keys in Coderblock
9466
9467You have two options:
9468
9469**Option A (recommended): via AI Chat**
9470Simply ask the AI to add Stripe, an input field will automatically appear in the chat:
9471\`\`\`
9472Add Stripe payments to my project
9473\`\`\`
9474
9475**Option B: manually from Settings**
9476Go to your project's **Settings → Secrets** and add:
9477- \`STRIPE_SECRET_KEY\` → \`sk_test_...\`
9478- \`STRIPE_PUBLISHABLE_KEY\` → \`pk_test_...\`
9479
9480---
9481
9482## What you can do
9483
9484### One-time payments
9485
9486Single product or service sale. Example:
9487
9488\`\`\`
9489Create a checkout page to sell an online course for €49
9490\`\`\`
9491
9492The AI will create:
9493- A "Online Course" product on Stripe
9494- A €49.00 price (one-time)
9495- The checkout code that redirects to Stripe
9496- Success and cancellation pages
9497
9498### Recurring subscriptions
9499
9500Plans with monthly or annual billing. Example:
9501
9502\`\`\`
9503Add subscriptions with 3 plans: Free, Pro at €19/month, Business at €49/month
9504\`\`\`
9505
9506The AI will create:
9507- 3 products on Stripe (Free, Pro, Business)
9508- Recurring (monthly) prices for each plan
9509- A pricing page with plan comparison
9510- The backend to manage subscription status
9511- Webhooks for real-time updates
9512
9513### Payment Link (the simplest)
9514
9515If you just want a payment link without custom code:
9516
9517\`\`\`
9518Create a Stripe Payment Link for a product at €29
9519\`\`\`
9520
9521The AI will create the product and price on Stripe, and return a ready-to-use URL (e.g. \`https://buy.stripe.com/xxx\`) that you can paste anywhere.
9522
9523### Stripe Checkout (hosted)
9524
9525The fastest solution for a complete checkout:
9526
9527\`\`\`
9528Integrate Stripe Checkout for my e-commerce with cart
9529\`\`\`
9530
9531Stripe Checkout is a Stripe-hosted payment page: it automatically handles credit cards, Apple Pay, Google Pay, and PCI compliance.
9532
9533---
9534
9535## Webhooks
9536
9537Webhooks let you receive real-time notifications from Stripe (payment completed, subscription canceled, etc.).
9538
9539### Configuration
9540
9541After the AI generates webhook code, you need to register the URL in the Stripe dashboard:
9542
95431. Go to [Stripe Dashboard → Developers → Webhooks](https://dashboard.stripe.com/webhooks)
95442. Click **"Add endpoint"**
95453. Enter your project URL: \`https://{your-id}.coderblock.app/api/payments/webhook\`
95464. Select the events to receive (recommended: \`checkout.session.completed\`, \`invoice.payment_succeeded\`, \`customer.subscription.deleted\`)
95475. Copy the **Webhook Secret** and add it as a project secret: \`STRIPE_WEBHOOK_SECRET\`
9548
9549> [!WARNING] The webhook URL must be the **production** one (\`.coderblock.app\`), not preview (\`.coderblock.dev\`). Webhooks don't work with preview because Stripe can't reach the development URL.
9550
9551---
9552
9553## Supabase web app (Edge Functions)
9554
9555On **Supabase** runtime projects, payments are handled by two Deno Edge Functions instead of a backend server. This is the validated (Lovable-style) pattern, configured automatically by the AI via the \`add-stripe-payments-supabase\` skill.
9556
9557- \`create-checkout\` (\`verify_jwt = true\`) → creates the Stripe Checkout Session and returns its URL. Works for both **one-time** payments (\`mode: "payment"\`) and **subscriptions** (\`mode: "subscription"\`).
9558- \`stripe-webhook\` (\`verify_jwt = false\`) → verifies Stripe's signature and records orders/subscriptions with the service-role client. **The webhook is the single source of truth** that the payment happened — never confirm it client-side.
9559
9560### Required secrets (collected in chat via HIL)
9561
9562When you ask the AI to add payments, secure Human-in-the-Loop fields appear in chat to paste the secrets. They are saved and propagated automatically as **Supabase Edge Function secrets** (\`Deno.env.get\`):
9563
9564| Secret | Where to find it |
9565|--------|------------------|
9566| \`STRIPE_SECRET_KEY\` | Stripe Dashboard → Developers → API keys (\`sk_test_…\` in test) |
9567| \`STRIPE_WEBHOOK_SECRET\` | Your webhook endpoint signing secret (\`whsec_…\`), see below |
9568
9569> [!NOTE] \`SUPABASE_URL\`, \`SUPABASE_ANON_KEY\` and \`SUPABASE_SERVICE_ROLE_KEY\` are injected by the platform — never request or hardcode them.
9570
9571### Configuring the WEBHOOK_TOKEN (signing secret)
9572
95731. The function is deployed at: \`https://<project-ref>.supabase.co/functions/v1/stripe-webhook\`
95742. In Stripe Dashboard → **Developers → Webhooks → Add endpoint**, paste that URL.
95753. Select the events: \`checkout.session.completed\`, \`invoice.paid\`, \`customer.subscription.created\`, \`customer.subscription.updated\`, \`customer.subscription.deleted\`.
95764. Stripe shows a **Signing secret** (\`whsec_…\`): paste it into the \`STRIPE_WEBHOOK_SECRET\` HIL field in chat.
9577
9578> [!TIP] Unlike the Python runtime, the Supabase webhook is reachable by Stripe even before production deploy, because the function lives on your Supabase project.
9579
9580### Frontend
9581
9582\`\`\`ts
9583import { startCheckout, loadActiveSubscription } from "@/integrations/supabase/payments";
9584
9585await startCheckout({ priceId: "price_oneTime" });                     // one-time
9586await startCheckout({ priceId: "price_monthly", mode: "subscription" }); // subscription
9587
9588const sub = await loadActiveSubscription(); // null if not subscribed → gate features on sub?.status
9589\`\`\`
9590
9591The \`orders\` and \`subscriptions\` tables (migration \`0003_payments.sql\`) are RLS-protected: each user reads only their own rows, and only the webhook (service-role) writes them.
9592
9593---
9594
9595## Prompt examples
9596
9597| Goal | Prompt |
9598|------|--------|
9599| One-time sale | *"Create a checkout to sell a t-shirt for €25"* |
9600| SaaS subscription | *"Add subscription plans Free/Pro/Enterprise with Stripe"* |
9601| Payment link | *"Generate a Payment Link for a €99 product"* |
9602| Donation | *"Add a donation button with custom amount"* |
9603| E-commerce | *"Integrate Stripe Checkout for my shop cart"* |
9604| Customer portal | *"Add a portal where users manage their subscription"* |
9605
9606---
9607
9608## Testing payments
9609
9610In test mode (\`sk_test_\`, \`pk_test_\`), use these fake cards:
9611
9612| Scenario | Card number |
9613|----------|------------|
9614| Successful payment | \`4242 4242 4242 4242\` |
9615| Declined payment | \`4000 0000 0000 0002\` |
9616| 3D Secure authentication | \`4000 0025 0000 3155\` |
9617| Insufficient funds | \`4000 0000 0000 9995\` |
9618| Expired card | \`4000 0000 0000 0069\` |
9619
9620Use any future date and any 3-digit CVC.
9621
9622---
9623
9624## API Keys
9625
9626| Key | Prefix | Where used | Type |
9627|-----|--------|-----------|------|
9628| Secret Key | \`sk_test_\` / \`sk_live_\` | Backend | Secret (never exposed) |
9629| Publishable Key | \`pk_test_\` / \`pk_live_\` | Frontend | Public (safe in browser) |
9630| Webhook Secret | \`whsec_\` | Backend | Secret |
9631
9632> [!DANGER] Never share the **Secret Key** or **Webhook Secret**. Always use environment variables, never hardcoded in code.
9633
9634---
9635
9636## FAQ
9637
9638**Can I use PayPal instead of Stripe?**
9639Currently Coderblock only supports Stripe as a payment processor. Stripe covers over 135 currencies and all major payment methods.
9640
9641**How much does Stripe cost?**
9642Stripe charges 2.9% + €0.25 per transaction (European standard). There are no monthly fixed costs.
9643
9644**Can I switch from test to live?**
9645Yes, just replace the test keys with live keys in your project's Settings → Secrets, and redeploy.
9646
9647**Can the AI handle refunds?**
9648The AI can generate code for refunds via the Stripe API, but you can also process refunds directly from the Stripe dashboard.
9649`},"github-integration":{it:`# Integrazione GitHub
9650
9651\`\`\`anim
9652github
9653\`\`\`
9654
9655Collega il tuo progetto a un repository GitHub per versionamento e collaborazione.
9656
9657## Come collegare
9658
96591. Vai nelle **Impostazioni** del progetto
96602. Sezione **"GitHub"**
96613. Clicca **"Connetti GitHub"** per autorizzare via OAuth
96624. Scegli un repository esistente o creane uno nuovo
9663
9664## Funzionalità
9665
9666- **Commit automatici**: ogni modifica dell'AI può essere committata
9667- **Push/Pull**: sincronizza il codice tra Coderblock e GitHub
9668- **Branch**: lavora su branch separati per feature diverse
9669
9670## Struttura repository
9671
9672\`\`\`
9673repository/
9674├── frontend/        # Codice React/Vite
9675├── backend/         # Codice Python/FastAPI
9676└── README.md
9677\`\`\`
9678
9679> [!TIP] Attiva i commit automatici per avere una cronologia completa delle modifiche.
9680`,en:`# GitHub Integration
9681
9682\`\`\`anim
9683github
9684\`\`\`
9685
9686Connect your project to a GitHub repository for version control and collaboration.
9687
9688## How to connect
9689
96901. Go to project **Settings**
96912. Section **"GitHub"**
96923. Click **"Connect GitHub"** to authorize via OAuth
96934. Choose an existing repository or create a new one
9694
9695## Features
9696
9697- **Automatic commits**: each AI change can be committed
9698- **Push/Pull**: sync code between Coderblock and GitHub
9699- **Branches**: work on separate branches for different features
9700
9701## Repository structure
9702
9703\`\`\`
9704repository/
9705├── frontend/        # React/Vite code
9706├── backend/         # Python/FastAPI code
9707└── README.md
9708\`\`\`
9709
9710> [!TIP] Enable automatic commits for a complete history of changes.
9711`},"custom-domains":{it:`# Domini Personalizzati
9712
9713\`\`\`anim
9714custom-domain
9715\`\`\`
9716
9717Collega un dominio personalizzato alla tua app pubblicata per dare un aspetto professionale al tuo progetto. Invece di \`{id}.coderblock.app\`, i tuoi utenti vedranno \`www.tuodominio.com\`.
9718
9719## Prerequisiti
9720
9721- L'app deve essere già **pubblicata in produzione** (Deploy completato)
9722- Devi avere accesso alla **gestione DNS** del tuo dominio
9723
9724## Come configurare
9725
9726### Passo 1: Aggiungi il dominio su Coderblock
9727
97281. Apri il progetto nell'editor
97292. Vai nelle **Impostazioni** del progetto
97303. Sezione **"Dominio personalizzato"**
97314. Inserisci il tuo dominio (es. \`miodominio.com\` o \`app.miodominio.com\`)
97325. Coderblock ti mostrerà i record DNS da configurare
9733
9734### Passo 2: Configura i DNS
9735
9736Vai nel pannello di gestione DNS del tuo provider (Cloudflare, GoDaddy, Namecheap, ecc.) e aggiungi i seguenti record:
9737
9738**Per dominio root** (\`miodominio.com\`):
9739\`\`\`
9740A       @       → [IP fornito da Coderblock]
9741\`\`\`
9742
9743**Per sottodominio** (\`www.miodominio.com\` o \`app.miodominio.com\`):
9744\`\`\`
9745CNAME   www     → {id}.coderblock.app
9746\`\`\`
9747
9748### Passo 3: Verifica e SSL
9749
97501. Coderblock verifica automaticamente la configurazione DNS
97512. Una volta confermata, il **certificato SSL** viene generato automaticamente tramite Let's Encrypt
97523. Il tuo dominio è pronto: sia \`http://\` che \`https://\` funzioneranno
9753
9754## Tempi
9755
9756| Operazione | Tempo |
9757|-----------|-------|
9758| Propagazione DNS | 5 minuti - 48 ore |
9759| Generazione certificato SSL | 1-5 minuti |
9760| Attivazione dominio | Automatica dopo DNS |
9761
9762## Risoluzione problemi
9763
9764| Problema | Soluzione |
9765|----------|----------|
9766| DNS non si propaga | Attendi fino a 48 ore, verifica i record con \`dig\` o \`nslookup\` |
9767| Errore certificato SSL | Verifica che il CNAME punti correttamente, riprova dopo qualche minuto |
9768| Dominio non raggiungibile | Controlla che non ci siano proxy attivi (es. Cloudflare proxy) che interfer
9768iscono |
9769
9770> [!WARNING] Se usi Cloudflare, imposta il proxy su **"DNS only"** (icona grigia) per il record CNAME, almeno durante la configurazione iniziale. Dopo che il certificato SSL è stato generato, puoi riattivare il proxy.
9771`,en:`# Custom Domains
9772
9773\`\`\`anim
9774custom-domain
9775\`\`\`
9776
9777Connect a custom domain to your published app for a professional look. Instead of \`{id}.coderblock.app\`, your users will see \`www.yourdomain.com\`.
9778
9779## Prerequisites
9780
9781- The app must already be **published to production** (Deploy completed)
9782- You must have access to your domain's **DNS management**
9783
9784## How to configure
9785
9786### Step 1: Add the domain on Coderblock
9787
97881. Open the project in the editor
97892. Go to project **Settings**
97903. Section **"Custom Domain"**
97914. Enter your domain (e.g. \`mydomain.com\` or \`app.mydomain.com\`)
97925. Coderblock will show you the DNS records to configure
9793
9794### Step 2: Configure DNS
9795
9796Go to your DNS management panel (Cloudflare, GoDaddy, Namecheap, etc.) and add the following records:
9797
9798**For root domain** (\`mydomain.com\`):
9799\`\`\`
9800A       @       → [IP provided by Coderblock]
9801\`\`\`
9802
9803**For subdomain** (\`www.mydomain.com\` or \`app.mydomain.com\`):
9804\`\`\`
9805CNAME   www     → {id}.coderblock.app
9806\`\`\`
9807
9808### Step 3: Verification and SSL
9809
98101. Coderblock automatically verifies DNS configuration
98112. Once confirmed, the **SSL certificate** is automatically generated via Let's Encrypt
98123. Your domain is ready: both \`http://\` and \`https://\` will work
9813
9814## Timing
9815
9816| Operation | Time |
9817|-----------|------|
9818| DNS propagation | 5 minutes - 48 hours |
9819| SSL certificate generation | 1-5 minutes |
9820| Domain activation | Automatic after DNS |
9821
9822## Troubleshooting
9823
9824| Issue | Solution |
9825|-------|----------|
9826| DNS not propagating | Wait up to 48 hours, verify records with \`dig\` or \`nslookup\` |
9827| SSL certificate error | Verify CNAME points correctly, retry after a few minutes |
9828| Domain unreachable | Check for active proxies (e.g., Cloudflare proxy) that may interfere |
9829
9830> [!WARNING] If using Cloudflare, set the proxy to **"DNS only"** (gray icon) for the CNAME record, at least during initial setup. After the SSL certificate is generated, you can re-enable the proxy.
9831`},billing:{it:`# Fatturazione
9832
9833\`\`\`anim
9834credits
9835\`\`\`
9836
9837Gestisci abbonamento, pagamenti e fatture.
9838
9839## Piani
9840
9841| Piano | Prezzo | Crediti AI |
9842|-------|--------|------------|
9843| Community | Gratuito | ${y} crediti, una tantum (non si rinnovano) |
9844| Pro | $25/mese | 100 crediti ogni mese |
9845| Business | $50/mese | 200 crediti ogni mese |
9846| Enterprise | Su misura | Contatta il team commerciale |
9847
9848Nell'UE/SEE, nel Regno Unito e in Svizzera i prezzi sono mostrati in euro. I prezzi includono già IVA o imposte sulle vendite. La fatturazione annuale costa meno di quella mensile: la [pagina prezzi](/pricing) mostra sempre il prezzo esatto e aggiornato nella tua valuta. Il confronto completo è in [Piani](/docs/plans).
9849
9850## Gestione abbonamento
9851
9852- Vai su **Account → Abbonamento**
9853- Puoi fare upgrade, downgrade o disdire in qualsiasi momento
9854- Gli upgrade sono calcolati pro-rata e i crediti non usati passano al nuovo piano
9855- I pagamenti sono gestiti da **Stripe**: i clienti UE sono fatturati da Coderblock S.r.l. (Italia), tutti gli altri da Coderblock, Inc. (USA)
9856- Le fatture sono disponibili nella sezione fatturazione del tuo account
9857
9858> [!INFO] I crediti mensili si azzerano a ogni rinnovo e non passano al mese successivo. I crediti extra che acquisti restano separati dalla dotazione mensile.
9859`,en:`# Billing
9860
9861\`\`\`anim
9862credits
9863\`\`\`
9864
9865Manage your subscription, payments and invoices.
9866
9867## Plans
9868
9869| Plan | Price | AI credits |
9870|------|-------|------------|
9871| Community | Free | ${y} credits, one-time (they don't renew) |
9872| Pro | $25/month | 100 credits every month |
9873| Business | $50/month | 200 credits every month |
9874| Enterprise | Custom | Contact sales |
9875
9876Customers in the EU/EEA, UK and Switzerland see prices in euros. Prices already include VAT or sales tax. Annual billing costs less than paying monthly: the [pricing page](/pricing) always shows the exact current price in your currency. Full comparison in [Plans](/docs/plans).
9877
9878## Subscription management
9879
9880- Go to **Account → Subscription**
9881- You can upgrade, downgrade or cancel at any time
9882- Upgrades are prorated, and your unspent credits carry over to the new plan
9883- Payments are processed by **Stripe**: EU customers are billed by Coderblock S.r.l. (Italy), everyone else by Coderblock, Inc. (USA)
9884- Invoices are available in the billing section of your account
9885
9886> [!INFO] Monthly credits reset at every renewal and don't roll over to the next month. Extra credits you buy are kept separately from the monthly allowance.
9887`},credits:{it:`# Crediti
9888
9889\`\`\`anim
9890credits
9891\`\`\`
9892
9893I crediti sono l'unità che misura l'utilizzo dell'AI su Coderblock.
9894
9895## Da dove arrivano i crediti
9896
9897- **Community**: ${y} crediti una sola volta, alla registrazione. Non si rinnovano.
9898- **Prova Pro**: +${M} crediti per i 14 giorni della prova.
9899- **Pro**: 100 crediti ogni mese. **Business**: 200 crediti ogni mese.
9900- **Crediti extra**: puoi acquistare pacchetti di crediti in qualsiasi momento con **Acquista crediti**.
9901
9902## Come si consumano i crediti
9903
9904Ogni messaggio costa in base al lavoro AI che ha richiesto davvero, non a tariffa fissa. Contano tre cose:
9905
99061. **La dimensione del task**: una piccola modifica di testo consuma una frazione di credito, mentre generare un'app fullstack completa può richiedere diversi crediti.
99072. **Il modello**: i modelli premium (Claude, GPT-6.1 Sol, GPT-5.6 Terra e Frontier) consumano più crediti dei modelli open per lo stesso lavoro, e Claude Fable 5 è quello che ne consuma di più. Vedi [Modelli](/docs/models).
99083. **Il tuo piano**: i piani a pagamento consumano meno crediti per lo stesso lavoro.
9909
9910Gli strumenti che l'AI usa durante un messaggio, come la generazione di immagini, sono inclusi nel costo di quel messaggio.
9911
9912> [!INFO] La prima generazione del tuo primo progetto la offre Coderblock, fino a un limite: una nota in chat ti avvisa quando si applica.
9913
9914## Stime e consumo reale
9915
9916- Con **Auto** (e con **Frontier** quando disponibile) la finestra dei livelli di qualità mostra una **stima** del costo per messaggio che si aggiorna mentre cambi i livelli.
9917- Dopo ogni messaggio, i crediti effettivamente usati vengono registrati nello storico dei consumi.
9918
9919Fanno fede la stima in app e lo storico dei consumi: gli esempi in questa documentazione sono solo indicativi.
9920
9921## Altri utilizzi dei crediti
9922
9923- Un **IPv4 dedicato** opzionale per un dominio personalizzato si paga in crediti, un anno alla volta.
9924
9925## Monitoraggio
9926
9927Da **Account → Abbonamento** puoi vedere:
9928
9929- I crediti rimanenti
9930- Il consumo per tipo di azione
9931- Gli utilizzi recenti
9932
9933> [!WARNING] Quando i crediti finiscono, l'AI non può avviare nuove richieste finché il piano non si rinnova o non acquisti crediti extra.
9934`,en:`# Credits
9935
9936\`\`\`anim
9937credits
9938\`\`\`
9939
9940Credits are the unit that measures AI usage on Coderblock.
9941
9942## Where credits come from
9943
9944- **Community**: ${y} credits once, when you sign up. They don't renew.
9945- **Pro trial**: +${M} credits for the 14 days of the trial.
9946- **Pro**: 100 credits every month. **Business**: 200 credits every month.
9947- **Extra credits**: you can buy credit packs at any time with **Buy credits**.
9948
9949## How credits are consumed
9950
9951Each message is charged for the AI work it actually needed, not a flat fee. Three things make the difference:
9952
99531. **The size of the task**: a small text change uses a fraction of a credit, while generating a complete fullstack app can take several credits.
99542. **The model**: premium models (Claude, GPT-6.1 Sol, GPT-5.6 Terra and Frontier) use more credits than open models for the same work, and Claude Fable 5 uses the most. See [Models](/docs/models).
99553. **Your plan**: paid plans use fewer credits for the same work.
9956
9957Tools the AI uses during a message, such as image generation, are included in that message's cost.
9958
9959> [!INFO] The first generation of your first project is on Coderblock, up to a limit: a note in the chat tells you when it applies.
9960
9961## Estimates and actual usage
9962
9963- With **Auto** (and **Frontier** when available) the quality-dials window shows an **estimated** cost per message that updates as you change the levels.
9964- After each message, the credits actually used are recorded in your usage history.
9965
9966The in-app estimate and your usage history are the figures that count: any example in these docs is only indicative.
9967
9968## Other uses of credits
9969
9970- An optional **dedicated IPv4** for a custom domain is charged in credits, one year at a time.
9971
9972## Monitoring
9973
9974From **Account → Subscription** you can see:
9975
9976- Credits remaining
9977- Usage by action type
9978- Recent usage
9979
9980> [!WARNING] When your credits run out, the AI can't start new requests until your plan renews or you buy extra credits.
9981`},plans:{it:`# Piani
9982
9983\`\`\`anim
9984plans
9985\`\`\`
9986
9987Scegli il piano più adatto alle tue esigenze.
9988
9989## Confronto piani
9990
9991| | Community | Pro | Business | Enterprise |
9992|---|-----------|-----|----------|------------|
9993| Prezzo | Gratuito | $25/mese | $50/mese | Su misura |
9994| Crediti AI | ${y} (una tantum) | 100/mese | 200/mese | Su misura |
9995| Progetti | 2 | Illimitati | Illimitati | Illimitati |
9996| Crediti per messaggio | Tariffa standard | Ridotti | Ridotti | Su misura |
9997| Modelli | Auto, modelli open, GPT-6 Luna | Tutti, inclusi Claude, GPT-6.1 Sol, GPT-5.6 Terra e Frontier | Tutti | Tutti |
9998| Repository GitHub | Pubblici | Privati | Privati | Privati |
9999| Email transazionali gestite | 50/giorno | 500/giorno | 2.000/giorno | Su misura |
10000| Generazione video e voce AI | No | Sì | Sì | Sì |
10001| Supporto | Community | Email | Prioritario | Manager dedicato |
10002
10003Enterprise aggiunge installazione on-premise, SSO e garanzie SLA. I prezzi includono IVA o imposte sulle vendite; la [pagina prezzi](/pricing) mostra il prezzo aggiornato nella tua valuta, compreso lo sconto annuale.
10004
10005## Prova Pro
10006
10007Gli utenti Community possono provare Pro gratis per **14 giorni**. La prova aggiunge **${M} crediti** (in tutto ${V} insieme ai crediti Community) e sblocca le funzionalità Pro. I crediti bonus scadono con la prova. Se hai già avuto un abbonamento Pro a pagamento, la prova non viene riproposta e puoi abbonarti direttamente.
10008
10009## Come cambiare piano
10010
100111. Vai su **Account → Abbonamento**
100122. Seleziona il nuovo piano
100133. Gli upgrade sono immediati e calcolati pro-rata
100144. I crediti non usati passano al nuovo piano
10015
10016> [!TIP] Inizia con Community (o con la prova Pro) per provare la piattaforma, poi passa a Pro quando ti servono più crediti e i modelli premium.
10017`,en:`# Plans
10018
10019\`\`\`anim
10020plans
10021\`\`\`
10022
10023Choose the plan that fits your needs.
10024
10025## Plan comparison
10026
10027| | Community | Pro | Business | Enterprise |
10028|---|-----------|-----|----------|------------|
10029| Price | Free | $25/month | $50/month | Custom |
10030| AI credits | ${y} (one-time) | 100/month | 200/month | Custom |
10031| Projects | 2 | Unlimited | Unlimited | Unlimited |
10032| Credits per message | Standard rate | Lower | Lower | Custom |
10033| Models | Auto, open models, GPT-6 Luna | All, incl. Claude, GPT-6.1 Sol, GPT-5.6 Terra and Frontier | All | All |
10034| GitHub repositories | Public | Private | Private | Private |
10035| Managed transactional emails | 50/day | 500/day | 2,000/day | Custom |
10036| AI video and voice generation | No | Yes | Yes | Yes |
10037| Support | Community | Email | Priority | Dedicated manager |
10038
10039Enterprise adds on-premise deployment, SSO and SLA guarantees. Prices include VAT or sales tax; the [pricing page](/pricing) shows the current price in your currency, including the annual discount.
10040
10041## Pro trial
10042
10043Community users can try Pro free for **14 days**. The trial adds **${M} credits** (so you'll have ${V} in total with your Community credits) and unlocks the Pro features. The bonus credits expire with the trial. If you've already had a paid Pro subscription, the trial isn't offered again and you can subscribe directly.
10044
10045## How to change plan
10046
100471. Go to **Account → Subscription**
100482. Select the new plan
100493. Upgrades are immediate and prorated
100504. Your unspent credits carry over to the new plan
10051
10052> [!TIP] Start with Community (or the Pro trial) to try the platform, then move to Pro when you need more credits and the premium models.
10053`}
10053,changelog:{it:`# Changelog
10054
10055\`\`\`anim
10056changelog
10057\`\`\`
10058
10059Ultime novità e aggiornamenti della piattaforma Coderblock.
10060
10061---
10062
10063## Settembre 2026
10064
10065### 🚀 Nuove funzionalità
10066
10067- **Nuovi modelli**: Claude Opus 5.5 è ora il modello Anthropic di punta su Coderblock, e GPT-6 Sol e GPT-6 Luna sostituiscono GPT-5.6 Sol e GPT-5.6 Luna. Claude Sonnet 5 resta il modello Claude per il lavoro di tutti i giorni. Vedi [Modelli](/docs/models).
10068- **GPT-6.1 Sol** (30 settembre): la modalità Sol passa da GPT-6 Sol a GPT-6.1 Sol, allo stesso prezzo e più forte sul codice. Vedi [Modelli](/docs/models).
10069- **Selettore con i nomi reali**: ogni opzione mostra ora il nome effettivo del modello, raggruppato per provider, accanto ad Auto e Frontier.
10070
10071### 💳 Piani
10072
10073- Piani attuali: Community (gratuito, ${y} crediti una tantum), Pro ($25/mese, 100 crediti al mese), Business ($50/mese, 200 crediti al mese) ed Enterprise (su misura). Vedi [Piani](/docs/plans).
10074
10075> [!INFO] Le voci qui sotto descrivono la piattaforma com'era all'epoca: alcuni modelli, nomi di modalità e prezzi citati sono stati sostituiti.
10076
10077---
10078
10079## Marzo 2026
10080
10081### 🚀 Nuove funzionalità
10082
10083- **AI Chat: Stop & Coda messaggi**: Ora puoi interrompere l'esecuzione dell'AI in qualsiasi momento con il pulsante Stop. Puoi anche scrivere messaggi mentre l'AI sta lavorando: verranno messi in coda e inviati automaticamente al termine dell'esecuzione, oppure puoi forzare l'invio immediato.
10084- **Modalità Eco (Kimi K2.5)**: Terza modalità di generazione AI accanto a Turbo (Sonnet 4.6) e Premium (Opus 4.6). Circa 80% più economica, ideale per task semplici.
10085- **Variabili d'ambiente in chat**: Quando l'AI rileva la necessità di una API key, mostra un campo di input mascherato direttamente nella chat. Salva con un click.
10086- **Query SQL dirette**: L'agente AI può eseguire query SQL (SELECT, INSERT, UPDATE, DELETE, DDL) direttamente sul database del progetto con livelli di sicurezza e conferma utente per operazioni distruttive.
10087- **HIL (Human-in-the-Loop)**: L'agente presenta pulsanti a scelta multipla per decisioni ambigue (scope del cloning, modifiche al database, etc.).
10088- **Generazione immagini nei progetti**: L'AI può generare immagini (hero banner, illustrazioni, icone) direttamente nei file del progetto con DALL-E.
10089- **Social Login per i progetti**: OAuth proxy condiviso Coderblock con Google + GitHub. I tuoi utenti possono loggarsi con un click.
10090- **Navigazione back nella preview**: Pulsante indietro nel browser di preview + navigazione SPA senza flash bianco.
10091- **32 template prodotto**: Booking platform, online store, MMORPG game, content platform, wellness a
10091pp, e molto altro.
10092- **20+ template feature**: Admin panel, cart, chat, CMS, dashboard, notifications, payments, search, subscriptions, task management.
10093
10094### ⚡ Miglioramenti
10095
10096- **Hot-reload 5x più veloce**: Da ~60-80s a ~7-13s per modifiche singole ai file. Path ottimizzato con \`aws s3 cp\` mirato.
10097- **UI Chat pulita**: Blocchi tool collassabili ("N tools usati" à la Lovable), nessuna narrazione intermedia del ragionamento AI.
10098- **RAG migliorato**: Indicizzazione automatica per template prodotto (da 148 a 284 punti, da 99 a 103 file).
10099- **code_search riscritto**: Bug fondamentale corretto, filtri di esclusione file, cache in-memory.
10100- **Prompt caching**: Riduzione costi ~27-33% con prompt caching di Anthropic.
10101- **Tema chiaro di default**: La homepage ora usa il tema chiaro, dark mode per scelta esplicita.
10102
10103### 🔒 Sicurezza
10104
10105- **Row Level Security (RLS)**: Abilitato su tutte le 66 tabelle, accesso anonimo revocato su 58 tabelle sensibili.
10106- **Backup database completo**: pg_dump schema + dati con PostgreSQL 17.
10107- **Rate limiting**: slowapi su tutti gli endpoint API.
10108- **Cancellazione account self-service**: Conformità GDPR con pulizia completa dei dati.
10109
10110### 💳 Pagamenti & Fatturazione
10111
10112- **Architettura Dual-Stripe**: Coderblock Inc (US/non-EU) + Coderblock Srl (IT/EU) con routing automatico per paese.
10113- **Fatture in Cloud**: Fatturazione elettronica italiana automatica (SDI) per pagamenti Srl.
10114- **Stripe Adaptive Pricing**: Prezzi in USD base con conversione automatica + Stripe Tax per IVA.
10115- **Pacchetti crediti**: 25/75/170/400 crediti a $10/$25/$50/$100.
10116
10117### 🐛 Bug fix
10118
10119- Corretto ReactDOM import in tutti i template base
10120- Risolto stuck del sync nella preview dopo timeout SSE
10121- Fix del loop infinito nelle operazioni distruttive con conferma utente
10122- Corretta injection SQL nel parametro \`order_dir\`
10123- Fix username duplicati durante social login
10124
10125---
10126
10127## Febbraio 2026
10128
10129### 🚀 Nuove funzionalità
10130
10131- **Architettura Single-Agent**: Migrazione dal sistema multi-agente Agno al pattern Claude Code: think → act → observe → correct.
10132- **Sub-agenti paralleli**: Fino a 3-4 sub-agenti concorrenti con \`asyncio.gather()\` per generazione di codice frontend e backend.
10133- **Preview su Fly.io**: VM reali con Vite dev server e HMR su \`*.coderblock.dev\`.
10134- **Deploy in produzione**: Container Docker unificato su \`*.coderblock.app\` con Fly.io.
10135- **Clonazione siti**: L'AI può analizzare e clonare siti web esistenti da URL.
10136- **Auto-discovery delle route**: \`import.meta.glob\` per scoperta automatica delle pagine nel frontend.
10137
10138### ⚡ Miglioramenti
10139
10140- **NeonDB resiliente**: pool_recycle, pool_pre_ping, gestione errori migliorata.
10141- **Web scraper Playwright**: Browser headless per siti JS-rendered, httpx come fallback.
10142- **Health check frontend**: Rilevamento automatico errori Vite 500 con loop di auto-fix.
10143
10144---
10145
10146## Gennaio 2026
10147
10148### 🚀 Lancio
10149
10150- Lancio della piattaforma Coderblock.ai
10151- **Claude Sonnet 4.6** come modello principale
10152- **Claude Opus 4.6** per generazione UI frontend premium
10153- **Claude Haiku 4.5** per routing e analisi
10154- Dashboard progetti, editor con split-screen, file manager
10155- Sistema di crediti con piani Community e Pro
10156`,en:`# Changelog
10157
10158\`\`\`anim
10159changelog
10160\`\`\`
10161
10162Latest news and platform updates.
10163
10164---
10165
10166## September 2026
10167
10168### 🚀 New features
10169
10170- **New models**: Claude Opus 5.5 is now Anthropic's top model on Coderblock, and GPT-6 Sol and GPT-6 Luna replace GPT-5.6 Sol and GPT-5.6 Luna. Claude Sonnet 5 stays the everyday Claude model. See [Models](/docs/models).
10171- **GPT-6.1 Sol** (September 30): the Sol mode moves from GPT-6 Sol to GPT-6.1 Sol, at the same price and stronger on code. See [Models](/docs/models).
10172- **Model picker with real names**: every option now shows the actual model name, grouped by provider, next to Auto and Frontier.
10173
10174### 💳 Plans
10175
10176- Current plans: Community (free, ${y} one-time credits), Pro ($25/month, 100 credits a month), Business ($50/month, 200 credits a month) and Enterprise (custom). See [Plans](/docs/plans).
10177
10178> [!INFO] The entries below describe the platform as it was at the time: some of the models, mode names and prices they mention have since been replaced.
10179
10180---
10181
10182## March 2026
10183
10184### 🚀 New Features
10185
10186- **AI Chat: Stop & Message Queue**: You can now stop AI execution at any time with the Stop button. You can also type messages while the AI is working: they'll be queued and sent automatically when the current run completes, or you can force immediate delivery.
10187- **Eco Mode (Kimi K2.5)**: Third AI generation mode alongside Turbo (Sonnet 4.6) and Premium (Opus 4.6). About 80% cheaper, ideal for simple tasks.
10188- **In-chat environment variables**: When the AI detects the need for an API key, it shows a masked input field directly in the chat. Save with one click.
10189- **Direct SQL queries**: The AI agent can execute SQL queries (SELECT, INSERT, UPDATE, DELETE, DDL) directly on the project database with safety layers and user confirmation for destructive operations.
10190- **HIL (Human-in-the-Loop)**: The agent presents multiple-choice buttons for ambiguous decisions (cloning scope, database changes, etc.).
10191- **Image generation in projects**: The AI can generate images (hero banners, illustrations, icons) directly in project files with DALL-E.
10192- **Social Login for projects**: Shared Coderblock OAuth proxy with Google + GitHub. Your users can log in with one click.
10193- **Back navigation in preview**: Back button in preview browser + SPA navigation without white flash.
10194- **32 product templates**: Booking platform, online store, MMORPG game, content platform, wellness a
10194pp, and much more.
10195- **20+ feature templates**: Admin panel, cart, chat, CMS, dashboard, notifications, payments, search, subscriptions, task management.
10196
10197### ⚡ Improvements
10198
10199- **5x faster hot-reload**: From ~60-80s to ~7-13s for single file changes. Optimized path with targeted \`aws s3 cp\`.
10200- **Clean chat UI**: Collapsible tool blocks ("N tools used" à la Lovable), no intermediate reasoning narration.
10201- **Improved RAG**: Automatic indexing for product templates (from 148 to 284 points, 99 to 103 files).
10202- **code_search rewritten**: Fundamental bug fixed, file exclusion filters, in-memory cache.
10203- **Prompt caching**: ~27-33% cost reduction with Anthropic prompt caching.
10204- **Light theme by default**: Homepage now uses light theme, dark mode by explicit choice.
10205
10206### 🔒 Security
10207
10208- **Row Level Security (RLS)**: Enabled on all 66 tables, anonymous access revoked on 58 sensitive tables.
10209- **Full database backup**: pg_dump schema + data with PostgreSQL 17.
10210- **Rate limiting**: slowapi on all API endpoints.
10211- **Self-service account deletion**: GDPR compliance with full data cleanup.
10212
10213### 💳 Payments & Billing
10214
10215- **Dual-Stripe architecture**: Coderblock Inc (US/non-EU) + Coderblock Srl (IT/EU) with automatic country-based routing.
10216- **Fatture in Cloud**: Automatic Italian electronic invoicing (SDI) for Srl payments.
10217- **Stripe Adaptive Pricing**: USD base prices with automatic conversion + Stripe Tax for VAT.
10218- **Credit packages**: 25/75/170/400 credits at $10/$25/$50/$100.
10219
10220### 🐛 Bug Fixes
10221
10222- Fixed ReactDOM import in all base templates
10223- Fixed stuck sync in preview after SSE timeout
10224- Fixed infinite loop in destructive operations with user confirmation
10225- Fixed SQL injection in \`order_dir\` parameter
10226- Fixed duplicate usernames during social login
10227
10228---
10229
10230## February 2026
10231
10232### 🚀 New Features
10233
10234- **Single-Agent Architecture**: Migration from multi-agent Agno system to Claude Code pattern: think → act → observe → correct.
10235- **Parallel sub-agents**: Up to 3-4 concurrent sub-agents with \`asyncio.gather()\` for frontend and backend code generation.
10236- **Preview on Fly.io**: Real VMs with Vite dev server and HMR on \`*.coderblock.dev\`.
10237- **Production deployment**: Unified Docker container on \`*.coderblock.app\` with Fly.io.
10238- **Site cloning**: The AI can analyze and clone existing websites from URLs.
10239- **Route auto-discovery**: \`import.meta.glob\` for automatic page discovery in the frontend.
10240
10241### ⚡ Improvements
10242
10243- **Resilient NeonDB**: pool_recycle, pool_pre_ping, improved error handling.
10244- **Playwright web scraper**: Headless browser for JS-rendered sites, httpx as fallback.
10245- **Frontend health check**: Automatic Vite 500 error detection with auto-fix loop.
10246
10247---
10248
10249## January 2026
10250
10251### 🚀 Launch
10252
10253- Coderblock.ai platform launch
10254- **Claude Sonnet 4.6** as primary model
10255- **Claude Opus 4.6** for premium frontend UI generation
10256- **Claude Haiku 4.5** for routing and analysis
10257- Project dashboard, split-screen editor, file manager
10258- Credit system with Community and Pro plans
10259`},payments:{it:`# Accettare Pagamenti nella tua App
10260
10261\`\`\`anim
10262payment-funnel
10263\`\`\`
10264
10265Con Coderblock puoi aggiungere pagamenti veri (una tantum e abbonamenti) alla tua app semplicemente chiedendolo in chat. L'integrazione usa **Stripe**: in test funziona subito senza alcuna configurazione, e al go-live gli incassi arrivano direttamente sul **tuo** account dedicato — Coderblock non applica alcuna commissione aggiuntiva.
10266
10267## Quick start
10268
10269Scrivi in chat cosa vuoi vendere, ad esempio:
10270
10271\`\`\`
10272Aggiungi un abbonamento Premium da 9,90€/mese e sblocca la sezione Reports solo per gli abbonati
10273\`\`\`
10274
10275\`\`\`
10276Vendi il mio ebook a 19€ con un pulsante "Acquista ora"
10277\`\`\`
10278
10279L'AI si occupa di tutto: crea i prodotti e i prezzi **reali** su Stripe, genera il checkout e le pagine di successo/annullamento, prepara il database per ordini e abbonamenti — e il webhook che conferma i pagamenti è già attivo, senza che tu debba fare nulla.
10280
10281## Zero configurazione: in test non serve niente
10282
10283\`\`\`anim
10284golive
10285\`\`\`
10286
10287Davvero niente: **nessun account Stripe, nessuna chiave, nessun form, nessuna attivazione**. Chiedi i pagamenti in chat e funzionano: prodotti, prezzi e checkout girano su un ambiente Stripe di test gestito da Coderblock, isolato per progetto. I webhook non esistono proprio per te: ci pensa la piattaforma.
10288
10289Il **tuo** account Stripe dedicato nasce solo quando vuoi incassare **davvero**: dal tab **Backend → Pagamenti** completi l'attivazione guidata di Stripe (dati aziendali, IBAN) — è l'unico passaggio che vedrai, e serve solo al go-live. I ricavi arrivano direttamente a te, Coderblock non applica commissioni.
10290
10291### Ho già un account Stripe: posso usare il mio?
10292
10293Sì (modalità avanzata): dillo all'AI e ti chiederà la tua **Secret Key** tramite un form sicuro in chat (Dashboard Stripe → Developers → API keys; in sviluppo usa la \`sk_test_...\`).
10294
10295> [!WARNING] Non incollare MAI la chiave segreta come messaggio in chat. Trattala come le chiavi di casa: solo il form sicuro la salva cifrata.
10296
10297Anche in questa modalità il **webhook** viene registrato automaticamente.
10298
10299## Testare i pagamenti
10300
10301I pagamenti di test funzionano sia in **anteprima** sia sull'app **pubblicata**:
10302
10303- Carta di prova: \`4242 4242 4242 4242\`, qualsiasi scadenza futura, qualsiasi CVC
10304- Nessun addebito reale
10305- Vedi prodotti e stato nel tab **Backend → Pagamenti** dell'editor; ordini e abbonamenti compaiono nel database della tua app
10306
10307## Come funziona il meccanismo (due ambienti, sempre)
10308
10309La tua app ha **due ambienti di pagamento paralleli**, attivi contemporaneamente:
10310
10311| | Ambiente di TEST | Ambiente LIVE |
10312|---|---|---|
10313| Dove | Anteprima dell'editor (e app pubblicata prima del go-live) | App pubblicata, dopo il go-live |
10314| Account Stripe | Ambiente gestito da Coderblock, isolato per progetto | Il **tuo** account dedicato |
10315| Carte | Solo di prova (\`4242 4242 4242 4242\`) | Carte vere |
10316| Configurazione | Nessuna | Attivazione guidata una tantum |
10317
10318Regole importanti:
10319
10320- **L'anteprima paga SEMPRE in test**, anche dopo il go-live: puoi provare modifiche al checkout per sempre senza rischiare addebiti veri. Le carte reali funzionano solo sull'app pubblicata.
10321- Ordini e abbonamenti di test e reali finiscono nelle **stesse tabelle** del tuo database (\`ordini/subscriptions\`), ma ogni riga ha il campo \`livemode\`: \`false\` = pagamento di prova, \`true\` = soldi veri. Così puoi sempre distinguerli (e, se vuoi, sbloccare i contenuti in produzione solo con abbonamenti reali — chiedilo in chat).
10322- Il **webhook** che conferma i pagamenti e scrive nel database è unico e gestito dalla piattaforma: funziona per entrambi gli ambienti senza che tu debba configurare nulla.
10323- I **price id** nel codice della tua app restano quelli di test anche dopo il go-live: la piattaforma li traduce automaticamente nei gemelli live al momento del checkout. Zero modifiche al codice.
10324
10325## Dove vedere gli incassi
10326
10327Nel **Backend Manager → Pagamenti** trovi: modalità attiva (TEST/LIVE), stato del webhook, prodotti e prezzi, pagamenti recenti e abbonamenti — senza uscire da Coderblock.
10328
10329## Problemi comuni
10330
10331| Errore | Causa | Soluzione |
10332|---|---|---|
10333| \`PRICE_KEY_MODE_MISMATCH\` | Il price id nel codice non esiste nell'ambiente in uso | Chiedi in chat: *"ricrea il prodotto e aggiorna il price id"* |
10334| Pagamento riuscito ma ordine assente | Evento webhook non ancora elaborato | Attendi qualche secondo e ricarica; se persiste, segnalalo in chat |
10335
10336Quando sei pronto a incassare davvero, leggi [Andare Live](/docs/payments-golive).
10337`,en:`# Accept Payments in your App
10338
10339\`\`\`anim
10340payment-funnel
10341\`\`\`
10342
10343With Coderblock you can add real payments (one-time and subscriptions) to your app just by asking in chat. The integration uses **Stripe**: in test it works immediately with zero configuration, and at go-live revenue goes straight to your **own dedicated account** — Coderblock adds no extra fees.
10344
10345## Quick start
10346
10347Tell the chat what you want to sell, for example:
10348
10349\`\`\`
10350Add a Premium subscription at $9.90/month and unlock the Reports section for subscribers only
10351\`\`\`
10352
10353\`\`\`
10354Sell my ebook for $19 with a "Buy now" button
10355\`\`\`
10356
10357The AI handles everything: it creates the **real** products and prices on Stripe, generates the checkout and success/cancel pages, prepares the database for orders and subscriptions — and the webhook confirming payments is already live, with nothing for you to do.
10358
10359## Zero setup: nothing needed in test
10360
10361\`\`\`anim
10362golive
10363\`\`\`
10364
10365Literally nothing: **no Stripe account, no keys, no forms, no activation**. Ask for payments in chat and they work: products, prices and checkout run on a Coderblock-managed Stripe test environment, isolated per project. Webhooks simply don't exist for you: the platform handles them.
10366
10367**Your** dedicated Stripe account is born only when you want to charge **real** cards: from **Backend → Payments** you complete Stripe's guided activation (business details, bank account) — the only step you'll ever see, needed only at go-live. Revenue goes straight to you; Coderblock adds no fees.
10368
10369### I already have a Stripe account — can I use mine?
10370
10371Yes (advanced mode): tell the AI and it will ask for your **Secret Key** through a secure in-chat form (Stripe Dashboard → Developers → API keys; use the \`sk_test_...\` one while building).
10372
10373> [!WARNING] NEVER paste your secret key as a chat message. Treat it like the keys to your house: only the secure form stores it encrypted.
10374
10375In this mode too, the **webhook** is registered automatically.
10376
10377## Testing payments
10378
10379Test payments work both in the **preview** and on the **published** app:
10380
10381- Test card: \`4242 4242 4242 4242\`, any future expiry, any CVC
10382- No real charges
10383- See products and status in the editor's **Backend → Payments** tab; orders and subscriptions land in your app's database
10384
10385## How the mechanism works (two environments, always)
10386
10387Your app has **two parallel payment environments**, active at the same time:
10388
10389| | TEST environment | LIVE environment |
10390|---|---|---|
10391| Where | Editor preview (and the published app before go-live) | Published app, after go-live |
10392| Stripe account | Coderblock-managed environment, isolated per project | **Your** dedicated account |
10393| Cards | Test only (\`4242 4242 4242 4242\`) | Real cards |
10394| Setup | None | One-time guided activation |
10395
10396Important rules:
10397
10398- **The preview ALWAYS pays in test**, even after go-live: you can keep testing checkout changes forever with no risk of real charges. Real cards only work on the published app.
10399- Test and real orders/subscriptions land in the **same tables** of your database, but every row carries a \`livemode\` field: \`false\` = test payment, \`true\` = real money. You can always tell them apart (and, if you want, gate production content on real subscriptions only — just ask in chat).
10400- The **webhook** that confirms payments and writes to your database is single and platform-managed: it covers both environments with zero configuration on your side.
10401- The **price ids** in your app's code stay the test ones even after go-live: the platform automatically translates them to their live twins at checkout time. Zero code changes.
10402
10403## Where to see your revenue
10404
10405**Backend Manager → Payments** shows: active mode (TEST/LIVE), webhook health, products and prices, recent payments and subscriptions — without leaving Coderblock.
10406
10407## Common issues
10408
10409| Error | Cause | Fix |
10410|---|---|---|
10411| \`PRICE_KEY_MODE_MISMATCH\` | The price id in the code doesn't exist in the active environment | Ask the chat: *"recreate the product and update the price id"* |
10412| Payment succeeded but no order recorded | Webhook event not processed yet | Wait a few seconds and reload; if it persists, report it in chat |
10413
10414Ready to charge real cards? Read [Going Live](/docs/payments-golive).
10415`},"payments-golive":{it:`# Andare Live con i Pagamenti
10416
10417\`\`\`anim
10418golive
10419\`\`\`
10420
10421Quando l'app funziona con i pagamenti di test, passare agli incassi reali richiede pochi minuti. È l'unico momento in cui serve una configurazione — ed è guidata.
10422
10423## Come funziona il go-live
10424
10425Al go-live Coderblock crea il **tuo account Stripe dedicato** (i test giravano su un ambiente gestito dalla piattaforma): l'account è intestato a te, gli incassi arrivano sul tuo IBAN e hai la tua dashboard Stripe personale.
10426
104271. **Avvia l'attivazione** — dal tab **Backend → Pagamenti** clicca "Attiva pagamenti reali": un breve form (email e paese) crea il tuo account Stripe dedicato.
104282. **Completa la verifica Stripe** — si apre la procedura guidata ufficiale di Stripe: dati aziendali o personali, documento d'identità, IBAN. È il KYC richiesto per legge a chiunque incassi con carta — si fa una sola volta.
104293. **Prodotti e prezzi: automatici** — Coderblock copia da solo i tuoi prodotti e prezzi di test sul nuovo account e aggiorna la corrispondenza dei price id. **Il codice della tua app non cambia**: il checkout usa automaticamente i prezzi live.
104304. **Pagine legali** — Stripe richiede che l'app pubblicata abbia privacy policy, termini di servizio e politica di rimborso. Chiedile in chat se mancano.
104315. **Test finale con carta vera** — fai un acquisto reale di piccolo importo (puoi rimborsarlo subito dalla dashboard Stripe) e verifica: pagamento nella tua dashboard Stripe, ordine registrato nell'app.
10432
10433## Tasse e fatturazione: cosa devi sapere
10434
10435Coderblock **non è il venditore** dei tuoi prodotti: incassi direttamente sul tuo account Stripe, quindi **IVA/imposte e fatture sono responsabilità tua**, come per qualsiasi attività.
10436
10437- **[Stripe Tax](https://stripe.com/tax)**: calcolo automatico dell'IVA/sales tax per paese — attivabile dal dashboard, consigliato se vendi all'estero
10438- **Fatture**: Stripe può emettere ricevute automatiche; per la fatturazione elettronica italiana (SDI) servono strumenti dedicati (es. Fatture in Cloud, integrabile via API chiedendolo in chat)
10439- In dubbio, parla con il tuo commercialista prima di andare live
10440
10441## Quando si attiva, esattamente?
10442
10443Non devi premere nessun interruttore: quando Stripe completa la verifica del tuo account, avvisa Coderblock 
10443in automatico e **da quel momento i checkout dell'app pubblicata passano sul tuo account** — carte vere, incassi sul tuo IBAN. Puoi seguire lo stato in **Backend → Pagamenti**.
10444
10445## E i pagamenti di test?
10446
10447Continuano a funzionare come prima, in parallelo — e per sempre: **l'anteprima dell'editor paga sempre in test** con la carta \`4242 4242 4242 4242\`, anche dopo il go-live, così puoi provare modifiche senza rischi. Le righe di prova nel database sono marcate \`livemode = false\`, quelle reali \`livemode = true\`. Non c'è niente da "switchare".
10448`,en:`# Going Live with Payments
10449
10450\`\`\`anim
10451golive
10452\`\`\`
10453
10454Once your app works with test payments, switching to real revenue takes minutes. It's the only moment that needs any configuration — and it's guided.
10455
10456## How go-live works
10457
10458At go-live Coderblock creates **your own dedicated Stripe account** (tests ran on a platform-managed environment): the account belongs to you, revenue lands in your bank account, and you get your own Stripe dashboard.
10459
104601. **Start the activation** — in **Backend → Payments** click "Enable real payments": a short form (email and country) creates your dedicated Stripe account.
104612. **Complete Stripe's verification** — Stripe's official guided flow opens: business or personal details, ID document, bank account. This is the KYC legally required of anyone charging cards — done once.
104623. **Products and prices: automatic** — Coderblock copies your test products and prices to the new account by itself and maps the price ids. **Your app's code doesn't change**: checkout automatically uses the live prices.
104634. **Legal pages** — Stripe requires your published app to have a privacy policy, terms of service and refund policy. Ask the chat to add them if missing.
104645. **Final test with a real card** — make a small real purchase (you can refund it right away from your Stripe dashboard) and verify: payment in your Stripe dashboard, order recorded in the app.
10465
10466## Taxes and invoicing: what you need to know
10467
10468Coderblock is **not the seller** of your products: you charge customers directly on your own Stripe account, so **VAT/sales tax and invoices are your responsibility**, like for any business.
10469
10470- **[Stripe Tax](https://stripe.com/tax)**: automatic VAT/sales-tax calculation per country — enable it from the dashboard, recommended if you sell internationally
10471- **Invoices**: Stripe can issue automatic receipts; country-specific e-invoicing may need dedicated tools (ask the chat to integrate one via API)
10472- When in doubt, talk to your accountant before going live
10473
10474## When does it switch, exactly?
10475
10476There's no switch to flip: when Stripe finishes verifying your account, it notifies Coderblock automatically and **from that moment the published app's checkouts run on your account** — real cards, revenue to your bank. You can follow the status in **Backend → Payments**.
10477
10478## What about test payments?
10479
10480They keep working exactly as before, in parallel — forever: **the editor preview always pays in test** with card \`4242 4242 4242 4242\`, even after go-live, so you can keep experimenting risk-free. Test rows in your database are marked \`livemode = false\`, real ones \`livemode = true\`. There's nothing to "switch".
10481`}};function mi(a,n){return n==="it"?`# ${a.replace(/-/g," ").replace(/\b\w/g,i=>i.toUpperCase())}
10482
10483Questa pagina è in fase di redazione. Torna presto per il contenuto completo.
10484
10485> [!INFO] Nel frattempo, prova a chiedere all'AI nella chat del progetto. Può aiutarti con qualsiasi argomento.
10486`:`# ${a.replace(/-/g," ").replace(/\b\w/g,i=>i.toUpperCase())}
10487
10488This page is being written. Check back soon for the full content.
10489
10490> [!INFO] In the meantime, try asking the AI in the project chat. It can help with any topic.
10491`}const hi=new Set(["[email protected]","[email protected]","[email protected]"]);function gi(a){const i=(a.split(/\n\s*\n/).map(s=>s.trim()).find(s=>s&&!/^(#|```|\||>|-|\*|\d+\.|<|!\[)/.test(s))??"").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/[*_`]/g,"").replace(/\s+/g," ").trim();return i?i.length>155?`${i.slice(0,152).replace(/\s+\S*$/,"")}…`:i:"Coderblock documentation: build full-stack web apps by describing them in chat."}const Li=()=>{const{slug:a}=ma(),[n]=Sa(),i=pa(k=>k.auth.user),s=!!i?.email&&hi.has(i.email),o=a||"welcome",r=Aa(),[c,h]=g.useState(null),[v,f]=g.useState(""),[C,G]=g.useState(!0),[R,D]=g.useState(!1),[x,T]=g.useState(!1);g.useEffect(()=>{let k=!1;return G(!0),h(null),pi(n).then(L=>{if(k)return;const F=L[o];h(F?.content??null),f(F?.title??"")}).finally(()=>{k||G(!1)}),()=>{k=!0}},[o,n]);const q=ui(o,n),N=c??q,_=g.useMemo(()=>Xa(N),[N]),ie=v||N.match(/^#\s+(.+)/m)?.[1]||o,b=g.useMemo(()=>gi(N),[N]);ya(`docs:${o}`,{title:`${ie} · Coderblock Docs`,description:b}),g.useEffect(()=>{if(C)return;const k=setTimeout(()=>document.dispatchEvent(new Event("render-event")),100);return()=>clearTimeout(k)},[C]);const j=g.useCallback(async(k,L)=>{await X.update(o,n,{title:L,content:k}),ae.delete(n),h(k),f(L),D(!1)},[o,n]),U=g.useCallback(async()=>{T(!0);try{const k=[];for(const[B,K]of Object.entries(Z))for(const[W,H]of Object.entries(K)){const ze=H.match(/^#\s+(.+)/m);k.push({slug:B,lang:W,title:ze?.[1]??B,content:H})}const L=await X.seed(k);alert(`Seeded ${L.seeded} documents to database.`),ae.delete(n);const F=await X.get(o,n);h(F.content),f(F.title)}catch(k){alert(`Seed failed: ${k?.response?.data?.detail??k.message}`)}finally{T(!1)}},[o,n]);if(a&&!r.includes(a)&&!Z[a])return e(ha,{to:"/docs/welcome",replace:!0});if(R&&s){const k=N.match(/^#\s+(.+)/m)?.[1]??o;return e(oi,{initialContent:N,initialTitle:v||k,slug:o,lang:n,onSave:j,onCancel:()=>D(!1)})}return t(Ca,{lang:n,currentSlug:o,toc:_,children:[s&&t("div",{className:"flex items-center gap-2 mb-6 pb-4 border-b border-gray-200 dark:border-zinc-800",children:[t("button",{onClick:()=>D(!0),className:"flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg bg-indigo-100 dark:bg-indigo-600/20 text-indigo-600 dark:text-indigo-400 hover:bg-indigo-200 dark:hover:bg-indigo-600/30 border border-indigo-200 dark:border-indigo-500/30 transition-colors",children:[e(ca,{className:"w-4 h-4"}),"Edit page"]}),!c&&!C&&t("button",{onClick:U,disabled:x,className:"flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg bg-amber-100 dar
10491k:bg-amber-600/20 text-amber-600 dark:text-amber-400 hover:bg-amber-200 dark:hover:bg-amber-600/30 border border-amber-200 dark:border-amber-500/30 transition-colors disabled:opacity-40",children:[x?e(ve,{className:"w-4 h-4 animate-spin"}):e(ua,{className:"w-4 h-4"}),"Seed all to DB"]}),C&&e("span",{className:"text-xs text-gray-400 dark:text-zinc-500",children:"Loading from DB…"}),c&&e("span",{className:"text-xs text-gray-400 dark:text-zinc-500",children:"Source: database"}),!c&&!C&&e("span",{className:"text-xs text-gray-400 dark:text-zinc-500",children:"Source: hardcoded (not in DB yet)"})]}),e("div",{className:"mb-4 -mt-1",children:e(di,{markdown:N,slug:o,lang:n})}),e(Ce,{content:N})]})};export{Li as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.