[{"data":1,"prerenderedAt":1225},["ShallowReactive",2],{"navigation_docs":3,"-guide-modules-import":613,"-guide-modules-import-surround":1222},[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":353,"body":615,"description":1205,"extension":1216,"links":1217,"meta":1218,"navigation":1219,"path":354,"seo":1220,"stem":355,"__hash__":1221},"docs\u002F3.guide\u002F6.modules\u002F8.import.md",{"type":616,"value":617,"toc":1204},"minimark",[618,635,655,666,671,677,745,751,755,820,823,833,837,855,865,1013,1016,1022,1026,1041,1047,1050,1060,1064,1104,1108,1129,1135,1139],[619,620,621,622,625,626,630,631,634],"p",{},"Import and export is an official module: an admin installs it and switches it on under ",[623,624,317],"strong",{},"\n(",[627,628,629],"a",{"href":318},"Managing modules","). Then every collection's list has ",[623,632,633],{},"Import and export",", which opens a page with two\nparts:",[636,637,638,649],"ul",{},[639,640,641,644,645,648],"li",{},[623,642,643],{},"Import:"," a CSV or JSON file becomes new drafts, or new draft versions of entries that are already there. Nothing\nis published or deleted. The file is checked first, row by row, and nothing is saved until you press ",[623,646,647],{},"Import",".",[639,650,651,654],{},[623,652,653],{},"Export:"," the collection's entries as a CSV file, in the same form the import reads, so you can change it in a\nspreadsheet and import it again.",[619,656,657,658,661,662,665],{},"This is not the export or import of a whole instance, which stays in SHADE itself\n(",[627,659,660],{"href":230},"Exporting",", ",[627,663,664],{"href":83},"Updates and backups",").",[667,668,670],"h2",{"id":669},"what-users-can-do","What users can do",[619,672,673,676],{},[623,674,675],{},"Editors and admins",", with create or edit on the collection:",[636,678,679,697,715,724,735],{},[639,680,681,682,684,685,687,688,692,693,696],{},"Open the collection's list and click ",[623,683,633],{},". Under ",[623,686,647],{},", choose a ",[689,690,691],"code",{},".csv"," or ",[689,694,695],{},".json"," file and,\nwhen the site has more than one language, the language of its rows.",[639,698,699,700,703,704,661,707,710,711,714],{},"Click ",[623,701,702],{},"Check the file",". The table says for each row what it would do: ",[623,705,706],{},"New draft",[623,708,709],{},"Update"," (with a link to the\nentry it updates), or ",[623,712,713],{},"Error"," with each field that is wrong and why. Columns that are not imported are named above\nit. Nothing is saved yet.",[639,716,699,717,719,720,723],{},[623,718,647],{},". A file with errors can only be imported with ",[623,721,722],{},"Skip the rows with errors"," ticked; those rows are\nthen left out.",[639,725,726,727,730,731,734],{},"Follow the import on its result screen: how many rows are done, how many new drafts, updates, unchanged, skipped and\nfailed rows. ",[623,728,729],{},"Download these rows as CSV"," gives the rows that were not imported, with a last column ",[689,732,733],{},"errors",":\ncorrect them and import that file again.",[639,736,737,738,741,742,648],{},"Under ",[623,739,740],{},"Export",", choose the language (when the site has more than one) and click ",[623,743,744],{},"Download CSV",[619,746,747,750],{},[623,748,749],{},"AI users (MCP)"," have no import or export.",[667,752,754],{"id":753},"who-may-do-it","Who may do it",[756,757,758,774],"table",{},[759,760,761],"thead",{},[762,763,764,768,771],"tr",{},[765,766,767],"th",{},"What",[765,769,770],{},"Permission",[765,772,773],{},"Who has it by default",[775,776,777,795,809],"tbody",{},[762,778,779,783,792],{},[780,781,782],"td",{},"Import new entries (rows that create)",[780,784,785,788,789],{},[689,786,787],{},"collections.\u003Cslug>.read"," and ",[689,790,791],{},"collections.\u003Cslug>.create",[780,793,794],{},"admin, editor",[762,796,797,800,807],{},[780,798,799],{},"Import changes to entries (rows that update)",[780,801,802,788,804],{},[689,803,787],{},[689,805,806],{},"collections.\u003Cslug>.update",[780,808,794],{},[762,810,811,814,818],{},[780,812,813],{},"Export the entries as CSV",[780,815,816],{},[689,817,787],{},[780,819,794],{},[619,821,822],{},"Each row is checked on its own: with create but not edit, rows that would update an entry are errors, and the other way\nround. The import saves every row as the team member who started it, with their role as it is when the row is saved:\nthe history shows them as the author, and the audit log has each save. A custom role's field rules hold too: a column\nfor a field the role hides is an error, and one the role may only read must keep the value it has. A role limited to\nits own entries (or its groups' and its own) may only update those: a row for another entry is an error, with the same\nmessage as in the editor.",[619,824,825,826,828,829,832],{},"The result screen and its CSV are only for the team member who started the import, and for admins. They are deleted 30\ndays after the import ended (",[627,827,273],{"href":274},", kind ",[689,830,831],{},"import.imports",", under the module).",[667,834,836],{"id":835},"the-file","The file",[619,838,839,842,843,846,847,850,851,854],{},[623,840,841],{},"CSV"," has a header row with the field names, as ",[689,844,845],{},"title,slug,date",". It is read the way SHADE writes its own CSV\nfiles: UTF-8 (with or without a byte order mark), commas between cells, quotes around a cell with a comma, a quote or\na line break in it (a quote inside written twice: ",[689,848,849],{},"\"say \"\"hi\"\"\"","), and Windows or Unix line ends. A value SHADE wrote\nwith a ",[689,852,853],{},"'"," in front, because a spreadsheet would take it for a formula, is read without it.",[619,856,857,860,861,864],{},[623,858,859],{},"JSON"," is an array of objects, one per entry, each with the field names as keys: ",[689,862,863],{},"[{ \"title\": \"Fietsen\", \"slug\": \"fietsen\" }]",". Values are as the API takes them.",[756,866,867,880],{},[759,868,869],{},[762,870,871,874,877],{},[765,872,873],{},"Field",[765,875,876],{},"In a CSV cell",[765,878,879],{},"In JSON",[775,881,882,892,906,923,961,978,992,1002],{},[762,883,884,887,890],{},[780,885,886],{},"Text, long text, email, address, slug, choice",[780,888,889],{},"as written",[780,891,889],{},[762,893,894,897,903],{},[780,895,896],{},"Number",[780,898,899,902],{},[689,900,901],{},"12.5"," (a dot for decimals)",[780,904,905],{},"a number",[762,907,908,911,917],{},[780,909,910],{},"Money",[780,912,913,914],{},"euros, ",[689,915,916],{},"12.50",[780,918,919,920],{},"cents, ",[689,921,922],{},"1250",[762,924,925,928,955],{},[780,926,927],{},"Switch",[780,929,930,933,934,661,937,933,940,661,943,933,946,661,949,933,952],{},[689,931,932],{},"true","\u002F",[689,935,936],{},"false",[689,938,939],{},"yes",[689,941,942],{},"no",[689,944,945],{},"ja",[689,947,948],{},"nee",[689,950,951],{},"1",[689,953,954],{},"0",[780,956,957,692,959],{},[689,958,932],{},[689,960,936],{},[762,962,963,966,975],{},[780,964,965],{},"Date",[780,967,968,971,972],{},[689,969,970],{},"2026-11-14",", or a date and time as ",[689,973,974],{},"2026-11-14T09:30:00+01:00",[780,976,977],{},"the same",[762,979,980,983,986],{},[780,981,982],{},"Image or file",[780,984,985],{},"the file's id, or its name in the media library",[780,987,988,989],{},"the same, or ",[689,990,991],{},"{ \"mediaId\": \"…\" }",[762,993,994,997,1000],{},[780,995,996],{},"Relation to one entry",[780,998,999],{},"its id, or its slug",[780,1001,977],{},[762,1003,1004,1007,1010],{},[780,1005,1006],{},"Groups, lists, several relations, several emails, rich text, links",[780,1008,1009],{},"not in CSV",[780,1011,1012],{},"as the API takes them",[619,1014,1015],{},"An empty cell is no value. A column that names no field, or in CSV a field of the table's last row, is not imported:\nthe check names it.",[619,1017,1018,1021],{},[623,1019,1020],{},"Limits:"," a file is at most 5 MB and 5,000 rows.",[667,1023,1025],{"id":1024},"which-entry-a-row-changes","Which entry a row changes",[636,1027,1028,1035,1038],{},[639,1029,1030,1031,1034],{},"A row with an ",[689,1032,1033],{},"id"," column updates that entry. An id that is no entry, or an entry in the trash, is an error.",[639,1036,1037],{},"Otherwise a row whose slug matches an entry's slug updates that entry, and the slug stays as it is.",[639,1039,1040],{},"Otherwise the row is a new draft.",[619,1042,1043,1044,648],{},"An update keeps everything the row leaves out, and becomes the entry's newest draft version (with the note\n\"Imported\"). A published entry stays published as it was: its update waits as unpublished changes. A row that changes\nnothing saves nothing and counts as ",[623,1045,1046],{},"unchanged",[667,1048,128],{"id":1049},"languages",[619,1051,1052,1053,1056,1057,1059],{},"The language of a row is its ",[689,1054,1055],{},"locale"," cell, else the language chosen for the file, else the default language. A row in\nanother language is that language's text of an entry that is already there: it must have an ",[689,1058,1033],{}," or a slug that finds\nit (its slug in that language, or in the default language), and it may only fill fields with text per language.",[667,1061,1063],{"id":1062},"rules-and-checks","Rules and checks",[636,1065,1066,1072,1082,1088,1094],{},[639,1067,1068,1071],{},[623,1069,1070],{},"Checked as a save."," The check runs every row through the same checks as saving it in the editor: the field\ntypes, the collection's own rules, the modules' checks, what relations and images point to, and unique values. A\nslug that an entry in the trash keeps is an error (\"A post in the trash already uses this slug\"), as is a slug twice\nin the file.",[639,1073,1074,1077,1078,1081],{},[623,1075,1076],{},"Usage limits."," New entries count toward the instance's ",[627,1079,1080],{"href":99},"entries limit",": the rows\npast it are errors.",[639,1083,1084,1087],{},[623,1085,1086],{},"Not everywhere."," A collection with a single entry (such as a menu) and a collection without drafts (where every\nsave is live at once) have no import.",[639,1089,1090,1093],{},[623,1091,1092],{},"In the background."," The module's job on the worker saves the rows, 100 at a time. A row that fails then (because something changed\nsince the check) is recorded with why, and the rest goes on. If the team member who started it is deactivated, the\nimport stops.",[639,1095,1096,1099,1100,1103],{},[623,1097,1098],{},"Audit."," Starting an import is in the audit log (",[689,1101,1102],{},"import.start","), and every row it saves as a create or a save.",[667,1105,1107],{"id":1106},"the-export","The export",[619,1109,1110,1111,1113,1114,1116,1117,1120,1121,1123,1124,692,1126,1128],{},"The CSV has a column ",[689,1112,1033],{}," and a column ",[689,1115,1055],{},", then a column for each field one cell can hold, in the collection's\norder; groups, lists, several relations, rich text and links are left out (export them through the\n",[627,1118,1119],{"href":495},"content API"," instead). Each entry is its newest saved version, the draft if it has one.\nValues are written the way the import reads them: money in euros (",[689,1122,916],{},"), switches as ",[689,1125,932],{},[689,1127,936],{},", an image,\nfile or related entry by its id. A field your role hides is left out. In another language than the default, the file\nhas only the fields with text per language, in that language's text; the import then reads it back as that language.",[619,1130,1131,1132,1134],{},"Import the file again and every row updates the entry its ",[689,1133,1033],{}," names; rows you didn't change count as unchanged.",[667,1136,1138],{"id":1137},"for-developers","For developers",[636,1140,1141,1180],{},[639,1142,1143,1144,1147,1148,1151,1152,661,1155,661,1158,1161,1162,1164,1165,1168,1169,1172,1173,1176,1177,648],{},"The module's API, for a signed-in team member (never a token): ",[689,1145,1146],{},"POST \u002Fapi\u002Fpackages\u002Fimport\u002Fcheck"," (the check) and\n",[689,1149,1150],{},"POST \u002Fapi\u002Fpackages\u002Fimport\u002Fimports"," (start), both JSON with ",[689,1153,1154],{},"collection",[689,1156,1157],{},"name",[689,1159,1160],{},"text"," (the file as text), ",[689,1163,1055],{},"\nand, to start, ",[689,1166,1167],{},"skipErrors","; ",[689,1170,1171],{},"GET \u002Fapi\u002Fpackages\u002Fimport\u002Fimports\u002F:id"," (the result) and ",[689,1174,1175],{},"GET …\u002Fimports\u002F:id\u002Fproblems.csv",";\n",[689,1178,1179],{},"GET \u002Fapi\u002Fpackages\u002Fimport\u002Fexport.csv?collection=\u003Cslug>&locale=\u003Ccode>",[639,1181,1182,1183,1186,1187,1190,1191,1197,1198,1203],{},"The code and its tests: the module's ",[689,1184,1185],{},"README.md"," in the ",[689,1188,1189],{},"shade-plugin-import"," repository. The decision:\n",[627,1192,1196],{"href":1193,"rel":1194},"https:\u002F\u002Fgithub.com\u002Fshadehq-dev\u002Fshade\u002Fblob\u002Fmain\u002Fdocs\u002Fdecisions\u002F0008-content.md",[1195],"nofollow","0008","\npoint 15; it saves as the member who started it through\n",[627,1199,1202],{"href":1200,"rel":1201},"https:\u002F\u002Fgithub.com\u002Fshadehq-dev\u002Fshade\u002Fblob\u002Fmain\u002Fdocs\u002Fdecisions\u002F0010-permissions.md",[1195],"0010"," point 11.",{"title":1205,"searchDepth":1206,"depth":1206,"links":1207},"",2,[1208,1209,1210,1211,1212,1213,1214,1215],{"id":669,"depth":1206,"text":670},{"id":753,"depth":1206,"text":754},{"id":835,"depth":1206,"text":836},{"id":1024,"depth":1206,"text":1025},{"id":1049,"depth":1206,"text":128},{"id":1062,"depth":1206,"text":1063},{"id":1106,"depth":1206,"text":1107},{"id":1137,"depth":1206,"text":1138},"md",null,{},true,{"title":353,"description":1205},"r4qtttaAOBwGtaLYhLVHVA-brk03hC16cNYPSR1pJHI",[1223,1224],{"title":349,"path":350,"stem":351,"description":1205,"children":-1},{"title":357,"path":358,"stem":359,"description":1205,"children":-1},1796500160389]