[{"data":1,"prerenderedAt":3719},["ShallowReactive",2],{"navigation":3,"\u002Fservices\u002Fhistory":927,"mdc-12bfc2-key":3661,"mdc-m8uhwi-key":3677,"mdc-leqdch-key":3689,"mdc-aa672j-key":3701,"mdc-f4643o-key":3710},[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":697,"access":12,"apiToc":929,"body":930,"category":3652,"description":3653,"extension":3654,"meta":3655,"navigation":3652,"nest":3656,"path":698,"seo":3657,"sinceVersion":3652,"status":3658,"stem":699,"subtitle":3652,"tier":3659,"tocExternal":3652,"__hash__":3660},"docs\u002Fservices\u002Fhistory.md",false,{"type":931,"value":932,"toc":3624},"minimark",[933,936,940,945,989,993,1019,1023,1052,1056,1249,1252,1343,1348,1366,1478,1507,1510,1515,1525,1575,1590,1619,1623,1627,1886,2091,2096,2233,2237,2247,2279,2757,2793,2803,2807,2816,2903,2912,2916,2930,3002,3018,3047,3051,3057,3196,3202,3300,3304,3343,3347,3350,3438,3442,3479,3483,3516,3520,3565,3569,3620],[934,935,697],"h1",{"id":697},[937,938],"service-meta",{":rows":939},"[{\"label\":\"Subpath\",\"value\":\"`@noy-db\u002Fhub\u002Fhistory`\"},{\"label\":\"Factory\",\"value\":\"`withHistory()`\"},{\"label\":\"Layer\",\"value\":\"`with-commit`\"},{\"label\":\"Cluster\",\"value\":\"B — Write & Mutate\"},{\"label\":\"LOC cost\",\"value\":\"~1,880 (off-bundle when not opted in)\"}]",[941,942,944],"h2",{"id":943},"what-it-does","What it does",[946,947,948,949,953,954,958,959,963,964,967,968,972,973,976,977,980,981,984,985,988],"p",{},"This service keeps a full audit trail of every write to a ",[950,951,952],"strong",{},"vault"," — noy-db's\nend-to-end-encrypted document store (see ",[955,956,957],"a",{"href":48},"Vaults & collections",").\nOnce enabled, every successful ",[960,961,962],"code",{},"put"," \u002F ",[960,965,966],{},"delete"," archives a complete encrypted snapshot of the\nrecord's ",[969,970,971],"em",{},"previous"," state and appends an entry to a hash-chained, tamper-evident ",[950,974,975],{},"ledger"," — a\nsequential log where each entry embeds the hash of the entry before it, so editing, deleting, or\nreordering a past entry breaks the chain and is detectable by ",[960,978,979],{},"verify()",". On top of that ledger the\nservice adds JSON Patch–based deltas (compact diffs between consecutive versions), typed\nfield-level diffing, one-call revert, and ",[960,982,983],{},"vault.at(timestamp)"," — a read-only view of the vault as\nit stood at any past instant. Because it's opt-in, none of the ~1,880 lines behind it enter your\napplication bundle unless you import ",[960,986,987],{},"withHistory",".",[941,990,992],{"id":991},"when-you-need-it","When you need it",[994,995,996,1000,1003,1009,1016],"ul",{},[997,998,999],"li",{},"Compliance \u002F audit trails — \"who changed this record, and when\"",[997,1001,1002],{},"Undo \u002F revert UX",[997,1004,1005,1006],{},"\"What did this record look like on date X\" — point-in-time reads via ",[960,1007,1008],{},"vault.at()",[997,1010,1011,1012,1015],{},"Tamper detection — ",[960,1013,1014],{},"vault.verifyBackupIntegrity()"," walks the ledger and cross-checks it against\nthe stored data",[997,1017,1018],{},"Diff visualisation between two versions of a record",[941,1020,1022],{"id":1021},"prerequisites","Prerequisites",[994,1024,1025],{},[997,1026,1027,1030,1031,1034,1035,1038,1039,1038,1042,1038,1045,1048,1049,1051],{},[950,1028,1029],{},"None"," — ",[960,1032,1033],{},"withHistory()"," alone enables ",[960,1036,1037],{},"history()",", ",[960,1040,1041],{},"getVersion()",[960,1043,1044],{},"diff()",[960,1046,1047],{},"revert()",", and ",[960,1050,1008],{}," on every collection.",[941,1053,1055],{"id":1054},"opt-in","Opt in",[1057,1058,1063],"pre",{"className":1059,"code":1060,"language":1061,"meta":1062,"style":1062},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { createNoydb } from '@noy-db\u002Fhub'\nimport { withHistory } from '@noy-db\u002Fhub\u002Fhistory'\n\nconst db = await createNoydb({\n  user: 'firm',\n  secret: 'firm-secret-2026',   \u002F\u002F omit `store` to use the built-in in-memory store\n  historyStrategy: withHistory(),\n})\nconst vault = await db.openVault('books')\n","ts","",[960,1064,1065,1098,1119,1126,1151,1172,1194,1209,1218],{"__ignoreMap":1062},[1066,1067,1070,1074,1078,1082,1085,1088,1091,1095],"span",{"class":1068,"line":1069},"line",1,[1066,1071,1073],{"class":1072},"s7zQu","import",[1066,1075,1077],{"class":1076},"sMK4o"," {",[1066,1079,1081],{"class":1080},"sTEyZ"," createNoydb",[1066,1083,1084],{"class":1076}," }",[1066,1086,1087],{"class":1072}," from",[1066,1089,1090],{"class":1076}," '",[1066,1092,1094],{"class":1093},"sfazB","@noy-db\u002Fhub",[1066,1096,1097],{"class":1076},"'\n",[1066,1099,1101,1103,1105,1108,1110,1112,1114,1117],{"class":1068,"line":1100},2,[1066,1102,1073],{"class":1072},[1066,1104,1077],{"class":1076},[1066,1106,1107],{"class":1080}," withHistory",[1066,1109,1084],{"class":1076},[1066,1111,1087],{"class":1072},[1066,1113,1090],{"class":1076},[1066,1115,1116],{"class":1093},"@noy-db\u002Fhub\u002Fhistory",[1066,1118,1097],{"class":1076},[1066,1120,1122],{"class":1068,"line":1121},3,[1066,1123,1125],{"emptyLinePlaceholder":1124},true,"\n",[1066,1127,1129,1133,1136,1139,1142,1145,1148],{"class":1068,"line":1128},4,[1066,1130,1132],{"class":1131},"spNyl","const",[1066,1134,1135],{"class":1080}," db ",[1066,1137,1138],{"class":1076},"=",[1066,1140,1141],{"class":1072}," await",[1066,1143,1081],{"class":1144},"s2Zo4",[1066,1146,1147],{"class":1080},"(",[1066,1149,1150],{"class":1076},"{\n",[1066,1152,1154,1158,1161,1163,1166,1169],{"class":1068,"line":1153},5,[1066,1155,1157],{"class":1156},"swJcz","  user",[1066,1159,1160],{"class":1076},":",[1066,1162,1090],{"class":1076},[1066,1164,1165],{"class":1093},"firm",[1066,1167,1168],{"class":1076},"'",[1066,1170,1171],{"class":1076},",\n",[1066,1173,1175,1178,1180,1182,1185,1187,1190],{"class":1068,"line":1174},6,[1066,1176,1177],{"class":1156},"  secret",[1066,1179,1160],{"class":1076},[1066,1181,1090],{"class":1076},[1066,1183,1184],{"class":1093},"firm-secret-2026",[1066,1186,1168],{"class":1076},[1066,1188,1189],{"class":1076},",",[1066,1191,1193],{"class":1192},"sHwdD","   \u002F\u002F omit `store` to use the built-in in-memory store\n",[1066,1195,1197,1200,1202,1204,1207],{"class":1068,"line":1196},7,[1066,1198,1199],{"class":1156},"  historyStrategy",[1066,1201,1160],{"class":1076},[1066,1203,1107],{"class":1144},[1066,1205,1206],{"class":1080},"()",[1066,1208,1171],{"class":1076},[1066,1210,1212,1215],{"class":1068,"line":1211},8,[1066,1213,1214],{"class":1076},"}",[1066,1216,1217],{"class":1080},")\n",[1066,1219,1221,1223,1226,1228,1230,1233,1235,1238,1240,1242,1245,1247],{"class":1068,"line":1220},9,[1066,1222,1132],{"class":1131},[1066,1224,1225],{"class":1080}," vault ",[1066,1227,1138],{"class":1076},[1066,1229,1141],{"class":1072},[1066,1231,1232],{"class":1080}," db",[1066,1234,988],{"class":1076},[1066,1236,1237],{"class":1144},"openVault",[1066,1239,1147],{"class":1080},[1066,1241,1168],{"class":1076},[1066,1243,1244],{"class":1093},"books",[1066,1246,1168],{"class":1076},[1066,1248,1217],{"class":1080},[946,1250,1251],{},"Vault-wide retention caps how many snapshots pile up per record:",[1057,1253,1255],{"className":1059,"code":1254,"language":1061,"meta":1062,"style":1062},"const db = await createNoydb({\n  user: 'firm',\n  secret: 'firm-secret-2026',\n  historyStrategy: withHistory(),\n  history: { maxVersions: 50 },   \u002F\u002F oldest snapshot pruned once a record exceeds 50 versions\n})\n",[960,1256,1257,1273,1287,1301,1313,1337],{"__ignoreMap":1062},[1066,1258,1259,1261,1263,1265,1267,1269,1271],{"class":1068,"line":1069},[1066,1260,1132],{"class":1131},[1066,1262,1135],{"class":1080},[1066,1264,1138],{"class":1076},[1066,1266,1141],{"class":1072},[1066,1268,1081],{"class":1144},[1066,1270,1147],{"class":1080},[1066,1272,1150],{"class":1076},[1066,1274,1275,1277,1279,1281,1283,1285],{"class":1068,"line":1100},[1066,1276,1157],{"class":1156},[1066,1278,1160],{"class":1076},[1066,1280,1090],{"class":1076},[1066,1282,1165],{"class":1093},[1066,1284,1168],{"class":1076},[1066,1286,1171],{"class":1076},[1066,1288,1289,1291,1293,1295,1297,1299],{"class":1068,"line":1121},[1066,1290,1177],{"class":1156},[1066,1292,1160],{"class":1076},[1066,1294,1090],{"class":1076},[1066,1296,1184],{"class":1093},[1066,1298,1168],{"class":1076},[1066,1300,1171],{"class":1076},[1066,1302,1303,1305,1307,1309,1311],{"class":1068,"line":1128},[1066,1304,1199],{"class":1156},[1066,1306,1160],{"class":1076},[1066,1308,1107],{"class":1144},[1066,1310,1206],{"class":1080},[1066,1312,1171],{"class":1076},[1066,1314,1315,1318,1320,1322,1325,1327,1331,1334],{"class":1068,"line":1153},[1066,1316,1317],{"class":1156},"  history",[1066,1319,1160],{"class":1076},[1066,1321,1077],{"class":1076},[1066,1323,1324],{"class":1156}," maxVersions",[1066,1326,1160],{"class":1076},[1066,1328,1330],{"class":1329},"sbssI"," 50",[1066,1332,1333],{"class":1076}," },",[1066,1335,1336],{"class":1192},"   \u002F\u002F oldest snapshot pruned once a record exceeds 50 versions\n",[1066,1338,1339,1341],{"class":1068,"line":1174},[1066,1340,1214],{"class":1076},[1066,1342,1217],{"class":1080},[1344,1345,1347],"h3",{"id":1346},"per-collection-scoping","Per-collection scoping",[946,1349,1350,1351,1353,1354,1357,1358,1361,1362,1365],{},"By default ",[960,1352,1033],{}," is all-or-nothing: every collection gets per-record snapshots ",[950,1355,1356],{},"and","\nappends to the vault-wide tamper ledger. Pass a per-collection ",[960,1359,1360],{},"historyConfig"," to\n",[960,1363,1364],{},"vault.collection()"," to override the vault-wide config for that collection only (wholesale, not\nmerged):",[1057,1367,1369],{"className":1059,"code":1368,"language":1061,"meta":1062,"style":1062},"\u002F\u002F Filed legal records — full audit (snapshots + tamper ledger). This is the default.\nconst receipts = vault.collection('receipts')\n\n\u002F\u002F High-churn operational collection — no snapshots, no ledger entries.\nconst scratch = vault.collection('scratch', {\n  historyConfig: { enabled: false, ledger: false },\n})\n",[960,1370,1371,1376,1404,1408,1413,1442,1472],{"__ignoreMap":1062},[1066,1372,1373],{"class":1068,"line":1069},[1066,1374,1375],{"class":1192},"\u002F\u002F Filed legal records — full audit (snapshots + tamper ledger). This is the default.\n",[1066,1377,1378,1380,1383,1385,1388,1390,1393,1395,1397,1400,1402],{"class":1068,"line":1100},[1066,1379,1132],{"class":1131},[1066,1381,1382],{"class":1080}," receipts ",[1066,1384,1138],{"class":1076},[1066,1386,1387],{"class":1080}," vault",[1066,1389,988],{"class":1076},[1066,1391,1392],{"class":1144},"collection",[1066,1394,1147],{"class":1080},[1066,1396,1168],{"class":1076},[1066,1398,1399],{"class":1093},"receipts",[1066,1401,1168],{"class":1076},[1066,1403,1217],{"class":1080},[1066,1405,1406],{"class":1068,"line":1121},[1066,1407,1125],{"emptyLinePlaceholder":1124},[1066,1409,1410],{"class":1068,"line":1128},[1066,1411,1412],{"class":1192},"\u002F\u002F High-churn operational collection — no snapshots, no ledger entries.\n",[1066,1414,1415,1417,1420,1422,1424,1426,1428,1430,1432,1435,1437,1439],{"class":1068,"line":1153},[1066,1416,1132],{"class":1131},[1066,1418,1419],{"class":1080}," scratch ",[1066,1421,1138],{"class":1076},[1066,1423,1387],{"class":1080},[1066,1425,988],{"class":1076},[1066,1427,1392],{"class":1144},[1066,1429,1147],{"class":1080},[1066,1431,1168],{"class":1076},[1066,1433,1434],{"class":1093},"scratch",[1066,1436,1168],{"class":1076},[1066,1438,1189],{"class":1076},[1066,1440,1441],{"class":1076}," {\n",[1066,1443,1444,1447,1449,1451,1454,1456,1460,1462,1465,1467,1469],{"class":1068,"line":1174},[1066,1445,1446],{"class":1156},"  historyConfig",[1066,1448,1160],{"class":1076},[1066,1450,1077],{"class":1076},[1066,1452,1453],{"class":1156}," enabled",[1066,1455,1160],{"class":1076},[1066,1457,1459],{"class":1458},"sfNiH"," false",[1066,1461,1189],{"class":1076},[1066,1463,1464],{"class":1156}," ledger",[1066,1466,1160],{"class":1076},[1066,1468,1459],{"class":1458},[1066,1470,1471],{"class":1076}," },\n",[1066,1473,1474,1476],{"class":1068,"line":1196},[1066,1475,1214],{"class":1076},[1066,1477,1217],{"class":1080},[994,1479,1480,1486],{},[997,1481,1482,1485],{},[960,1483,1484],{},"enabled: false"," — suppress per-record snapshots for this collection.",[997,1487,1488,1491,1492,1495,1496,1499,1500,1503,1504,1506],{},[960,1489,1490],{},"ledger: false"," — exclude this collection's writes from the hash-chained tamper ledger. Its\nputs\u002Fdeletes leave ",[950,1493,1494],{},"no"," ledger entry; the chain stays valid (",[960,1497,1498],{},"vault.ledger().verify()"," still\npasses) — it simply never receives those entries. Independent of ",[960,1501,1502],{},"enabled",". No effect when\n",[960,1505,1033],{}," is not active (there is no ledger).",[946,1508,1509],{},"This lets you confine snapshots + tamper-evidence to the few collections where they carry legal\nweight, without paying snapshot + ledger-entry-per-write across operational \u002F derived collections\nvault-wide.",[1511,1512,1514],"h4",{"id":1513},"what-each-half-actually-costs","What each half actually costs",[946,1516,1517,1520,1521,1524],{},[950,1518,1519],{},"The hash chain is the entire cost of history; per-record snapshots are effectively free.","\nMeasured upstream on the primitive write path — no guards, MVs or derivations; sequential ",[960,1522,1523],{},"put()",";\nin-memory store; N = 3000 (noy-db#1248):",[1526,1527,1528,1541],"table",{},[1529,1530,1531],"thead",{},[1532,1533,1534,1538],"tr",{},[1535,1536,1537],"th",{},"configuration",[1535,1539,1540],{},"relative cost",[1542,1543,1544,1555,1565],"tbody",{},[1532,1545,1546,1550],{},[1547,1548,1549],"td",{},"snapshots only",[1547,1551,1552],{},[950,1553,1554],{},"1.00×",[1532,1556,1557,1560],{},[1547,1558,1559],{},"ledger only",[1547,1561,1562],{},[950,1563,1564],{},"2.35×",[1532,1566,1567,1570],{},[1547,1568,1569],{},"both",[1547,1571,1572],{},[950,1573,1574],{},"2.41×",[946,1576,1577,1578,1581,1582,1585,1586,1589],{},"The cause is structural, not an inefficiency to optimize away: an entry's ",[960,1579,1580],{},"prevHash"," depends on the\ncurrent head, so appends are ",[950,1583,1584],{},"inherently serialized"," — one head read, one delta encryption and one\nCAS-put per record operation. That serialization ",[969,1587,1588],{},"is"," the tamper-evidence property.",[1591,1592,1595,1601],"callout",{"color":1593,"icon":1594},"neutral","i-lucide-gauge",[946,1596,1597,1600],{},[950,1598,1599],{},"The ratio travels; the absolute numbers do not."," Those figures come from an in-memory store and\nunderstate the felt cost. On browser IndexedDB the ledger adds a whole extra encrypted store write\nto a path whose base operation is already milliseconds — treat ~2.4× as the portable number and the\nin-memory microseconds as a floor.",[946,1602,1603,1604,1607,1608,1611,1612,1615,1616,1618],{},"A single human-paced write pays a difference nobody perceives. What pays visibly is a ",[950,1605,1606],{},"one-click\nbatch"," — an ",[969,1609,1610],{},"approve all",", a CSV import, a period prefill — and a write that fans out through\nderivations and materialized views pays once ",[950,1613,1614],{},"per resulting stored write",". That is what\n",[960,1617,1490],{}," is for on a high-churn collection.",[941,1620,1622],{"id":1621},"usage","Usage",[1344,1624,1626],{"id":1625},"version-snapshots-diff-and-revert","Version snapshots, diff, and revert",[1057,1628,1630],{"className":1059,"code":1629,"language":1061,"meta":1062,"style":1062},"interface Invoice { amount: number; status: string }\nconst invoices = vault.collection\u003CInvoice>('invoices')\n\nawait invoices.put('inv-1', { amount: 1000, status: 'draft' })   \u002F\u002F → version 1\nawait invoices.put('inv-1', { amount: 2000, status: 'sent' })    \u002F\u002F → version 2\nawait invoices.put('inv-1', { amount: 2000, status: 'paid' })    \u002F\u002F → version 3 (current)\n\nconst versions = await invoices.history('inv-1')\n",[960,1631,1632,1665,1700,1704,1757,1807,1855,1859],{"__ignoreMap":1062},[1066,1633,1634,1637,1641,1643,1646,1648,1651,1654,1657,1659,1662],{"class":1068,"line":1069},[1066,1635,1636],{"class":1131},"interface",[1066,1638,1640],{"class":1639},"sBMFI"," Invoice",[1066,1642,1077],{"class":1076},[1066,1644,1645],{"class":1156}," amount",[1066,1647,1160],{"class":1076},[1066,1649,1650],{"class":1639}," number",[1066,1652,1653],{"class":1076},";",[1066,1655,1656],{"class":1156}," status",[1066,1658,1160],{"class":1076},[1066,1660,1661],{"class":1639}," string",[1066,1663,1664],{"class":1076}," }\n",[1066,1666,1667,1669,1672,1674,1676,1678,1680,1683,1686,1689,1691,1693,1696,1698],{"class":1068,"line":1100},[1066,1668,1132],{"class":1131},[1066,1670,1671],{"class":1080}," invoices ",[1066,1673,1138],{"class":1076},[1066,1675,1387],{"class":1080},[1066,1677,988],{"class":1076},[1066,1679,1392],{"class":1144},[1066,1681,1682],{"class":1076},"\u003C",[1066,1684,1685],{"class":1639},"Invoice",[1066,1687,1688],{"class":1076},">",[1066,1690,1147],{"class":1080},[1066,1692,1168],{"class":1076},[1066,1694,1695],{"class":1093},"invoices",[1066,1697,1168],{"class":1076},[1066,1699,1217],{"class":1080},[1066,1701,1702],{"class":1068,"line":1121},[1066,1703,1125],{"emptyLinePlaceholder":1124},[1066,1705,1706,1709,1712,1714,1716,1718,1720,1723,1725,1727,1729,1731,1733,1736,1738,1740,1742,1744,1747,1749,1751,1754],{"class":1068,"line":1128},[1066,1707,1708],{"class":1072},"await",[1066,1710,1711],{"class":1080}," invoices",[1066,1713,988],{"class":1076},[1066,1715,962],{"class":1144},[1066,1717,1147],{"class":1080},[1066,1719,1168],{"class":1076},[1066,1721,1722],{"class":1093},"inv-1",[1066,1724,1168],{"class":1076},[1066,1726,1189],{"class":1076},[1066,1728,1077],{"class":1076},[1066,1730,1645],{"class":1156},[1066,1732,1160],{"class":1076},[1066,1734,1735],{"class":1329}," 1000",[1066,1737,1189],{"class":1076},[1066,1739,1656],{"class":1156},[1066,1741,1160],{"class":1076},[1066,1743,1090],{"class":1076},[1066,1745,1746],{"class":1093},"draft",[1066,1748,1168],{"class":1076},[1066,1750,1084],{"class":1076},[1066,1752,1753],{"class":1080},")   ",[1066,1755,1756],{"class":1192},"\u002F\u002F → version 1\n",[1066,1758,1759,1761,1763,1765,1767,1769,1771,1773,1775,1777,1779,1781,1783,1786,1788,1790,1792,1794,1797,1799,1801,1804],{"class":1068,"line":1153},[1066,1760,1708],{"class":1072},[1066,1762,1711],{"class":1080},[1066,1764,988],{"class":1076},[1066,1766,962],{"class":1144},[1066,1768,1147],{"class":1080},[1066,1770,1168],{"class":1076},[1066,1772,1722],{"class":1093},[1066,1774,1168],{"class":1076},[1066,1776,1189],{"class":1076},[1066,1778,1077],{"class":1076},[1066,1780,1645],{"class":1156},[1066,1782,1160],{"class":1076},[1066,1784,1785],{"class":1329}," 2000",[1066,1787,1189],{"class":1076},[1066,1789,1656],{"class":1156},[1066,1791,1160],{"class":1076},[1066,1793,1090],{"class":1076},[1066,1795,1796],{"class":1093},"sent",[1066,1798,1168],{"class":1076},[1066,1800,1084],{"class":1076},[1066,1802,1803],{"class":1080},")    ",[1066,1805,1806],{"class":1192},"\u002F\u002F → version 2\n",[1066,1808,1809,1811,1813,1815,1817,1819,1821,1823,1825,1827,1829,1831,1833,1835,1837,1839,1841,1843,1846,1848,1850,1852],{"class":1068,"line":1174},[1066,1810,1708],{"class":1072},[1066,1812,1711],{"class":1080},[1066,1814,988],{"class":1076},[1066,1816,962],{"class":1144},[1066,1818,1147],{"class":1080},[1066,1820,1168],{"class":1076},[1066,1822,1722],{"class":1093},[1066,1824,1168],{"class":1076},[1066,1826,1189],{"class":1076},[1066,1828,1077],{"class":1076},[1066,1830,1645],{"class":1156},[1066,1832,1160],{"class":1076},[1066,1834,1785],{"class":1329},[1066,1836,1189],{"class":1076},[1066,1838,1656],{"class":1156},[1066,1840,1160],{"class":1076},[1066,1842,1090],{"class":1076},[1066,1844,1845],{"class":1093},"paid",[1066,1847,1168],{"class":1076},[1066,1849,1084],{"class":1076},[1066,1851,1803],{"class":1080},[1066,1853,1854],{"class":1192},"\u002F\u002F → version 3 (current)\n",[1066,1856,1857],{"class":1068,"line":1196},[1066,1858,1125],{"emptyLinePlaceholder":1124},[1066,1860,1861,1863,1866,1868,1870,1872,1874,1876,1878,1880,1882,1884],{"class":1068,"line":1211},[1066,1862,1132],{"class":1131},[1066,1864,1865],{"class":1080}," versions ",[1066,1867,1138],{"class":1076},[1066,1869,1141],{"class":1072},[1066,1871,1711],{"class":1080},[1066,1873,988],{"class":1076},[1066,1875,697],{"class":1144},[1066,1877,1147],{"class":1080},[1066,1879,1168],{"class":1076},[1066,1881,1722],{"class":1093},[1066,1883,1168],{"class":1076},[1066,1885,1217],{"class":1080},[1057,1887,1890],{"className":1888,"code":1889,"language":141,"meta":1062,"style":1062},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","[\n  { \"version\": 2, \"timestamp\": \"2026-06-01T10:02:00.000Z\", \"userId\": \"firm\", \"record\": { \"amount\": 2000, \"status\": \"sent\" } },\n  { \"version\": 1, \"timestamp\": \"2026-06-01T10:01:00.000Z\", \"userId\": \"firm\", \"record\": { \"amount\": 1000, \"status\": \"draft\" } }\n]\n",[960,1891,1892,1897,1996,2086],{"__ignoreMap":1062},[1066,1893,1894],{"class":1068,"line":1069},[1066,1895,1896],{"class":1076},"[\n",[1066,1898,1899,1902,1905,1908,1911,1913,1916,1918,1920,1923,1925,1927,1929,1932,1934,1936,1938,1941,1943,1945,1947,1949,1951,1953,1955,1958,1960,1962,1964,1966,1969,1971,1973,1975,1977,1979,1982,1984,1986,1988,1990,1992,1994],{"class":1068,"line":1100},[1066,1900,1901],{"class":1076},"  {",[1066,1903,1904],{"class":1076}," \"",[1066,1906,1907],{"class":1131},"version",[1066,1909,1910],{"class":1076},"\"",[1066,1912,1160],{"class":1076},[1066,1914,1915],{"class":1329}," 2",[1066,1917,1189],{"class":1076},[1066,1919,1904],{"class":1076},[1066,1921,1922],{"class":1131},"timestamp",[1066,1924,1910],{"class":1076},[1066,1926,1160],{"class":1076},[1066,1928,1904],{"class":1076},[1066,1930,1931],{"class":1093},"2026-06-01T10:02:00.000Z",[1066,1933,1910],{"class":1076},[1066,1935,1189],{"class":1076},[1066,1937,1904],{"class":1076},[1066,1939,1940],{"class":1131},"userId",[1066,1942,1910],{"class":1076},[1066,1944,1160],{"class":1076},[1066,1946,1904],{"class":1076},[1066,1948,1165],{"class":1093},[1066,1950,1910],{"class":1076},[1066,1952,1189],{"class":1076},[1066,1954,1904],{"class":1076},[1066,1956,1957],{"class":1131},"record",[1066,1959,1910],{"class":1076},[1066,1961,1160],{"class":1076},[1066,1963,1077],{"class":1076},[1066,1965,1904],{"class":1076},[1066,1967,1968],{"class":1639},"amount",[1066,1970,1910],{"class":1076},[1066,1972,1160],{"class":1076},[1066,1974,1785],{"class":1329},[1066,1976,1189],{"class":1076},[1066,1978,1904],{"class":1076},[1066,1980,1981],{"class":1639},"status",[1066,1983,1910],{"class":1076},[1066,1985,1160],{"class":1076},[1066,1987,1904],{"class":1076},[1066,1989,1796],{"class":1093},[1066,1991,1910],{"class":1076},[1066,1993,1084],{"class":1076},[1066,1995,1471],{"class":1076},[1066,1997,1998,2000,2002,2004,2006,2008,2011,2013,2015,2017,2019,2021,2023,2026,2028,2030,2032,2034,2036,2038,2040,2042,2044,2046,2048,2050,2052,2054,2056,2058,2060,2062,2064,2066,2068,2070,2072,2074,2076,2078,2080,2082,2084],{"class":1068,"line":1121},[1066,1999,1901],{"class":1076},[1066,2001,1904],{"class":1076},[1066,2003,1907],{"class":1131},[1066,2005,1910],{"class":1076},[1066,2007,1160],{"class":1076},[1066,2009,2010],{"class":1329}," 1",[1066,2012,1189],{"class":1076},[1066,2014,1904],{"class":1076},[1066,2016,1922],{"class":1131},[1066,2018,1910],{"class":1076},[1066,2020,1160],{"class":1076},[1066,2022,1904],{"class":1076},[1066,2024,2025],{"class":1093},"2026-06-01T10:01:00.000Z",[1066,2027,1910],{"class":1076},[1066,2029,1189],{"class":1076},[1066,2031,1904],{"class":1076},[1066,2033,1940],{"class":1131},[1066,2035,1910],{"class":1076},[1066,2037,1160],{"class":1076},[1066,2039,1904],{"class":1076},[1066,2041,1165],{"class":1093},[1066,2043,1910],{"class":1076},[1066,2045,1189],{"class":1076},[1066,2047,1904],{"class":1076},[1066,2049,1957],{"class":1131},[1066,2051,1910],{"class":1076},[1066,2053,1160],{"class":1076},[1066,2055,1077],{"class":1076},[1066,2057,1904],{"class":1076},[1066,2059,1968],{"class":1639},[1066,2061,1910],{"class":1076},[1066,2063,1160],{"class":1076},[1066,2065,1735],{"class":1329},[1066,2067,1189],{"class":1076},[1066,2069,1904],{"class":1076},[1066,2071,1981],{"class":1639},[1066,2073,1910],{"class":1076},[1066,2075,1160],{"class":1076},[1066,2077,1904],{"class":1076},[1066,2079,1746],{"class":1093},[1066,2081,1910],{"class":1076},[1066,2083,1084],{"class":1076},[1066,2085,1664],{"class":1076},[1066,2087,2088],{"class":1068,"line":1128},[1066,2089,2090],{"class":1076},"]\n",[946,2092,2093,2095],{},[960,2094,1037],{}," never includes the current live version — only prior snapshots, newest first. Load one\ndirectly, diff it against the current record, or revert to it:",[1057,2097,2099],{"className":1059,"code":2098,"language":1061,"meta":1062,"style":1062},"const v1 = await invoices.getVersion('inv-1', 1)\n\u002F\u002F → { amount: 1000, status: 'draft' }\n\nconst changes = await invoices.diff('inv-1', 1)   \u002F\u002F versionB omitted → diffs against the current record\n\u002F\u002F → [\n\u002F\u002F     { path: 'amount', type: 'changed', from: 1000, to: 2000 },\n\u002F\u002F     { path: 'status', type: 'changed', from: 'draft', to: 'paid' }\n\u002F\u002F   ]\n\nawait invoices.revert('inv-1', 1)\n\u002F\u002F → writes { amount: 1000, status: 'draft' } back as version 4; the current record is v1's content again\n",[960,2100,2101,2133,2138,2142,2177,2182,2187,2192,2197,2201,2227],{"__ignoreMap":1062},[1066,2102,2103,2105,2108,2110,2112,2114,2116,2119,2121,2123,2125,2127,2129,2131],{"class":1068,"line":1069},[1066,2104,1132],{"class":1131},[1066,2106,2107],{"class":1080}," v1 ",[1066,2109,1138],{"class":1076},[1066,2111,1141],{"class":1072},[1066,2113,1711],{"class":1080},[1066,2115,988],{"class":1076},[1066,2117,2118],{"class":1144},"getVersion",[1066,2120,1147],{"class":1080},[1066,2122,1168],{"class":1076},[1066,2124,1722],{"class":1093},[1066,2126,1168],{"class":1076},[1066,2128,1189],{"class":1076},[1066,2130,2010],{"class":1329},[1066,2132,1217],{"class":1080},[1066,2134,2135],{"class":1068,"line":1100},[1066,2136,2137],{"class":1192},"\u002F\u002F → { amount: 1000, status: 'draft' }\n",[1066,2139,2140],{"class":1068,"line":1121},[1066,2141,1125],{"emptyLinePlaceholder":1124},[1066,2143,2144,2146,2149,2151,2153,2155,2157,2160,2162,2164,2166,2168,2170,2172,2174],{"class":1068,"line":1128},[1066,2145,1132],{"class":1131},[1066,2147,2148],{"class":1080}," changes ",[1066,2150,1138],{"class":1076},[1066,2152,1141],{"class":1072},[1066,2154,1711],{"class":1080},[1066,2156,988],{"class":1076},[1066,2158,2159],{"class":1144},"diff",[1066,2161,1147],{"class":1080},[1066,2163,1168],{"class":1076},[1066,2165,1722],{"class":1093},[1066,2167,1168],{"class":1076},[1066,2169,1189],{"class":1076},[1066,2171,2010],{"class":1329},[1066,2173,1753],{"class":1080},[1066,2175,2176],{"class":1192},"\u002F\u002F versionB omitted → diffs against the current record\n",[1066,2178,2179],{"class":1068,"line":1153},[1066,2180,2181],{"class":1192},"\u002F\u002F → [\n",[1066,2183,2184],{"class":1068,"line":1174},[1066,2185,2186],{"class":1192},"\u002F\u002F     { path: 'amount', type: 'changed', from: 1000, to: 2000 },\n",[1066,2188,2189],{"class":1068,"line":1196},[1066,2190,2191],{"class":1192},"\u002F\u002F     { path: 'status', type: 'changed', from: 'draft', to: 'paid' }\n",[1066,2193,2194],{"class":1068,"line":1211},[1066,2195,2196],{"class":1192},"\u002F\u002F   ]\n",[1066,2198,2199],{"class":1068,"line":1220},[1066,2200,1125],{"emptyLinePlaceholder":1124},[1066,2202,2204,2206,2208,2210,2213,2215,2217,2219,2221,2223,2225],{"class":1068,"line":2203},10,[1066,2205,1708],{"class":1072},[1066,2207,1711],{"class":1080},[1066,2209,988],{"class":1076},[1066,2211,2212],{"class":1144},"revert",[1066,2214,1147],{"class":1080},[1066,2216,1168],{"class":1076},[1066,2218,1722],{"class":1093},[1066,2220,1168],{"class":1076},[1066,2222,1189],{"class":1076},[1066,2224,2010],{"class":1329},[1066,2226,1217],{"class":1080},[1066,2228,2230],{"class":1068,"line":2229},11,[1066,2231,2232],{"class":1192},"\u002F\u002F → writes { amount: 1000, status: 'draft' } back as version 4; the current record is v1's content again\n",[1344,2234,2236],{"id":2235},"the-tamper-evident-ledger","The tamper-evident ledger",[946,2238,2239,2240,2242,2243,2246],{},"Every write to a collection with ",[960,2241,975],{}," enabled also appends an entry to ",[960,2244,2245],{},"vault.ledger()"," — a\nhash chain where each entry embeds the hash of the entry before it:",[1057,2248,2250],{"className":1059,"code":2249,"language":1061,"meta":1062,"style":1062},"const entries = await vault.ledger().entries()\n",[960,2251,2252],{"__ignoreMap":1062},[1066,2253,2254,2256,2259,2261,2263,2265,2267,2269,2271,2273,2276],{"class":1068,"line":1069},[1066,2255,1132],{"class":1131},[1066,2257,2258],{"class":1080}," entries ",[1066,2260,1138],{"class":1076},[1066,2262,1141],{"class":1072},[1066,2264,1387],{"class":1080},[1066,2266,988],{"class":1076},[1066,2268,975],{"class":1144},[1066,2270,1206],{"class":1080},[1066,2272,988],{"class":1076},[1066,2274,2275],{"class":1144},"entries",[1066,2277,2278],{"class":1080},"()\n",[1057,2280,2282],{"className":1888,"code":2281,"language":141,"meta":1062,"style":1062},"[\n  { \"index\": 0, \"prevHash\": \"\", \"op\": \"put\", \"collection\": \"invoices\", \"id\": \"inv-1\", \"version\": 1, \"ts\": \"2026-06-01T10:01:00.000Z\", \"actor\": \"firm\", \"payloadHash\": \"3fa2c1…\" },\n  { \"index\": 1, \"prevHash\": \"9e1b7a…\", \"op\": \"put\", \"collection\": \"invoices\", \"id\": \"inv-1\", \"version\": 2, \"ts\": \"2026-06-01T10:02:00.000Z\", \"actor\": \"firm\", \"payloadHash\": \"8bd004…\", \"deltaHash\": \"c771ee…\" },\n  { \"index\": 2, \"prevHash\": \"51af90…\", \"op\": \"put\", \"collection\": \"invoices\", \"id\": \"inv-1\", \"version\": 3, \"ts\": \"2026-06-01T10:03:00.000Z\", \"actor\": \"firm\", \"payloadHash\": \"0a55dd…\", \"deltaHash\": \"f42b31…\" }\n]\n",[960,2283,2284,2288,2432,2592,2753],{"__ignoreMap":1062},[1066,2285,2286],{"class":1068,"line":1069},[1066,2287,1896],{"class":1076},[1066,2289,2290,2292,2294,2297,2299,2301,2304,2306,2308,2310,2312,2314,2317,2319,2321,2324,2326,2328,2330,2332,2334,2336,2338,2340,2342,2344,2346,2348,2350,2352,2354,2357,2359,2361,2363,2365,2367,2369,2371,2373,2375,2377,2379,2381,2383,2385,2387,2389,2391,2393,2395,2397,2399,2402,2404,2406,2408,2410,2412,2414,2416,2419,2421,2423,2425,2428,2430],{"class":1068,"line":1100},[1066,2291,1901],{"class":1076},[1066,2293,1904],{"class":1076},[1066,2295,2296],{"class":1131},"index",[1066,2298,1910],{"class":1076},[1066,2300,1160],{"class":1076},[1066,2302,2303],{"class":1329}," 0",[1066,2305,1189],{"class":1076},[1066,2307,1904],{"class":1076},[1066,2309,1580],{"class":1131},[1066,2311,1910],{"class":1076},[1066,2313,1160],{"class":1076},[1066,2315,2316],{"class":1076}," \"\"",[1066,2318,1189],{"class":1076},[1066,2320,1904],{"class":1076},[1066,2322,2323],{"class":1131},"op",[1066,2325,1910],{"class":1076},[1066,2327,1160],{"class":1076},[1066,2329,1904],{"class":1076},[1066,2331,962],{"class":1093},[1066,2333,1910],{"class":1076},[1066,2335,1189],{"class":1076},[1066,2337,1904],{"class":1076},[1066,2339,1392],{"class":1131},[1066,2341,1910],{"class":1076},[1066,2343,1160],{"class":1076},[1066,2345,1904],{"class":1076},[1066,2347,1695],{"class":1093},[1066,2349,1910],{"class":1076},[1066,2351,1189],{"class":1076},[1066,2353,1904],{"class":1076},[1066,2355,2356],{"class":1131},"id",[1066,2358,1910],{"class":1076},[1066,2360,1160],{"class":1076},[1066,2362,1904],{"class":1076},[1066,2364,1722],{"class":1093},[1066,2366,1910],{"class":1076},[1066,2368,1189],{"class":1076},[1066,2370,1904],{"class":1076},[1066,2372,1907],{"class":1131},[1066,2374,1910],{"class":1076},[1066,2376,1160],{"class":1076},[1066,2378,2010],{"class":1329},[1066,2380,1189],{"class":1076},[1066,2382,1904],{"class":1076},[1066,2384,1061],{"class":1131},[1066,2386,1910],{"class":1076},[1066,2388,1160],{"class":1076},[1066,2390,1904],{"class":1076},[1066,2392,2025],{"class":1093},[1066,2394,1910],{"class":1076},[1066,2396,1189],{"class":1076},[1066,2398,1904],{"class":1076},[1066,2400,2401],{"class":1131},"actor",[1066,2403,1910],{"class":1076},[1066,2405,1160],{"class":1076},[1066,2407,1904],{"class":1076},[1066,2409,1165],{"class":1093},[1066,2411,1910],{"class":1076},[1066,2413,1189],{"class":1076},[1066,2415,1904],{"class":1076},[1066,2417,2418],{"class":1131},"payloadHash",[1066,2420,1910],{"class":1076},[1066,2422,1160],{"class":1076},[1066,2424,1904],{"class":1076},[1066,2426,2427],{"class":1093},"3fa2c1…",[1066,2429,1910],{"class":1076},[1066,2431,1471],{"class":1076},[1066,2433,2434,2436,2438,2440,2442,2444,2446,2448,2450,2452,2454,2456,2458,2461,2463,2465,2467,2469,2471,2473,2475,2477,2479,2481,2483,2485,2487,2489,2491,2493,2495,2497,2499,2501,2503,2505,2507,2509,2511,2513,2515,2517,2519,2521,2523,2525,2527,2529,2531,2533,2535,2537,2539,2541,2543,2545,2547,2549,2551,2553,2555,2557,2559,2561,2563,2565,2567,2570,2572,2574,2576,2579,2581,2583,2585,2588,2590],{"class":1068,"line":1121},[1066,2435,1901],{"class":1076},[1066,2437,1904],{"class":1076},[1066,2439,2296],{"class":1131},[1066,2441,1910],{"class":1076},[1066,2443,1160],{"class":1076},[1066,2445,2010],{"class":1329},[1066,2447,1189],{"class":1076},[1066,2449,1904],{"class":1076},[1066,2451,1580],{"class":1131},[1066,2453,1910],{"class":1076},[1066,2455,1160],{"class":1076},[1066,2457,1904],{"class":1076},[1066,2459,2460],{"class":1093},"9e1b7a…",[1066,2462,1910],{"class":1076},[1066,2464,1189],{"class":1076},[1066,2466,1904],{"class":1076},[1066,2468,2323],{"class":1131},[1066,2470,1910],{"class":1076},[1066,2472,1160],{"class":1076},[1066,2474,1904],{"class":1076},[1066,2476,962],{"class":1093},[1066,2478,1910],{"class":1076},[1066,2480,1189],{"class":1076},[1066,2482,1904],{"class":1076},[1066,2484,1392],{"class":1131},[1066,2486,1910],{"class":1076},[1066,2488,1160],{"class":1076},[1066,2490,1904],{"class":1076},[1066,2492,1695],{"class":1093},[1066,2494,1910],{"class":1076},[1066,2496,1189],{"class":1076},[1066,2498,1904],{"class":1076},[1066,2500,2356],{"class":1131},[1066,2502,1910],{"class":1076},[1066,2504,1160],{"class":1076},[1066,2506,1904],{"class":1076},[1066,2508,1722],{"class":1093},[1066,2510,1910],{"class":1076},[1066,2512,1189],{"class":1076},[1066,2514,1904],{"class":1076},[1066,2516,1907],{"class":1131},[1066,2518,1910],{"class":1076},[1066,2520,1160],{"class":1076},[1066,2522,1915],{"class":1329},[1066,2524,1189],{"class":1076},[1066,2526,1904],{"class":1076},[1066,2528,1061],{"class":1131},[1066,2530,1910],{"class":1076},[1066,2532,1160],{"class":1076},[1066,2534,1904],{"class":1076},[1066,2536,1931],{"class":1093},[1066,2538,1910],{"class":1076},[1066,2540,1189],{"class":1076},[1066,2542,1904],{"class":1076},[1066,2544,2401],{"class":1131},[1066,2546,1910],{"class":1076},[1066,2548,1160],{"class":1076},[1066,2550,1904],{"class":1076},[1066,2552,1165],{"class":1093},[1066,2554,1910],{"class":1076},[1066,2556,1189],{"class":1076},[1066,2558,1904],{"class":1076},[1066,2560,2418],{"class":1131},[1066,2562,1910],{"class":1076},[1066,2564,1160],{"class":1076},[1066,2566,1904],{"class":1076},[1066,2568,2569],{"class":1093},"8bd004…",[1066,2571,1910],{"class":1076},[1066,2573,1189],{"class":1076},[1066,2575,1904],{"class":1076},[1066,2577,2578],{"class":1131},"deltaHash",[1066,2580,1910],{"class":1076},[1066,2582,1160],{"class":1076},[1066,2584,1904],{"class":1076},[1066,2586,2587],{"class":1093},"c771ee…",[1066,2589,1910],{"class":1076},[1066,2591,1471],{"class":1076},[1066,2593,2594,2596,2598,2600,2602,2604,2606,2608,2610,2612,2614,2616,2618,2621,2623,2625,2627,2629,2631,2633,2635,2637,2639,2641,2643,2645,2647,2649,2651,2653,2655,2657,2659,2661,2663,2665,2667,2669,2671,2673,2675,2677,2679,2681,2684,2686,2688,2690,2692,2694,2696,2699,2701,2703,2705,2707,2709,2711,2713,2715,2717,2719,2721,2723,2725,2727,2729,2732,2734,2736,2738,2740,2742,2744,2746,2749,2751],{"class":1068,"line":1128},[1066,2595,1901],{"class":1076},[1066,2597,1904],{"class":1076},[1066,2599,2296],{"class":1131},[1066,2601,1910],{"class":1076},[1066,2603,1160],{"class":1076},[1066,2605,1915],{"class":1329},[1066,2607,1189],{"class":1076},[1066,2609,1904],{"class":1076},[1066,2611,1580],{"class":1131},[1066,2613,1910],{"class":1076},[1066,2615,1160],{"class":1076},[1066,2617,1904],{"class":1076},[1066,2619,2620],{"class":1093},"51af90…",[1066,2622,1910],{"class":1076},[1066,2624,1189],{"class":1076},[1066,2626,1904],{"class":1076},[1066,2628,2323],{"class":1131},[1066,2630,1910],{"class":1076},[1066,2632,1160],{"class":1076},[1066,2634,1904],{"class":1076},[1066,2636,962],{"class":1093},[1066,2638,1910],{"class":1076},[1066,2640,1189],{"class":1076},[1066,2642,1904],{"class":1076},[1066,2644,1392],{"class":1131},[1066,2646,1910],{"class":1076},[1066,2648,1160],{"class":1076},[1066,2650,1904],{"class":1076},[1066,2652,1695],{"class":1093},[1066,2654,1910],{"class":1076},[1066,2656,1189],{"class":1076},[1066,2658,1904],{"class":1076},[1066,2660,2356],{"class":1131},[1066,2662,1910],{"class":1076},[1066,2664,1160],{"class":1076},[1066,2666,1904],{"class":1076},[1066,2668,1722],{"class":1093},[1066,2670,1910],{"class":1076},[1066,2672,1189],{"class":1076},[1066,2674,1904],{"class":1076},[1066,2676,1907],{"class":1131},[1066,2678,1910],{"class":1076},[1066,2680,1160],{"class":1076},[1066,2682,2683],{"class":1329}," 3",[1066,2685,1189],{"class":1076},[1066,2687,1904],{"class":1076},[1066,2689,1061],{"class":1131},[1066,2691,1910],{"class":1076},[1066,2693,1160],{"class":1076},[1066,2695,1904],{"class":1076},[1066,2697,2698],{"class":1093},"2026-06-01T10:03:00.000Z",[1066,2700,1910],{"class":1076},[1066,2702,1189],{"class":1076},[1066,2704,1904],{"class":1076},[1066,2706,2401],{"class":1131},[1066,2708,1910],{"class":1076},[1066,2710,1160],{"class":1076},[1066,2712,1904],{"class":1076},[1066,2714,1165],{"class":1093},[1066,2716,1910],{"class":1076},[1066,2718,1189],{"class":1076},[1066,2720,1904],{"class":1076},[1066,2722,2418],{"class":1131},[1066,2724,1910],{"class":1076},[1066,2726,1160],{"class":1076},[1066,2728,1904],{"class":1076},[1066,2730,2731],{"class":1093},"0a55dd…",[1066,2733,1910],{"class":1076},[1066,2735,1189],{"class":1076},[1066,2737,1904],{"class":1076},[1066,2739,2578],{"class":1131},[1066,2741,1910],{"class":1076},[1066,2743,1160],{"class":1076},[1066,2745,1904],{"class":1076},[1066,2747,2748],{"class":1093},"f42b31…",[1066,2750,1910],{"class":1076},[1066,2752,1664],{"class":1076},[1066,2754,2755],{"class":1068,"line":1153},[1066,2756,2090],{"class":1076},[1057,2758,2760],{"className":1059,"code":2759,"language":1061,"meta":1062,"style":1062},"const result = await vault.ledger().verify()\n\u002F\u002F → { ok: true, head: '51af90…', length: 3 }\n",[960,2761,2762,2788],{"__ignoreMap":1062},[1066,2763,2764,2766,2769,2771,2773,2775,2777,2779,2781,2783,2786],{"class":1068,"line":1069},[1066,2765,1132],{"class":1131},[1066,2767,2768],{"class":1080}," result ",[1066,2770,1138],{"class":1076},[1066,2772,1141],{"class":1072},[1066,2774,1387],{"class":1080},[1066,2776,988],{"class":1076},[1066,2778,975],{"class":1144},[1066,2780,1206],{"class":1080},[1066,2782,988],{"class":1076},[1066,2784,2785],{"class":1144},"verify",[1066,2787,2278],{"class":1080},[1066,2789,2790],{"class":1068,"line":1100},[1066,2791,2792],{"class":1192},"\u002F\u002F → { ok: true, head: '51af90…', length: 3 }\n",[946,2794,2795,2796,2799,2800,2802],{},"A broken link — an entry edited, reordered, or deleted out from under the chain — flips this to\n",[960,2797,2798],{},"{ ok: false, divergedAt, expected, actual }",", pinpointing the first entry whose recorded\n",[960,2801,1580],{}," no longer matches the recomputed hash of its predecessor.",[1344,2804,2806],{"id":2805},"point-in-time-reads","Point-in-time reads",[946,2808,2809,2811,2812,2815],{},[960,2810,983],{}," reconstructs the vault as it stood at a past instant, using the ledger to\nresolve which put\u002Fdelete was live at that moment and the ",[960,2813,2814],{},"_history"," snapshots to supply the\nrecord's content:",[1057,2817,2819],{"className":1059,"code":2818,"language":1061,"meta":1062,"style":1062},"const asOf = vault.at('2026-06-01T10:01:30.000Z')\nconst snapshot = await asOf.collection\u003CInvoice>('invoices').get('inv-1')\n\u002F\u002F → { amount: 1000, status: 'draft' }   — v1, the state right after the first put\n",[960,2820,2821,2848,2898],{"__ignoreMap":1062},[1066,2822,2823,2825,2828,2830,2832,2834,2837,2839,2841,2844,2846],{"class":1068,"line":1069},[1066,2824,1132],{"class":1131},[1066,2826,2827],{"class":1080}," asOf ",[1066,2829,1138],{"class":1076},[1066,2831,1387],{"class":1080},[1066,2833,988],{"class":1076},[1066,2835,2836],{"class":1144},"at",[1066,2838,1147],{"class":1080},[1066,2840,1168],{"class":1076},[1066,2842,2843],{"class":1093},"2026-06-01T10:01:30.000Z",[1066,2845,1168],{"class":1076},[1066,2847,1217],{"class":1080},[1066,2849,2850,2852,2855,2857,2859,2862,2864,2866,2868,2870,2872,2874,2876,2878,2880,2883,2885,2888,2890,2892,2894,2896],{"class":1068,"line":1100},[1066,2851,1132],{"class":1131},[1066,2853,2854],{"class":1080}," snapshot ",[1066,2856,1138],{"class":1076},[1066,2858,1141],{"class":1072},[1066,2860,2861],{"class":1080}," asOf",[1066,2863,988],{"class":1076},[1066,2865,1392],{"class":1144},[1066,2867,1682],{"class":1076},[1066,2869,1685],{"class":1639},[1066,2871,1688],{"class":1076},[1066,2873,1147],{"class":1080},[1066,2875,1168],{"class":1076},[1066,2877,1695],{"class":1093},[1066,2879,1168],{"class":1076},[1066,2881,2882],{"class":1080},")",[1066,2884,988],{"class":1076},[1066,2886,2887],{"class":1144},"get",[1066,2889,1147],{"class":1080},[1066,2891,1168],{"class":1076},[1066,2893,1722],{"class":1093},[1066,2895,1168],{"class":1076},[1066,2897,1217],{"class":1080},[1066,2899,2900],{"class":1068,"line":1121},[1066,2901,2902],{"class":1192},"\u002F\u002F → { amount: 1000, status: 'draft' }   — v1, the state right after the first put\n",[946,2904,2905,2908,2909,988],{},[960,2906,2907],{},"asOf"," is read-only: every write method on the view it returns throws ",[960,2910,2911],{},"ReadOnlyAtInstantError",[1344,2913,2915],{"id":2914},"retention-and-backup-integrity","Retention and backup integrity",[946,2917,2918,2921,2922,2925,2926,2929],{},[960,2919,2920],{},"pruneRecordHistory"," and ",[960,2923,2924],{},"clearHistory"," delete old snapshots explicitly, on top of any\n",[960,2927,2928],{},"maxVersions"," cap set at opt-in:",[1057,2931,2933],{"className":1059,"code":2932,"language":1061,"meta":1062,"style":1062},"await invoices.pruneRecordHistory('inv-1', { keepVersions: 1 })\n\u002F\u002F → 1   (older snapshots beyond the 1 most recent were deleted)\n\nawait invoices.clearHistory('inv-1')\n\u002F\u002F → 1   (the remaining snapshot for inv-1 was deleted)\n",[960,2934,2935,2968,2973,2977,2997],{"__ignoreMap":1062},[1066,2936,2937,2939,2941,2943,2945,2947,2949,2951,2953,2955,2957,2960,2962,2964,2966],{"class":1068,"line":1069},[1066,2938,1708],{"class":1072},[1066,2940,1711],{"class":1080},[1066,2942,988],{"class":1076},[1066,2944,2920],{"class":1144},[1066,2946,1147],{"class":1080},[1066,2948,1168],{"class":1076},[1066,2950,1722],{"class":1093},[1066,2952,1168],{"class":1076},[1066,2954,1189],{"class":1076},[1066,2956,1077],{"class":1076},[1066,2958,2959],{"class":1156}," keepVersions",[1066,2961,1160],{"class":1076},[1066,2963,2010],{"class":1329},[1066,2965,1084],{"class":1076},[1066,2967,1217],{"class":1080},[1066,2969,2970],{"class":1068,"line":1100},[1066,2971,2972],{"class":1192},"\u002F\u002F → 1   (older snapshots beyond the 1 most recent were deleted)\n",[1066,2974,2975],{"class":1068,"line":1121},[1066,2976,1125],{"emptyLinePlaceholder":1124},[1066,2978,2979,2981,2983,2985,2987,2989,2991,2993,2995],{"class":1068,"line":1128},[1066,2980,1708],{"class":1072},[1066,2982,1711],{"class":1080},[1066,2984,988],{"class":1076},[1066,2986,2924],{"class":1144},[1066,2988,1147],{"class":1080},[1066,2990,1168],{"class":1076},[1066,2992,1722],{"class":1093},[1066,2994,1168],{"class":1076},[1066,2996,1217],{"class":1080},[1066,2998,2999],{"class":1068,"line":1153},[1066,3000,3001],{"class":1192},"\u002F\u002F → 1   (the remaining snapshot for inv-1 was deleted)\n",[946,3003,3004,3006,3007,3010,3011,3014,3015,3017],{},[960,3005,1014],{}," runs the same chain check as ",[960,3008,3009],{},"ledger().verify()",", plus a\ncross-check that every current record's ciphertext hash still matches what the ledger recorded for\nit — the check a restore path (e.g. loading a ",[960,3012,3013],{},".noydb"," ",[955,3016,629],{"href":629},") should run before\ntrusting the data:",[1057,3019,3021],{"className":1059,"code":3020,"language":1061,"meta":1062,"style":1062},"const integrity = await vault.verifyBackupIntegrity()\n\u002F\u002F → { ok: true, head: '51af90…', length: 3 }\n",[960,3022,3023,3043],{"__ignoreMap":1062},[1066,3024,3025,3027,3030,3032,3034,3036,3038,3041],{"class":1068,"line":1069},[1066,3026,1132],{"class":1131},[1066,3028,3029],{"class":1080}," integrity ",[1066,3031,1138],{"class":1076},[1066,3033,1141],{"class":1072},[1066,3035,1387],{"class":1080},[1066,3037,988],{"class":1076},[1066,3039,3040],{"class":1144},"verifyBackupIntegrity",[1066,3042,2278],{"class":1080},[1066,3044,3045],{"class":1068,"line":1100},[1066,3046,2792],{"class":1192},[941,3048,3050],{"id":3049},"api-reference","API reference",[1344,3052,3054,3055,2882],{"id":3053},"collection-methods-enabled-by-withhistory","Collection methods (enabled by ",[960,3056,1033],{},[1526,3058,3059,3072],{},[1529,3060,3061],{},[1532,3062,3063,3066,3069],{},[1535,3064,3065],{},"Method",[1535,3067,3068],{},"Returns",[1535,3070,3071],{},"Purpose",[1542,3073,3074,3097,3112,3130,3153,3179],{},[1532,3075,3076,3081,3086],{},[1547,3077,3078],{},[960,3079,3080],{},"collection.history(id, options?)",[1547,3082,3083],{},[960,3084,3085],{},"Promise\u003CHistoryEntry\u003CT>[]>",[1547,3087,3088,3089,3092,3093,3096],{},"List a record's prior versions, newest first. ",[960,3090,3091],{},"options",": ",[960,3094,3095],{},"{ from?, to?, limit? }"," — ISO date filters plus a max count.",[1532,3098,3099,3104,3109],{},[1547,3100,3101],{},[960,3102,3103],{},"collection.getVersion(id, version)",[1547,3105,3106],{},[960,3107,3108],{},"Promise\u003CT | null>",[1547,3110,3111],{},"Load one specific past version's content.",[1532,3113,3114,3119,3124],{},[1547,3115,3116],{},[960,3117,3118],{},"collection.revert(id, version)",[1547,3120,3121],{},[960,3122,3123],{},"Promise\u003Cvoid>",[1547,3125,3126,3127,3129],{},"Re-",[960,3128,962],{}," a past version's content as a brand-new version.",[1532,3131,3132,3137,3142],{},[1547,3133,3134],{},[960,3135,3136],{},"collection.diff(id, versionA, versionB?)",[1547,3138,3139],{},[960,3140,3141],{},"Promise\u003CDiffEntry[]>",[1547,3143,3144,3145,3148,3149,3152],{},"Field-level diff between two versions; omit ",[960,3146,3147],{},"versionB"," to diff against the current record. ",[960,3150,3151],{},"versionA: 0"," means \"before creation.\"",[1532,3154,3155,3160,3165],{},[1547,3156,3157],{},[960,3158,3159],{},"collection.pruneRecordHistory(id?, options)",[1547,3161,3162],{},[960,3163,3164],{},"Promise\u003Cnumber>",[1547,3166,3167,3168,3171,3172,3175,3176,3178],{},"Delete snapshots by retention rule — ",[960,3169,3170],{},"{ keepVersions? }"," and\u002For ",[960,3173,3174],{},"{ beforeDate? }","; omit ",[960,3177,2356],{}," to prune every record in the collection. Returns the count deleted.",[1532,3180,3181,3186,3190],{},[1547,3182,3183],{},[960,3184,3185],{},"collection.clearHistory(id?)",[1547,3187,3188],{},[960,3189,3164],{},[1547,3191,3192,3193,3195],{},"Delete all snapshots for one record, or for the whole collection when ",[960,3194,2356],{}," is omitted.",[1344,3197,3199,3200,2882],{"id":3198},"vault-methods-enabled-by-withhistory","Vault methods (enabled by ",[960,3201,1033],{},[1526,3203,3204,3214],{},[1529,3205,3206],{},[1532,3207,3208,3210,3212],{},[1535,3209,3065],{},[1535,3211,3068],{},[1535,3213,3071],{},[1542,3215,3216,3243,3278],{},[1532,3217,3218,3222,3227],{},[1547,3219,3220],{},[960,3221,2245],{},[1547,3223,3224],{},[960,3225,3226],{},"LedgerStore",[1547,3228,3229,3230,1038,3233,1038,3236,3239,3240,3242],{},"The vault's hash-chained audit log. Read via ",[960,3231,3232],{},".entries({ from?, to? })",[960,3234,3235],{},".head()",[960,3237,3238],{},".verify()","; throws if ",[960,3241,1033],{}," isn't opted in.",[1532,3244,3245,3249,3254],{},[1547,3246,3247],{},[960,3248,983],{},[1547,3250,3251],{},[960,3252,3253],{},"VaultInstant",[1547,3255,3256,3257,3260,3261,3264,3265,3268,3269,963,3272,3275,3276,988],{},"A read-only view of the vault at a past ISO-8601 timestamp or ",[960,3258,3259],{},"Date",". ",[960,3262,3263],{},".collection(name)"," returns a ",[960,3266,3267],{},"CollectionInstant"," with ",[960,3270,3271],{},".get(id)",[960,3273,3274],{},".list()","; every write method throws ",[960,3277,2911],{},[1532,3279,3280,3284,3289],{},[1547,3281,3282],{},[960,3283,1014],{},[1547,3285,3286],{},[960,3287,3288],{},"Promise\u003CVerifyBackupResult>",[1547,3290,3291,3292,3295,3296,3299],{},"Ledger chain check plus a data-envelope cross-check. ",[960,3293,3294],{},"{ ok: true, head, length }"," on success; ",[960,3297,3298],{},"{ ok: false, kind: 'chain' | 'data', message, ... }"," pinpointing the divergence otherwise.",[1344,3301,3303],{"id":3302},"types","Types",[994,3305,3306,3314,3322],{},[997,3307,3308,1030,3311],{},[960,3309,3310],{},"HistoryEntry\u003CT>",[960,3312,3313],{},"{ version: number, timestamp: string, userId: string, record: T }",[997,3315,3316,1030,3319],{},[960,3317,3318],{},"DiffEntry",[960,3320,3321],{},"{ path: string, type: 'added' | 'removed' | 'changed', from?: unknown, to?: unknown }",[997,3323,3324,1030,3327,3330,3331,3333,3334,3337,3338,3333,3340,3342],{},[960,3325,3326],{},"HistoryConfig",[960,3328,3329],{},"{ enabled?: boolean, maxVersions?: number, ledger?: boolean }",", passed as\n",[960,3332,697],{}," to ",[960,3335,3336],{},"createNoydb()"," (vault-wide) or ",[960,3339,1360],{},[960,3341,1364],{}," (per-collection\noverride)",[1344,3344,3346],{"id":3345},"lower-level-exports-subpath-barrel","Lower-level exports (subpath barrel)",[946,3348,3349],{},"Most applications only need the methods above; these are exported for tooling that verifies or\nreplays the chain independently:",[994,3351,3352,3368,3377,3392,3400,3421],{},[997,3353,3354,963,3357,3360,3361,3364,3365,3367],{},[960,3355,3356],{},"diff(a, b)",[960,3358,3359],{},"formatDiff(entries)"," — the pure diff engine and a human-readable formatter\n(",[960,3362,3363],{},"collection.diff()"," wraps ",[960,3366,1044],{},").",[997,3369,3370,963,3373,3376],{},[960,3371,3372],{},"computePatch(from, to)",[960,3374,3375],{},"applyPatch(state, patch)"," — the JSON Patch algebra the ledger uses to\nstore and replay deltas.",[997,3378,3379,963,3382,963,3385,3388,3389,3391],{},[960,3380,3381],{},"canonicalJson(value)",[960,3383,3384],{},"sha256Hex(text)",[960,3386,3387],{},"hashEntry(entry)"," — the exact hashing recipe behind\nthe ledger's ",[960,3390,1580],{}," chain.",[997,3393,3394,3397,3398,988],{},[960,3395,3396],{},"envelopePayloadHash(envelope)"," — hashes an encrypted envelope's ciphertext the same way the\nledger does, for cross-checking a record against its ",[960,3399,2418],{},[997,3401,3402,1038,3405,1038,3408,1038,3411,1038,3414,1038,3417,3420],{},[960,3403,3404],{},"LedgerEntry",[960,3406,3407],{},"AppendInput",[960,3409,3410],{},"VerifyResult",[960,3412,3413],{},"JsonPatch",[960,3415,3416],{},"JsonPatchOp",[960,3418,3419],{},"ChangeType"," —\nsupporting types.",[997,3422,3423,3426,3427,3430,3431,3426,3434,3437],{},[960,3424,3425],{},"LEDGER_COLLECTION"," (",[960,3428,3429],{},"'_ledger'",") \u002F ",[960,3432,3433],{},"LEDGER_DELTAS_COLLECTION",[960,3435,3436],{},"'_ledger_deltas'",") — the internal\ncollection names, for tooling that inspects a raw dump.",[941,3439,3441],{"id":3440},"behavior-when-not-opted-in","Behavior when NOT opted in",[994,3443,3444,3451,3463,3470],{},[997,3445,3446,963,3448,3450],{},[960,3447,962],{},[960,3449,966],{}," succeed but no snapshot or ledger entry is written",[997,3452,3453,1038,3456,1038,3458,3460,3461],{},[960,3454,3455],{},"collection.history()",[960,3457,1041],{},[960,3459,1044],{}," throw with a pointer to ",[960,3462,1116],{},[997,3464,3465,1038,3467,3469],{},[960,3466,2245],{},[960,3468,1008],{}," throw",[997,3471,3472,3474,3475,3478],{},[960,3473,1014],{}," returns ",[960,3476,3477],{},"{ ok: true, head: '', length: 0 }"," trivially (no chain to\ndiverge from)",[941,3480,3482],{"id":3481},"pairs-well-with","Pairs well with",[994,3484,3485,3492,3505],{},[997,3486,3487,3491],{},[950,3488,3489],{},[955,3490,776],{"href":776}," — closing a period writes a normal ledger entry, chaining period\nboundaries into the same tamper-evident sequence as record puts\u002Fdeletes",[997,3493,3494,1030,3498,3501,3502,3504],{},[950,3495,3496],{},[955,3497,848],{"href":848},[960,3499,3500],{},"vault.frame()"," is the live-state companion to ",[960,3503,983],{},":\nsame read-only contract (writes throw), but it reads the current vault instead of a past instant",[997,3506,3507,3511,3512,3515],{},[950,3508,3509],{},[955,3510,641],{"href":641}," — keeps its own separate per-access audit trail (",[960,3513,3514],{},"_consent_audit","),\nindependent of this service's hash-chained ledger",[941,3517,3519],{"id":3518},"edge-cases-limits","Edge cases & limits",[994,3521,3522,3545,3552],{},[997,3523,3524,3525,3528,3529,3532,3533,3536,3537,3540,3541,3544],{},"Ledger writes are multi-writer safe on any store whose ",[960,3526,3527],{},"capabilities.casAtomic"," is ",[960,3530,3531],{},"true"," (most\nbuilt-in and cloud\u002FSQL stores — check the store's own docs for its value) via an optimistic-CAS\nretry loop on the chain head. Up to 8 retries with exponential backoff + jitter; throws\n",[960,3534,3535],{},"LedgerContentionError"," on exhaustion. Stores with ",[960,3538,3539],{},"casAtomic: false"," (the built-in ",[960,3542,3543],{},"to-file","\nstore and a handful of filesystem\u002Fremote-fs stores) remain best-effort under contention — pair\nthem with an advisory lock or single-writer discipline.",[997,3546,3547,3548,3551],{},"Time-machine accuracy is bounded by retention: pruned versions are unrecoverable, and queries\nbefore the oldest retained snapshot return ",[960,3549,3550],{},"null"," even for records that existed.",[997,3553,3554,3556,3557,3560,3561,3564],{},[960,3555,979],{}," detects tampering ",[969,3558,3559],{},"within"," the ledger's own chain; it does not by itself detect data\ncollections edited without a matching ledger entry — that cross-check is what\n",[960,3562,3563],{},"verifyBackupIntegrity()"," adds.",[941,3566,3568],{"id":3567},"see-also","See also",[994,3570,3571,3576,3585,3593,3602],{},[997,3572,3573,3575],{},[955,3574,957],{"href":48}," — the vault\u002Fcollection model this service\nextends",[997,3577,3578,1030,3580,3582,3583],{},[955,3579,629],{"href":629},[960,3581,3013],{}," backups embed the ledger head; loading one runs the same integrity\ncheck as ",[960,3584,3563],{},[997,3586,3587,3589,3590,3592],{},[955,3588,776],{"href":776}," · ",[955,3591,848],{"href":848}," — related services built on this one",[997,3594,3595,3589,3598],{},[955,3596,3597],{"href":598},"Services overview",[955,3599,3601],{"href":3600},"\u002Forientation","Orientation map",[997,3603,3604,3605,2921,3613,988],{},"Proven by showcases ",[955,3606,3610],{"href":3607,"rel":3608},"https:\u002F\u002Fgithub.com\u002Fnoy-db\u002Fdocs\u002Fblob\u002Fmain\u002Fshowcases\u002Fsrc\u002F07-with-history.showcase.test.ts",[3609],"nofollow",[960,3611,3612],{},"07-with-history",[955,3614,3617],{"href":3615,"rel":3616},"https:\u002F\u002Fgithub.com\u002Fnoy-db\u002Fdocs\u002Fblob\u002Fmain\u002Fshowcases\u002Fsrc\u002F17-with-history-time-machine.showcase.test.ts",[3609],[960,3618,3619],{},"17-with-history-time-machine",[3621,3622,3623],"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 .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 .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 .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}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":1062,"searchDepth":1121,"depth":1121,"links":3625},[3626,3627,3628,3629,3634,3640,3648,3649,3650,3651],{"id":943,"depth":1100,"text":944},{"id":991,"depth":1100,"text":992},{"id":1021,"depth":1100,"text":1022},{"id":1054,"depth":1100,"text":1055,"children":3630},[3631],{"id":1346,"depth":1121,"text":1347,"children":3632},[3633],{"id":1513,"depth":1128,"text":1514},{"id":1621,"depth":1100,"text":1622,"children":3635},[3636,3637,3638,3639],{"id":1625,"depth":1121,"text":1626},{"id":2235,"depth":1121,"text":2236},{"id":2805,"depth":1121,"text":2806},{"id":2914,"depth":1121,"text":2915},{"id":3049,"depth":1100,"text":3050,"children":3641},[3642,3644,3646,3647],{"id":3053,"depth":1121,"text":3643},"Collection methods (enabled by withHistory())",{"id":3198,"depth":1121,"text":3645},"Vault methods (enabled by withHistory())",{"id":3302,"depth":1121,"text":3303},{"id":3345,"depth":1121,"text":3346},{"id":3440,"depth":1100,"text":3441},{"id":3481,"depth":1100,"text":3482},{"id":3518,"depth":1100,"text":3519},{"id":3567,"depth":1100,"text":3568},null,"Per-record version snapshots, a hash-chained tamper-evident ledger, JSON Patch deltas, point-in-time reads via `vault.at()`, and backup verification.","md",{},"service",{"title":697,"description":3653},"stable","important","EIal3qGFyoPRFOikO2Zx7NfFbRcNnhGPgDtSmQjJc2I",{"data":3662,"body":3663},{},{"type":3664,"children":3665},"root",[3666],{"type":3667,"tag":946,"props":3668,"children":3669},"element",{},[3670],{"type":3667,"tag":960,"props":3671,"children":3673},{"className":3672},[],[3674],{"type":3675,"value":3676},"text","with-commit",{"data":3678,"body":3679},{},{"type":3664,"children":3680},[3681],{"type":3667,"tag":946,"props":3682,"children":3683},{},[3684],{"type":3667,"tag":960,"props":3685,"children":3687},{"className":3686},[],[3688],{"type":3675,"value":1116},{"data":3690,"body":3691},{},{"type":3664,"children":3692},[3693],{"type":3667,"tag":946,"props":3694,"children":3695},{},[3696],{"type":3667,"tag":960,"props":3697,"children":3699},{"className":3698},[],[3700],{"type":3675,"value":1033},{"data":3702,"body":3703},{},{"type":3664,"children":3704},[3705],{"type":3667,"tag":946,"props":3706,"children":3707},{},[3708],{"type":3675,"value":3709},"B — Write & Mutate",{"data":3711,"body":3712},{},{"type":3664,"children":3713},[3714],{"type":3667,"tag":946,"props":3715,"children":3716},{},[3717],{"type":3675,"value":3718},"~1,880 (off-bundle when not opted in)",1791896585124]