[{"data":1,"prerenderedAt":1285},["ShallowReactive",2],{"navigation_docs":3,"-developers-frameworks-links":613,"-developers-frameworks-links-surround":1282},[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":533,"body":615,"description":742,"extension":1277,"links":1278,"meta":1279,"navigation":988,"path":534,"seo":1280,"stem":535,"__hash__":1281},"docs\u002F4.developers\u002F7.frameworks\u002F7.links.md",{"type":616,"value":617,"toc":1271},"minimark",[618,622,627,635,665,669,676,729,736,934,940,946,1200,1204,1248,1252,1267],[619,620,621],"p",{},"SHADE mails people links to confirm, cancel or move something: an appointment's confirm link, its cancel and\nreschedule links, and more as modules use them. By default such a link opens SHADE's own small page on the account API:\nit says what the link is for, with one button, in the site's theme when the website module is on. You can show links\non a page of your own frontend instead, styled like the rest of your application.",[623,624,626],"h2",{"id":625},"how-it-works","How it works",[619,628,629,630,634],{},"A module says what its links show and do as ",[631,632,633],"strong",{},"data",", never HTML: a title, a few paragraphs, and while the link can be\nused one button, after at most one choice (a new time, for example). SHADE checks the link and hands out that data.\nIts own page and yours render the same answer, so a module's links work on both without changes.",[636,637,638,659,662],"ol",{},[639,640,641,642,645,646,649,650,654,655,658],"li",{},"In the admin, under ",[631,643,644],{},"Settings → Other frontends",", give your frontend a ",[631,647,648],{},"Links page",": a path such as ",[651,652,653],"code",{},"\u002Flinks",".\nFrom then on SHADE's links land on ",[651,656,657],{},"\u003Cyour origin>\u002Flinks?owner=…&purpose=…&token=…"," (the first frontend by name,\nwhen several have a links page). Links already sent keep their address.",[639,660,661],{},"On that page, read the link from the address, ask SHADE what it shows, and render it.",[639,663,664],{},"When the person presses the button, send the link back with their choice, and render the answer.",[623,666,668],{"id":667},"the-calls","The calls",[619,670,671,672,675],{},"Both are ",[651,673,674],{},"POST"," on the account API, with the link in a JSON body. No cookie is needed: the token is the permission.",[677,678,679,695],"table",{},[680,681,682],"thead",{},[683,684,685,689,692],"tr",{},[686,687,688],"th",{},"Call",[686,690,691],{},"Body",[686,693,694],{},"Answer",[696,697,698,714],"tbody",{},[683,699,700,706,711],{},[701,702,703],"td",{},[651,704,705],{},"POST \u002Fapi\u002Fv1\u002Faccount\u002Flinks\u002Fpeek",[701,707,708],{},[651,709,710],{},"{ owner, purpose, token }",[701,712,713],{},"What the link shows, without using it",[683,715,716,721,726],{},[701,717,718],{},[651,719,720],{},"POST \u002Fapi\u002Fv1\u002Faccount\u002Flinks\u002Fredeem",[701,722,723],{},[651,724,725],{},"{ owner, purpose, token, choice? }",[701,727,728],{},"Uses the link; what it shows then",[619,730,731,732,735],{},"The answer is a ",[651,733,734],{},"LinkView",":",[737,738,743],"pre",{"className":739,"code":740,"language":741,"meta":742,"style":742},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","interface LinkView {\n  status: 'open' | 'closed' | 'invalid' \u002F\u002F open: it can be used; closed: done, used, cancelled or past; invalid: wrong or expired\n  language: string                      \u002F\u002F of the words, such as 'nl' or 'en-GB'\n  title: string\n  text: string[]                        \u002F\u002F paragraphs\n  action?: {                            \u002F\u002F only while open\n    button: string\n    choose?: { legend: string, options: { value: string, label: string }[] }\n  }\n}\n","ts","",[651,744,745,762,804,818,829,846,861,871,923,929],{"__ignoreMap":742},[746,747,750,754,758],"span",{"class":748,"line":749},"line",1,[746,751,753],{"class":752},"spNyl","interface",[746,755,757],{"class":756},"sBMFI"," LinkView",[746,759,761],{"class":760},"sMK4o"," {\n",[746,763,765,769,771,774,778,781,784,786,789,791,793,795,798,800],{"class":748,"line":764},2,[746,766,768],{"class":767},"swJcz","  status",[746,770,735],{"class":760},[746,772,773],{"class":760}," '",[746,775,777],{"class":776},"sfazB","open",[746,779,780],{"class":760},"'",[746,782,783],{"class":760}," |",[746,785,773],{"class":760},[746,787,788],{"class":776},"closed",[746,790,780],{"class":760},[746,792,783],{"class":760},[746,794,773],{"class":760},[746,796,797],{"class":776},"invalid",[746,799,780],{"class":760},[746,801,803],{"class":802},"sHwdD"," \u002F\u002F open: it can be used; closed: done, used, cancelled or past; invalid: wrong or expired\n",[746,805,807,810,812,815],{"class":748,"line":806},3,[746,808,809],{"class":767},"  language",[746,811,735],{"class":760},[746,813,814],{"class":756}," string",[746,816,817],{"class":802},"                      \u002F\u002F of the words, such as 'nl' or 'en-GB'\n",[746,819,821,824,826],{"class":748,"line":820},4,[746,822,823],{"class":767},"  title",[746,825,735],{"class":760},[746,827,828],{"class":756}," string\n",[746,830,832,835,837,839,843],{"class":748,"line":831},5,[746,833,834],{"class":767},"  text",[746,836,735],{"class":760},[746,838,814],{"class":756},[746,840,842],{"class":841},"sTEyZ","[]                        ",[746,844,845],{"class":802},"\u002F\u002F paragraphs\n",[746,847,849,852,855,858],{"class":748,"line":848},6,[746,850,851],{"class":767},"  action",[746,853,854],{"class":760},"?:",[746,856,857],{"class":760}," {",[746,859,860],{"class":802},"                            \u002F\u002F only while open\n",[746,862,864,867,869],{"class":748,"line":863},7,[746,865,866],{"class":767},"    button",[746,868,735],{"class":760},[746,870,828],{"class":756},[746,872,874,877,879,881,884,886,888,891,894,896,898,901,903,905,907,910,912,914,917,920],{"class":748,"line":873},8,[746,875,876],{"class":767},"    choose",[746,878,854],{"class":760},[746,880,857],{"class":760},[746,882,883],{"class":767}," legend",[746,885,735],{"class":760},[746,887,814],{"class":756},[746,889,890],{"class":760},",",[746,892,893],{"class":767}," options",[746,895,735],{"class":760},[746,897,857],{"class":760},[746,899,900],{"class":767}," value",[746,902,735],{"class":760},[746,904,814],{"class":756},[746,906,890],{"class":760},[746,908,909],{"class":767}," label",[746,911,735],{"class":760},[746,913,814],{"class":756},[746,915,916],{"class":760}," }",[746,918,919],{"class":841},"[] ",[746,921,922],{"class":760},"}\n",[746,924,926],{"class":748,"line":925},9,[746,927,928],{"class":760},"  }\n",[746,930,932],{"class":748,"line":931},10,[746,933,922],{"class":760},[619,935,936,937,939],{},"A link that is wrong, expired or no longer known always answers the same ",[651,938,797],{}," view, in the site's language:\nnothing says why.",[619,941,942,945],{},[651,943,944],{},"@shadestack\u002Fclient\u002Flinks"," has typed helpers:",[737,947,949],{"className":739,"code":948,"language":741,"meta":742,"style":742},"import { linkFromAddress, peekLink, redeemLink } from '@shadestack\u002Fclient\u002Flinks'\n\nconst link = linkFromAddress(location.href)\nif (link) {\n  const view = await peekLink(link) \u002F\u002F on your own origin; pass { baseUrl } when the API is elsewhere\n  render(view)\n  form.addEventListener('submit', async (event) => {\n    event.preventDefault()\n    const choice = new FormData(form).get('choice')?.toString()\n    render(await redeemLink(link, choice))\n  })\n}\n",[651,950,951,984,990,1013,1024,1052,1065,1104,1117,1164,1187,1195],{"__ignoreMap":742},[746,952,953,957,959,962,964,967,969,972,974,977,979,981],{"class":748,"line":749},[746,954,956],{"class":955},"s7zQu","import",[746,958,857],{"class":760},[746,960,961],{"class":841}," linkFromAddress",[746,963,890],{"class":760},[746,965,966],{"class":841}," peekLink",[746,968,890],{"class":760},[746,970,971],{"class":841}," redeemLink",[746,973,916],{"class":760},[746,975,976],{"class":955}," from",[746,978,773],{"class":760},[746,980,944],{"class":776},[746,982,983],{"class":760},"'\n",[746,985,986],{"class":748,"line":764},[746,987,989],{"emptyLinePlaceholder":988},true,"\n",[746,991,992,995,998,1001,1004,1007,1010],{"class":748,"line":806},[746,993,994],{"class":752},"const",[746,996,997],{"class":841}," link ",[746,999,1000],{"class":760},"=",[746,1002,961],{"class":1003},"s2Zo4",[746,1005,1006],{"class":841},"(location",[746,1008,1009],{"class":760},".",[746,1011,1012],{"class":841},"href)\n",[746,1014,1015,1018,1021],{"class":748,"line":820},[746,1016,1017],{"class":955},"if",[746,1019,1020],{"class":841}," (link) ",[746,1022,1023],{"class":760},"{\n",[746,1025,1026,1029,1032,1035,1038,1040,1043,1046,1049],{"class":748,"line":831},[746,1027,1028],{"class":752},"  const",[746,1030,1031],{"class":841}," view",[746,1033,1034],{"class":760}," =",[746,1036,1037],{"class":955}," await",[746,1039,966],{"class":1003},[746,1041,1042],{"class":767},"(",[746,1044,1045],{"class":841},"link",[746,1047,1048],{"class":767},") ",[746,1050,1051],{"class":802},"\u002F\u002F on your own origin; pass { baseUrl } when the API is elsewhere\n",[746,1053,1054,1057,1059,1062],{"class":748,"line":848},[746,1055,1056],{"class":1003},"  render",[746,1058,1042],{"class":767},[746,1060,1061],{"class":841},"view",[746,1063,1064],{"class":767},")\n",[746,1066,1067,1070,1072,1075,1077,1079,1082,1084,1086,1089,1092,1096,1099,1102],{"class":748,"line":863},[746,1068,1069],{"class":841},"  form",[746,1071,1009],{"class":760},[746,1073,1074],{"class":1003},"addEventListener",[746,1076,1042],{"class":767},[746,1078,780],{"class":760},[746,1080,1081],{"class":776},"submit",[746,1083,780],{"class":760},[746,1085,890],{"class":760},[746,1087,1088],{"class":752}," async",[746,1090,1091],{"class":760}," (",[746,1093,1095],{"class":1094},"sHdIc","event",[746,1097,1098],{"class":760},")",[746,1100,1101],{"class":752}," =>",[746,1103,761],{"class":760},[746,1105,1106,1109,1111,1114],{"class":748,"line":873},[746,1107,1108],{"class":841},"    event",[746,1110,1009],{"class":760},[746,1112,1113],{"class":1003},"preventDefault",[746,1115,1116],{"class":767},"()\n",[746,1118,1119,1122,1125,1127,1130,1133,1135,1138,1140,1142,1145,1147,1149,1152,1154,1156,1159,1162],{"class":748,"line":925},[746,1120,1121],{"class":752},"    const",[746,1123,1124],{"class":841}," choice",[746,1126,1034],{"class":760},[746,1128,1129],{"class":760}," new",[746,1131,1132],{"class":1003}," FormData",[746,1134,1042],{"class":767},[746,1136,1137],{"class":841},"form",[746,1139,1098],{"class":767},[746,1141,1009],{"class":760},[746,1143,1144],{"class":1003},"get",[746,1146,1042],{"class":767},[746,1148,780],{"class":760},[746,1150,1151],{"class":776},"choice",[746,1153,780],{"class":760},[746,1155,1098],{"class":767},[746,1157,1158],{"class":760},"?.",[746,1160,1161],{"class":1003},"toString",[746,1163,1116],{"class":767},[746,1165,1166,1169,1171,1174,1176,1178,1180,1182,1184],{"class":748,"line":931},[746,1167,1168],{"class":1003},"    render",[746,1170,1042],{"class":767},[746,1172,1173],{"class":955},"await",[746,1175,971],{"class":1003},[746,1177,1042],{"class":767},[746,1179,1045],{"class":841},[746,1181,890],{"class":760},[746,1183,1124],{"class":841},[746,1185,1186],{"class":767},"))\n",[746,1188,1190,1193],{"class":748,"line":1189},11,[746,1191,1192],{"class":760},"  }",[746,1194,1064],{"class":767},[746,1196,1198],{"class":748,"line":1197},12,[746,1199,922],{"class":760},[623,1201,1203],{"id":1202},"keep-it-safe","Keep it safe",[1205,1206,1207,1221,1231,1245],"ul",{},[639,1208,1209,1212,1213,1216,1217,1220],{},[631,1210,1211],{},"Use only on a button."," Mail scanners open links: call ",[651,1214,1215],{},"peekLink"," when the page loads and ",[651,1218,1219],{},"redeemLink"," only when\nthe person presses the button. A link can be used as often as it was made for (usually once).",[639,1222,1223,1226,1227,1230],{},[631,1224,1225],{},"Keep the token out of other places."," Give the page ",[651,1228,1229],{},"\u003Cmeta name=\"referrer\" content=\"no-referrer\">",", so the token\nin its address is not sent to other sites, load no third-party scripts on it, and do not log its address. The\nhelpers send the token in a POST body, never in an address of the API, and without cookies.",[639,1232,1233,1236,1237,1240,1241,1244],{},[631,1234,1235],{},"Show the words as text."," Render ",[651,1238,1239],{},"title",", ",[651,1242,1243],{},"text"," and labels as text, never as HTML.",[639,1246,1247],{},"Calls are rate limited per IP: 30 looks and 10 uses per 10 minutes.",[623,1249,1251],{"id":1250},"for-module-authors","For module authors",[619,1253,1254,1255,1258,1259,1262,1263,1009],{},"A module declares its link purposes in its manifest part ",[651,1256,1257],{},"links"," and makes links with ",[651,1260,1261],{},"issueLink","; see\n",[1264,1265,474],"a",{"href":1266},"\u002Fdevelopers\u002Fmodules\u002Fbackground-and-services#signed-links-and-codes",[1268,1269,1270],"style",{},"html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}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 .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}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 .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}",{"title":742,"searchDepth":764,"depth":764,"links":1272},[1273,1274,1275,1276],{"id":625,"depth":764,"text":626},{"id":667,"depth":764,"text":668},{"id":1202,"depth":764,"text":1203},{"id":1250,"depth":764,"text":1251},"md",null,{},{"title":533,"description":742},"zIdYN5zm1-X0qmEJcxSM7ntcRqUwP4OSAt4xGIsDmdo",[1283,1284],{"title":529,"path":530,"stem":531,"description":742,"children":-1},{"title":537,"path":538,"stem":539,"description":742,"children":-1},1796500157255]