[{"data":1,"prerenderedAt":1572},["ShallowReactive",2],{"navigation_docs":3,"-guide-services-channels":613,"-guide-services-channels-surround":1569},[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":307,"body":615,"description":981,"extension":1563,"links":1564,"meta":1565,"navigation":1566,"path":308,"seo":1567,"stem":309,"__hash__":1568},"docs\u002F3.guide\u002F5.services\u002F8.channels.md",{"type":616,"value":617,"toc":1550},"minimark",[618,626,631,634,666,670,708,712,721,795,800,809,813,824,828,833,859,862,866,891,895,898,904,908,959,963,966,975,1045,1059,1069,1350,1356,1504,1510,1535,1546],[619,620,621,622,625],"p",{},"Channels are the chats your team uses: a Slack channel, a Discord channel, a Matrix room or a generic webhook. A module\ncan tell them when something happens, such as a form that was sent. The module decides what a message says; an admin\ndecides which chat gets which messages, on the ",[623,624,307],"strong",{}," screen. A site with no channel sends nothing.",[627,628,630],"h2",{"id":629},"what-users-can-do","What users can do",[619,632,633],{},"Admins:",[635,636,637,653,656,659],"ul",{},[638,639,640,641,644,645,648,649,652],"li",{},"Add a channel: a ",[623,642,643],{},"Name",", the kind of ",[623,646,647],{},"Chat",", where it is, and the ",[623,650,651],{},"Messages"," it takes. Each module that is on\nlists the kinds of message it sends, with what each is about.",[638,654,655],{},"Send a test, to check the channel works.",[638,657,658],{},"Read each channel's delivery log: every message sent there, how many tries it took, what the chat answered and why\nthe last try failed. Send a message that did not get through again.",[638,660,661,662,665],{},"Change a channel, or switch it off with ",[623,663,664],{},"Send messages to this channel","; remove it, with its delivery log.",[627,667,669],{"id":668},"who-may-do-it","Who may do it",[671,672,673,689],"table",{},[674,675,676],"thead",{},[677,678,679,683,686],"tr",{},[680,681,682],"th",{},"Action",[680,684,685],{},"Permission",[680,687,688],{},"Roles",[690,691,692],"tbody",{},[677,693,694,698,705],{},[695,696,697],"td",{},"Everything on the Channels screen",[695,699,700,704],{},[701,702,703],"code",{},"packages.manage"," (where the modules' messages go is for whoever decides which modules run; no custom role can have it)",[695,706,707],{},"admin",[627,709,711],{"id":710},"in-the-admin","In the admin",[619,713,714,716,717,720],{},[623,715,307],{}," is in the settings area's ",[623,718,719],{},"Connections"," group, for admins.",[635,722,723,764,776,781,786],{},[638,724,725,726,730,731,730,734,737,738,741,742,745,746,749,750,730,753,730,756,759,760,763],{},"A table of the channels: its name and where it sends, the messages it takes, and how the last message went\n(",[727,728,729],"em",{},"delivered",", ",[727,732,733],{},"waiting to be sent",[727,735,736],{},"sending"," or ",[727,739,740],{},"not delivered",", and when), or ",[727,743,744],{},"Nothing sent yet",", or ",[727,747,748],{},"Off",". Each\nrow has ",[623,751,752],{},"Send a test",[623,754,755],{},"Log",[623,757,758],{},"Change"," and ",[623,761,762],{},"Remove"," (asks first).",[638,765,766,769,770,772,773,775],{},[623,767,768],{},"Add channel"," opens a form. What it asks depends on the ",[623,771,647],{},", see below. ",[623,774,651],{}," has one box per kind of\nmessage the modules that are on send.",[638,777,778,780],{},[623,779,758],{}," opens the same form. A secret you leave empty stays as it was saved. A channel keeps its kind of chat: to\nmove to another chat, add a new channel. When another admin changed the channel after you opened it, the save is\nrefused and nothing is lost.",[638,782,783,785],{},[623,784,752],{}," sends a short test message, also to a channel that is switched off.",[638,787,788,790,791,794],{},[623,789,755],{}," opens the channel's delivery log, newest first: when, the message, and how it went (with the tries, the\nanswer, and why it failed). A message that did not get through has ",[623,792,793],{},"Send again",".",[796,797,799],"h3",{"id":798},"slack","Slack",[619,801,802,803,805,806,794],{},"Choose ",[623,804,799],{},". In Slack, make an app for your workspace, switch on incoming webhooks and add a webhook for the\nchannel. Slack gives an address; paste it in ",[623,807,808],{},"Address",[796,810,812],{"id":811},"discord","Discord",[619,814,802,815,817,818,821,822,794],{},[623,816,812],{},". In Discord, open the channel's settings, then ",[623,819,820],{},"Integrations",", make a webhook and copy its\naddress into ",[623,823,808],{},[796,825,827],{"id":826},"matrix","Matrix",[619,829,802,830,832],{},[623,831,827],{},". A Matrix room needs three things:",[635,834,835,844,853],{},[638,836,837,840,841,794],{},[623,838,839],{},"Server",": the address of the Matrix server the bot account is on, such as ",[701,842,843],{},"https:\u002F\u002Fmatrix.example.org",[638,845,846,849,850,794],{},[623,847,848],{},"Room id",": from the room's settings (Advanced), such as ",[701,851,852],{},"!abc:example.org",[638,854,855,858],{},[623,856,857],{},"Access token",": the bot account's access token.",[619,860,861],{},"Invite the bot account to the room first, or its messages are refused.",[796,863,865],{"id":864},"webhook","Webhook",[619,867,802,868,870,871,874,875,878,879,882,883,890],{},[623,869,865],{}," to send each message as data to another system. Give its address, which starts with ",[701,872,873],{},"https:\u002F\u002F",".\nAfter adding, the ",[623,876,877],{},"signing secret"," is shown once, with ",[623,880,881],{},"Copy",": give it to whoever builds the other system, so it can\ncheck each message with a ",[884,885,889],"a",{"href":886,"rel":887},"https:\u002F\u002Fwww.standardwebhooks.com",[888],"nofollow","Standard Webhooks"," library.",[627,892,894],{"id":893},"what-the-chats-get","What the chats get",[619,896,897],{},"A Slack or Discord address and a Matrix token are secrets, because whoever has them can post in the chat. They are\nkept sealed and never shown again. When you change a channel, leave the field empty to keep the one saved. A webhook's\nsigning secret is shown once, when the channel is added.",[619,899,900,901,794],{},"A module sends a title, and may add a text, a few fields, sections and a link, as plain text. SHADE draws it in the\nchat's own way and escapes every part, so words a visitor typed never become a mention, a link or markup in your chat.\nThe forms module's message, for example, says which form was sent, when, and has a link to it in the inbox. It never\nholds the answers: those are visitors' personal data. See ",[884,902,903],{"href":362},"Forms",[627,905,907],{"id":906},"rules-and-limits","Rules and limits",[635,909,910,916,919,929,932,946,952],{},[638,911,912,913,915],{},"Only ",[701,914,873],{}," addresses outside this server's own network; a redirect is not followed.",[638,917,918],{},"A message is written in the same save as the change it is about, so a change that could not be saved sends nothing.\nIt is sent in the background.",[638,920,921,922,924,925,928],{},"A message that does not get through is tried again after 1, 2, 4, 8 and 16 minutes: six tries in about half an hour.\nThen it is ",[727,923,740],{}," and its error is in the ",[884,926,927],{"href":226},"error log",". Send it again\nfrom the log. When you switch a channel off, the messages still waiting for it are not delivered.",[638,930,931],{},"A kind of message goes only to the channels that take it. A kind no channel takes goes nowhere.",[638,933,934,935,938,939,941,942,945],{},"The delivery log keeps each message for 30 days by default (",[623,936,937],{},"Channel delivery log"," under\n",[884,940,273],{"href":274},"). Messages that name a person's address are listed in their\ndata, and deleted with it (",[884,943,944],{"href":270},"Privacy",").",[638,947,948,949,794],{},"Every change to a channel is in the ",[884,950,951],{"href":262},"audit log",[638,953,954,955,958],{},"A module sends messages only with its ",[701,956,957],{},"channels"," capability, shown on the Modules page with its kinds. Only trusted\nmodules have it.",[627,960,962],{"id":961},"for-developers","For developers",[619,964,965],{},"Channels are experimental until a second, different module sends messages.",[619,967,968,971,972,974],{},[623,969,970],{},"Declare the kinds."," A module lists the kinds it sends in its ",[701,973,957],{}," capability, each with what it is about.\nEach is a line of the consent. A module never names a channel.",[976,977,982],"pre",{"className":978,"code":979,"language":980,"meta":981,"style":981},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","capabilities: {\n  channels: { kinds: { submission: 'A form was sent: which form, when, and a link to it in the inbox (never the answers)' } }\n}\n","ts","",[701,983,984,1000,1039],{"__ignoreMap":981},[985,986,989,993,997],"span",{"class":987,"line":988},"line",1,[985,990,992],{"class":991},"sBMFI","capabilities",[985,994,996],{"class":995},"sMK4o",":",[985,998,999],{"class":995}," {\n",[985,1001,1003,1006,1008,1011,1014,1016,1018,1021,1023,1026,1030,1033,1036],{"class":987,"line":1002},2,[985,1004,1005],{"class":991},"  channels",[985,1007,996],{"class":995},[985,1009,1010],{"class":995}," {",[985,1012,1013],{"class":991}," kinds",[985,1015,996],{"class":995},[985,1017,1010],{"class":995},[985,1019,1020],{"class":991}," submission",[985,1022,996],{"class":995},[985,1024,1025],{"class":995}," '",[985,1027,1029],{"class":1028},"sfazB","A form was sent: which form, when, and a link to it in the inbox (never the answers)",[985,1031,1032],{"class":995},"'",[985,1034,1035],{"class":995}," }",[985,1037,1038],{"class":995}," }\n",[985,1040,1042],{"class":987,"line":1041},3,[985,1043,1044],{"class":995},"}\n",[619,1046,1047,1048,1051,1052,1055,1056,794],{},"A kind is lowercase letters, digits and ",[701,1049,1050],{},"-","; a module declares 1 to 20. Admins see it as ",[701,1053,1054],{},"\u003Cplugin>.\u003Ckind>",", here\n",[701,1057,1058],{},"forms.submission",[619,1060,1061,1064,1065,1068],{},[623,1062,1063],{},"Send a message."," ",[701,1066,1067],{},"sendChannelMessage(ctx, kind, message)"," writes the message in the transaction of the change it is\nabout, one for each channel that is on and takes the kind, and gives back how many channels it went to. It works only\nfrom the module's own context. This is the forms module's:",[976,1070,1072],{"className":978,"code":1071,"language":980,"meta":981,"style":981},"await sendChannelMessage(ctx, 'submission', {\n  layout: 'detailed',\n  title: m.t('channels.submission.title', { form: form.title }),\n  status: 'info',\n  fields: [{ label: m.t('channels.submission.form'), value: form.title }, { label: m.t('channels.submission.sent'), value: when }],\n  link: { label: m.t('channels.submission.open'), url: `${adminUrl}\u002Fmodules\u002Fforms\u002Fsubmissions?form=${form.id}` }\n})\n",[701,1073,1074,1102,1120,1169,1186,1277,1342],{"__ignoreMap":981},[985,1075,1076,1080,1084,1088,1091,1093,1096,1098,1100],{"class":987,"line":988},[985,1077,1079],{"class":1078},"s7zQu","await",[985,1081,1083],{"class":1082},"s2Zo4"," sendChannelMessage",[985,1085,1087],{"class":1086},"sTEyZ","(ctx",[985,1089,1090],{"class":995},",",[985,1092,1025],{"class":995},[985,1094,1095],{"class":1028},"submission",[985,1097,1032],{"class":995},[985,1099,1090],{"class":995},[985,1101,999],{"class":995},[985,1103,1104,1108,1110,1112,1115,1117],{"class":987,"line":1002},[985,1105,1107],{"class":1106},"swJcz","  layout",[985,1109,996],{"class":995},[985,1111,1025],{"class":995},[985,1113,1114],{"class":1028},"detailed",[985,1116,1032],{"class":995},[985,1118,1119],{"class":995},",\n",[985,1121,1122,1125,1127,1130,1132,1135,1138,1140,1143,1145,1147,1149,1152,1154,1156,1158,1161,1164,1167],{"class":987,"line":1041},[985,1123,1124],{"class":1106},"  title",[985,1126,996],{"class":995},[985,1128,1129],{"class":1086}," m",[985,1131,794],{"class":995},[985,1133,1134],{"class":1082},"t",[985,1136,1137],{"class":1086},"(",[985,1139,1032],{"class":995},[985,1141,1142],{"class":1028},"channels.submission.title",[985,1144,1032],{"class":995},[985,1146,1090],{"class":995},[985,1148,1010],{"class":995},[985,1150,1151],{"class":1106}," form",[985,1153,996],{"class":995},[985,1155,1151],{"class":1086},[985,1157,794],{"class":995},[985,1159,1160],{"class":1086},"title ",[985,1162,1163],{"class":995},"}",[985,1165,1166],{"class":1086},")",[985,1168,1119],{"class":995},[985,1170,1172,1175,1177,1179,1182,1184],{"class":987,"line":1171},4,[985,1173,1174],{"class":1106},"  status",[985,1176,996],{"class":995},[985,1178,1025],{"class":995},[985,1180,1181],{"class":1028},"info",[985,1183,1032],{"class":995},[985,1185,1119],{"class":995},[985,1187,1189,1192,1194,1197,1200,1203,1205,1207,1209,1211,1213,1215,1218,1220,1222,1224,1227,1229,1231,1233,1235,1238,1240,1242,1244,1246,1248,1250,1252,1254,1257,1259,1261,1263,1265,1267,1270,1272,1275],{"class":987,"line":1188},5,[985,1190,1191],{"class":1106},"  fields",[985,1193,996],{"class":995},[985,1195,1196],{"class":1086}," [",[985,1198,1199],{"class":995},"{",[985,1201,1202],{"class":1106}," label",[985,1204,996],{"class":995},[985,1206,1129],{"class":1086},[985,1208,794],{"class":995},[985,1210,1134],{"class":1082},[985,1212,1137],{"class":1086},[985,1214,1032],{"class":995},[985,1216,1217],{"class":1028},"channels.submission.form",[985,1219,1032],{"class":995},[985,1221,1166],{"class":1086},[985,1223,1090],{"class":995},[985,1225,1226],{"class":1106}," value",[985,1228,996],{"class":995},[985,1230,1151],{"class":1086},[985,1232,794],{"class":995},[985,1234,1160],{"class":1086},[985,1236,1237],{"class":995},"},",[985,1239,1010],{"class":995},[985,1241,1202],{"class":1106},[985,1243,996],{"class":995},[985,1245,1129],{"class":1086},[985,1247,794],{"class":995},[985,1249,1134],{"class":1082},[985,1251,1137],{"class":1086},[985,1253,1032],{"class":995},[985,1255,1256],{"class":1028},"channels.submission.sent",[985,1258,1032],{"class":995},[985,1260,1166],{"class":1086},[985,1262,1090],{"class":995},[985,1264,1226],{"class":1106},[985,1266,996],{"class":995},[985,1268,1269],{"class":1086}," when ",[985,1271,1163],{"class":995},[985,1273,1274],{"class":1086},"]",[985,1276,1119],{"class":995},[985,1278,1280,1283,1285,1287,1289,1291,1293,1295,1297,1299,1301,1304,1306,1308,1310,1313,1315,1318,1321,1323,1326,1329,1332,1334,1337,1340],{"class":987,"line":1279},6,[985,1281,1282],{"class":1106},"  link",[985,1284,996],{"class":995},[985,1286,1010],{"class":995},[985,1288,1202],{"class":1106},[985,1290,996],{"class":995},[985,1292,1129],{"class":1086},[985,1294,794],{"class":995},[985,1296,1134],{"class":1082},[985,1298,1137],{"class":1086},[985,1300,1032],{"class":995},[985,1302,1303],{"class":1028},"channels.submission.open",[985,1305,1032],{"class":995},[985,1307,1166],{"class":1086},[985,1309,1090],{"class":995},[985,1311,1312],{"class":1106}," url",[985,1314,996],{"class":995},[985,1316,1317],{"class":995}," `${",[985,1319,1320],{"class":1086},"adminUrl",[985,1322,1163],{"class":995},[985,1324,1325],{"class":1028},"\u002Fmodules\u002Fforms\u002Fsubmissions?form=",[985,1327,1328],{"class":995},"${",[985,1330,1331],{"class":1086},"form",[985,1333,794],{"class":995},[985,1335,1336],{"class":1086},"id",[985,1338,1339],{"class":995},"}`",[985,1341,1038],{"class":995},[985,1343,1345,1347],{"class":987,"line":1344},7,[985,1346,1163],{"class":995},[985,1348,1349],{"class":1086},")\n",[619,1351,1352,1355],{},[623,1353,1354],{},"The message."," Plain text in parts, never markup:",[671,1357,1358,1371],{},[674,1359,1360],{},[677,1361,1362,1365,1368],{},[680,1363,1364],{},"Part",[680,1366,1367],{},"What",[680,1369,1370],{},"Limit",[690,1372,1373,1391,1404,1417,1440,1460,1479],{},[677,1374,1375,1380,1389],{},[695,1376,1377],{},[701,1378,1379],{},"layout",[695,1381,1382,1385,1386,1388],{},[701,1383,1384],{},"compact",": the title and the link on one line. ",[701,1387,1114],{}," (the default): every part",[695,1390],{},[677,1392,1393,1398,1401],{},[695,1394,1395],{},[701,1396,1397],{},"title",[695,1399,1400],{},"The headline",[695,1402,1403],{},"200 characters",[677,1405,1406,1411,1414],{},[695,1407,1408],{},[701,1409,1410],{},"text",[695,1412,1413],{},"A line or two under it",[695,1415,1416],{},"1000 characters",[677,1418,1419,1424,1438],{},[695,1420,1421],{},[701,1422,1423],{},"status",[695,1425,1426,730,1428,730,1431,737,1434,1437],{},[701,1427,1181],{},[701,1429,1430],{},"success",[701,1432,1433],{},"warning",[701,1435,1436],{},"danger",": a colour where the chat has one",[695,1439],{},[677,1441,1442,1447,1457],{},[695,1443,1444],{},[701,1445,1446],{},"fields",[695,1448,1449,1450,759,1453,1456],{},"Short ",[701,1451,1452],{},"label",[701,1454,1455],{},"value"," pairs",[695,1458,1459],{},"10; label 60, value 200 characters",[677,1461,1462,1467,1476],{},[695,1463,1464],{},[701,1465,1466],{},"sections",[695,1468,1469,1470,730,1472,759,1474],{},"Each with an optional ",[701,1471,1397],{},[701,1473,1410],{},[701,1475,1446],{},[695,1477,1478],{},"5",[677,1480,1481,1486,1501],{},[695,1482,1483],{},[701,1484,1485],{},"link",[695,1487,1488,1489,1491,1492,1495,1496,737,1498],{},"A ",[701,1490,1452],{}," and a ",[701,1493,1494],{},"url"," starting with ",[701,1497,873],{},[701,1499,1500],{},"http:\u002F\u002F",[695,1502,1503],{},"label 60, url 2000 characters",[619,1505,1506,1509],{},[623,1507,1508],{},"How each chat draws it."," Slack gets blocks, with the status as the colour beside them. Discord gets one embed, and\nmentions reach nobody. Matrix gets a notice in plain text and HTML. Every part is escaped for the chat it goes to.",[619,1511,1512,1515,1516,1519,1520,1522,1523,730,1526,730,1529,1532,1533,794],{},[623,1513,1514],{},"The generic webhook"," gets the structure itself as JSON, ",[701,1517,1518],{},"{ type, timestamp, data }",": the kind (",[701,1521,1058],{},"),\nwhen the message was written, and the message as the module sent it. It is signed with the Standard Webhooks headers\n(",[701,1524,1525],{},"webhook-id",[701,1527,1528],{},"webhook-timestamp",[701,1530,1531],{},"webhook-signature","), the same as ",[884,1534,295],{"href":296},[619,1536,1537,1538,1541,1542,1545],{},"The code and its tests: ",[701,1539,1540],{},"shade\u002Ffeatures\u002Fchannels\u002FREADME.md"," in the ",[701,1543,1544],{},"shade"," repository. The decision is 0013.",[1547,1548,1549],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}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);}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}",{"title":981,"searchDepth":1002,"depth":1002,"links":1551},[1552,1553,1554,1560,1561,1562],{"id":629,"depth":1002,"text":630},{"id":668,"depth":1002,"text":669},{"id":710,"depth":1002,"text":711,"children":1555},[1556,1557,1558,1559],{"id":798,"depth":1041,"text":799},{"id":811,"depth":1041,"text":812},{"id":826,"depth":1041,"text":827},{"id":864,"depth":1041,"text":865},{"id":893,"depth":1002,"text":894},{"id":906,"depth":1002,"text":907},{"id":961,"depth":1002,"text":962},"md",null,{},true,{"title":307,"description":981},"F4TLJOE29ACY8CiFAv4VzjO5Y0838GSG_9vDnF2560A",[1570,1571],{"title":303,"path":304,"stem":305,"description":981,"children":-1},{"title":317,"path":318,"stem":319,"description":981,"children":-1},1796500160127]