[{"data":1,"prerenderedAt":1454},["ShallowReactive",2],{"navigation_docs":3,"-guide-modules-programs":613,"-guide-modules-programs-surround":1451},[4,39,101,378,540,562,584,606],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":38},"Start","i-lucide-rocket","\u002Fstart","1.start",[10,14,18,22,26,30,34],{"title":11,"path":12,"stem":13},"Our approach","\u002Fstart\u002Four-approach","1.start\u002F0.our-approach",{"title":15,"path":16,"stem":17},"Introduction","\u002Fstart\u002Fintroduction","1.start\u002F1.introduction",{"title":19,"path":20,"stem":21},"Concepts","\u002Fstart\u002Fconcepts","1.start\u002F2.concepts",{"title":23,"path":24,"stem":25},"Glossary","\u002Fstart\u002Fglossary","1.start\u002F3.glossary",{"title":27,"path":28,"stem":29},"Try it locally","\u002Fstart\u002Ftry-it-locally","1.start\u002F4.try-it-locally",{"title":31,"path":32,"stem":33},"Features","\u002Fstart\u002Ffeatures","1.start\u002F5.features",{"title":35,"path":36,"stem":37},"Questions","\u002Fstart\u002Ffaq","1.start\u002F6.faq",false,{"title":40,"icon":41,"path":42,"stem":43,"children":44,"page":38},"Run SHADE","i-lucide-server","\u002Frun","2.run",[45,49,53,57,61,65,69,73,77,81,85,89,93,97],{"title":46,"path":47,"stem":48},"Setting up an instance (Coolify)","\u002Frun\u002Fcoolify","2.run\u002F1.coolify",{"title":50,"path":51,"stem":52},"Console commands","\u002Frun\u002Fconsole","2.run\u002F10.console",{"title":54,"path":55,"stem":56},"Rotating APP_SECRET","\u002Frun\u002Frotating-app-secret","2.run\u002F11.rotating-app-secret",{"title":58,"path":59,"stem":60},"Checking an instance","\u002Frun\u002Fdoctor","2.run\u002F12.doctor",{"title":62,"path":63,"stem":64},"Self-hosting by hand","\u002Frun\u002Fown-server-by-hand","2.run\u002F13.own-server-by-hand",{"title":66,"path":67,"stem":68},"NixOS (experimental)","\u002Frun\u002Fnixos","2.run\u002F14.nixos",{"title":70,"path":71,"stem":72},"Self-hosting without Coolify","\u002Frun\u002Fown-server","2.run\u002F2.own-server",{"title":74,"path":75,"stem":76},"Hosting the site on a static host","\u002Frun\u002Fstatic-hosts","2.run\u002F3.static-hosts",{"title":78,"path":79,"stem":80},"Licence","\u002Frun\u002Flicence","2.run\u002F4.licence",{"title":82,"path":83,"stem":84},"Updating and backups","\u002Frun\u002Fupdating-and-backups","2.run\u002F5.updating-and-backups",{"title":86,"path":87,"stem":88},"Troubleshooting","\u002Frun\u002Ftroubleshooting","2.run\u002F6.troubleshooting",{"title":90,"path":91,"stem":92},"Logs, request ids, traces and metrics","\u002Frun\u002Flogs","2.run\u002F7.logs",{"title":94,"path":95,"stem":96},"Maintenance mode","\u002Frun\u002Fmaintenance-mode","2.run\u002F8.maintenance-mode",{"title":98,"path":99,"stem":100},"Usage limits","\u002Frun\u002Fusage-limits","2.run\u002F9.usage-limits",{"title":102,"icon":103,"path":104,"stem":105,"children":106},"Guide","i-lucide-book-open","\u002Fguide","3.guide",[107,109,147,192,210,280,310,364],{"title":102,"path":104,"stem":108},"3.guide\u002Findex",{"title":110,"icon":111,"path":112,"stem":113,"children":114,"page":38},"Content","i-lucide-file-text","\u002Fguide\u002Fcontent","3.guide\u002F1.content",[115,119,123,127,131,135,139,143],{"title":116,"path":117,"stem":118},"Collections and entries","\u002Fguide\u002Fcontent\u002Fcollections","3.guide\u002F1.content\u002F1.collections",{"title":120,"path":121,"stem":122},"Field types","\u002Fguide\u002Fcontent\u002Ffields","3.guide\u002F1.content\u002F2.fields",{"title":124,"path":125,"stem":126},"Drafts, publishing and version history","\u002Fguide\u002Fcontent\u002Fversions","3.guide\u002F1.content\u002F3.versions",{"title":128,"path":129,"stem":130},"Languages","\u002Fguide\u002Fcontent\u002Flanguages","3.guide\u002F1.content\u002F4.languages",{"title":132,"path":133,"stem":134},"Data sources","\u002Fguide\u002Fcontent\u002Fdata-sources","3.guide\u002F1.content\u002F5.data-sources",{"title":136,"path":137,"stem":138},"Media","\u002Fguide\u002Fcontent\u002Fmedia","3.guide\u002F1.content\u002F6.media",{"title":140,"path":141,"stem":142},"Search","\u002Fguide\u002Fcontent\u002Fsearch","3.guide\u002F1.content\u002F7.search",{"title":144,"path":145,"stem":146},"Trash","\u002Fguide\u002Fcontent\u002Ftrash","3.guide\u002F1.content\u002F8.trash",{"title":148,"icon":149,"path":150,"stem":151,"children":152,"page":38},"Website","i-lucide-globe","\u002Fguide\u002Fwebsite","3.guide\u002F2.website",[153,156,160,164,168,172,176,180,184,188],{"title":148,"path":154,"stem":155},"\u002Fguide\u002Fwebsite\u002Fwebsite","3.guide\u002F2.website\u002F1.website",{"title":157,"path":158,"stem":159},"Scroll scenes","\u002Fguide\u002Fwebsite\u002Fscroll-scenes","3.guide\u002F2.website\u002F10.scroll-scenes",{"title":161,"path":162,"stem":163},"Pages and posts","\u002Fguide\u002Fwebsite\u002Fpages","3.guide\u002F2.website\u002F2.pages",{"title":165,"path":166,"stem":167},"The visual editor","\u002Fguide\u002Fwebsite\u002Fvisual-editor","3.guide\u002F2.website\u002F3.visual-editor",{"title":169,"path":170,"stem":171},"Roles and locks","\u002Fguide\u002Fwebsite\u002Froles-and-locks","3.guide\u002F2.website\u002F4.roles-and-locks",{"title":173,"path":174,"stem":175},"Header and footer","\u002Fguide\u002Fwebsite\u002Fheader-and-footer","3.guide\u002F2.website\u002F5.header-and-footer",{"title":177,"path":178,"stem":179},"Theme","\u002Fguide\u002Fwebsite\u002Ftheme","3.guide\u002F2.website\u002F6.theme",{"title":181,"path":182,"stem":183},"Redirects","\u002Fguide\u002Fwebsite\u002Fredirects","3.guide\u002F2.website\u002F7.redirects",{"title":185,"path":186,"stem":187},"Site settings","\u002Fguide\u002Fwebsite\u002Fsite-settings","3.guide\u002F2.website\u002F8.site-settings",{"title":189,"path":190,"stem":191},"The site","\u002Fguide\u002Fwebsite\u002Fthe-site","3.guide\u002F2.website\u002F9.the-site",{"title":193,"icon":194,"path":195,"stem":196,"children":197,"page":38},"Publishing","i-lucide-send","\u002Fguide\u002Fpublishing","3.guide\u002F3.publishing",[198,202,206],{"title":199,"path":200,"stem":201},"Publishing and preview","\u002Fguide\u002Fpublishing\u002Fpublishing","3.guide\u002F3.publishing\u002F1.publishing",{"title":203,"path":204,"stem":205},"Builds","\u002Fguide\u002Fpublishing\u002Fbuilds","3.guide\u002F3.publishing\u002F2.builds",{"title":207,"path":208,"stem":209},"CDN caches","\u002Fguide\u002Fpublishing\u002Fcaches","3.guide\u002F3.publishing\u002F3.caches",{"title":211,"icon":212,"path":213,"stem":214,"children":215,"page":38},"People, security and privacy","i-lucide-shield","\u002Fguide\u002Fpeople-and-security","3.guide\u002F4.people-and-security",[216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276],{"title":217,"path":218,"stem":219},"People in SHADE","\u002Fguide\u002Fpeople-and-security\u002Fpeople-in-shade","3.guide\u002F4.people-and-security\u002F0.people-in-shade",{"title":221,"path":222,"stem":223},"Team and roles","\u002Fguide\u002Fpeople-and-security\u002Fteam","3.guide\u002F4.people-and-security\u002F1.team",{"title":225,"path":226,"stem":227},"Errors and security alerts","\u002Fguide\u002Fpeople-and-security\u002Ferrors","3.guide\u002F4.people-and-security\u002F10.errors",{"title":229,"path":230,"stem":231},"Exporting an instance","\u002Fguide\u002Fpeople-and-security\u002Fexporting","3.guide\u002F4.people-and-security\u002F11.exporting",{"title":233,"path":234,"stem":235},"Organisations","\u002Fguide\u002Fpeople-and-security\u002Forganisations","3.guide\u002F4.people-and-security\u002F12.organisations",{"title":237,"path":238,"stem":239},"Signing in through an identity provider (team)","\u002Fguide\u002Fpeople-and-security\u002Fidentity-providers","3.guide\u002F4.people-and-security\u002F13.identity-providers",{"title":241,"path":242,"stem":243},"System status","\u002Fguide\u002Fpeople-and-security\u002Fsystem-status","3.guide\u002F4.people-and-security\u002F14.system-status",{"title":245,"path":246,"stem":247},"Appearance","\u002Fguide\u002Fpeople-and-security\u002Fappearance","3.guide\u002F4.people-and-security\u002F15.appearance",{"title":249,"path":250,"stem":251},"Accounts and personal pages","\u002Fguide\u002Fpeople-and-security\u002Faccounts","3.guide\u002F4.people-and-security\u002F2.accounts",{"title":253,"path":254,"stem":255},"Signing in (team)","\u002Fguide\u002Fpeople-and-security\u002Fsign-in","3.guide\u002F4.people-and-security\u002F3.sign-in",{"title":257,"path":258,"stem":259},"API tokens","\u002Fguide\u002Fpeople-and-security\u002Fapi-tokens","3.guide\u002F4.people-and-security\u002F4.api-tokens",{"title":261,"path":262,"stem":263},"Audit log","\u002Fguide\u002Fpeople-and-security\u002Faudit","3.guide\u002F4.people-and-security\u002F5.audit",{"title":265,"path":266,"stem":267},"Request protection","\u002Fguide\u002Fpeople-and-security\u002Fprotection","3.guide\u002F4.people-and-security\u002F6.protection",{"title":269,"path":270,"stem":271},"Personal data per person","\u002Fguide\u002Fpeople-and-security\u002Fprivacy","3.guide\u002F4.people-and-security\u002F7.privacy",{"title":273,"path":274,"stem":275},"Data retention","\u002Fguide\u002Fpeople-and-security\u002Fretention","3.guide\u002F4.people-and-security\u002F8.retention",{"title":277,"path":278,"stem":279},"Consent banner","\u002Fguide\u002Fpeople-and-security\u002Fconsent","3.guide\u002F4.people-and-security\u002F9.consent",{"title":281,"icon":282,"path":283,"stem":284,"children":285,"page":38},"Services","i-lucide-plug","\u002Fguide\u002Fservices","3.guide\u002F5.services",[286,290,294,298,302,306],{"title":287,"path":288,"stem":289},"Email","\u002Fguide\u002Fservices\u002Femail","3.guide\u002F5.services\u002F1.email",{"title":291,"path":292,"stem":293},"Opening hours","\u002Fguide\u002Fservices\u002Fopening-hours","3.guide\u002F5.services\u002F4.opening-hours",{"title":295,"path":296,"stem":297},"Webhooks","\u002Fguide\u002Fservices\u002Fwebhooks","3.guide\u002F5.services\u002F5.webhooks",{"title":299,"path":300,"stem":301},"Locations","\u002Fguide\u002Fservices\u002Flocations","3.guide\u002F5.services\u002F6.locations",{"title":303,"path":304,"stem":305},"VAT rates","\u002Fguide\u002Fservices\u002Fvat-rates","3.guide\u002F5.services\u002F7.vat-rates",{"title":307,"path":308,"stem":309},"Channels","\u002Fguide\u002Fservices\u002Fchannels","3.guide\u002F5.services\u002F8.channels",{"title":311,"icon":312,"path":313,"stem":314,"children":315,"page":38},"InstalledModules","i-lucide-puzzle","\u002Fguide\u002Fmodules","3.guide\u002F6.modules",[316,320,324,328,332,336,340,344,348,352,356,360],{"title":317,"path":318,"stem":319},"Modules","\u002Fguide\u002Fmodules\u002Fmanaging","3.guide\u002F6.modules\u002F1.managing",{"title":321,"path":322,"stem":323},"Dutch services (module)","\u002Fguide\u002Fmodules\u002Fnl","3.guide\u002F6.modules\u002F10.nl",{"title":325,"path":326,"stem":327},"Editorial (module)","\u002Fguide\u002Fmodules\u002Feditorial","3.guide\u002F6.modules\u002F11.editorial",{"title":329,"path":330,"stem":331},"Appointments (module)","\u002Fguide\u002Fmodules\u002Fappointments","3.guide\u002F6.modules\u002F2.appointments",{"title":333,"path":334,"stem":335},"Shop (the commerce module)","\u002Fguide\u002Fmodules\u002Fshop","3.guide\u002F6.modules\u002F3.shop",{"title":337,"path":338,"stem":339},"Untrusted modules","\u002Fguide\u002Fmodules\u002Funtrusted","3.guide\u002F6.modules\u002F4.untrusted",{"title":341,"path":342,"stem":343},"Analytics (module)","\u002Fguide\u002Fmodules\u002Fanalytics","3.guide\u002F6.modules\u002F5.analytics",{"title":345,"path":346,"stem":347},"Error forwarding (module)","\u002Fguide\u002Fmodules\u002Ferror-forwarding","3.guide\u002F6.modules\u002F6.error-forwarding",{"title":349,"path":350,"stem":351},"Client programs","\u002Fguide\u002Fmodules\u002Fprograms","3.guide\u002F6.modules\u002F7.programs",{"title":353,"path":354,"stem":355},"Import and export (module)","\u002Fguide\u002Fmodules\u002Fimport","3.guide\u002F6.modules\u002F8.import",{"title":357,"path":358,"stem":359},"Payments (module)","\u002Fguide\u002Fmodules\u002Fpayments","3.guide\u002F6.modules\u002F8.payments",{"title":361,"path":362,"stem":363},"Forms (module)","\u002Fguide\u002Fmodules\u002Fforms","3.guide\u002F6.modules\u002F9.forms",{"title":365,"icon":366,"path":367,"stem":368,"children":369,"page":38},"AI assistants","i-lucide-bot","\u002Fguide\u002Fai","3.guide\u002F7.ai",[370,374],{"title":371,"path":372,"stem":373},"AI assistants (MCP)","\u002Fguide\u002Fai\u002Fassistants","3.guide\u002F7.ai\u002F1.assistants",{"title":375,"path":376,"stem":377},"Connecting an AI assistant","\u002Fguide\u002Fai\u002Fconnecting","3.guide\u002F7.ai\u002F2.connecting",{"title":379,"icon":380,"path":381,"stem":382,"children":383,"page":38},"Developers","i-lucide-code","\u002Fdevelopers","4.developers",[384,388,392,396,400,404,408,412,416,420,424,428,432,435,489,493,497,501,536],{"title":385,"path":386,"stem":387},"Architecture","\u002Fdevelopers\u002Farchitecture","4.developers\u002F1.architecture",{"title":389,"path":390,"stem":391},"Capabilities","\u002Fdevelopers\u002Fcapabilities","4.developers\u002F10.capabilities",{"title":393,"path":394,"stem":395},"Trust","\u002Fdevelopers\u002Ftrust","4.developers\u002F11.trust",{"title":397,"path":398,"stem":399},"Redis and the ports","\u002Fdevelopers\u002Fredis","4.developers\u002F12.redis",{"title":401,"path":402,"stem":403},"The worker container role","\u002Fdevelopers\u002Fworker","4.developers\u002F13.worker",{"title":405,"path":406,"stem":407},"kv: a module's own key-value storage","\u002Fdevelopers\u002Fkv","4.developers\u002F14.kv",{"title":409,"path":410,"stem":411},"Processes: long-running work on the worker","\u002Fdevelopers\u002Fprocesses","4.developers\u002F15.processes",{"title":413,"path":414,"stem":415},"Network: a module's outgoing calls","\u002Fdevelopers\u002Fnetwork","4.developers\u002F16.network",{"title":417,"path":418,"stem":419},"Realtime","\u002Fdevelopers\u002Frealtime","4.developers\u002F17.realtime",{"title":421,"path":422,"stem":423},"Private files","\u002Fdevelopers\u002Ffiles","4.developers\u002F18.files",{"title":425,"path":426,"stem":427},"Notify","\u002Fdevelopers\u002Fnotify","4.developers\u002F19.notify",{"title":429,"path":430,"stem":431},"Collections","\u002Fdevelopers\u002Fcollections","4.developers\u002F2.collections",{"title":337,"path":433,"stem":434},"\u002Fdevelopers\u002Funtrusted","4.developers\u002F20.untrusted",{"title":436,"icon":312,"path":437,"stem":438,"children":439},"Writing a plugin","\u002Fdevelopers\u002Fmodules","4.developers\u002F3.modules\u002Findex",[440,442,446,450,454,458,462,466,470,473,477,481,485],{"title":441,"path":437,"stem":438},"Writing a module",{"title":443,"path":444,"stem":445},"Module SDK and tooling","\u002Fdevelopers\u002Fmodules\u002Fsdk-and-tooling","4.developers\u002F3.modules\u002F1.sdk-and-tooling",{"title":447,"path":448,"stem":449},"Connecting accounts with OAuth2","\u002Fdevelopers\u002Fmodules\u002Foauth","4.developers\u002F3.modules\u002F10.oauth",{"title":451,"path":452,"stem":453},"Calls between modules","\u002Fdevelopers\u002Fmodules\u002Fcalls-between-modules","4.developers\u002F3.modules\u002F11.calls-between-modules",{"title":455,"path":456,"stem":457},"Experimental parts","\u002Fdevelopers\u002Fmodules\u002Fexperimental-parts","4.developers\u002F3.modules\u002F12.experimental-parts",{"title":459,"path":460,"stem":461},"The manifest","\u002Fdevelopers\u002Fmodules\u002Fmanifest","4.developers\u002F3.modules\u002F2.manifest",{"title":463,"path":464,"stem":465},"Routes","\u002Fdevelopers\u002Fmodules\u002Froutes","4.developers\u002F3.modules\u002F3.routes",{"title":467,"path":468,"stem":469},"Admin screens and the site part","\u002Fdevelopers\u002Fmodules\u002Fadmin-and-site","4.developers\u002F3.modules\u002F4.admin-and-site",{"title":110,"path":471,"stem":472},"\u002Fdevelopers\u002Fmodules\u002Fcontent","4.developers\u002F3.modules\u002F5.content",{"title":474,"path":475,"stem":476},"Background work and services","\u002Fdevelopers\u002Fmodules\u002Fbackground-and-services","4.developers\u002F3.modules\u002F6.background-and-services",{"title":478,"path":479,"stem":480},"SDK reference","\u002Fdevelopers\u002Fmodules\u002Fsdk-reference","4.developers\u002F3.modules\u002F7.sdk-reference",{"title":482,"path":483,"stem":484},"The website module's SDK","\u002Fdevelopers\u002Fmodules\u002Fwebsite-sdk","4.developers\u002F3.modules\u002F8.website-sdk",{"title":486,"path":487,"stem":488},"Incoming webhooks","\u002Fdevelopers\u002Fmodules\u002Fincoming-webhooks","4.developers\u002F3.modules\u002F9.incoming-webhooks",{"title":490,"path":491,"stem":492},"Core and the website module","\u002Fdevelopers\u002Fcore-and-website-module","4.developers\u002F4.core-and-website-module",{"title":494,"path":495,"stem":496},"The API","\u002Fdevelopers\u002Fapi","4.developers\u002F6.api",{"title":498,"path":499,"stem":500},"API reference","\u002Fdevelopers\u002Fapi-reference","4.developers\u002F6.api-reference",{"title":502,"icon":503,"path":504,"stem":505,"children":506},"Sites in other frameworks","i-lucide-layout-template","\u002Fdevelopers\u002Fframeworks","4.developers\u002F7.frameworks\u002Findex",[507,508,512,516,520,524,528,532],{"title":502,"path":504,"stem":505},{"title":509,"path":510,"stem":511},"Accounts: sign-in and modules' routes","\u002Fdevelopers\u002Fframeworks\u002Faccounts","4.developers\u002F7.frameworks\u002F1.accounts",{"title":513,"path":514,"stem":515},"`@shadestack\u002Ftree`","\u002Fdevelopers\u002Fframeworks\u002Ftree","4.developers\u002F7.frameworks\u002F2.tree",{"title":517,"path":518,"stem":519},"Expressions and styles","\u002Fdevelopers\u002Fframeworks\u002Fexpressions-and-styles","4.developers\u002F7.frameworks\u002F3.expressions-and-styles",{"title":521,"path":522,"stem":523},"`@shadestack\u002Frender`","\u002Fdevelopers\u002Fframeworks\u002Frender","4.developers\u002F7.frameworks\u002F4.render",{"title":525,"path":526,"stem":527},"`@shadestack\u002Finteractions`","\u002Fdevelopers\u002Fframeworks\u002Finteractions","4.developers\u002F7.frameworks\u002F5.interactions",{"title":529,"path":530,"stem":531},"`@shadestack\u002Fa11y`","\u002Fdevelopers\u002Fframeworks\u002Fa11y","4.developers\u002F7.frameworks\u002F6.a11y",{"title":533,"path":534,"stem":535},"Your own page for SHADE's links","\u002Fdevelopers\u002Fframeworks\u002Flinks","4.developers\u002F7.frameworks\u002F7.links",{"title":537,"path":538,"stem":539},"Build a client module","\u002Fdevelopers\u002Fclient-module","4.developers\u002F9.client-module",{"title":541,"icon":542,"path":543,"stem":544,"children":545,"page":38},"Security","i-lucide-shield-check","\u002Fsecurity","5.security",[546,550,554,558],{"title":547,"path":548,"stem":549},"Reporting a vulnerability","\u002Fsecurity\u002Freporting","5.security\u002F0.reporting",{"title":551,"path":552,"stem":553},"Security testing","\u002Fsecurity\u002Ftesting","5.security\u002F1.testing",{"title":555,"path":556,"stem":557},"Hardening a production instance","\u002Fsecurity\u002Fhardening","5.security\u002F2.hardening",{"title":559,"path":560,"stem":561},"Manual testing with Kali Linux","\u002Fsecurity\u002Fmanual-testing","5.security\u002F3.manual-testing",{"title":563,"icon":564,"path":565,"stem":566,"children":567,"page":38},"Contributing","i-lucide-git-pull-request","\u002Fcontributing","6.contributing",[568,572,576,580],{"title":569,"path":570,"stem":571},"Reading the code","\u002Fcontributing\u002Freading-the-code","6.contributing\u002F1.reading-the-code",{"title":573,"path":574,"stem":575},"Docs site","\u002Fcontributing\u002Fdocs-site","6.contributing\u002F2.docs-site",{"title":577,"path":578,"stem":579},"Releases","\u002Fcontributing\u002Freleases","6.contributing\u002F3.releases",{"title":581,"path":582,"stem":583},"Load tests","\u002Fcontributing\u002Fload-tests","6.contributing\u002F4.load-tests",{"title":585,"icon":586,"path":587,"stem":588,"children":589,"page":38},"Project","i-lucide-map","\u002Fproject","7.project",[590,594,598,602],{"title":591,"path":592,"stem":593},"Roadmap","\u002Fproject\u002Froadmap","7.project\u002F1.roadmap",{"title":595,"path":596,"stem":597},"Known issues","\u002Fproject\u002Fknown-issues","7.project\u002F2.known-issues",{"title":599,"path":600,"stem":601},"Changelog","\u002Fproject\u002Fchangelog","7.project\u002F3.changelog",{"title":603,"path":604,"stem":605},"Decisions","\u002Fproject\u002Fdecisions","7.project\u002F4.decisions",{"title":607,"path":608,"stem":609,"children":610,"icon":612},"Community","\u002Fcommunity","8.community\u002Findex",[611],{"title":607,"path":608,"stem":609},"i-lucide-users",{"id":614,"title":349,"body":615,"description":908,"extension":1445,"links":1446,"meta":1447,"navigation":1448,"path":350,"seo":1449,"stem":351,"__hash__":1450},"docs\u002F3.guide\u002F6.modules\u002F7.programs.md",{"type":616,"value":617,"toc":1433},"minimark",[618,632,644,649,652,688,700,704,752,755,759,766,779,898,902,1233,1280,1283,1315,1319,1322,1333,1337,1350,1353,1357,1403,1407,1418,1422,1429],[619,620,621,622,626,627,631],"p",{},"A client program is one of the client's own programs, in any language, that runs beside the instance: a Python\nmodel, a search engine, an application the client already has. Each one says what it needs in a declaration,\n",[623,624,625],"code",{},"program.json",". An admin approves it on the ",[628,629,630],"strong",{},"Programs"," screen, and it gets an API token of its own that can do\nexactly what it declared. With a host, every start gives it a new token through the host; nobody\ncopies one by hand.",[619,633,634,635,638,639,643],{},"Client programs run on the instance's host, ",[623,636,637],{},"shade-programs",", a separate program beside the instance that runs each\nclient program in a confined container of its own. Whoever runs the instance connects SHADE to it\n(",[640,641,642],"a",{"href":47},"Deployment","). Without a host, client programs can be approved here but not run or called,\nand the screen says so.",[645,646,648],"h2",{"id":647},"what-users-can-do","What users can do",[619,650,651],{},"Admins:",[653,654,655,670,673,676,679,682,685],"ul",{},[656,657,658,659,662,663,665,666,669],"li",{},"Add a client program by pasting its declaration (",[628,660,661],{},"Declaration",": the ",[623,664,625],{}," its developer gives you). It\nwaits for approval: nothing runs and no token is made. Setting names (the host's address and token) and file names\nsit under ",[628,667,668],{},"Technical details",", closed until opened.",[656,671,672],{},"Review what it asks for: its image, its limits, the ports it serves, the hosts it calls, the actions its token may\nperform and the personal data it keeps.",[656,674,675],{},"Approve it, after signing in again with their password and a two-factor code or a passkey, and typing its name. On\nan instance with a host no token is shown: the host gets a new one at every start. Without a host, the token is\nshown once, to copy and give to the client program wherever it runs.",[656,677,678],{},"Revoke an approved client program. Its token stops working at once, and it is taken off the host. Nothing of it stays on the host: a client program keeps no files there, only in SHADE, which a person's lookup and erasure already cover.",[656,680,681],{},"Add a new declaration for a pending or revoked client program; it waits for approval again.",[656,683,684],{},"Start and stop an approved client program on the host, and see how it is doing there.",[656,686,687],{},"Read a client program's log on the host (its last 200 lines) and its use (CPU, memory, processes, network).",[619,689,690,691,695,696,699],{},"Modules that declare it, and SHADE itself, call a running client program through the host (see ",[692,693,694],"em",{},"Calls to a client\nprogram"," below), and the ",[640,697,698],{"href":270},"Personal data"," screen finds and deletes what a client\nprogram keeps about a person.",[645,701,703],{"id":702},"who-may-do-it","Who may do it",[705,706,707,723],"table",{},[708,709,710],"thead",{},[711,712,713,717,720],"tr",{},[714,715,716],"th",{},"Action",[714,718,719],{},"Permission",[714,721,722],{},"Roles",[724,725,726,740],"tbody",{},[711,727,728,732,737],{},[729,730,731],"td",{},"See the client programs, their logs and their use",[729,733,734],{},[623,735,736],{},"programs.read",[729,738,739],{},"admin",[711,741,742,745,750],{},[729,743,744],{},"Add, approve, revoke, start and stop client programs",[729,746,747],{},[623,748,749],{},"programs.manage",[729,751,739],{},[619,753,754],{},"Both stay with admins: no custom role, module, client program, AI assistant or background work can have them.",[645,756,758],{"id":757},"in-the-admin","In the admin",[619,760,761],{},[762,763],"img",{"alt":764,"src":765},"The Programs screen on an instance without a host for client programs","\u002Fscreenshots\u002Fservices.png",[619,767,768,770,771,774,775,778],{},[628,769,630],{}," (Dutch: ",[628,772,773],{},"Programma's",") is in the settings area's ",[628,776,777],{},"Connections"," group, for admins.",[653,780,781,796,827,830,836,846,853,862,872,885],{},[656,782,783,784,787,788,791,792,795],{},"A table of the client programs: the name and description, the image's digest, the actions it uses, and its status\n(",[692,785,786],{},"Waiting for approval",", ",[692,789,790],{},"Approved",", with who approved it and when, or ",[692,793,794],{},"Revoked",").",[656,797,798,801,802,787,805,808,809,787,812,787,815,818,819,822,823,826],{},[628,799,800],{},"On the host",": for an approved client program, how it is doing there: ",[692,803,804],{},"Getting its image",[692,806,807],{},"Scanning its image",",\n",[692,810,811],{},"Running",[692,813,814],{},"Restarting",[692,816,817],{},"Failed"," (with why) or ",[692,820,821],{},"Stopped","; whether it runs in its own container or under gVisor; how\noften it restarted in a row; or ",[692,824,825],{},"Not on the host",". While it gets or scans its image the column is read again every\nfew seconds.",[656,828,829],{},"Without a host, a notice says client programs can be approved but not run, and how to set one up. When the host\ndoes not answer, a notice says so, with why.",[656,831,832,835],{},[628,833,834],{},"Add a program"," opens a form with a text box for the declaration. Each problem with it is listed: not valid JSON,\na field that is wrong, a port listed twice, or an action a client program can never be given.",[656,837,838,841,842,845],{},[628,839,840],{},"Review"," on a waiting client program opens the approval dialog: a warning, what the declaration asks for, then the\npassword, the code (or the passkey) and the name. ",[628,843,844],{},"Approve"," stays off until all are given. An admin with neither\ntwo-factor nor a passkey is told to set one up on their account page first.",[656,847,848,849,852],{},"Once approved with a host, the dialog closes and says to start it: the host gives it its token. Without a host, the\ndialog shows the token with ",[628,850,851],{},"Copy",". It is not shown again.",[656,854,855,857,858,861],{},[628,856,5],{}," on an approved client program that is not running gives it a new token and asks the host to start it: the\nhost gets its image, checks it is the approved one, scans it and runs it. ",[628,859,860],{},"Stop"," stops it; its logs stay on the\nhost.",[656,863,864,867,868,871],{},[628,865,866],{},"Logs"," on a client program the host has opens its last log lines (what it wrote, and the host's own lines: starts,\nfailures, the decisions on its outgoing calls, calls to it) and its use over the last day: the latest sample, and\nthe highest CPU and memory. ",[628,869,870],{},"Refresh"," reads them again.",[656,873,874,877,878,881,882,884],{},[628,875,876],{},"Revoke"," on an approved client program asks first. One the host could not take off then shows ",[692,879,880],{},"still on the\nhost",", with ",[628,883,876],{}," again to take it off.",[656,886,887,888,890,891,894,895,897],{},"The ",[628,889,257],{}," screen lists each client program's token as kind ",[692,892,893],{},"Program",", acting as the client program. It is\nrevoked with its client program, under ",[628,896,630],{},".",[645,899,901],{"id":900},"the-declaration","The declaration",[903,904,909],"pre",{"className":905,"code":906,"language":907,"meta":908,"style":908},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"name\": \"model\",\n  \"description\": \"A Python model that tags images\",\n  \"image\": \"ghcr.io\u002Facme\u002Fmodel@sha256:\u003C64 hex digits>\",\n  \"limits\": { \"cpus\": 1, \"memoryMb\": 512, \"diskMb\": 1024, \"pids\": 256 },\n  \"ports\": [8080],\n  \"capabilities\": {\n    \"network\": { \"hosts\": [\"api.example.com\"] },\n    \"uses\": [\"content.read\", \"media.read\"],\n    \"personalData\": { \"purpose\": \"Tags on the users' photos\", \"kept\": \"user\" }\n  }\n}\n","json","",[623,910,911,920,947,968,989,1064,1085,1100,1138,1170,1221,1227],{"__ignoreMap":908},[912,913,916],"span",{"class":914,"line":915},"line",1,[912,917,919],{"class":918},"sMK4o","{\n",[912,921,923,926,930,933,936,939,943,945],{"class":914,"line":922},2,[912,924,925],{"class":918},"  \"",[912,927,929],{"class":928},"spNyl","name",[912,931,932],{"class":918},"\"",[912,934,935],{"class":918},":",[912,937,938],{"class":918}," \"",[912,940,942],{"class":941},"sfazB","model",[912,944,932],{"class":918},[912,946,808],{"class":918},[912,948,950,952,955,957,959,961,964,966],{"class":914,"line":949},3,[912,951,925],{"class":918},[912,953,954],{"class":928},"description",[912,956,932],{"class":918},[912,958,935],{"class":918},[912,960,938],{"class":918},[912,962,963],{"class":941},"A Python model that tags images",[912,965,932],{"class":918},[912,967,808],{"class":918},[912,969,971,973,976,978,980,982,985,987],{"class":914,"line":970},4,[912,972,925],{"class":918},[912,974,975],{"class":928},"image",[912,977,932],{"class":918},[912,979,935],{"class":918},[912,981,938],{"class":918},[912,983,984],{"class":941},"ghcr.io\u002Facme\u002Fmodel@sha256:\u003C64 hex digits>",[912,986,932],{"class":918},[912,988,808],{"class":918},[912,990,992,994,997,999,1001,1004,1006,1010,1012,1014,1018,1021,1023,1026,1028,1030,1033,1035,1037,1040,1042,1044,1047,1049,1051,1054,1056,1058,1061],{"class":914,"line":991},5,[912,993,925],{"class":918},[912,995,996],{"class":928},"limits",[912,998,932],{"class":918},[912,1000,935],{"class":918},[912,1002,1003],{"class":918}," {",[912,1005,938],{"class":918},[912,1007,1009],{"class":1008},"sBMFI","cpus",[912,1011,932],{"class":918},[912,1013,935],{"class":918},[912,1015,1017],{"class":1016},"sbssI"," 1",[912,1019,1020],{"class":918},",",[912,1022,938],{"class":918},[912,1024,1025],{"class":1008},"memoryMb",[912,1027,932],{"class":918},[912,1029,935],{"class":918},[912,1031,1032],{"class":1016}," 512",[912,1034,1020],{"class":918},[912,1036,938],{"class":918},[912,1038,1039],{"class":1008},"diskMb",[912,1041,932],{"class":918},[912,1043,935],{"class":918},[912,1045,1046],{"class":1016}," 1024",[912,1048,1020],{"class":918},[912,1050,938],{"class":918},[912,1052,1053],{"class":1008},"pids",[912,1055,932],{"class":918},[912,1057,935],{"class":918},[912,1059,1060],{"class":1016}," 256",[912,1062,1063],{"class":918}," },\n",[912,1065,1067,1069,1072,1074,1076,1079,1082],{"class":914,"line":1066},6,[912,1068,925],{"class":918},[912,1070,1071],{"class":928},"ports",[912,1073,932],{"class":918},[912,1075,935],{"class":918},[912,1077,1078],{"class":918}," [",[912,1080,1081],{"class":1016},"8080",[912,1083,1084],{"class":918},"],\n",[912,1086,1088,1090,1093,1095,1097],{"class":914,"line":1087},7,[912,1089,925],{"class":918},[912,1091,1092],{"class":928},"capabilities",[912,1094,932],{"class":918},[912,1096,935],{"class":918},[912,1098,1099],{"class":918}," {\n",[912,1101,1103,1106,1109,1111,1113,1115,1117,1120,1122,1124,1126,1128,1131,1133,1136],{"class":914,"line":1102},8,[912,1104,1105],{"class":918},"    \"",[912,1107,1108],{"class":1008},"network",[912,1110,932],{"class":918},[912,1112,935],{"class":918},[912,1114,1003],{"class":918},[912,1116,938],{"class":918},[912,1118,1119],{"class":1016},"hosts",[912,1121,932],{"class":918},[912,1123,935],{"class":918},[912,1125,1078],{"class":918},[912,1127,932],{"class":918},[912,1129,1130],{"class":941},"api.example.com",[912,1132,932],{"class":918},[912,1134,1135],{"class":918},"]",[912,1137,1063],{"class":918},[912,1139,1141,1143,1146,1148,1150,1152,1154,1157,1159,1161,1163,1166,1168],{"class":914,"line":1140},9,[912,1142,1105],{"class":918},[912,1144,1145],{"class":1008},"uses",[912,1147,932],{"class":918},[912,1149,935],{"class":918},[912,1151,1078],{"class":918},[912,1153,932],{"class":918},[912,1155,1156],{"class":941},"content.read",[912,1158,932],{"class":918},[912,1160,1020],{"class":918},[912,1162,938],{"class":918},[912,1164,1165],{"class":941},"media.read",[912,1167,932],{"class":918},[912,1169,1084],{"class":918},[912,1171,1173,1175,1178,1180,1182,1184,1186,1189,1191,1193,1195,1198,1200,1202,1204,1207,1209,1211,1213,1216,1218],{"class":914,"line":1172},10,[912,1174,1105],{"class":918},[912,1176,1177],{"class":1008},"personalData",[912,1179,932],{"class":918},[912,1181,935],{"class":918},[912,1183,1003],{"class":918},[912,1185,938],{"class":918},[912,1187,1188],{"class":1016},"purpose",[912,1190,932],{"class":918},[912,1192,935],{"class":918},[912,1194,938],{"class":918},[912,1196,1197],{"class":941},"Tags on the users' photos",[912,1199,932],{"class":918},[912,1201,1020],{"class":918},[912,1203,938],{"class":918},[912,1205,1206],{"class":1016},"kept",[912,1208,932],{"class":918},[912,1210,935],{"class":918},[912,1212,938],{"class":918},[912,1214,1215],{"class":941},"user",[912,1217,932],{"class":918},[912,1219,1220],{"class":918}," }\n",[912,1222,1224],{"class":914,"line":1223},11,[912,1225,1226],{"class":918},"  }\n",[912,1228,1230],{"class":914,"line":1229},12,[912,1231,1232],{"class":918},"}\n",[653,1234,1235,1240,1245,1250,1255,1261,1267],{},[656,1236,1237,1239],{},[623,1238,929],{},": lowercase letters, digits and dashes, 2 to 40 characters.",[656,1241,1242,1244],{},[623,1243,975],{},": pinned by its digest, so what was approved is exactly what runs.",[656,1246,1247,1249],{},[623,1248,996],{},": CPUs (0.1 to 8), memory (32 MB to 16 GB), disk (16 MB to 100 GB) and processes (8 to 4096, 256 if left\nout).",[656,1251,1252,1254],{},[623,1253,1071],{},": at most 5, from 1024 to 65535; none if left out. A client program can't be reached unless it declares a\nport, and then only through the host. One that keeps personal data serves at least one.",[656,1256,1257,1260],{},[623,1258,1259],{},"capabilities.network.hosts",": the public hosts it calls; never an address or a local name.",[656,1262,1263,1266],{},[623,1264,1265],{},"capabilities.uses",": the actions its token may perform. Never one that stays with admins (the team, roles, tokens,\nthe logs, settings, personal records, modules, client programs, the forms' submissions), and only actions this\ninstance knows.",[656,1268,1269,1272,1273,1275,1276,1279],{},[623,1270,1271],{},"capabilities.personalData",": what personal data it keeps and about whom: ",[623,1274,1215],{}," for data kept by the ids of user\naccounts, ",[623,1277,1278],{},"person"," for data kept by email address.",[645,1281,800],{"id":1282},"on-the-host",[653,1284,1285,1288,1294,1303,1312],{},[656,1286,1287],{},"A running client program gets the instance's address and its token from the host, and uses the token on the\ncontent and data APIs. Beyond the instance, it can reach only the hosts it declared.",[656,1289,1290,1291,1293],{},"Every ",[628,1292,5],{}," makes a new token and hands it to the host with the start; the token from the start before stops\nworking once the host has the new one. A start the host refuses leaves the token the client program has. The host\nkeeps the token so the client program keeps it across restarts (its own and the host's), and never shows it.",[656,1295,1296,1297,1299,1300,1302],{},"Approving a client program hands its declaration to the host, as trusted: an admin approved exactly that image. It\ndoes not start it: ",[628,1298,5],{}," does. A host that could not be reached at that moment doesn't undo the approval; the\ndialog says so, and ",[628,1301,5],{}," hands it over again.",[656,1304,1305,1306,787,1309,795],{},"Starting and stopping are audited (",[623,1307,1308],{},"programs.start",[623,1310,1311],{},"programs.stop",[656,1313,1314],{},"How the host runs a client program (its image scanned, its limits, a network of its own, the hosts it may call) is\nin shade-programs' README.",[645,1316,1318],{"id":1317},"calls-to-a-client-program","Calls to a client program",[619,1320,1321],{},"SHADE never calls a client program by its address: it asks the host, which forwards the call to the declared port on\nthe client program's own network, and nowhere else.",[653,1323,1324,1327,1330],{},[656,1325,1326],{},"Only an approved, running client program. Modules only call the client programs they declare; their consent lists\nthem.",[656,1328,1329],{},"A path on the client program, a short list of headers, at most 1 MB sent and 5 MB answered, 10 seconds by default\nand at most 60. A redirect is returned, never followed.",[656,1331,1332],{},"Each call is in the client program's log on the host: its method, its path without the query, the status and the\ntime.",[645,1334,1336],{"id":1335},"personal-data-a-client-program-keeps","Personal data a client program keeps",[619,1338,1339,1340,1342,1343,1345,1346,1349],{},"A client program that declares ",[623,1341,1177],{}," takes part in the ",[628,1344,698],{}," screen and in a user's own\ndownload, like SHADE's other kinds (",[692,1347,1348],{},"What the client's programs keep","): looking someone up asks every approved client\nprogram that keeps personal data, by their email address or by the ids of their accounts, and deleting asks each to\ndelete it. A client program that cannot answer (no host, not running, failing) stops the lookup or the deletion with\nthe reason, so nothing is left out unseen. Deleting asks the client programs first, before SHADE deletes anything of\nits own: when one fails, nothing in SHADE is deleted yet, and deleting again finishes the job (a client program\ndeletes nothing the second time). When a user account is deleted, what client programs keep for it is deleted too,\nas soon as the host can be reached.",[619,1351,1352],{},"A client program that keeps nothing personal keeps nothing that must survive a restart: its disk is gone with its\ncontainer.",[645,1354,1356],{"id":1355},"rules-and-limits","Rules and limits",[653,1358,1359,1365,1371,1374,1400],{},[656,1360,1361,1362,897],{},"A client program's token works on the content API and the data API, never for AI assistants (MCP). It acts as the\nclient program and can do exactly the actions its declaration uses. What it does is in the audit log as\n",[623,1363,1364],{},"program:\u003Cname>",[656,1366,1367,1368,1370],{},"The token belongs to the admin who approved it. If that admin is deactivated or removed, the token stops working,\nlike their other tokens. The list then says the token stopped working, and ",[628,1369,5],{}," is refused: revoke the client\nprogram and approve it again.",[656,1372,1373],{},"An approved client program keeps its declaration. To change it, revoke it, add the new declaration and approve it.",[656,1375,1376,1377,787,1380,787,1383,1385,1386,1389,1390,1392,1393,1396,1397,795],{},"Approving, revoking and starting are audited (",[623,1378,1379],{},"programs.approve",[623,1381,1382],{},"programs.revoke",[623,1384,1308],{}," with the new\ntoken's first characters) and approving and revoking raise the security alert ",[692,1387,1388],{},"A program approved or revoked"," to\nevery admin (",[640,1391,225],{"href":226},"). Adding a declaration is audited\ntoo (",[623,1394,1395],{},"programs.register","), and so is a refused approval (",[623,1398,1399],{},"programs.approve-failed",[656,1401,1402],{},"Signing in again allows five tries per admin per quarter of an hour.",[645,1404,1406],{"id":1405},"for-developers","For developers",[619,1408,1409,1410,1413,1414,1417],{},"The code and its tests: ",[623,1411,1412],{},"shade\u002Ffeatures\u002Fprograms\u002FREADME.md"," in the ",[623,1415,1416],{},"shade"," repository.",[645,1419,1421],{"id":1420},"limitations","Limitations",[653,1423,1424],{},[656,1425,1426,1427,795],{},"shade-programs has no release yet: first a rehearsal beside a test instance, then its first release\n(",[640,1428,591],{"href":592},[1430,1431,1432],"style",{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":908,"searchDepth":922,"depth":922,"links":1434},[1435,1436,1437,1438,1439,1440,1441,1442,1443,1444],{"id":647,"depth":922,"text":648},{"id":702,"depth":922,"text":703},{"id":757,"depth":922,"text":758},{"id":900,"depth":922,"text":901},{"id":1282,"depth":922,"text":800},{"id":1317,"depth":922,"text":1318},{"id":1335,"depth":922,"text":1336},{"id":1355,"depth":922,"text":1356},{"id":1405,"depth":922,"text":1406},{"id":1420,"depth":922,"text":1421},"md",null,{},true,{"title":349,"description":908},"xcT4yV1M3Sm_s9Ptnsz1ba0k844JMo70lonXYTZlkdI",[1452,1453],{"title":345,"path":346,"stem":347,"description":908,"children":-1},{"title":353,"path":354,"stem":355,"description":908,"children":-1},1796500153973]