[{"data":1,"prerenderedAt":1148},["ShallowReactive",2],{"navigation_docs":3,"-developers-modules":613,"-developers-modules-surround":1145},[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":441,"body":615,"description":1132,"extension":1139,"links":1140,"meta":1141,"navigation":1142,"path":437,"seo":1143,"stem":438,"__hash__":1144},"docs\u002F4.developers\u002F3.modules\u002Findex.md",{"type":616,"value":617,"toc":1131},"minimark",[618,626,632,704,756,761,773,777,780,954,964,967,978,990,1059,1063,1078,1094],[619,620,621,622,625],"p",{},"These pages are about trusted modules, which run inside the API. Modules an admin uploads run\nin a sandbox and are written differently: see ",[623,624,337],"a",{"href":433},".",[619,627,628,629,631],{},"To build a client's own module from the first command to a server package, follow\n",[623,630,537],{"href":538},"; these pages are the reference it links to:",[633,634,635,641,646,651,656,661,666,671,685,694,699],"ul",{},[636,637,638,640],"li",{},[623,639,443],{"href":444},": the SDK and its versions, the SHADE workspace, starting a repository,\ntexts, browser tests, development mode, packaging, signing and installing.",[636,642,643,645],{},[623,644,459],{"href":460},": what a module declares, its naming rules, permissions, settings, and modules that\nbuild on others.",[636,647,648,650],{},[623,649,463],{"href":464},": its API routes, raw bodies for webhooks, and outside hosts.",[636,652,653,655],{},[623,654,467],{"href":468},": where it appears in the admin, its site part, MCP tools.",[636,657,658,660],{},[623,659,110],{"href":471},": its tables, collections, read models, paths, previews, rebuilds, media, accessibility,\ncontent services and the events other modules raise.",[636,662,663,665],{},[623,664,474],{"href":475},": core's events, schedules, events between modules, jobs, kv, webhooks, live\nupdates, files, notifications, processes, health, retention, consent, personal data and client programs.",[636,667,668,670],{},[623,669,486],{"href":487},": verifying a provider's calls (Stripe, Standard Webhooks, plain HMAC,\nfetching back), the replay window, rotating secrets and each delivery once.",[636,672,673,675,676,680,681,684],{},[623,674,451],{"href":452},": ",[677,678,679],"code",{},"provides"," and ",[677,682,683],{},"callModule",", with the payments module as the\nexample, and the events the module that offers the calls sends back.",[636,686,687,689,690,693],{},[623,688,447],{"href":448},": the manifest part ",[677,691,692],{},"oauth",", an admin connecting an account, and\ncalling the provider's API with tokens SHADE keeps, refreshes and revokes.",[636,695,696,698],{},[623,697,455],{"href":456},": every part that may still change in a minor version, what it is, and\nthe official modules that use it.",[636,700,701,703],{},[623,702,482],{"href":483},": for a module that gives the website editor starter components, and how\nits data stays reachable without the website module.",[619,705,706,707,711,712,715,716,719,720,723,724,727,728,731,732,735,736,739,740,743,744,747,748,751,752,625],{},"A module adds a self-contained feature to SHADE — tables, API routes, admin pages, permissions,\ncollections, MCP tools, lifecycle hooks and schedules — without touching core. Each module lives in its own repository and\nreaches an instance as a signed package; the ",[623,708,710],{"href":709},"\u002Fdevelopers\u002Fmodules\u002Fsdk-and-tooling#the-shade-workspace","SHADE workspace"," joins the repositories for work.\nThe official modules are website (",[677,713,714],{},"shadehq-dev\u002Fshade-plugin-website",", in the workspace at ",[677,717,718],{},"modules\u002Fwebsite","),\nappointments (",[677,721,722],{},"modules\u002Fappointments","), commerce (",[677,725,726],{},"modules\u002Fcommerce",", with collections) and analytics\n(",[677,729,730],{},"modules\u002Fanalytics",", with a head part on the site), error forwarding (",[677,733,734],{},"modules\u002Ferror-forwarding",", the ",[677,737,738],{},"errorForwarding"," part) payments (",[677,741,742],{},"modules\u002Fpayments",", calls to the modules that take money) and editorial (",[677,745,746],{},"shade-plugin-editorial",", ",[677,749,750],{},"modules\u002Feditorial",": scheduled publish, review requests, releases, translation state and comments, built on core's entry extension points). The website module's repository is public from the first stable\nrelease; the others stay private and reach an instance as signed packages. Core\nnever names a module: see ",[623,753,755],{"href":754},"#core-never-knows-a-module","Core never knows a module",[757,758,760],"h2",{"id":759},"the-complete-example","The complete example",[619,762,763,764,772],{},"One module uses every part of the manifest once, in a repository of its own:\n",[623,765,769],{"href":766,"rel":767},"https:\u002F\u002Fgithub.com\u002Fshadehq-dev\u002Fshade-module-example",[768],"nofollow",[677,770,771],{},"shadehq-dev\u002Fshade-module-example",". It has its own tables and\ncollection, routes for the team, the public and accounts, an admin screen, a site part, settings, a job, a schedule,\nevents and the rest, each as small as the part allows. Its README says which file holds which part. Its browser tests\nsend the requests to a running SHADE, so they show what each part does there. Copy the piece you need, then read the\npage about that part below. It is for reading: don't install it on a live instance.",[757,774,776],{"id":775},"layout","Layout",[619,778,779],{},"The same parts as a core feature, plus the manifest and the module's own migrations:",[781,782,783,800],"table",{},[784,785,786],"thead",{},[787,788,789,797],"tr",{},[790,791,792,793,796],"th",{},"Path (in ",[677,794,795],{},"modules\u002Fappointments\u002F",")",[790,798,799],{},"What it holds",[801,802,803,817,830,843,852,866,883,910,923,933],"tbody",{},[787,804,805,811],{},[806,807,808],"td",{},[677,809,810],{},"module.ts",[806,812,813,816],{},[677,814,815],{},"defineModule({ … })",", the manifest (default export)",[787,818,819,824],{},[806,820,821],{},[677,822,823],{},"module.test.ts",[806,825,826,827],{},"The manifest passes ",[677,828,829],{},"validateModule",[787,831,832,837],{},[806,833,834],{},[677,835,836],{},"drizzle.config.ts",[806,838,839,840,796],{},"Own migrations, own history table (",[677,841,842],{},"pnpm db:generate",[787,844,845,850],{},[806,846,847],{},[677,848,849],{},"migrations\u002F",[806,851],{},[787,853,854,859],{},[806,855,856],{},[677,857,858],{},"shared\u002F",[806,860,861,862,865],{},"Browser-safe: action names (+ ",[677,863,864],{},"ActionRegistry"," augmentation), Zod schemas, collections",[787,867,868,873],{},[806,869,870],{},[677,871,872],{},"server\u002F",[806,874,875,878,879,882],{},[677,876,877],{},"appointments.sql.ts"," (tables, prefixed ",[677,880,881],{},"appointments_","), service, routes, email",[787,884,885,890],{},[806,886,887],{},[677,888,889],{},"admin\u002F",[806,891,892,895,896,899,900,747,903,680,906,909],{},[677,893,894],{},"AppointmentsPage.vue"," (Nuxt UI components and admin composables are auto-imported, like in ",[677,897,898],{},"apps\u002Fadmin","), ",[677,901,902],{},"locales\u002F{en,nl}.json",[677,904,905],{},"labels.nl.json",[677,907,908],{},"errors.nl.json"," (see Its texts)",[787,911,912,917],{},[806,913,914],{},[677,915,916],{},"site\u002F",[806,918,919,922],{},[677,920,921],{},"index.ts"," (an optional head) and its Astro components",[787,924,925,930],{},[806,926,927],{},[677,928,929],{},"e2e\u002F",[806,931,932],{},"Its browser tests against SHADE with it installed (see Its browser tests)",[787,934,935,952],{},[806,936,937,747,940,747,943,747,946,747,949],{},[677,938,939],{},"package.json",[677,941,942],{},"tsconfig.json",[677,944,945],{},"vitest.config.ts",[677,947,948],{},"README.md",[677,950,951],{},"LICENSE.md",[806,953],{},[619,955,956,957,747,959,680,961,963],{},"Lint applies the feature rules: ",[677,958,858],{},[677,960,889],{},[677,962,916],{}," never import server code. Core never imports a\nmodule; modules build on core.",[757,965,755],{"id":966},"core-never-knows-a-module",[619,968,969,970,973,974,977],{},"No code, table, migration, text, build step or test of SHADE names a module; core only offers\nmanifest parts any module fills, and a module brings everything of its own (its collections' tables, texts, styles, tests).\n",[677,971,972],{},"pnpm lint"," keeps it true with ",[677,975,976],{},"scripts\u002Finstalled-module-names.mjs",":",[633,979,980,987],{},[636,981,982,983,986],{},"an ESLint rule, ",[677,984,985],{},"shade\u002Fno-installed-module-names",", in both ESLint configs: a module's name in a string, template string or\nname is an error; in a comment it is fine;",[636,988,989],{},"the same check over every other file (texts, SQL, CSS, Vue and Astro templates, configuration), comments left out.",[619,991,992,993,996,997,1000,1001,1004,1005,747,1008,747,1011,1014,1015,1017,1018,747,1021,747,1024,1027,1028,1031,1032,1035,1036,1039,1040,1043,1044,1047,1048,1051,1052,1054,1055,1058],{},"The names are the official modules' and those of every folder in the workspace's ",[677,994,995],{},"modules\u002F",". ",[677,998,999],{},"website"," is an everyday\nword too (Open Graph's ",[677,1002,1003],{},"og:type",", \"the website\" in a sentence), so it is flagged only as the module names itself: its\nnamespaces (",[677,1006,1007],{},"website-…",[677,1009,1010],{},"website_…",[677,1012,1013],{},"website.…",") and its folder (",[677,1016,718],{},"). Core's own tests use neutral\nnames (",[677,1019,1020],{},"example",[677,1022,1023],{},"bookings",[677,1025,1026],{},"shop",") and the fixture modules in ",[677,1029,1030],{},"shade\u002Ftest\u002Ftesting\u002Ffixtures\u002Fmodules"," (",[677,1033,1034],{},"package-probe",",\na module with a table, a collection, an admin page and a head part; ",[677,1037,1038],{},"test-consent","; ",[677,1041,1042],{},"entry-probe",", collections with\ncontent in a json field, a menu and posts with item pages and an address source, for the content tests, since core has no built-in\ncollections). Every capability a module can declare has a fixture there that uses it the way a planned module would,\nwith a test: ",[677,1045,1046],{},"cache-probe"," keeps a booking module's free times, ",[677,1049,1050],{},"queue-probe"," sends a shop's invoice later, and so on.\nThe folder's ",[677,1053,948],{}," lists which fixture and which test cover each capability.\n",[677,1056,1057],{},"test\u002Fscripts\u002Finstalled-module-names.test.ts"," tests the rule.",[757,1060,1062],{"id":1061},"turning-a-module-on-and-off","Turning a module on and off",[619,1064,1065,1066,1069,1070,1073,1074,1077],{},"Every server package (and, in development, every folder in ",[677,1067,1068],{},"SHADE_DEV_MODULES",") loads on start: its migrations\nrun, its permissions, routes, admin pages and collections are registered. The ",[677,1071,1072],{},"plugins"," table says which are on; admins switch them on the\nModules page (",[677,1075,1076],{},"packages.manage","). A module that is off is unreachable, enforced on the server:",[633,1079,1080,1091],{},[636,1081,1082,1083,1086,1087,1090],{},"its actions are refused by ",[677,1084,1085],{},"can","\u002F",[677,1088,1089],{},"assertCan",", for admins too, so its sidebar entries and collections disappear;",[636,1092,1093],{},"its routes answer 404; its schedules and MCP tools stop, and the events it hears wait; its site part's head is left out of the pages.",[619,1095,1096,1097,1099,1100,1103,1104,1107,1108,1103,1112,680,1115,1118,1119,1122,1123,1126,1127,1130],{},"A switch is announced to every process through Redis (the ",[677,1098,1072],{}," message), which re-reads it at once, and every 60\nseconds in case a message was lost (",[623,1101,397],{"href":1102},"\u002Fdevelopers\u002Fredis#messages-replacing-polling","). ",[677,1105,1106],{},"requires","\nnames modules that must be on first (and cannot be switched off, uninstalled or removed before this one); a module\ncounts as off while one of them is off (see ",[623,1109,1111],{"href":1110},"\u002Fdevelopers\u002Fmodules\u002Fmanifest#modules-that-build-on-other-modules","Modules that build on other modules",[677,1113,1114],{},"onEnable",[677,1116,1117],{},"onDisable"," run\nafter a switch. Sidebar labels are translation keys (",[677,1120,1121],{},"appointments.sidebar","); ",[677,1124,1125],{},"badge"," names a route returning\n",[677,1128,1129],{},"{ count }",", shown next to the entry.",{"title":1132,"searchDepth":1133,"depth":1133,"links":1134},"",2,[1135,1136,1137,1138],{"id":759,"depth":1133,"text":760},{"id":775,"depth":1133,"text":776},{"id":966,"depth":1133,"text":755},{"id":1061,"depth":1133,"text":1062},"md",null,{},true,{"title":441,"description":1132},"TOAt4Fx37xFQ3hwYI4tJOlazb5l15EtmNDZwJNt95xs",[1146,1147],{"title":337,"path":433,"stem":434,"description":1132,"children":-1},{"title":443,"path":444,"stem":445,"description":1132,"children":-1},1796500150683]