[{"data":1,"prerenderedAt":3957},["ShallowReactive",2],{"navigation":3,"\u002Fservices\u002Frouting":927,"mdc-8bt02u-key":3918,"mdc--lo2qla-key":3935},[4,40,114,446,474,498,596,903],{"title":5,"path":6,"stem":7,"children":8},"Architecture","\u002Farchitecture","architecture",[9,14,28,32,36],{"title":10,"path":6,"stem":11,"access":12,"icon":13},"Overview","architecture\u002Findex","public","i-lucide-network",{"title":10,"path":15,"stem":16,"children":17,"access":12,"icon":19},"\u002Farchitecture\u002Fkernel","architecture\u002F1.kernel\u002Findex",[18,20,24],{"title":10,"path":15,"stem":16,"access":12,"icon":19},"i-lucide-box",{"title":21,"path":22,"stem":23,"access":12},"Enclave","\u002Farchitecture\u002Fkernel\u002Fenclave","architecture\u002F1.kernel\u002Fenclave",{"title":25,"path":26,"stem":27,"access":12},"Forking the enclave","\u002Farchitecture\u002Fkernel\u002Fforking-the-enclave","architecture\u002F1.kernel\u002Fforking-the-enclave",{"title":29,"path":30,"stem":31,"access":12},"Ports","\u002Farchitecture\u002Fports","architecture\u002F2.ports",{"title":33,"path":34,"stem":35,"access":12},"Service layers","\u002Farchitecture\u002Fservice-layers","architecture\u002F3.service-layers",{"title":37,"path":38,"stem":39,"access":12},"Families","\u002Farchitecture\u002Ffamilies","architecture\u002F4.families",{"title":41,"path":42,"stem":43,"children":44},"Core","\u002Fcore","core",[45,47,50,53,56,88,97],{"title":10,"path":42,"stem":46,"access":12,"icon":19},"core\u002Findex",{"title":10,"path":48,"stem":49,"access":12},"\u002Fcore\u002F01-overview","core\u002F01-overview",{"title":10,"path":51,"stem":52,"access":12},"\u002Fcore\u002F05-stores","core\u002F05-stores",{"title":10,"path":54,"stem":55,"access":12},"\u002Fcore\u002F06-permissions-and-keyring","core\u002F06-permissions-and-keyring",{"title":10,"path":57,"stem":58,"children":59,"access":12},"\u002Fcore\u002Fnoydb","core\u002F2.noydb\u002Findex",[60,61,65,68,72,76,80,84],{"title":10,"path":57,"stem":58,"access":12},{"title":62,"path":63,"stem":64,"access":12},"Noydb","\u002Fcore\u002Fnoydb\u002Fmethods","core\u002F2.noydb\u002F1.methods",{"title":21,"path":66,"stem":67,"access":12},"\u002Fcore\u002Fnoydb\u002Fenclave","core\u002F2.noydb\u002F2.enclave",{"title":69,"path":70,"stem":71,"access":12},"Secret & keyring","\u002Fcore\u002Fnoydb\u002Fkeyring","core\u002F2.noydb\u002F3.keyring",{"title":73,"path":74,"stem":75,"access":12},"Authentication","\u002Fcore\u002Fnoydb\u002Fauthentication","core\u002F2.noydb\u002F4.authentication",{"title":77,"path":78,"stem":79,"access":12},"Auth recovery","\u002Fcore\u002Fnoydb\u002Frecovery","core\u002F2.noydb\u002F5.recovery",{"title":81,"path":82,"stem":83,"access":12},"Configuration","\u002Fcore\u002Fnoydb\u002Fconfiguration","core\u002F2.noydb\u002F6.configuration",{"title":85,"path":86,"stem":87,"access":12},"Strategies","\u002Fcore\u002Fnoydb\u002Fstrategies","core\u002F2.noydb\u002F7.strategies",{"title":10,"path":89,"stem":90,"children":91,"access":12},"\u002Fcore\u002Fvault","core\u002F3.vault\u002Findex",[92,93],{"title":10,"path":89,"stem":90,"access":12},{"title":94,"path":95,"stem":96,"access":12},"Vault","\u002Fcore\u002Fvault\u002Fmethods","core\u002F3.vault\u002F1.methods",{"title":10,"path":98,"stem":99,"children":100,"access":12},"\u002Fcore\u002Fcollection","core\u002F4.collection\u002Findex",[101,102,106,110],{"title":10,"path":98,"stem":99,"access":12},{"title":103,"path":104,"stem":105,"access":12},"Collection","\u002Fcore\u002Fcollection\u002Fmethods","core\u002F4.collection\u002F1.methods",{"title":107,"path":108,"stem":109,"access":12},"Querying","\u002Fcore\u002Fcollection\u002Fquerying","core\u002F4.collection\u002F2.querying",{"title":111,"path":112,"stem":113,"access":12},"Schema","\u002Fcore\u002Fcollection\u002Fschema","core\u002F4.collection\u002F3.schema",{"title":37,"path":115,"stem":116,"children":117},"\u002Ffamilies","families",[118,121,168,194,208,212,216,294,340],{"title":10,"path":115,"stem":119,"access":12,"icon":120},"families\u002Findex","i-lucide-plug",{"title":122,"path":123,"stem":124,"children":125,"access":12,"icon":127},"as-Exports","\u002Ffamilies\u002Fas","families\u002Fas\u002Findex",[126,128,132,136,140,144,148,152,156,160,164],{"title":122,"path":123,"stem":124,"access":12,"icon":127},"i-lucide-book-open",{"title":129,"path":130,"stem":131,"access":12},"aws-s3","\u002Ffamilies\u002Fas\u002Faws-s3","families\u002Fas\u002Faws-s3",{"title":133,"path":134,"stem":135,"access":12},"blob","\u002Ffamilies\u002Fas\u002Fblob","families\u002Fas\u002Fblob",{"title":137,"path":138,"stem":139,"access":12},"csv","\u002Ffamilies\u002Fas\u002Fcsv","families\u002Fas\u002Fcsv",{"title":141,"path":142,"stem":143,"access":12},"json","\u002Ffamilies\u002Fas\u002Fjson","families\u002Fas\u002Fjson",{"title":145,"path":146,"stem":147,"access":12},"ndjson","\u002Ffamilies\u002Fas\u002Fndjson","families\u002Fas\u002Fndjson",{"title":149,"path":150,"stem":151,"access":12},"noydb","\u002Ffamilies\u002Fas\u002Fnoydb","families\u002Fas\u002Fnoydb",{"title":153,"path":154,"stem":155,"access":12},"sql","\u002Ffamilies\u002Fas\u002Fsql","families\u002Fas\u002Fsql",{"title":157,"path":158,"stem":159,"access":12},"xlsx","\u002Ffamilies\u002Fas\u002Fxlsx","families\u002Fas\u002Fxlsx",{"title":161,"path":162,"stem":163,"access":12},"xml","\u002Ffamilies\u002Fas\u002Fxml","families\u002Fas\u002Fxml",{"title":165,"path":166,"stem":167,"access":12},"zip","\u002Ffamilies\u002Fas\u002Fzip","families\u002Fas\u002Fzip",{"title":169,"path":170,"stem":171,"children":172,"access":12,"icon":127},"at-Seals","\u002Ffamilies\u002Fat","families\u002Fat\u002Findex",[173,174,178,182,186,190],{"title":169,"path":170,"stem":171,"access":12,"icon":127},{"title":175,"path":176,"stem":177,"access":12},"aws-kms","\u002Ffamilies\u002Fat\u002Faws-kms","families\u002Fat\u002Faws-kms",{"title":179,"path":180,"stem":181,"access":12},"azure-keyvault","\u002Ffamilies\u002Fat\u002Fazure-keyvault","families\u002Fat\u002Fazure-keyvault",{"title":183,"path":184,"stem":185,"access":12},"env","\u002Ffamilies\u002Fat\u002Fenv","families\u002Fat\u002Fenv",{"title":187,"path":188,"stem":189,"access":12},"gcp-kms","\u002Ffamilies\u002Fat\u002Fgcp-kms","families\u002Fat\u002Fgcp-kms",{"title":191,"path":192,"stem":193,"access":12},"macos-keychain","\u002Ffamilies\u002Fat\u002Fmacos-keychain","families\u002Fat\u002Fmacos-keychain",{"title":195,"path":196,"stem":197,"children":198,"access":12,"icon":127},"by-Sessions","\u002Ffamilies\u002Fby","families\u002Fby\u002Findex",[199,200,204],{"title":195,"path":196,"stem":197,"access":12,"icon":127},{"title":201,"path":202,"stem":203,"access":12},"peer","\u002Ffamilies\u002Fby\u002Fpeer","families\u002Fby\u002Fpeer",{"title":205,"path":206,"stem":207,"access":12},"tabs","\u002Ffamilies\u002Fby\u002Ftabs","families\u002Fby\u002Ftabs",{"title":209,"path":210,"stem":211,"access":12},"Classifying a package","\u002Ffamilies\u002Fclassification","families\u002Fclassification",{"title":213,"path":214,"stem":215,"access":12},"Command-line tools","\u002Ffamilies\u002Fcli","families\u002Fcli",{"title":217,"path":218,"stem":219,"children":220,"access":12,"icon":127},"in-Frameworks","\u002Ffamilies\u002Fin","families\u002Fin\u002Findex",[221,222,226,230,234,238,242,246,250,254,258,262,266,270,274,278,282,286,290],{"title":217,"path":218,"stem":219,"access":12,"icon":127},{"title":223,"path":224,"stem":225,"access":12},"ai","\u002Ffamilies\u002Fin\u002Fai","families\u002Fin\u002Fai",{"title":227,"path":228,"stem":229,"access":12},"devtools","\u002Ffamilies\u002Fin\u002Fdevtools","families\u002Fin\u002Fdevtools",{"title":231,"path":232,"stem":233,"access":12},"devtools-tui","\u002Ffamilies\u002Fin\u002Fdevtools-tui","families\u002Fin\u002Fdevtools-tui",{"title":235,"path":236,"stem":237,"access":12},"liff","\u002Ffamilies\u002Fin\u002Fliff","families\u002Fin\u002Fliff",{"title":239,"path":240,"stem":241,"access":12},"nextjs","\u002Ffamilies\u002Fin\u002Fnextjs","families\u002Fin\u002Fnextjs",{"title":243,"path":244,"stem":245,"access":12},"nuxt","\u002Ffamilies\u002Fin\u002Fnuxt","families\u002Fin\u002Fnuxt",{"title":247,"path":248,"stem":249,"access":12},"pinia","\u002Ffamilies\u002Fin\u002Fpinia","families\u002Fin\u002Fpinia",{"title":251,"path":252,"stem":253,"access":12},"pwa","\u002Ffamilies\u002Fin\u002Fpwa","families\u002Fin\u002Fpwa",{"title":255,"path":256,"stem":257,"access":12},"react","\u002Ffamilies\u002Fin\u002Freact","families\u002Fin\u002Freact",{"title":259,"path":260,"stem":261,"access":12},"relay","\u002Ffamilies\u002Fin\u002Frelay","families\u002Fin\u002Frelay",{"title":263,"path":264,"stem":265,"access":12},"rest","\u002Ffamilies\u002Fin\u002Frest","families\u002Fin\u002Frest",{"title":267,"path":268,"stem":269,"access":12},"solid","\u002Ffamilies\u002Fin\u002Fsolid","families\u002Fin\u002Fsolid",{"title":271,"path":272,"stem":273,"access":12},"svelte","\u002Ffamilies\u002Fin\u002Fsvelte","families\u002Fin\u002Fsvelte",{"title":275,"path":276,"stem":277,"access":12},"tanstack-query","\u002Ffamilies\u002Fin\u002Ftanstack-query","families\u002Fin\u002Ftanstack-query",{"title":279,"path":280,"stem":281,"access":12},"tanstack-table","\u002Ffamilies\u002Fin\u002Ftanstack-table","families\u002Fin\u002Ftanstack-table",{"title":283,"path":284,"stem":285,"access":12},"vue","\u002Ffamilies\u002Fin\u002Fvue","families\u002Fin\u002Fvue",{"title":287,"path":288,"stem":289,"access":12},"yjs","\u002Ffamilies\u002Fin\u002Fyjs","families\u002Fin\u002Fyjs",{"title":291,"path":292,"stem":293,"access":12},"zustand","\u002Ffamilies\u002Fin\u002Fzustand","families\u002Fin\u002Fzustand",{"title":295,"path":296,"stem":297,"children":298,"access":12,"icon":127},"on-Auth","\u002Ffamilies\u002Fon","families\u002Fon\u002Findex",[299,300,304,308,312,316,320,324,328,332,336],{"title":295,"path":296,"stem":297,"access":12,"icon":127},{"title":301,"path":302,"stem":303,"access":12},"email-otp","\u002Ffamilies\u002Fon\u002Femail-otp","families\u002Fon\u002Femail-otp",{"title":305,"path":306,"stem":307,"access":12},"magic-link","\u002Ffamilies\u002Fon\u002Fmagic-link","families\u002Fon\u002Fmagic-link",{"title":309,"path":310,"stem":311,"access":12},"oidc","\u002Ffamilies\u002Fon\u002Foidc","families\u002Fon\u002Foidc",{"title":313,"path":314,"stem":315,"access":12},"password","\u002Ffamilies\u002Fon\u002Fpassword","families\u002Fon\u002Fpassword",{"title":317,"path":318,"stem":319,"access":12},"pin","\u002Ffamilies\u002Fon\u002Fpin","families\u002Fon\u002Fpin",{"title":321,"path":322,"stem":323,"access":12},"recovery","\u002Ffamilies\u002Fon\u002Frecovery","families\u002Fon\u002Frecovery",{"title":325,"path":326,"stem":327,"access":12},"shamir","\u002Ffamilies\u002Fon\u002Fshamir","families\u002Fon\u002Fshamir",{"title":329,"path":330,"stem":331,"access":12},"threat","\u002Ffamilies\u002Fon\u002Fthreat","families\u002Fon\u002Fthreat",{"title":333,"path":334,"stem":335,"access":12},"totp","\u002Ffamilies\u002Fon\u002Ftotp","families\u002Fon\u002Ftotp",{"title":337,"path":338,"stem":339,"access":12},"webauthn","\u002Ffamilies\u002Fon\u002Fwebauthn","families\u002Fon\u002Fwebauthn",{"title":341,"path":342,"stem":343,"children":344,"access":12,"icon":127},"to-Stores","\u002Ffamilies\u002Fto","families\u002Fto\u002Findex",[345,346,350,353,357,361,365,370,374,378,382,386,390,394,398,402,406,410,414,417,421,425,429,434,438,442],{"title":341,"path":342,"stem":343,"access":12,"icon":127},{"title":347,"path":348,"stem":349,"access":12},"aws-dynamo","\u002Ffamilies\u002Fto\u002Faws-dynamo","families\u002Fto\u002Faws-dynamo",{"title":129,"path":351,"stem":352,"access":12},"\u002Ffamilies\u002Fto\u002Faws-s3","families\u002Fto\u002Faws-s3",{"title":354,"path":355,"stem":356,"access":12},"browser-fs","\u002Ffamilies\u002Fto\u002Fbrowser-fs","families\u002Fto\u002Fbrowser-fs",{"title":358,"path":359,"stem":360,"access":12},"browser-idb","\u002Ffamilies\u002Fto\u002Fbrowser-idb","families\u002Fto\u002Fbrowser-idb",{"title":362,"path":363,"stem":364,"access":12},"browser-local","\u002Ffamilies\u002Fto\u002Fbrowser-local","families\u002Fto\u002Fbrowser-local",{"title":366,"path":367,"stem":368,"access":12,"icon":369},"Choosing a store","\u002Ffamilies\u002Fto\u002Fchoosing-a-store","families\u002Fto\u002Fchoosing-a-store","i-lucide-split",{"title":371,"path":372,"stem":373,"access":12},"cloudflare-d1","\u002Ffamilies\u002Fto\u002Fcloudflare-d1","families\u002Fto\u002Fcloudflare-d1",{"title":375,"path":376,"stem":377,"access":12},"cloudflare-r2","\u002Ffamilies\u002Fto\u002Fcloudflare-r2","families\u002Fto\u002Fcloudflare-r2",{"title":379,"path":380,"stem":381,"access":12},"drive","\u002Ffamilies\u002Fto\u002Fdrive","families\u002Fto\u002Fdrive",{"title":383,"path":384,"stem":385,"access":12},"file","\u002Ffamilies\u002Fto\u002Ffile","families\u002Fto\u002Ffile",{"title":387,"path":388,"stem":389,"access":12},"icloud","\u002Ffamilies\u002Fto\u002Ficloud","families\u002Fto\u002Ficloud",{"title":391,"path":392,"stem":393,"access":12},"memory","\u002Ffamilies\u002Fto\u002Fmemory","families\u002Fto\u002Fmemory",{"title":395,"path":396,"stem":397,"access":12},"meter","\u002Ffamilies\u002Fto\u002Fmeter","families\u002Fto\u002Fmeter",{"title":399,"path":400,"stem":401,"access":12},"mysql","\u002Ffamilies\u002Fto\u002Fmysql","families\u002Fto\u002Fmysql",{"title":403,"path":404,"stem":405,"access":12},"nfs","\u002Ffamilies\u002Fto\u002Fnfs","families\u002Fto\u002Fnfs",{"title":407,"path":408,"stem":409,"access":12},"postgres","\u002Ffamilies\u002Fto\u002Fpostgres","families\u002Fto\u002Fpostgres",{"title":411,"path":412,"stem":413,"access":12},"probe","\u002Ffamilies\u002Fto\u002Fprobe","families\u002Fto\u002Fprobe",{"title":263,"path":415,"stem":416,"access":12},"\u002Ffamilies\u002Fto\u002Frest","families\u002Fto\u002Frest",{"title":418,"path":419,"stem":420,"access":12},"smb","\u002Ffamilies\u002Fto\u002Fsmb","families\u002Fto\u002Fsmb",{"title":422,"path":423,"stem":424,"access":12},"sqlite","\u002Ffamilies\u002Fto\u002Fsqlite","families\u002Fto\u002Fsqlite",{"title":426,"path":427,"stem":428,"access":12},"ssh","\u002Ffamilies\u002Fto\u002Fssh","families\u002Fto\u002Fssh",{"title":430,"path":431,"stem":432,"access":12,"icon":433},"Store-locator descriptors","\u002Ffamilies\u002Fto\u002Fstore-locator","families\u002Fto\u002Fstore-locator","i-lucide-map-pin",{"title":435,"path":436,"stem":437,"access":12},"supabase","\u002Ffamilies\u002Fto\u002Fsupabase","families\u002Fto\u002Fsupabase",{"title":439,"path":440,"stem":441,"access":12},"turso","\u002Ffamilies\u002Fto\u002Fturso","families\u002Fto\u002Fturso",{"title":443,"path":444,"stem":445,"access":12},"webdav","\u002Ffamilies\u002Fto\u002Fwebdav","families\u002Fto\u002Fwebdav",{"title":447,"path":448,"stem":449,"children":450},"Faq","\u002Ffaq","faq",[451,454,458,462,466,470],{"title":10,"path":448,"stem":452,"access":12,"icon":453},"faq\u002Findex","i-lucide-circle-help",{"title":455,"path":456,"stem":457,"access":12},"Where can noy-db run?","\u002Ffaq\u002Fwhere-can-noy-db-run","faq\u002F1.where-can-noy-db-run",{"title":459,"path":460,"stem":461,"access":12},"Native mobile & PWA","\u002Ffaq\u002Fmobile-and-pwa","faq\u002F2.mobile-and-pwa",{"title":463,"path":464,"stem":465,"access":12},"Threat model","\u002Ffaq\u002Fthreat-model","faq\u002F3.threat-model",{"title":467,"path":468,"stem":469,"access":12},"Community & ecosystem","\u002Ffaq\u002Fcommunity-and-ecosystem","faq\u002F4.community-and-ecosystem",{"title":471,"path":472,"stem":473,"access":12},"Licensing","\u002Ffaq\u002Flicensing","faq\u002F5.licensing",{"title":475,"path":476,"stem":477,"children":478},"Glossary","\u002Fglossary","glossary",[479,482,486,490,494],{"title":10,"path":476,"stem":480,"access":12,"icon":481},"glossary\u002Findex","i-lucide-book-a",{"title":483,"path":484,"stem":485,"access":12},"Core vocabulary","\u002Fglossary\u002Fcore-vocabulary","glossary\u002Fcore-vocabulary",{"title":487,"path":488,"stem":489,"access":12},"Deletion vocabulary","\u002Fglossary\u002Fdeletion","glossary\u002Fdeletion",{"title":491,"path":492,"stem":493,"access":12},"Satellite collection vocabulary","\u002Fglossary\u002Fsatellite-collections","glossary\u002Fsatellite-collections",{"title":495,"path":496,"stem":497,"access":12},"Schema migration vocabulary","\u002Fglossary\u002Fschema-migration","glossary\u002Fschema-migration",{"title":499,"path":500,"stem":501,"children":502},"Recipes","\u002Frecipes","recipes",[503,506,510,514,518,522,526,530,534,538,542,546,550,554,558,562,567,571,575,580,584,588,592],{"title":10,"path":500,"stem":504,"access":12,"icon":505},"recipes\u002Findex","i-lucide-play",{"title":507,"path":508,"stem":509,"access":12},"Accounting app","\u002Frecipes\u002Faccounting-app","recipes\u002Faccounting-app",{"title":511,"path":512,"stem":513,"access":12},"Analytics app","\u002Frecipes\u002Fanalytics-app","recipes\u002Fanalytics-app",{"title":515,"path":516,"stem":517,"access":12},"Attestation verifier","\u002Frecipes\u002Fattestation-verifier","recipes\u002Fattestation-verifier",{"title":519,"path":520,"stem":521,"access":12},"AWS-KMS attestation","\u002Frecipes\u002Faws-kms-pdf-attestation","recipes\u002Faws-kms-pdf-attestation",{"title":523,"path":524,"stem":525,"access":12},"Browser durability","\u002Frecipes\u002Fbrowser-durability","recipes\u002Fbrowser-durability",{"title":527,"path":528,"stem":529,"access":12},"Production cloud store","\u002Frecipes\u002Fcloud-store","recipes\u002Fcloud-store",{"title":531,"path":532,"stem":533,"access":12},"Compose your own setup","\u002Frecipes\u002Fcompose-your-own","recipes\u002Fcompose-your-own",{"title":535,"path":536,"stem":537,"access":12},"Confidential HR records","\u002Frecipes\u002Fconfidential-hr","recipes\u002Fconfidential-hr",{"title":539,"path":540,"stem":541,"access":12},"Composing an echo secret","\u002Frecipes\u002Fecho-secret-enrollment","recipes\u002Fecho-secret-enrollment",{"title":543,"path":544,"stem":545,"access":12},"Email archive","\u002Frecipes\u002Femail-archive","recipes\u002Femail-archive",{"title":547,"path":548,"stem":549,"access":12},"Email archive — threads & revisions","\u002Frecipes\u002Femail-archive-threads-revisions","recipes\u002Femail-archive-threads-revisions",{"title":551,"path":552,"stem":553,"access":12},"Export & portability","\u002Frecipes\u002Fexport-portability","recipes\u002Fexport-portability",{"title":555,"path":556,"stem":557,"access":12},"Passwordless OIDC (AWS Cognito)","\u002Frecipes\u002Fpasswordless-oidc","recipes\u002Fpasswordless-oidc",{"title":559,"path":560,"stem":561,"access":12},"Personal notebook","\u002Frecipes\u002Fpersonal-notebook","recipes\u002Fpersonal-notebook",{"title":563,"path":564,"stem":565,"access":12,"icon":566},"Playgrounds","\u002Frecipes\u002Fplaygrounds","recipes\u002Fplaygrounds","i-lucide-gamepad-2",{"title":568,"path":569,"stem":570,"access":12},"React invoice app","\u002Frecipes\u002Freact-invoices","recipes\u002Freact-invoices",{"title":572,"path":573,"stem":574,"access":12},"Collaborative app","\u002Frecipes\u002Frealtime-crdt-app","recipes\u002Frealtime-crdt-app",{"title":576,"path":577,"stem":578,"access":12,"icon":579},"Run the showcases","\u002Frecipes\u002Frun-the-showcases","recipes\u002Frun-the-showcases","i-lucide-flask-conical",{"title":581,"path":582,"stem":583,"access":12},"Search & RAG","\u002Frecipes\u002Fsearch-rag","recipes\u002Fsearch-rag",{"title":585,"path":586,"stem":587,"access":12},"Team vault topology","\u002Frecipes\u002Fteam-vault-topology","recipes\u002Fteam-vault-topology",{"title":589,"path":590,"stem":591,"access":12},"Unlock ceremonies","\u002Frecipes\u002Funlock-ceremonies","recipes\u002Funlock-ceremonies",{"title":593,"path":594,"stem":595,"access":12},"User preferences","\u002Frecipes\u002Fuser-preferences","recipes\u002Fuser-preferences",{"title":597,"path":598,"stem":599,"children":600},"Services","\u002Fservices","services",[601,604,608,612,616,620,624,628,632,636,640,644,648,652,656,660,664,668,672,676,680,684,688,692,696,700,704,710,714,718,722,726,730,734,738,742,746,750,755,759,763,767,771,775,779,783,787,791,795,799,803,807,811,815,819,823,827,831,835,839,843,847,851,855,859,863,867,871,875,879,883,887,891,895,899],{"title":10,"path":598,"stem":602,"access":12,"icon":603},"services\u002Findex","i-lucide-layers",{"title":605,"path":606,"stem":607,"access":12},"archive","\u002Fservices\u002Farchive","services\u002Farchive",{"title":609,"path":610,"stem":611,"access":12},"attestation","\u002Fservices\u002Fattestation","services\u002Fattestation",{"title":613,"path":614,"stem":615,"access":12},"auth-introspection","\u002Fservices\u002Fauth-introspection","services\u002Fauth-introspection",{"title":617,"path":618,"stem":619,"access":12},"auth-landscape","\u002Fservices\u002Fauth-landscape","services\u002Fauth-landscape",{"title":621,"path":622,"stem":623,"access":12},"blobs","\u002Fservices\u002Fblobs","services\u002Fblobs",{"title":625,"path":626,"stem":627,"access":12},"broker","\u002Fservices\u002Fbroker","services\u002Fbroker",{"title":629,"path":630,"stem":631,"access":12},"bundle","\u002Fservices\u002Fbundle","services\u002Fbundle",{"title":633,"path":634,"stem":635,"access":12},"classified","\u002Fservices\u002Fclassified","services\u002Fclassified",{"title":637,"path":638,"stem":639,"access":12},"computed","\u002Fservices\u002Fcomputed","services\u002Fcomputed",{"title":641,"path":642,"stem":643,"access":12},"consent","\u002Fservices\u002Fconsent","services\u002Fconsent",{"title":645,"path":646,"stem":647,"access":12},"cover","\u002Fservices\u002Fcover","services\u002Fcover",{"title":649,"path":650,"stem":651,"access":12},"coverage","\u002Fservices\u002Fcoverage","services\u002Fcoverage",{"title":653,"path":654,"stem":655,"access":12},"crdt","\u002Fservices\u002Fcrdt","services\u002Fcrdt",{"title":657,"path":658,"stem":659,"access":12},"cross-join","\u002Fservices\u002Fcross-join","services\u002Fcross-join",{"title":661,"path":662,"stem":663,"access":12},"custody","\u002Fservices\u002Fcustody","services\u002Fcustody",{"title":665,"path":666,"stem":667,"access":12},"derivations","\u002Fservices\u002Fderivations","services\u002Fderivations",{"title":669,"path":670,"stem":671,"access":12},"directory","\u002Fservices\u002Fdirectory","services\u002Fdirectory",{"title":673,"path":674,"stem":675,"access":12},"search — AI","\u002Fservices\u002Fembeddings","services\u002Fembeddings",{"title":677,"path":678,"stem":679,"access":12},"Field metadata","\u002Fservices\u002Ffield-metadata","services\u002Ffield-metadata",{"title":681,"path":682,"stem":683,"access":12},"Foreign refs","\u002Fservices\u002Fforeign-refs","services\u002Fforeign-refs",{"title":685,"path":686,"stem":687,"access":12},"forget","\u002Fservices\u002Fforget","services\u002Fforget",{"title":689,"path":690,"stem":691,"access":12},"governance","\u002Fservices\u002Fgovernance","services\u002Fgovernance",{"title":693,"path":694,"stem":695,"access":12},"guards","\u002Fservices\u002Fguards","services\u002Fguards",{"title":697,"path":698,"stem":699,"access":12},"history","\u002Fservices\u002Fhistory","services\u002Fhistory",{"title":701,"path":702,"stem":703,"access":12},"i18n","\u002Fservices\u002Fi18n","services\u002Fi18n",{"title":705,"path":706,"stem":707,"children":708,"access":12},"indexing","\u002Fservices\u002Findexing","services\u002Findexing",[709],{"title":705,"path":706,"stem":707,"access":12},{"title":711,"path":712,"stem":713,"access":12},"introspection","\u002Fservices\u002Fintrospection","services\u002Fintrospection",{"title":715,"path":716,"stem":717,"access":12},"joins","\u002Fservices\u002Fjoins","services\u002Fjoins",{"title":719,"path":720,"stem":721,"access":12},"lazy","\u002Fservices\u002Flazy","services\u002Flazy",{"title":723,"path":724,"stem":725,"access":12},"links","\u002Fservices\u002Flinks","services\u002Flinks",{"title":727,"path":728,"stem":729,"access":12},"live","\u002Fservices\u002Flive","services\u002Flive",{"title":731,"path":732,"stem":733,"access":12},"lookup","\u002Fservices\u002Flookup","services\u002Flookup",{"title":735,"path":736,"stem":737,"access":12},"manifest","\u002Fservices\u002Fmanifest","services\u002Fmanifest",{"title":739,"path":740,"stem":741,"access":12},"materialized-views","\u002Fservices\u002Fmaterialized-views","services\u002Fmaterialized-views",{"title":743,"path":744,"stem":745,"access":12},"Metadata ladder","\u002Fservices\u002Fmetadata-ladder","services\u002Fmetadata-ladder",{"title":747,"path":748,"stem":749,"access":12},"Metadata riders","\u002Fservices\u002Fmetadata-riders","services\u002Fmetadata-riders",{"title":751,"path":752,"stem":753,"access":12,"badge":754},"metrics","\u002Fservices\u002Fmetrics","services\u002Fmetrics","Planned",{"title":756,"path":757,"stem":758,"access":12,"badge":754},"migrations","\u002Fservices\u002Fmigrations","services\u002Fmigrations",{"title":760,"path":761,"stem":762,"access":12},"money","\u002Fservices\u002Fmoney","services\u002Fmoney",{"title":764,"path":765,"stem":766,"access":12},"numbering","\u002Fservices\u002Fnumbering","services\u002Fnumbering",{"title":768,"path":769,"stem":770,"access":12},"overlay-views","\u002Fservices\u002Foverlay-views","services\u002Foverlay-views",{"title":772,"path":773,"stem":774,"access":12,"badge":754},"partitioning","\u002Fservices\u002Fpartitioning","services\u002Fpartitioning",{"title":776,"path":777,"stem":778,"access":12},"periods","\u002Fservices\u002Fperiods","services\u002Fperiods",{"title":780,"path":781,"stem":782,"access":12},"persisted-schemas","\u002Fservices\u002Fpersisted-schemas","services\u002Fpersisted-schemas",{"title":784,"path":785,"stem":786,"access":12},"plaintext-bypass","\u002Fservices\u002Fplaintext-bypass","services\u002Fplaintext-bypass",{"title":788,"path":789,"stem":790,"access":12},"pod-redirect","\u002Fservices\u002Fpod-redirect","services\u002Fpod-redirect",{"title":792,"path":793,"stem":794,"access":12},"pod-signature","\u002Fservices\u002Fpod-signature","services\u002Fpod-signature",{"title":796,"path":797,"stem":798,"access":12},"policy","\u002Fservices\u002Fpolicy","services\u002Fpolicy",{"title":800,"path":801,"stem":802,"access":12},"portability","\u002Fservices\u002Fportability","services\u002Fportability",{"title":804,"path":805,"stem":806,"access":12},"reduce","\u002Fservices\u002Freduce","services\u002Freduce",{"title":808,"path":809,"stem":810,"access":12},"routing","\u002Fservices\u002Frouting","services\u002Frouting",{"title":812,"path":813,"stem":814,"access":12},"satellites","\u002Fservices\u002Fsatellites","services\u002Fsatellites",{"title":816,"path":817,"stem":818,"access":12},"schema-identifiers","\u002Fservices\u002Fschema-identifiers","services\u002Fschema-identifiers",{"title":820,"path":821,"stem":822,"access":12},"schema-update","\u002Fservices\u002Fschema-update","services\u002Fschema-update",{"title":824,"path":825,"stem":826,"access":12},"sealed-record","\u002Fservices\u002Fsealed-record","services\u002Fsealed-record",{"title":828,"path":829,"stem":830,"access":12},"sealing provider id","\u002Fservices\u002Fsealing-pid-stability","services\u002Fsealing-pid-stability",{"title":832,"path":833,"stem":834,"access":12},"search — full-text","\u002Fservices\u002Fsearch","services\u002Fsearch",{"title":836,"path":837,"stem":838,"access":12},"sequence","\u002Fservices\u002Fsequence","services\u002Fsequence",{"title":840,"path":841,"stem":842,"access":12},"session","\u002Fservices\u002Fsession","services\u002Fsession",{"title":844,"path":845,"stem":846,"access":12},"session-tiers","\u002Fservices\u002Fsession-tiers","services\u002Fsession-tiers",{"title":848,"path":849,"stem":850,"access":12},"shadow","\u002Fservices\u002Fshadow","services\u002Fshadow",{"title":852,"path":853,"stem":854,"access":12},"share-link","\u002Fservices\u002Fshare-link","services\u002Fshare-link",{"title":856,"path":857,"stem":858,"access":12},"snapshots","\u002Fservices\u002Fsnapshots","services\u002Fsnapshots",{"title":860,"path":861,"stem":862,"access":12},"store capabilities","\u002Fservices\u002Fstorage-capability-matrix","services\u002Fstorage-capability-matrix",{"title":864,"path":865,"stem":866,"access":12},"sync","\u002Fservices\u002Fsync","services\u002Fsync",{"title":868,"path":869,"stem":870,"access":12},"team","\u002Fservices\u002Fteam","services\u002Fteam",{"title":872,"path":873,"stem":874,"access":12},"tiers","\u002Fservices\u002Ftiers","services\u002Ftiers",{"title":876,"path":877,"stem":878,"access":12},"transactions","\u002Fservices\u002Ftransactions","services\u002Ftransactions",{"title":880,"path":881,"stem":882,"access":12},"partitions","\u002Fservices\u002Ftransferable-partitions","services\u002Ftransferable-partitions",{"title":884,"path":885,"stem":886,"access":12},"user-envelope","\u002Fservices\u002Fuser-envelope","services\u002Fuser-envelope",{"title":888,"path":889,"stem":890,"access":12,"badge":754},"validation","\u002Fservices\u002Fvalidation","services\u002Fvalidation",{"title":892,"path":893,"stem":894,"access":12},"vault-head","\u002Fservices\u002Fvault-head","services\u002Fvault-head",{"title":896,"path":897,"stem":898,"access":12},"via","\u002Fservices\u002Fvia","services\u002Fvia",{"title":900,"path":901,"stem":902,"access":12},"withdrawal","\u002Fservices\u002Fwithdrawal","services\u002Fwithdrawal",{"title":904,"path":905,"stem":906,"children":907},"Start","\u002Fstart","start",[908,911,915,919,923],{"title":10,"path":905,"stem":909,"access":12,"icon":910},"start\u002Findex","i-lucide-flag",{"title":912,"path":913,"stem":914,"access":12},"Install","\u002Fstart\u002Finstall","start\u002F1.install",{"title":916,"path":917,"stem":918,"access":12},"Your first vault","\u002Fstart\u002Ffirst-vault","start\u002F2.first-vault",{"title":920,"path":921,"stem":922,"access":12},"Your first service","\u002Fstart\u002Ffirst-service","start\u002F3.first-service",{"title":924,"path":925,"stem":926,"access":12},"See the ciphertext","\u002Fstart\u002Fsee-the-ciphertext","start\u002F4.see-the-ciphertext",{"id":928,"title":808,"access":12,"apiToc":929,"body":930,"category":3909,"description":3910,"extension":3911,"meta":3912,"navigation":3909,"nest":3913,"path":809,"seo":3914,"sinceVersion":3909,"status":3915,"stem":810,"subtitle":3909,"tier":3916,"tocExternal":3909,"__hash__":3917},"docs\u002Fservices\u002Frouting.md",false,{"type":931,"value":932,"toc":3885},"minimark",[933,936,940,945,972,1001,1005,1024,1028,1659,1664,1668,1673,2001,2022,2061,2065,2310,2432,2436,2594,2642,2646,2652,2681,2690,2697,2981,3006,3012,3198,3223,3227,3249,3280,3286,3351,3361,3364,3599,3603,3619,3623,3674,3678,3829,3833,3881],[934,935,808],"h1",{"id":808},[937,938],"service-meta",{":rows":939},"[{\"label\":\"Subpath\",\"value\":\"`@noy-db\u002Fhub` (root export)\"},{\"label\":\"Type\",\"value\":\"Core feature — `routeStore`, `wrapStore`, and the middleware factories are direct named imports, always available.\"}]",[941,942,944],"h2",{"id":943},"what-it-does","What it does",[946,947,948,949,953,954,958,959,963,964,967,968,971],"p",{},"Multi-store routing lets a single noy-db ",[950,951,952],"strong",{},"vault"," (the end-to-end-encrypted document store — see ",[955,956,957],"a",{"href":48},"Vaults & collections",") spread its data across more than one storage backend: most collections on one database, blob attachments on cheap object storage, an audit-log collection on its own bucket, aging records migrated to a cold archive. ",[960,961,962],"code",{},"routeStore()"," builds that multiplexer; the result satisfies the same store contract as a single backend (see ",[955,965,966],{"href":51},"Stores","), so ",[960,969,970],{},"createNoydb({ store })"," never has to know the difference.",[946,973,974,975,978,979,982,983,985,986,988,989,992,993,996,997,1000],{},"Alongside it, ",[960,976,977],{},"wrapStore()"," composes resilience and observability ",[950,980,981],{},"middleware"," around any store, routed or not: retry with backoff, a circuit breaker, health-check auto-suspend, a read-through cache, structured logging, and metrics. Both ",[960,984,962],{}," and ",[960,987,977],{}," are ordinary named exports of ",[960,990,991],{},"@noy-db\u002Fhub","'s main entry point — there's no ",[960,994,995],{},"with*()"," opt-in factory to call, and no separate subpath to import them from selectively. They're part of the core the same way ",[960,998,999],{},"createNoydb"," is.",[941,1002,1004],{"id":1003},"when-you-need-it","When you need it",[1006,1007,1008,1012,1015,1018,1021],"ul",{},[1009,1010,1011],"li",{},"Hot\u002Fcold tiering — recent records stay on a fast\u002Flocal store, older ones migrate to cheap archive storage",[1009,1013,1014],{},"Multi-backend layouts — blob attachments to S3\u002FR2, an audit-log collection to its own bucket, one vault region's data to an EU-only store",[1009,1016,1017],{},"Resilience around a flaky backend — retry transient failures, trip a circuit breaker on persistent ones, auto-suspend on failed health checks",[1009,1019,1020],{},"Observability — structured logging or a metrics callback around every store call",[1009,1022,1023],{},"Maintenance windows — suspend a backend, optionally buffer writes, resume and replay them later",[941,1025,1027],{"id":1026},"setup","Setup",[1029,1030,1035],"pre",{"className":1031,"code":1032,"language":1033,"meta":1034,"style":1034},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { createNoydb, routeStore, wrapStore, withRetry, withCircuitBreaker, withMetrics } from '@noy-db\u002Fhub'\nimport { toAwsDynamo } from '@noy-db\u002Fto-aws-dynamo'\nimport { toCloudflareR2 } from '@noy-db\u002Fto-cloudflare-r2'\n\nconst routed = routeStore({\n  default: toAwsDynamo({ table: 'myapp' }),\n  blobs: toCloudflareR2({\n    accountId: 'acct-1',\n    bucket: 'myapp-blobs',\n    credentials: async () => ({ kind: 'aws', accessKeyId: '…', secretAccessKey: '…' }),\n  }),\n  routes: {\n    auditLog: toCloudflareR2({\n      accountId: 'acct-1',\n      bucket: 'myapp-audit',\n      credentials: async () => ({ kind: 'aws', accessKeyId: '…', secretAccessKey: '…' }),\n    }),\n  },\n})\n\nconst resilient = wrapStore(\n  routed,\n  withRetry({ maxRetries: 3 }),\n  withCircuitBreaker({ failureThreshold: 5 }),\n  withMetrics({ onOperation: (op) => metrics.record(op) }),\n)\n\nconst db = await createNoydb({ store: resilient, user: 'alice', secret: 'correct horse battery staple' })\n","ts","",[960,1036,1037,1095,1116,1137,1144,1166,1204,1218,1235,1252,1319,1329,1340,1354,1370,1387,1445,1455,1461,1470,1475,1490,1498,1523,1547,1590,1595,1600],{"__ignoreMap":1034},[1038,1039,1042,1046,1050,1054,1057,1060,1062,1065,1067,1070,1072,1075,1077,1080,1083,1086,1089,1092],"span",{"class":1040,"line":1041},"line",1,[1038,1043,1045],{"class":1044},"s7zQu","import",[1038,1047,1049],{"class":1048},"sMK4o"," {",[1038,1051,1053],{"class":1052},"sTEyZ"," createNoydb",[1038,1055,1056],{"class":1048},",",[1038,1058,1059],{"class":1052}," routeStore",[1038,1061,1056],{"class":1048},[1038,1063,1064],{"class":1052}," wrapStore",[1038,1066,1056],{"class":1048},[1038,1068,1069],{"class":1052}," withRetry",[1038,1071,1056],{"class":1048},[1038,1073,1074],{"class":1052}," withCircuitBreaker",[1038,1076,1056],{"class":1048},[1038,1078,1079],{"class":1052}," withMetrics",[1038,1081,1082],{"class":1048}," }",[1038,1084,1085],{"class":1044}," from",[1038,1087,1088],{"class":1048}," '",[1038,1090,991],{"class":1091},"sfazB",[1038,1093,1094],{"class":1048},"'\n",[1038,1096,1098,1100,1102,1105,1107,1109,1111,1114],{"class":1040,"line":1097},2,[1038,1099,1045],{"class":1044},[1038,1101,1049],{"class":1048},[1038,1103,1104],{"class":1052}," toAwsDynamo",[1038,1106,1082],{"class":1048},[1038,1108,1085],{"class":1044},[1038,1110,1088],{"class":1048},[1038,1112,1113],{"class":1091},"@noy-db\u002Fto-aws-dynamo",[1038,1115,1094],{"class":1048},[1038,1117,1119,1121,1123,1126,1128,1130,1132,1135],{"class":1040,"line":1118},3,[1038,1120,1045],{"class":1044},[1038,1122,1049],{"class":1048},[1038,1124,1125],{"class":1052}," toCloudflareR2",[1038,1127,1082],{"class":1048},[1038,1129,1085],{"class":1044},[1038,1131,1088],{"class":1048},[1038,1133,1134],{"class":1091},"@noy-db\u002Fto-cloudflare-r2",[1038,1136,1094],{"class":1048},[1038,1138,1140],{"class":1040,"line":1139},4,[1038,1141,1143],{"emptyLinePlaceholder":1142},true,"\n",[1038,1145,1147,1151,1154,1157,1160,1163],{"class":1040,"line":1146},5,[1038,1148,1150],{"class":1149},"spNyl","const",[1038,1152,1153],{"class":1052}," routed ",[1038,1155,1156],{"class":1048},"=",[1038,1158,1059],{"class":1159},"s2Zo4",[1038,1161,1162],{"class":1052},"(",[1038,1164,1165],{"class":1048},"{\n",[1038,1167,1169,1173,1176,1178,1180,1183,1186,1188,1190,1193,1196,1198,1201],{"class":1040,"line":1168},6,[1038,1170,1172],{"class":1171},"swJcz","  default",[1038,1174,1175],{"class":1048},":",[1038,1177,1104],{"class":1159},[1038,1179,1162],{"class":1052},[1038,1181,1182],{"class":1048},"{",[1038,1184,1185],{"class":1171}," table",[1038,1187,1175],{"class":1048},[1038,1189,1088],{"class":1048},[1038,1191,1192],{"class":1091},"myapp",[1038,1194,1195],{"class":1048},"'",[1038,1197,1082],{"class":1048},[1038,1199,1200],{"class":1052},")",[1038,1202,1203],{"class":1048},",\n",[1038,1205,1207,1210,1212,1214,1216],{"class":1040,"line":1206},7,[1038,1208,1209],{"class":1171},"  blobs",[1038,1211,1175],{"class":1048},[1038,1213,1125],{"class":1159},[1038,1215,1162],{"class":1052},[1038,1217,1165],{"class":1048},[1038,1219,1221,1224,1226,1228,1231,1233],{"class":1040,"line":1220},8,[1038,1222,1223],{"class":1171},"    accountId",[1038,1225,1175],{"class":1048},[1038,1227,1088],{"class":1048},[1038,1229,1230],{"class":1091},"acct-1",[1038,1232,1195],{"class":1048},[1038,1234,1203],{"class":1048},[1038,1236,1238,1241,1243,1245,1248,1250],{"class":1040,"line":1237},9,[1038,1239,1240],{"class":1171},"    bucket",[1038,1242,1175],{"class":1048},[1038,1244,1088],{"class":1048},[1038,1246,1247],{"class":1091},"myapp-blobs",[1038,1249,1195],{"class":1048},[1038,1251,1203],{"class":1048},[1038,1253,1255,1258,1260,1263,1266,1269,1272,1274,1277,1279,1281,1284,1286,1288,1291,1293,1295,1298,1300,1302,1305,1307,1309,1311,1313,1315,1317],{"class":1040,"line":1254},10,[1038,1256,1257],{"class":1159},"    credentials",[1038,1259,1175],{"class":1048},[1038,1261,1262],{"class":1149}," async",[1038,1264,1265],{"class":1048}," ()",[1038,1267,1268],{"class":1149}," =>",[1038,1270,1271],{"class":1052}," (",[1038,1273,1182],{"class":1048},[1038,1275,1276],{"class":1171}," kind",[1038,1278,1175],{"class":1048},[1038,1280,1088],{"class":1048},[1038,1282,1283],{"class":1091},"aws",[1038,1285,1195],{"class":1048},[1038,1287,1056],{"class":1048},[1038,1289,1290],{"class":1171}," accessKeyId",[1038,1292,1175],{"class":1048},[1038,1294,1088],{"class":1048},[1038,1296,1297],{"class":1091},"…",[1038,1299,1195],{"class":1048},[1038,1301,1056],{"class":1048},[1038,1303,1304],{"class":1171}," secretAccessKey",[1038,1306,1175],{"class":1048},[1038,1308,1088],{"class":1048},[1038,1310,1297],{"class":1091},[1038,1312,1195],{"class":1048},[1038,1314,1082],{"class":1048},[1038,1316,1200],{"class":1052},[1038,1318,1203],{"class":1048},[1038,1320,1322,1325,1327],{"class":1040,"line":1321},11,[1038,1323,1324],{"class":1048},"  }",[1038,1326,1200],{"class":1052},[1038,1328,1203],{"class":1048},[1038,1330,1332,1335,1337],{"class":1040,"line":1331},12,[1038,1333,1334],{"class":1171},"  routes",[1038,1336,1175],{"class":1048},[1038,1338,1339],{"class":1048}," {\n",[1038,1341,1343,1346,1348,1350,1352],{"class":1040,"line":1342},13,[1038,1344,1345],{"class":1171},"    auditLog",[1038,1347,1175],{"class":1048},[1038,1349,1125],{"class":1159},[1038,1351,1162],{"class":1052},[1038,1353,1165],{"class":1048},[1038,1355,1357,1360,1362,1364,1366,1368],{"class":1040,"line":1356},14,[1038,1358,1359],{"class":1171},"      accountId",[1038,1361,1175],{"class":1048},[1038,1363,1088],{"class":1048},[1038,1365,1230],{"class":1091},[1038,1367,1195],{"class":1048},[1038,1369,1203],{"class":1048},[1038,1371,1373,1376,1378,1380,1383,1385],{"class":1040,"line":1372},15,[1038,1374,1375],{"class":1171},"      bucket",[1038,1377,1175],{"class":1048},[1038,1379,1088],{"class":1048},[1038,1381,1382],{"class":1091},"myapp-audit",[1038,1384,1195],{"class":1048},[1038,1386,1203],{"class":1048},[1038,1388,1390,1393,1395,1397,1399,1401,1403,1405,1407,1409,1411,1413,1415,1417,1419,1421,1423,1425,1427,1429,1431,1433,1435,1437,1439,1441,1443],{"class":1040,"line":1389},16,[1038,1391,1392],{"class":1159},"      credentials",[1038,1394,1175],{"class":1048},[1038,1396,1262],{"class":1149},[1038,1398,1265],{"class":1048},[1038,1400,1268],{"class":1149},[1038,1402,1271],{"class":1052},[1038,1404,1182],{"class":1048},[1038,1406,1276],{"class":1171},[1038,1408,1175],{"class":1048},[1038,1410,1088],{"class":1048},[1038,1412,1283],{"class":1091},[1038,1414,1195],{"class":1048},[1038,1416,1056],{"class":1048},[1038,1418,1290],{"class":1171},[1038,1420,1175],{"class":1048},[1038,1422,1088],{"class":1048},[1038,1424,1297],{"class":1091},[1038,1426,1195],{"class":1048},[1038,1428,1056],{"class":1048},[1038,1430,1304],{"class":1171},[1038,1432,1175],{"class":1048},[1038,1434,1088],{"class":1048},[1038,1436,1297],{"class":1091},[1038,1438,1195],{"class":1048},[1038,1440,1082],{"class":1048},[1038,1442,1200],{"class":1052},[1038,1444,1203],{"class":1048},[1038,1446,1448,1451,1453],{"class":1040,"line":1447},17,[1038,1449,1450],{"class":1048},"    }",[1038,1452,1200],{"class":1052},[1038,1454,1203],{"class":1048},[1038,1456,1458],{"class":1040,"line":1457},18,[1038,1459,1460],{"class":1048},"  },\n",[1038,1462,1464,1467],{"class":1040,"line":1463},19,[1038,1465,1466],{"class":1048},"}",[1038,1468,1469],{"class":1052},")\n",[1038,1471,1473],{"class":1040,"line":1472},20,[1038,1474,1143],{"emptyLinePlaceholder":1142},[1038,1476,1478,1480,1483,1485,1487],{"class":1040,"line":1477},21,[1038,1479,1150],{"class":1149},[1038,1481,1482],{"class":1052}," resilient ",[1038,1484,1156],{"class":1048},[1038,1486,1064],{"class":1159},[1038,1488,1489],{"class":1052},"(\n",[1038,1491,1493,1496],{"class":1040,"line":1492},22,[1038,1494,1495],{"class":1052},"  routed",[1038,1497,1203],{"class":1048},[1038,1499,1501,1504,1506,1508,1511,1513,1517,1519,1521],{"class":1040,"line":1500},23,[1038,1502,1503],{"class":1159},"  withRetry",[1038,1505,1162],{"class":1052},[1038,1507,1182],{"class":1048},[1038,1509,1510],{"class":1171}," maxRetries",[1038,1512,1175],{"class":1048},[1038,1514,1516],{"class":1515},"sbssI"," 3",[1038,1518,1082],{"class":1048},[1038,1520,1200],{"class":1052},[1038,1522,1203],{"class":1048},[1038,1524,1526,1529,1531,1533,1536,1538,1541,1543,1545],{"class":1040,"line":1525},24,[1038,1527,1528],{"class":1159},"  withCircuitBreaker",[1038,1530,1162],{"class":1052},[1038,1532,1182],{"class":1048},[1038,1534,1535],{"class":1171}," failureThreshold",[1038,1537,1175],{"class":1048},[1038,1539,1540],{"class":1515}," 5",[1038,1542,1082],{"class":1048},[1038,1544,1200],{"class":1052},[1038,1546,1203],{"class":1048},[1038,1548,1550,1553,1555,1557,1560,1562,1564,1568,1570,1572,1575,1578,1581,1584,1586,1588],{"class":1040,"line":1549},25,[1038,1551,1552],{"class":1159},"  withMetrics",[1038,1554,1162],{"class":1052},[1038,1556,1182],{"class":1048},[1038,1558,1559],{"class":1159}," onOperation",[1038,1561,1175],{"class":1048},[1038,1563,1271],{"class":1048},[1038,1565,1567],{"class":1566},"sHdIc","op",[1038,1569,1200],{"class":1048},[1038,1571,1268],{"class":1149},[1038,1573,1574],{"class":1052}," metrics",[1038,1576,1577],{"class":1048},".",[1038,1579,1580],{"class":1159},"record",[1038,1582,1583],{"class":1052},"(op) ",[1038,1585,1466],{"class":1048},[1038,1587,1200],{"class":1052},[1038,1589,1203],{"class":1048},[1038,1591,1593],{"class":1040,"line":1592},26,[1038,1594,1469],{"class":1052},[1038,1596,1598],{"class":1040,"line":1597},27,[1038,1599,1143],{"emptyLinePlaceholder":1142},[1038,1601,1603,1605,1608,1610,1613,1615,1617,1619,1622,1624,1627,1629,1632,1634,1636,1639,1641,1643,1646,1648,1650,1653,1655,1657],{"class":1040,"line":1602},28,[1038,1604,1150],{"class":1149},[1038,1606,1607],{"class":1052}," db ",[1038,1609,1156],{"class":1048},[1038,1611,1612],{"class":1044}," await",[1038,1614,1053],{"class":1159},[1038,1616,1162],{"class":1052},[1038,1618,1182],{"class":1048},[1038,1620,1621],{"class":1171}," store",[1038,1623,1175],{"class":1048},[1038,1625,1626],{"class":1052}," resilient",[1038,1628,1056],{"class":1048},[1038,1630,1631],{"class":1171}," user",[1038,1633,1175],{"class":1048},[1038,1635,1088],{"class":1048},[1038,1637,1638],{"class":1091},"alice",[1038,1640,1195],{"class":1048},[1038,1642,1056],{"class":1048},[1038,1644,1645],{"class":1171}," secret",[1038,1647,1175],{"class":1048},[1038,1649,1088],{"class":1048},[1038,1651,1652],{"class":1091},"correct horse battery staple",[1038,1654,1195],{"class":1048},[1038,1656,1082],{"class":1048},[1038,1658,1469],{"class":1052},[946,1660,1661,1663],{},[960,1662,977],{}," takes the store followed by any number of middleware — the first middleware listed is outermost (sees the request first, the response last).",[941,1665,1667],{"id":1666},"usage","Usage",[1669,1670,1672],"h3",{"id":1671},"hotcold-tiering-with-age-based-routing","Hot\u002Fcold tiering with age-based routing",[1029,1674,1676],{"className":1031,"code":1675,"language":1033,"meta":1034,"style":1034},"import { createNoydb, routeStore } from '@noy-db\u002Fhub'\nimport { toMemory } from '@noy-db\u002Fto-memory'\n\nconst hot = toMemory()\nconst cold = toMemory()\n\nconst store = routeStore({\n  default: hot,\n  age: { cold, coldAfterDays: 90 },\n})\n\nconst db = await createNoydb({ store, user: 'alice', secret: 'correct horse battery staple' })\nconst vault = await db.openVault('acme')\n\nawait vault.collection('invoices').put('inv-1', { id: 'inv-1', amount: 100 })\n\nconst migrated = await store.compact('acme')\n\u002F\u002F → 0   (inv-1 was just written — nothing is older than 90 days yet)\n",[960,1677,1678,1700,1720,1724,1738,1751,1755,1770,1781,1806,1812,1816,1862,1892,1896,1963,1967,1995],{"__ignoreMap":1034},[1038,1679,1680,1682,1684,1686,1688,1690,1692,1694,1696,1698],{"class":1040,"line":1041},[1038,1681,1045],{"class":1044},[1038,1683,1049],{"class":1048},[1038,1685,1053],{"class":1052},[1038,1687,1056],{"class":1048},[1038,1689,1059],{"class":1052},[1038,1691,1082],{"class":1048},[1038,1693,1085],{"class":1044},[1038,1695,1088],{"class":1048},[1038,1697,991],{"class":1091},[1038,1699,1094],{"class":1048},[1038,1701,1702,1704,1706,1709,1711,1713,1715,1718],{"class":1040,"line":1097},[1038,1703,1045],{"class":1044},[1038,1705,1049],{"class":1048},[1038,1707,1708],{"class":1052}," toMemory",[1038,1710,1082],{"class":1048},[1038,1712,1085],{"class":1044},[1038,1714,1088],{"class":1048},[1038,1716,1717],{"class":1091},"@noy-db\u002Fto-memory",[1038,1719,1094],{"class":1048},[1038,1721,1722],{"class":1040,"line":1118},[1038,1723,1143],{"emptyLinePlaceholder":1142},[1038,1725,1726,1728,1731,1733,1735],{"class":1040,"line":1139},[1038,1727,1150],{"class":1149},[1038,1729,1730],{"class":1052}," hot ",[1038,1732,1156],{"class":1048},[1038,1734,1708],{"class":1159},[1038,1736,1737],{"class":1052},"()\n",[1038,1739,1740,1742,1745,1747,1749],{"class":1040,"line":1146},[1038,1741,1150],{"class":1149},[1038,1743,1744],{"class":1052}," cold ",[1038,1746,1156],{"class":1048},[1038,1748,1708],{"class":1159},[1038,1750,1737],{"class":1052},[1038,1752,1753],{"class":1040,"line":1168},[1038,1754,1143],{"emptyLinePlaceholder":1142},[1038,1756,1757,1759,1762,1764,1766,1768],{"class":1040,"line":1206},[1038,1758,1150],{"class":1149},[1038,1760,1761],{"class":1052}," store ",[1038,1763,1156],{"class":1048},[1038,1765,1059],{"class":1159},[1038,1767,1162],{"class":1052},[1038,1769,1165],{"class":1048},[1038,1771,1772,1774,1776,1779],{"class":1040,"line":1220},[1038,1773,1172],{"class":1171},[1038,1775,1175],{"class":1048},[1038,1777,1778],{"class":1052}," hot",[1038,1780,1203],{"class":1048},[1038,1782,1783,1786,1788,1790,1793,1795,1798,1800,1803],{"class":1040,"line":1237},[1038,1784,1785],{"class":1171},"  age",[1038,1787,1175],{"class":1048},[1038,1789,1049],{"class":1048},[1038,1791,1792],{"class":1052}," cold",[1038,1794,1056],{"class":1048},[1038,1796,1797],{"class":1171}," coldAfterDays",[1038,1799,1175],{"class":1048},[1038,1801,1802],{"class":1515}," 90",[1038,1804,1805],{"class":1048}," },\n",[1038,1807,1808,1810],{"class":1040,"line":1254},[1038,1809,1466],{"class":1048},[1038,1811,1469],{"class":1052},[1038,1813,1814],{"class":1040,"line":1321},[1038,1815,1143],{"emptyLinePlaceholder":1142},[1038,1817,1818,1820,1822,1824,1826,1828,1830,1832,1834,1836,1838,1840,1842,1844,1846,1848,1850,1852,1854,1856,1858,1860],{"class":1040,"line":1331},[1038,1819,1150],{"class":1149},[1038,1821,1607],{"class":1052},[1038,1823,1156],{"class":1048},[1038,1825,1612],{"class":1044},[1038,1827,1053],{"class":1159},[1038,1829,1162],{"class":1052},[1038,1831,1182],{"class":1048},[1038,1833,1621],{"class":1052},[1038,1835,1056],{"class":1048},[1038,1837,1631],{"class":1171},[1038,1839,1175],{"class":1048},[1038,1841,1088],{"class":1048},[1038,1843,1638],{"class":1091},[1038,1845,1195],{"class":1048},[1038,1847,1056],{"class":1048},[1038,1849,1645],{"class":1171},[1038,1851,1175],{"class":1048},[1038,1853,1088],{"class":1048},[1038,1855,1652],{"class":1091},[1038,1857,1195],{"class":1048},[1038,1859,1082],{"class":1048},[1038,1861,1469],{"class":1052},[1038,1863,1864,1866,1869,1871,1873,1876,1878,1881,1883,1885,1888,1890],{"class":1040,"line":1342},[1038,1865,1150],{"class":1149},[1038,1867,1868],{"class":1052}," vault ",[1038,1870,1156],{"class":1048},[1038,1872,1612],{"class":1044},[1038,1874,1875],{"class":1052}," db",[1038,1877,1577],{"class":1048},[1038,1879,1880],{"class":1159},"openVault",[1038,1882,1162],{"class":1052},[1038,1884,1195],{"class":1048},[1038,1886,1887],{"class":1091},"acme",[1038,1889,1195],{"class":1048},[1038,1891,1469],{"class":1052},[1038,1893,1894],{"class":1040,"line":1356},[1038,1895,1143],{"emptyLinePlaceholder":1142},[1038,1897,1898,1901,1904,1906,1909,1911,1913,1916,1918,1920,1922,1925,1927,1929,1932,1934,1936,1938,1941,1943,1945,1947,1949,1951,1954,1956,1959,1961],{"class":1040,"line":1372},[1038,1899,1900],{"class":1044},"await",[1038,1902,1903],{"class":1052}," vault",[1038,1905,1577],{"class":1048},[1038,1907,1908],{"class":1159},"collection",[1038,1910,1162],{"class":1052},[1038,1912,1195],{"class":1048},[1038,1914,1915],{"class":1091},"invoices",[1038,1917,1195],{"class":1048},[1038,1919,1200],{"class":1052},[1038,1921,1577],{"class":1048},[1038,1923,1924],{"class":1159},"put",[1038,1926,1162],{"class":1052},[1038,1928,1195],{"class":1048},[1038,1930,1931],{"class":1091},"inv-1",[1038,1933,1195],{"class":1048},[1038,1935,1056],{"class":1048},[1038,1937,1049],{"class":1048},[1038,1939,1940],{"class":1171}," id",[1038,1942,1175],{"class":1048},[1038,1944,1088],{"class":1048},[1038,1946,1931],{"class":1091},[1038,1948,1195],{"class":1048},[1038,1950,1056],{"class":1048},[1038,1952,1953],{"class":1171}," amount",[1038,1955,1175],{"class":1048},[1038,1957,1958],{"class":1515}," 100",[1038,1960,1082],{"class":1048},[1038,1962,1469],{"class":1052},[1038,1964,1965],{"class":1040,"line":1389},[1038,1966,1143],{"emptyLinePlaceholder":1142},[1038,1968,1969,1971,1974,1976,1978,1980,1982,1985,1987,1989,1991,1993],{"class":1040,"line":1447},[1038,1970,1150],{"class":1149},[1038,1972,1973],{"class":1052}," migrated ",[1038,1975,1156],{"class":1048},[1038,1977,1612],{"class":1044},[1038,1979,1621],{"class":1052},[1038,1981,1577],{"class":1048},[1038,1983,1984],{"class":1159},"compact",[1038,1986,1162],{"class":1052},[1038,1988,1195],{"class":1048},[1038,1990,1887],{"class":1091},[1038,1992,1195],{"class":1048},[1038,1994,1469],{"class":1052},[1038,1996,1997],{"class":1040,"line":1457},[1038,1998,2000],{"class":1999},"sHwdD","\u002F\u002F → 0   (inv-1 was just written — nothing is older than 90 days yet)\n",[946,2002,2003,2006,2007,2010,2011,2014,2015,2018,2019,2021],{},[960,2004,2005],{},"compact()"," scans age-eligible collections and moves any record whose ",[960,2008,2009],{},"_ts"," is older than ",[960,2012,2013],{},"coldAfterDays"," from the hot store to ",[960,2016,2017],{},"cold","; reads transparently fall through to ",[960,2020,2017],{}," when the hot store returns nothing, so callers never need to know which tier a record lives in.",[946,2023,2024,2025,2028,2029,2031,2032,2035,2036,2039,2040,2043,2044,2046,2047,2049,2050,2053,2054,2056,2057,2060],{},"Since ",[960,2026,2027],{},"0.3.0-pre.8",", ",[960,2030,2005],{}," also accepts an ",[950,2033,2034],{},"explicit\ncutoff"," — ",[960,2037,2038],{},"store.compact(vault, { before: isoTimestamp })"," migrates every record with\n",[960,2041,2042],{},"_ts \u003C before"," regardless of ",[960,2045,2013],{}," — and ",[960,2048,2013],{}," itself became optional:\n",[960,2051,2052],{},"age: { cold }"," alone declares a cold tier used only by explicitly-cut-off migrations. That\nper-call form is what the ",[955,2055,776],{"href":777}," service's ",[960,2058,2059],{},"vault.archivePeriod(name)","\ndrives: period-driven cold archival of a closed accounting period, with the cutoff derived from\nthe period's end date instead of a rolling age.",[1669,2062,2064],{"id":2063},"resilience-and-metrics-middleware","Resilience and metrics middleware",[1029,2066,2068],{"className":1031,"code":2067,"language":1033,"meta":1034,"style":1034},"import { wrapStore, withRetry, withCircuitBreaker, withMetrics } from '@noy-db\u002Fhub'\nimport { toAwsDynamo } from '@noy-db\u002Fto-aws-dynamo'\n\nconst resilient = wrapStore(\n  toAwsDynamo({ table: 'myapp' }),\n  withRetry({ maxRetries: 3 }),\n  withCircuitBreaker({ failureThreshold: 5, onOpen: () => console.warn('backend unavailable') }),\n  withMetrics({ onOperation: (op) => console.log(op) }),\n)\n\nawait resilient.get('acme', 'invoices', 'inv-1')\n",[960,2069,2070,2100,2118,2122,2134,2159,2179,2230,2265,2269,2273],{"__ignoreMap":1034},[1038,2071,2072,2074,2076,2078,2080,2082,2084,2086,2088,2090,2092,2094,2096,2098],{"class":1040,"line":1041},[1038,2073,1045],{"class":1044},[1038,2075,1049],{"class":1048},[1038,2077,1064],{"class":1052},[1038,2079,1056],{"class":1048},[1038,2081,1069],{"class":1052},[1038,2083,1056],{"class":1048},[1038,2085,1074],{"class":1052},[1038,2087,1056],{"class":1048},[1038,2089,1079],{"class":1052},[1038,2091,1082],{"class":1048},[1038,2093,1085],{"class":1044},[1038,2095,1088],{"class":1048},[1038,2097,991],{"class":1091},[1038,2099,1094],{"class":1048},[1038,2101,2102,2104,2106,2108,2110,2112,2114,2116],{"class":1040,"line":1097},[1038,2103,1045],{"class":1044},[1038,2105,1049],{"class":1048},[1038,2107,1104],{"class":1052},[1038,2109,1082],{"class":1048},[1038,2111,1085],{"class":1044},[1038,2113,1088],{"class":1048},[1038,2115,1113],{"class":1091},[1038,2117,1094],{"class":1048},[1038,2119,2120],{"class":1040,"line":1118},[1038,2121,1143],{"emptyLinePlaceholder":1142},[1038,2123,2124,2126,2128,2130,2132],{"class":1040,"line":1139},[1038,2125,1150],{"class":1149},[1038,2127,1482],{"class":1052},[1038,2129,1156],{"class":1048},[1038,2131,1064],{"class":1159},[1038,2133,1489],{"class":1052},[1038,2135,2136,2139,2141,2143,2145,2147,2149,2151,2153,2155,2157],{"class":1040,"line":1146},[1038,2137,2138],{"class":1159},"  toAwsDynamo",[1038,2140,1162],{"class":1052},[1038,2142,1182],{"class":1048},[1038,2144,1185],{"class":1171},[1038,2146,1175],{"class":1048},[1038,2148,1088],{"class":1048},[1038,2150,1192],{"class":1091},[1038,2152,1195],{"class":1048},[1038,2154,1082],{"class":1048},[1038,2156,1200],{"class":1052},[1038,2158,1203],{"class":1048},[1038,2160,2161,2163,2165,2167,2169,2171,2173,2175,2177],{"class":1040,"line":1168},[1038,2162,1503],{"class":1159},[1038,2164,1162],{"class":1052},[1038,2166,1182],{"class":1048},[1038,2168,1510],{"class":1171},[1038,2170,1175],{"class":1048},[1038,2172,1516],{"class":1515},[1038,2174,1082],{"class":1048},[1038,2176,1200],{"class":1052},[1038,2178,1203],{"class":1048},[1038,2180,2181,2183,2185,2187,2189,2191,2193,2195,2198,2200,2202,2204,2207,2209,2212,2214,2216,2219,2221,2224,2226,2228],{"class":1040,"line":1206},[1038,2182,1528],{"class":1159},[1038,2184,1162],{"class":1052},[1038,2186,1182],{"class":1048},[1038,2188,1535],{"class":1171},[1038,2190,1175],{"class":1048},[1038,2192,1540],{"class":1515},[1038,2194,1056],{"class":1048},[1038,2196,2197],{"class":1159}," onOpen",[1038,2199,1175],{"class":1048},[1038,2201,1265],{"class":1048},[1038,2203,1268],{"class":1149},[1038,2205,2206],{"class":1052}," console",[1038,2208,1577],{"class":1048},[1038,2210,2211],{"class":1159},"warn",[1038,2213,1162],{"class":1052},[1038,2215,1195],{"class":1048},[1038,2217,2218],{"class":1091},"backend unavailable",[1038,2220,1195],{"class":1048},[1038,2222,2223],{"class":1052},") ",[1038,2225,1466],{"class":1048},[1038,2227,1200],{"class":1052},[1038,2229,1203],{"class":1048},[1038,2231,2232,2234,2236,2238,2240,2242,2244,2246,2248,2250,2252,2254,2257,2259,2261,2263],{"class":1040,"line":1220},[1038,2233,1552],{"class":1159},[1038,2235,1162],{"class":1052},[1038,2237,1182],{"class":1048},[1038,2239,1559],{"class":1159},[1038,2241,1175],{"class":1048},[1038,2243,1271],{"class":1048},[1038,2245,1567],{"class":1566},[1038,2247,1200],{"class":1048},[1038,2249,1268],{"class":1149},[1038,2251,2206],{"class":1052},[1038,2253,1577],{"class":1048},[1038,2255,2256],{"class":1159},"log",[1038,2258,1583],{"class":1052},[1038,2260,1466],{"class":1048},[1038,2262,1200],{"class":1052},[1038,2264,1203],{"class":1048},[1038,2266,2267],{"class":1040,"line":1237},[1038,2268,1469],{"class":1052},[1038,2270,2271],{"class":1040,"line":1254},[1038,2272,1143],{"emptyLinePlaceholder":1142},[1038,2274,2275,2277,2279,2281,2284,2286,2288,2290,2292,2294,2296,2298,2300,2302,2304,2306,2308],{"class":1040,"line":1321},[1038,2276,1900],{"class":1044},[1038,2278,1626],{"class":1052},[1038,2280,1577],{"class":1048},[1038,2282,2283],{"class":1159},"get",[1038,2285,1162],{"class":1052},[1038,2287,1195],{"class":1048},[1038,2289,1887],{"class":1091},[1038,2291,1195],{"class":1048},[1038,2293,1056],{"class":1048},[1038,2295,1088],{"class":1048},[1038,2297,1915],{"class":1091},[1038,2299,1195],{"class":1048},[1038,2301,1056],{"class":1048},[1038,2303,1088],{"class":1048},[1038,2305,1931],{"class":1091},[1038,2307,1195],{"class":1048},[1038,2309,1469],{"class":1052},[1029,2311,2314],{"className":2312,"code":2313,"language":141,"meta":1034,"style":1034},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"method\": \"get\",\n  \"vault\": \"acme\",\n  \"collection\": \"invoices\",\n  \"id\": \"inv-1\",\n  \"durationMs\": 4,\n  \"success\": true\n}\n",[960,2315,2316,2320,2342,2360,2378,2397,2413,2427],{"__ignoreMap":1034},[1038,2317,2318],{"class":1040,"line":1041},[1038,2319,1165],{"class":1048},[1038,2321,2322,2325,2328,2331,2333,2336,2338,2340],{"class":1040,"line":1097},[1038,2323,2324],{"class":1048},"  \"",[1038,2326,2327],{"class":1149},"method",[1038,2329,2330],{"class":1048},"\"",[1038,2332,1175],{"class":1048},[1038,2334,2335],{"class":1048}," \"",[1038,2337,2283],{"class":1091},[1038,2339,2330],{"class":1048},[1038,2341,1203],{"class":1048},[1038,2343,2344,2346,2348,2350,2352,2354,2356,2358],{"class":1040,"line":1118},[1038,2345,2324],{"class":1048},[1038,2347,952],{"class":1149},[1038,2349,2330],{"class":1048},[1038,2351,1175],{"class":1048},[1038,2353,2335],{"class":1048},[1038,2355,1887],{"class":1091},[1038,2357,2330],{"class":1048},[1038,2359,1203],{"class":1048},[1038,2361,2362,2364,2366,2368,2370,2372,2374,2376],{"class":1040,"line":1139},[1038,2363,2324],{"class":1048},[1038,2365,1908],{"class":1149},[1038,2367,2330],{"class":1048},[1038,2369,1175],{"class":1048},[1038,2371,2335],{"class":1048},[1038,2373,1915],{"class":1091},[1038,2375,2330],{"class":1048},[1038,2377,1203],{"class":1048},[1038,2379,2380,2382,2385,2387,2389,2391,2393,2395],{"class":1040,"line":1146},[1038,2381,2324],{"class":1048},[1038,2383,2384],{"class":1149},"id",[1038,2386,2330],{"class":1048},[1038,2388,1175],{"class":1048},[1038,2390,2335],{"class":1048},[1038,2392,1931],{"class":1091},[1038,2394,2330],{"class":1048},[1038,2396,1203],{"class":1048},[1038,2398,2399,2401,2404,2406,2408,2411],{"class":1040,"line":1168},[1038,2400,2324],{"class":1048},[1038,2402,2403],{"class":1149},"durationMs",[1038,2405,2330],{"class":1048},[1038,2407,1175],{"class":1048},[1038,2409,2410],{"class":1515}," 4",[1038,2412,1203],{"class":1048},[1038,2414,2415,2417,2420,2422,2424],{"class":1040,"line":1206},[1038,2416,2324],{"class":1048},[1038,2418,2419],{"class":1149},"success",[1038,2421,2330],{"class":1048},[1038,2423,1175],{"class":1048},[1038,2425,2426],{"class":1048}," true\n",[1038,2428,2429],{"class":1040,"line":1220},[1038,2430,2431],{"class":1048},"}\n",[1669,2433,2435],{"id":2434},"maintenance-window-suspend-buffer-resume","Maintenance window: suspend, buffer, resume",[1029,2437,2439],{"className":1031,"code":2438,"language":1033,"meta":1034,"style":1034},"store.suspend('default', { queue: true })\n\u002F\u002F writes to the default route now buffer in memory instead of reaching the backend\nawait vault.collection('invoices').put('inv-2', { id: 'inv-2', amount: 50 })\n\nconst replayed = await store.resume('default')\n\u002F\u002F → 1   (the buffered put replays against the restored store)\n\nstore.routeStatus()\n",[960,2440,2441,2477,2482,2542,2546,2574,2579,2583],{"__ignoreMap":1034},[1038,2442,2443,2446,2448,2451,2453,2455,2458,2460,2462,2464,2467,2469,2473,2475],{"class":1040,"line":1041},[1038,2444,2445],{"class":1052},"store",[1038,2447,1577],{"class":1048},[1038,2449,2450],{"class":1159},"suspend",[1038,2452,1162],{"class":1052},[1038,2454,1195],{"class":1048},[1038,2456,2457],{"class":1091},"default",[1038,2459,1195],{"class":1048},[1038,2461,1056],{"class":1048},[1038,2463,1049],{"class":1048},[1038,2465,2466],{"class":1171}," queue",[1038,2468,1175],{"class":1048},[1038,2470,2472],{"class":2471},"sfNiH"," true",[1038,2474,1082],{"class":1048},[1038,2476,1469],{"class":1052},[1038,2478,2479],{"class":1040,"line":1097},[1038,2480,2481],{"class":1999},"\u002F\u002F writes to the default route now buffer in memory instead of reaching the backend\n",[1038,2483,2484,2486,2488,2490,2492,2494,2496,2498,2500,2502,2504,2506,2508,2510,2513,2515,2517,2519,2521,2523,2525,2527,2529,2531,2533,2535,2538,2540],{"class":1040,"line":1118},[1038,2485,1900],{"class":1044},[1038,2487,1903],{"class":1052},[1038,2489,1577],{"class":1048},[1038,2491,1908],{"class":1159},[1038,2493,1162],{"class":1052},[1038,2495,1195],{"class":1048},[1038,2497,1915],{"class":1091},[1038,2499,1195],{"class":1048},[1038,2501,1200],{"class":1052},[1038,2503,1577],{"class":1048},[1038,2505,1924],{"class":1159},[1038,2507,1162],{"class":1052},[1038,2509,1195],{"class":1048},[1038,2511,2512],{"class":1091},"inv-2",[1038,2514,1195],{"class":1048},[1038,2516,1056],{"class":1048},[1038,2518,1049],{"class":1048},[1038,2520,1940],{"class":1171},[1038,2522,1175],{"class":1048},[1038,2524,1088],{"class":1048},[1038,2526,2512],{"class":1091},[1038,2528,1195],{"class":1048},[1038,2530,1056],{"class":1048},[1038,2532,1953],{"class":1171},[1038,2534,1175],{"class":1048},[1038,2536,2537],{"class":1515}," 50",[1038,2539,1082],{"class":1048},[1038,2541,1469],{"class":1052},[1038,2543,2544],{"class":1040,"line":1139},[1038,2545,1143],{"emptyLinePlaceholder":1142},[1038,2547,2548,2550,2553,2555,2557,2559,2561,2564,2566,2568,2570,2572],{"class":1040,"line":1146},[1038,2549,1150],{"class":1149},[1038,2551,2552],{"class":1052}," replayed ",[1038,2554,1156],{"class":1048},[1038,2556,1612],{"class":1044},[1038,2558,1621],{"class":1052},[1038,2560,1577],{"class":1048},[1038,2562,2563],{"class":1159},"resume",[1038,2565,1162],{"class":1052},[1038,2567,1195],{"class":1048},[1038,2569,2457],{"class":1091},[1038,2571,1195],{"class":1048},[1038,2573,1469],{"class":1052},[1038,2575,2576],{"class":1040,"line":1168},[1038,2577,2578],{"class":1999},"\u002F\u002F → 1   (the buffered put replays against the restored store)\n",[1038,2580,2581],{"class":1040,"line":1206},[1038,2582,1143],{"emptyLinePlaceholder":1142},[1038,2584,2585,2587,2589,2592],{"class":1040,"line":1220},[1038,2586,2445],{"class":1052},[1038,2588,1577],{"class":1048},[1038,2590,2591],{"class":1159},"routeStatus",[1038,2593,1737],{"class":1052},[1029,2595,2597],{"className":2312,"code":2596,"language":141,"meta":1034,"style":1034},"{ \"overrides\": {}, \"suspended\": [], \"queued\": {} }\n",[960,2598,2599],{"__ignoreMap":1034},[1038,2600,2601,2603,2605,2608,2610,2612,2615,2617,2620,2622,2624,2627,2629,2632,2634,2636,2639],{"class":1040,"line":1041},[1038,2602,1182],{"class":1048},[1038,2604,2335],{"class":1048},[1038,2606,2607],{"class":1149},"overrides",[1038,2609,2330],{"class":1048},[1038,2611,1175],{"class":1048},[1038,2613,2614],{"class":1048}," {},",[1038,2616,2335],{"class":1048},[1038,2618,2619],{"class":1149},"suspended",[1038,2621,2330],{"class":1048},[1038,2623,1175],{"class":1048},[1038,2625,2626],{"class":1048}," [],",[1038,2628,2335],{"class":1048},[1038,2630,2631],{"class":1149},"queued",[1038,2633,2330],{"class":1048},[1038,2635,1175],{"class":1048},[1038,2637,2638],{"class":1048}," {}",[1038,2640,2641],{"class":1048}," }\n",[941,2643,2645],{"id":2644},"api-reference","API reference",[1669,2647,2649],{"id":2648},"routestoreoptions",[960,2650,2651],{},"routeStore(options)",[1029,2653,2655],{"className":1031,"code":2654,"language":1033,"meta":1034,"style":1034},"function routeStore(options: RouteStoreOptions): RoutedNoydbStore\n",[960,2656,2657],{"__ignoreMap":1034},[1038,2658,2659,2662,2664,2666,2669,2671,2675,2678],{"class":1040,"line":1041},[1038,2660,2661],{"class":1149},"function",[1038,2663,1059],{"class":1159},[1038,2665,1162],{"class":1048},[1038,2667,2668],{"class":1566},"options",[1038,2670,1175],{"class":1048},[1038,2672,2674],{"class":2673},"sBMFI"," RouteStoreOptions",[1038,2676,2677],{"class":1048},"):",[1038,2679,2680],{"class":2673}," RoutedNoydbStore\n",[946,2682,2683,2684,2687,2688,1577],{},"Builds the store multiplexer. Returns a ",[960,2685,2686],{},"RoutedNoydbStore"," — a full store plus runtime control methods — that can be passed directly to ",[960,2689,970],{},[2691,2692,2694],"h4",{"id":2693},"routestoreoptions-1",[960,2695,2696],{},"RouteStoreOptions",[2698,2699,2700,2716],"table",{},[2701,2702,2703],"thead",{},[2704,2705,2706,2710,2713],"tr",{},[2707,2708,2709],"th",{},"Field",[2707,2711,2712],{},"Type",[2707,2714,2715],{},"Purpose",[2717,2718,2719,2734,2766,2784,2803,2827,2864,2898,2932,2959],"tbody",{},[2704,2720,2721,2726,2731],{},[2722,2723,2724],"td",{},[960,2725,2457],{},[2722,2727,2728],{},[960,2729,2730],{},"NoydbStore",[2722,2732,2733],{},"Required. Store for every operation no other rule matches.",[2704,2735,2736,2740,2745],{},[2722,2737,2738],{},[960,2739,621],{},[2722,2741,2742],{},[960,2743,2744],{},"NoydbStore | { small?, large, threshold? }",[2722,2746,2747,2748,2751,2752,2755,2756,2759,2760,2762,2763,1577],{},"Routes blob chunk data to a dedicated store. Pass a size-tiered object to send blobs under ",[960,2749,2750],{},"threshold"," bytes (default ",[960,2753,2754],{},"400 * 1024",") to ",[960,2757,2758],{},"small","\u002F",[960,2761,2457],{}," and larger ones to ",[960,2764,2765],{},"large",[2704,2767,2768,2773,2778],{},[2722,2769,2770],{},[960,2771,2772],{},"routeBlobMeta",[2722,2774,2775],{},[960,2776,2777],{},"boolean",[2722,2779,2780,2781,1577],{},"Also route blob index\u002Fslot\u002Fversion metadata to the blobs store. Default ",[960,2782,2783],{},"false",[2704,2785,2786,2791,2796],{},[2722,2787,2788],{},[960,2789,2790],{},"routes",[2722,2792,2793],{},[960,2794,2795],{},"Record\u003Cstring, NoydbStore>",[2722,2797,2798,2799,2802],{},"Route specific ",[950,2800,2801],{},"collection names"," (exact match) to dedicated stores.",[2704,2804,2805,2810,2814],{},[2722,2806,2807],{},[960,2808,2809],{},"vaultRoutes",[2722,2811,2812],{},[960,2813,2795],{},[2722,2815,2816,2817,2820,2821,2824,2825,1577],{},"Route by ",[950,2818,2819],{},"vault name prefix"," (e.g. ",[960,2822,2823],{},"'EU-'","). Checked before ",[960,2826,2790],{},[2704,2828,2829,2834,2839],{},[2722,2830,2831],{},[960,2832,2833],{},"age",[2722,2835,2836],{},[960,2837,2838],{},"{ cold, coldAfterDays?, collections? }",[2722,2840,2841,2842,2844,2845,2847,2848,2850,2851,2853,2854,2856,2857,2859,2860,2863],{},"Hot\u002Fcold tiering: records older than ",[960,2843,2013],{}," migrate to ",[960,2846,2017],{}," on ",[960,2849,2005],{},"; reads fall through to ",[960,2852,2017],{}," when the hot store returns null. ",[960,2855,2013],{}," is optional since ",[960,2858,2027],{}," — omit it for period-driven archival only, where ",[960,2861,2862],{},"compact(vault, { before })"," supplies the cutoff per call.",[2704,2865,2866,2871,2875],{},[2722,2867,2868],{},[960,2869,2870],{},"blobRoutes",[2722,2872,2873],{},[960,2874,2795],{},[2722,2876,2877,2878,2759,2881,2759,2884,2887,2888,2035,2891,2894,2895,1577],{},"Accepted and its stores are included in ",[960,2879,2880],{},"loadAll",[960,2882,2883],{},"saveAll",[960,2885,2886],{},"listVaults",", but ",[950,2889,2890],{},"not yet wired to routing decisions",[960,2892,2893],{},"storeFor()"," never consults it, so blob chunks are never routed by MIME type or ",[960,2896,2897],{},"storeHint",[2704,2899,2900,2905,2910],{},[2722,2901,2902],{},[960,2903,2904],{},"blobLifecycle",[2722,2906,2907],{},[960,2908,2909],{},"{ orphanRetentionDays?, archiveAfterDays?, archiveStore?, expireAfterDays? }",[2722,2911,2912,2913,2916,2917,2759,2919,2759,2921,2887,2923,2035,2926,2928,2929,2931],{},"Accepted and ",[960,2914,2915],{},"archiveStore"," (if set) is included in ",[960,2918,2880],{},[960,2920,2883],{},[960,2922,2886],{},[950,2924,2925],{},"not yet evaluated anywhere",[960,2927,2005],{}," only performs ",[960,2930,2833],{},"-based hot\u002Fcold migration and never reads this option. No orphan cleanup, archival, or expiry runs.",[2704,2933,2934,2939,2943],{},[2722,2935,2936],{},[960,2937,2938],{},"overflow",[2722,2940,2941],{},[960,2942,2730],{},[2722,2944,2945,2946,2759,2948,2759,2950,2887,2952,2955,2956,2958],{},"Accepted and included in ",[960,2947,2880],{},[960,2949,2883],{},[960,2951,2886],{},[950,2953,2954],{},"the quota check that would activate it is not yet wired up"," — it is hardcoded to never trigger, so writes always go to ",[960,2957,2457],{}," regardless of usage.",[2704,2960,2961,2966,2971],{},[2722,2962,2963],{},[960,2964,2965],{},"quotaThreshold",[2722,2967,2968],{},[960,2969,2970],{},"number",[2722,2972,2973,2974,2977,2978,2980],{},"Overflow trigger, 0–1. Default ",[960,2975,2976],{},"0.8",". Has no effect while ",[960,2979,2938],{}," is unwired (see above).",[946,2982,2983,2984,985,2986,2988,2989,2759,2992,2994,2995,2997,2998,3000,3001,3003,3004,1577],{},"There is no glob-pattern list evaluated in order — ",[960,2985,2790],{},[960,2987,2809],{}," are plain object maps, matched by exact collection name and vault-name prefix respectively. Resolution order for a given vault + collection: an active runtime ",[960,2990,2991],{},"override",[960,2993,2450],{}," wins first, then ",[960,2996,2809],{}," (prefix), then ",[960,2999,2790],{}," (exact name), then blob routing, then quota ",[960,3002,2938],{},", then ",[960,3005,2457],{},[2691,3007,3009,3011],{"id":3008},"routednoydbstore-extra-methods-beyond-the-store-contract",[960,3010,2686],{}," — extra methods beyond the store contract",[2698,3013,3014,3026],{},[2701,3015,3016],{},[2704,3017,3018,3021,3024],{},[2707,3019,3020],{},"Method",[2707,3022,3023],{},"Returns",[2707,3025,2715],{},[2717,3027,3028,3056,3086,3101,3146,3160,3178],{},[2704,3029,3030,3035,3040],{},[2722,3031,3032],{},[960,3033,3034],{},"compact(vault, opts?)",[2722,3036,3037],{},[960,3038,3039],{},"Promise\u003Cnumber>",[2722,3041,3042,3043,3046,3047,3049,3050,3052,3053,3055],{},"Migrates age-eligible records from hot to cold; returns the count migrated. ",[960,3044,3045],{},"opts.before"," (ISO timestamp, since ",[960,3048,2027],{},") migrates everything with ",[960,3051,2042],{}," instead of the rolling ",[960,3054,2013],{}," window.",[2704,3057,3058,3063,3068],{},[2722,3059,3060],{},[960,3061,3062],{},"override(route, store, opts?)",[2722,3064,3065],{},[960,3066,3067],{},"void | Promise\u003Cvoid>",[2722,3069,3070,3071,1271,3074,3077,3078,3081,3082,3085],{},"Swap a named route's backing store at runtime. ",[960,3072,3073],{},"opts.hydrate",[960,3075,3076],{},"true",", or a collection-name array) only switches the return type to a ",[960,3079,3080],{},"Promise"," — it does ",[950,3083,3084],{},"not"," copy any data itself; you must copy records from the original store into the new store before or during the call (see below).",[2704,3087,3088,3093,3098],{},[2722,3089,3090],{},[960,3091,3092],{},"clearOverride(route)",[2722,3094,3095],{},[960,3096,3097],{},"void",[2722,3099,3100],{},"Revert a route to its original store.",[2704,3102,3103,3108,3112],{},[2722,3104,3105],{},[960,3106,3107],{},"suspend(route, opts?)",[2722,3109,3110],{},[960,3111,3097],{},[2722,3113,3114,3115,3117,3118,2028,3121,2759,3123,3126,3127,3117,3130,3133,3134,3137,3138,3141,3142,3145],{},"Turn a route into a no-op sink (",[960,3116,2283],{}," → ",[960,3119,3120],{},"null",[960,3122,1924],{},[960,3124,3125],{},"delete"," → no-op, ",[960,3128,3129],{},"list",[960,3131,3132],{},"[]","). ",[960,3135,3136],{},"opts.queue: true"," buffers writes for later replay; ",[960,3139,3140],{},"opts.maxQueueSize"," bounds the buffer (default ",[960,3143,3144],{},"10_000",", oldest dropped first).",[2704,3147,3148,3153,3157],{},[2722,3149,3150],{},[960,3151,3152],{},"resume(route)",[2722,3154,3155],{},[960,3156,3039],{},[2722,3158,3159],{},"Reactivate a suspended route; replays any queued writes and returns how many succeeded.",[2704,3161,3162,3167,3172],{},[2722,3163,3164],{},[960,3165,3166],{},"routeStatus()",[2722,3168,3169],{},[960,3170,3171],{},"RouteStatus",[2722,3173,3174,3175,1577],{},"Snapshot: ",[960,3176,3177],{},"{ overrides, suspended, queued }",[2704,3179,3180,3185,3189],{},[2722,3181,3182],{},[960,3183,3184],{},"resolveBackend(vaultId)",[2722,3186,3187],{},[960,3188,2730],{},[2722,3190,3191,3192,3194,3195,3197],{},"Resolve which store a vault id maps to via ",[960,3193,2809],{},", falling back to ",[960,3196,2457],{},". Used for diagnostics.",[946,3199,3200,3203,3204,3207,3208,2028,3211,2028,3214,3217,3218,3220,3221,1577],{},[960,3201,3202],{},"route"," above is an ",[960,3205,3206],{},"OverrideTarget",": the literal ",[960,3209,3210],{},"'default'",[960,3212,3213],{},"'blobs'",[960,3215,3216],{},"'cold'",", or any custom name — a collection from ",[960,3219,2790],{},", a prefix from ",[960,3222,2809],{},[2691,3224,3226],{"id":3225},"capabilities-of-a-routed-store","Capabilities of a routed store",[946,3228,2024,3229,3231,3232,3234,3235,3241,3242,3245,3246,3248],{},[960,3230,2027],{},", a ",[960,3233,962],{}," surfaces its ",[950,3236,3237,3238,3240],{},"primary (",[960,3239,2457],{},") store's capabilities","\n(previously it exposed none), layering ",[960,3243,3244],{},"coldArchival: true"," on top when — and only when — the\nrouter itself declares an ",[960,3247,2833],{}," cold route. Two consequences:",[1006,3250,3251,3264],{},[1009,3252,3253,3254,3259,3260,3263],{},"Features gated on a store capability now see through the router: e.g. the gap-free\n",[955,3255,3256],{"href":837},[960,3257,3258],{},"sequence().next()"," requires ",[960,3261,3262],{},"casAtomic",", and is permitted on a\nrouteStore-backed vault whenever the primary store reports it — previously it refused on any\nrouted store.",[1009,3265,3266,3269,3270,3275,3276,3279],{},[960,3267,3268],{},"coldArchival"," is what ",[955,3271,3272],{"href":777},[960,3273,3274],{},"vault.archivePeriod()"," checks before archiving. A\nrouter ",[950,3277,3278],{},"without"," its own cold route never advertises it, even when nested over a cold-capable\nprimary.",[1669,3281,3283],{"id":3282},"wrapstorestore-middlewares",[960,3284,3285],{},"wrapStore(store, ...middlewares)",[1029,3287,3289],{"className":1031,"code":3288,"language":1033,"meta":1034,"style":1034},"type StoreMiddleware = (next: NoydbStore) => NoydbStore\nfunction wrapStore(store: NoydbStore, ...middlewares: StoreMiddleware[]): NoydbStore\n",[960,3290,3291,3319],{"__ignoreMap":1034},[1038,3292,3293,3296,3299,3302,3304,3307,3309,3312,3314,3316],{"class":1040,"line":1041},[1038,3294,3295],{"class":1149},"type",[1038,3297,3298],{"class":2673}," StoreMiddleware",[1038,3300,3301],{"class":1048}," =",[1038,3303,1271],{"class":1048},[1038,3305,3306],{"class":1566},"next",[1038,3308,1175],{"class":1048},[1038,3310,3311],{"class":2673}," NoydbStore",[1038,3313,1200],{"class":1048},[1038,3315,1268],{"class":1149},[1038,3317,3318],{"class":2673}," NoydbStore\n",[1038,3320,3321,3323,3325,3327,3329,3331,3333,3335,3338,3341,3343,3345,3347,3349],{"class":1040,"line":1097},[1038,3322,2661],{"class":1149},[1038,3324,1064],{"class":1159},[1038,3326,1162],{"class":1048},[1038,3328,2445],{"class":1566},[1038,3330,1175],{"class":1048},[1038,3332,3311],{"class":2673},[1038,3334,1056],{"class":1048},[1038,3336,3337],{"class":1048}," ...",[1038,3339,3340],{"class":1566},"middlewares",[1038,3342,1175],{"class":1048},[1038,3344,3298],{"class":2673},[1038,3346,3132],{"class":1052},[1038,3348,2677],{"class":1048},[1038,3350,3318],{"class":2673},[946,3352,3353,3354,3356,3357,3360],{},"Composes any number of middleware around a store, left-to-right — the first argument after ",[960,3355,2445],{}," is outermost. ",[960,3358,3359],{},"wrapStore"," takes middleware as variadic arguments, not an array.",[1669,3362,3363],{"id":981},"Middleware",[2698,3365,3366,3378],{},[2701,3367,3368],{},[2704,3369,3370,3373,3376],{},[2707,3371,3372],{},"Factory",[2707,3374,3375],{},"Options",[2707,3377,2715],{},[2717,3379,3380,3423,3452,3474,3515,3554],{},[2704,3381,3382,3387,3412],{},[2722,3383,3384],{},[960,3385,3386],{},"withRetry(opts?)",[2722,3388,3389,3392,3393,3396,3397,3392,3400,3396,3403,3392,3406,3396,3409],{},[960,3390,3391],{},"maxRetries"," (default ",[960,3394,3395],{},"3","), ",[960,3398,3399],{},"backoffMs",[960,3401,3402],{},"500",[960,3404,3405],{},"jitter",[960,3407,3408],{},"0.3",[960,3410,3411],{},"retryOn?: string[]",[2722,3413,3414,3415,3418,3419,3422],{},"Retries a failed call with exponential backoff and jitter. ",[960,3416,3417],{},"retryOn"," limits retries to matching ",[960,3420,3421],{},"error.code","s; omitted, every error retries.",[2704,3424,3425,3430,3446],{},[2722,3426,3427],{},[960,3428,3429],{},"withLogging(opts?)",[2722,3431,3432,3392,3435,3396,3438,2028,3441,3392,3444,1200],{},[960,3433,3434],{},"level",[960,3436,3437],{},"'info'",[960,3439,3440],{},"logger?",[960,3442,3443],{},"logData",[960,3445,2783],{},[2722,3447,3448,3449,1577],{},"Logs every call's method, arguments, and duration. Envelope payloads are redacted unless ",[960,3450,3451],{},"logData: true",[2704,3453,3454,3459,3464],{},[2722,3455,3456],{},[960,3457,3458],{},"withMetrics(opts)",[2722,3460,3461],{},[960,3462,3463],{},"onOperation: (op: StoreOperation) => void",[2722,3465,3466,3467,3470,3471,1577],{},"Calls ",[960,3468,3469],{},"onOperation"," after every call with ",[960,3472,3473],{},"{ method, vault, collection?, id?, durationMs, success, error? }",[2704,3475,3476,3481,3501],{},[2722,3477,3478],{},[960,3479,3480],{},"withCircuitBreaker(opts?)",[2722,3482,3483,3392,3486,3396,3489,3392,3492,3396,3495,2028,3498],{},[960,3484,3485],{},"failureThreshold",[960,3487,3488],{},"5",[960,3490,3491],{},"resetTimeoutMs",[960,3493,3494],{},"30_000",[960,3496,3497],{},"onOpen?",[960,3499,3500],{},"onClose?",[2722,3502,3503,3504,3506,3507,2759,3509,2759,3511,3514],{},"Opens after ",[960,3505,3485],{}," consecutive failures, short-circuiting to safe fallbacks (",[960,3508,3120],{},[960,3510,3132],{},[960,3512,3513],{},"{}",") until a half-open probe succeeds.",[2704,3516,3517,3522,3535],{},[2722,3518,3519],{},[960,3520,3521],{},"withCache(opts?)",[2722,3523,3524,3392,3527,3396,3529,3392,3532,1200],{},[960,3525,3526],{},"maxEntries",[960,3528,3402],{},[960,3530,3531],{},"ttlMs",[960,3533,3534],{},"60_000",[2722,3536,3537,3538,3541,3542,2759,3544,3546,3547,2759,3549,2759,3551,3553],{},"Read-through LRU cache for ",[960,3539,3540],{},"get()",". ",[960,3543,1924],{},[960,3545,3125],{}," invalidate the entry immediately; ",[960,3548,3129],{},[960,3550,2880],{},[960,3552,2883],{}," bypass the cache entirely. Caches encrypted envelopes, not plaintext.",[2704,3555,3556,3561,3588],{},[2722,3557,3558],{},[960,3559,3560],{},"withHealthCheck(opts?)",[2722,3562,3563,3392,3566,3396,3568,3392,3571,3396,3573,3392,3576,3396,3579,2028,3582,2028,3585],{},[960,3564,3565],{},"checkIntervalMs",[960,3567,3494],{},[960,3569,3570],{},"suspendAfterFailures",[960,3572,3395],{},[960,3574,3575],{},"resumeAfterSuccess",[960,3577,3578],{},"1",[960,3580,3581],{},"onSuspend?",[960,3583,3584],{},"onResume?",[960,3586,3587],{},"check?",[2722,3589,3590,3591,3594,3595,3598],{},"Pings the store on an interval (",[960,3592,3593],{},"store.ping()",", or a custom ",[960,3596,3597],{},"check()","); auto-suspends the store after repeated failures and auto-resumes on recovery.",[941,3600,3602],{"id":3601},"availability","Availability",[946,3604,3605,3606,2028,3609,3611,3612,3614,3615,3618],{},"There is no opt-in step: ",[960,3607,3608],{},"routeStore",[960,3610,3359],{},", and the middleware factories are core exports of ",[960,3613,991],{},", available to every consumer whether or not they're used. Plain single-store usage (",[960,3616,3617],{},"createNoydb({ store: someStore })",") simply never calls them.",[941,3620,3622],{"id":3621},"pairs-well-with","Pairs well with",[1006,3624,3625,3650,3664],{},[1009,3626,3627,3631,3632,2759,3635,3638,3639,3642,3643,3645,3646,3649],{},[950,3628,3629],{},[955,3630,629],{"href":629}," — a pod store (",[960,3633,3634],{},"wrapPodStore",[960,3636,3637],{},"createPodStore",", from ",[960,3640,3641],{},"@noy-db\u002Fhub\u002Fpod",") can be one leg of a ",[960,3644,962],{}," setup, e.g. archiving to a ",[960,3647,3648],{},".noydb"," file",[1009,3651,3652,3656,3657,3660,3661,3663],{},[950,3653,3654],{},[955,3655,719],{"href":719}," — bounded-memory ",[960,3658,3659],{},"prefetch: false"," collections combine naturally with ",[960,3662,2833],{},"-based hot\u002Fcold routing",[1009,3665,3666,3670,3671],{},[950,3667,3668],{},[955,3669,705],{"href":705}," — required if a routed store's lazy-mode collections need ",[960,3672,3673],{},"lazyQuery()",[941,3675,3677],{"id":3676},"edge-cases-limits","Edge cases & limits",[1006,3679,3680,3713,3725,3749,3768,3791,3801],{},[1009,3681,3682,2028,3684,2028,3686,3688,3689,3691,3692,3694,3695,2759,3697,2759,3699,3701,3702,2759,3704,3706,3707,3709,3710,3712],{},[960,3683,2938],{},[960,3685,2965],{},[960,3687,2870],{},", and ",[960,3690,2904],{}," are accepted by ",[960,3693,2696],{}," and their stores participate in ",[960,3696,2880],{},[960,3698,2883],{},[960,3700,2886],{},", but none of the four affects a routing decision in the current version: quota-triggered overflow can never trigger, and ",[960,3703,2870],{},[960,3705,2904],{}," are never read by ",[960,3708,2893],{}," or ",[960,3711,2005],{},". Configuring them is a no-op beyond making those stores reachable for bulk export\u002Fimport.",[1009,3714,3715,3718,3719,3721,3722,3724],{},[960,3716,3717],{},"resolveBackend()"," only consults ",[960,3720,2809],{},"; it does not account for per-collection ",[960,3723,2790],{}," overrides — it exists for the vault-prefix geographic-routing case specifically.",[1009,3726,3727,3728,3117,3730,2028,3732,3117,3734,2028,3736,3117,3738,3740,3741,3744,3745,3748],{},"The circuit breaker's fallback values are type-shaped but empty (",[960,3729,2283],{},[960,3731,3120],{},[960,3733,3129],{},[960,3735,3132],{},[960,3737,2880],{},[960,3739,3513],{},") — callers see \"no data\" rather than an error while the circuit is open. Pair ",[960,3742,3743],{},"withCircuitBreaker"," with ",[960,3746,3747],{},"withRetry"," (listed before it) so transient errors are absorbed before they count toward the failure threshold.",[1009,3750,3751,3754,3755,3757,3758,2028,3760,3688,3762,3764,3765,3767],{},[960,3752,3753],{},"withCache"," is store-level: it caches whatever ",[960,3756,3540],{}," returns per vault\u002Fcollection\u002Fid. ",[960,3759,3129],{},[960,3761,2880],{},[960,3763,2883],{}," always bypass it, so cached data can't go stale from a bulk write you didn't also ",[960,3766,3540],{}," through the same wrapped store.",[1009,3769,3770,3771,3773,3774,3777,3778,3781,3782,2759,3784,3787,3788,3790],{},"Size-tiered ",[960,3772,621],{}," routing (",[960,3775,3776],{},"{ small, large, threshold }",") can only pick a store by size at write time — ",[960,3779,3780],{},"put()"," sees the envelope's byte length, but a plain ",[960,3783,3540],{},[960,3785,3786],{},"list()"," route for blob chunks defaults to ",[960,3789,2765],{}," when it can't determine size up front.",[1009,3792,3793,3796,3797,3800],{},[960,3794,3795],{},"suspend(route, { queue: true })"," drops the oldest queued write once ",[960,3798,3799],{},"maxQueueSize"," is reached; size the queue for your expected outage window if you rely on it.",[1009,3802,3803,3806,3807,3810,3811,3814,3815,3817,3818,3821,3822,3824,3825,3828],{},[960,3804,3805],{},"override(route, store, { hydrate: true })"," does not copy any data — ",[960,3808,3809],{},"hydrate"," only makes ",[960,3812,3813],{},"override()"," return a ",[960,3816,3080],{}," instead of resolving synchronously. You are responsible for copying every record from the route's current store into the new store yourself, e.g. ",[960,3819,3820],{},"await copyAllRecords(oldStore, newStore)"," before calling ",[960,3823,3813],{},", or inline inside your own ",[960,3826,3827],{},"async"," wrapper around it. Skip this and the route switches to an empty store.",[941,3830,3832],{"id":3831},"see-also","See also",[1006,3834,3835,3840,3845,3850,3858,3863,3870],{},[1009,3836,3837,3839],{},[955,3838,629],{"href":630}," — pod stores as a routing target",[1009,3841,3842,3844],{},[955,3843,719],{"href":720}," — bounded-memory collections that pair well with hot\u002Fcold routing",[1009,3846,3847,3849],{},[955,3848,621],{"href":622}," — the usual reason to route: chunked binary data on a separate backend",[1009,3851,3852,3854,3855,3857],{},[955,3853,705],{"href":706}," — required for ",[960,3856,3673],{}," on a routed store's lazy collections",[1009,3859,3860,3862],{},[955,3861,966],{"href":51}," — the store contract every route and middleware layer satisfies",[1009,3864,3865,2035,3867,3869],{},[955,3866,776],{"href":777},[960,3868,3274],{},", the period-driven consumer of the cold route",[1009,3871,3872,3873,1577],{},"Proven by showcase ",[955,3874,3878],{"href":3875,"rel":3876},"https:\u002F\u002Fgithub.com\u002Fnoy-db\u002Fdocs\u002Fblob\u002Fmain\u002Fshowcases\u002Fsrc\u002F05-storage-routing.showcase.test.ts",[3877],"nofollow",[960,3879,3880],{},"05-storage-routing",[3882,3883,3884],"style",{},"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 .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}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}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 .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 .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}",{"title":1034,"searchDepth":1118,"depth":1118,"links":3886},[3887,3888,3889,3890,3895,3905,3906,3907,3908],{"id":943,"depth":1097,"text":944},{"id":1003,"depth":1097,"text":1004},{"id":1026,"depth":1097,"text":1027},{"id":1666,"depth":1097,"text":1667,"children":3891},[3892,3893,3894],{"id":1671,"depth":1118,"text":1672},{"id":2063,"depth":1118,"text":2064},{"id":2434,"depth":1118,"text":2435},{"id":2644,"depth":1097,"text":2645,"children":3896},[3897,3903,3904],{"id":2648,"depth":1118,"text":2651,"children":3898},[3899,3900,3902],{"id":2693,"depth":1139,"text":2696},{"id":3008,"depth":1139,"text":3901},"RoutedNoydbStore — extra methods beyond the store contract",{"id":3225,"depth":1139,"text":3226},{"id":3282,"depth":1118,"text":3285},{"id":981,"depth":1118,"text":3363},{"id":3601,"depth":1097,"text":3602},{"id":3621,"depth":1097,"text":3622},{"id":3676,"depth":1097,"text":3677},{"id":3831,"depth":1097,"text":3832},null,"Multi-store routing (routeStore()) and composable store middleware (wrapStore() + retry\u002Fcircuit-breaker\u002Fhealth\u002Fcache\u002Flogging\u002Fmetrics) — a core feature.","md",{},"service",{"title":808,"description":3910},"stable","important","8Q0icvexHbJrOog66HbO3Sjshdw__ME0jJU8DatqaKY",{"data":3919,"body":3920},{},{"type":3921,"children":3922},"root",[3923],{"type":3924,"tag":946,"props":3925,"children":3926},"element",{},[3927,3933],{"type":3924,"tag":960,"props":3928,"children":3930},{"className":3929},[],[3931],{"type":3932,"value":991},"text",{"type":3932,"value":3934}," (root export)",{"data":3936,"body":3937},{},{"type":3921,"children":3938},[3939],{"type":3924,"tag":946,"props":3940,"children":3941},{},[3942,3944,3949,3950,3955],{"type":3932,"value":3943},"Core feature — ",{"type":3924,"tag":960,"props":3945,"children":3947},{"className":3946},[],[3948],{"type":3932,"value":3608},{"type":3932,"value":2028},{"type":3924,"tag":960,"props":3951,"children":3953},{"className":3952},[],[3954],{"type":3932,"value":3359},{"type":3932,"value":3956},", and the middleware factories are direct named imports, always available.",1791896581626]