[{"data":1,"prerenderedAt":543},["ShallowReactive",2],{"fougere:post.list:{}":3,"reference:\u002Freference\u002Fpackages\u002Fadapter-memory":6,"reference-pages":324},{"items":4,"hasMore":5},[],false,{"id":7,"title":8,"body":9,"description":19,"extension":317,"file":318,"meta":319,"navigation":138,"path":320,"seo":321,"stem":322,"__hash__":323},"reference\u002Freference\u002Fpackages\u002Fadapter-memory.md","@fougere\u002Fadapter-memory",{"type":10,"value":11,"toc":312},"minimark",[12,16,20,25,100,209,212,221,225,236,267,272,276,308],[13,14,8],"h1",{"id":15},"fougereadapter-memory",[17,18,19],"p",{},"Rows in a Map — the source a first run meets, and the one that ships no driver.",[21,22,24],"h2",{"id":23},"use-it","Use it",[26,27,31,57,72,86],"code-group",{"className":28,"sync":30},[29],"managers","pm",[32,33,39],"pre",{"className":34,"code":35,"filename":36,"language":37,"meta":38,"style":38},"language-bash shiki shiki-themes material-theme-lighter fougere-pastel material-theme-palenight","npm install @fougere\u002Fadapter-memory\n","npm","bash","",[40,41,42],"code",{"__ignoreMap":38},[43,44,47,50,54],"span",{"class":45,"line":46},"line",1,[43,48,36],{"class":49},"sV8pK",[43,51,53],{"class":52},"sN-8n"," install",[43,55,56],{"class":52}," @fougere\u002Fadapter-memory\n",[32,58,61],{"className":34,"code":59,"filename":60,"language":37,"meta":38,"style":38},"pnpm add @fougere\u002Fadapter-memory\n","pnpm",[40,62,63],{"__ignoreMap":38},[43,64,65,67,70],{"class":45,"line":46},[43,66,60],{"class":49},[43,68,69],{"class":52}," add",[43,71,56],{"class":52},[32,73,76],{"className":34,"code":74,"filename":75,"language":37,"meta":38,"style":38},"bun add @fougere\u002Fadapter-memory\n","bun",[40,77,78],{"__ignoreMap":38},[43,79,80,82,84],{"class":45,"line":46},[43,81,75],{"class":49},[43,83,69],{"class":52},[43,85,56],{"class":52},[32,87,90],{"className":34,"code":88,"filename":89,"language":37,"meta":38,"style":38},"yarn add @fougere\u002Fadapter-memory\n","yarn",[40,91,92],{"__ignoreMap":38},[43,93,94,96,98],{"class":45,"line":46},[43,95,89],{"class":49},[43,97,69],{"class":52},[43,99,56],{"class":52},[32,101,105],{"className":102,"code":103,"language":104,"meta":38,"style":38},"language-ts shiki shiki-themes material-theme-lighter fougere-pastel material-theme-palenight","\u002F\u002F fougere.config.ts\nimport '@fougere\u002Fadapter-memory';\n\nexport default defineFougere({\n  sources: { main: { type: 'memory' } },\n});\n","ts",[40,106,107,113,133,140,160,198],{"__ignoreMap":38},[43,108,109],{"class":45,"line":46},[43,110,112],{"class":111},"skXKP","\u002F\u002F fougere.config.ts\n",[43,114,116,120,124,126,129],{"class":45,"line":115},2,[43,117,119],{"class":118},"sK6XW","import",[43,121,123],{"class":122},"sDDC1"," '",[43,125,8],{"class":52},[43,127,128],{"class":122},"'",[43,130,132],{"class":131},"s15xx",";\n",[43,134,136],{"class":45,"line":135},3,[43,137,139],{"emptyLinePlaceholder":138},true,"\n",[43,141,143,146,149,153,157],{"class":45,"line":142},4,[43,144,145],{"class":118},"export",[43,147,148],{"class":118}," default",[43,150,152],{"class":151},"s4mR9"," defineFougere",[43,154,156],{"class":155},"srlTG","(",[43,158,159],{"class":131},"{\n",[43,161,163,167,170,173,176,178,180,183,185,187,190,192,195],{"class":45,"line":162},5,[43,164,166],{"class":165},"sHtqg","  sources",[43,168,169],{"class":131},":",[43,171,172],{"class":131}," {",[43,174,175],{"class":165}," main",[43,177,169],{"class":131},[43,179,172],{"class":131},[43,181,182],{"class":165}," type",[43,184,169],{"class":131},[43,186,123],{"class":122},[43,188,189],{"class":52},"memory",[43,191,128],{"class":122},[43,193,194],{"class":131}," }",[43,196,197],{"class":131}," },\n",[43,199,201,204,207],{"class":45,"line":200},6,[43,202,203],{"class":131},"}",[43,205,206],{"class":155},")",[43,208,132],{"class":131},[17,210,211],{},"The import is what makes the word exist: without it, the editor and the boot both refuse it.",[17,213,214,215,220],{},"Every key each one admits: ",[216,217,219],"a",{"href":218},"\u002Freference\u002Fsources","sources",".",[21,222,224],{"id":223},"what-it-extends","What it extends",[17,226,227,228,231,232,220],{},"The interfaces of Fougere this package adds its words to, with ",[40,229,230],{},"declare module"," — see ",[216,233,235],{"href":234},"\u002Freference\u002Finterfaces","Interfaces to extend",[237,238,239,252],"table",{},[240,241,242],"thead",{},[243,244,245,249],"tr",{},[246,247,248],"th",{},"interface",[246,250,251],{},"adds",[253,254,255],"tbody",{},[243,256,257,263],{},[258,259,260],"td",{},[40,261,262],{},"FougereSources",[258,264,265],{},[40,266,189],{},[17,268,269,270],{},"Entries: ",[40,271,8],{},[21,273,275],{"id":274},"what-you-import","What you import",[237,277,278,287],{},[240,279,280],{},[243,281,282,285],{},[246,283,284],{},"name",[246,286],{},[253,288,289,298],{},[243,290,291,296],{},[258,292,293],{},[40,294,295],{},"createMemoryStorage",[258,297],{},[243,299,300,305],{},[258,301,302],{},[40,303,304],{},"createMemorySource",[258,306,307],{},"A source keeping rows in one Map per entity name.",[309,310,311],"style",{},"html pre.shiki code .sV8pK, html code.shiki .sV8pK{--shiki-light:#E2931D;--shiki-default:#C9B6EA;--shiki-dark:#FFCB6B}html pre.shiki code .sN-8n, html code.shiki .sN-8n{--shiki-light:#91B859;--shiki-default:#EE9F6B;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .skXKP, html code.shiki .skXKP{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#7D8C80;--shiki-default-font-style:inherit;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sK6XW, html code.shiki .sK6XW{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#8FCF86;--shiki-default-font-style:inherit;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sDDC1, html code.shiki .sDDC1{--shiki-light:#39ADB5;--shiki-default:#EE9F6B;--shiki-dark:#89DDFF}html pre.shiki code .s15xx, html code.shiki .s15xx{--shiki-light:#39ADB5;--shiki-default:#A3B0A5;--shiki-dark:#89DDFF}html pre.shiki code .s4mR9, html code.shiki .s4mR9{--shiki-light:#6182B8;--shiki-default:#C9B6EA;--shiki-dark:#82AAFF}html pre.shiki code .srlTG, html code.shiki .srlTG{--shiki-light:#90A4AE;--shiki-default:#A3B0A5;--shiki-dark:#BABED8}html pre.shiki code .sHtqg, html code.shiki .sHtqg{--shiki-light:#E53935;--shiki-default:#93CFC0;--shiki-dark:#F07178}",{"title":38,"searchDepth":115,"depth":115,"links":313},[314,315,316],{"id":23,"depth":115,"text":24},{"id":223,"depth":115,"text":224},{"id":274,"depth":115,"text":275},"md",null,{},"\u002Freference\u002Fpackages\u002Fadapter-memory",{"title":8,"description":19},"reference\u002Fpackages\u002Fadapter-memory","H7bbwPRynQyGFjdSydEOmAGIaFee_DOGb7LtIJnUYUE",[325,330,335,340,345,349,354,359,364,369,372,377,382,387,392,397,398,403,408,413,418,423,428,433,438,443,448,453,458,463,468,473,478,483,488,493,498,503,508,513,518,523,528,533,538],{"path":326,"title":327,"description":328,"stem":329},"\u002Freference\u002Fcli","CLI","fougere new, serve, call, sync, graph — composing a workspace, hosting one frond, invoking an operation from a shell.","reference\u002F01.cli",{"path":331,"title":332,"description":333,"stem":334},"\u002Freference\u002Ferrors","Error codes","Every code an operation can refuse with, and its HTTP status.","reference\u002F02.errors",{"path":336,"title":337,"description":338,"stem":339},"\u002Freference\u002Fconfig","fougere.config.ts","Every key the app config admits, and which package answers each one.","reference\u002F03.config",{"path":341,"title":342,"description":343,"stem":344},"\u002Freference\u002Ffrond-config","frond.config.ts","Every key a frond's own config admits.","reference\u002F04.frond-config",{"path":218,"title":346,"description":347,"stem":348},"Source types","Every type an entry of sources: may name, and the keys it admits.","reference\u002F05.sources",{"path":350,"title":351,"description":352,"stem":353},"\u002Freference\u002Fprotocols","Protocols","What protocols: may serve, and what each admits.","reference\u002F06.protocols",{"path":355,"title":356,"description":357,"stem":358},"\u002Freference\u002Fstates","State keepers","How state: may keep a caller's values.","reference\u002F07.states",{"path":360,"title":361,"description":362,"stem":363},"\u002Freference\u002Fforms","Forms","The types a frond is written with — each one read by the scan.","reference\u002F08.forms",{"path":365,"title":366,"description":367,"stem":368},"\u002Freference\u002Fports","Ports Fougere opens","The classes you stand in front of, or extend, to change what the framework does.","reference\u002F09.ports",{"path":234,"title":235,"description":370,"stem":371},"The empty interfaces a package augments with declare module, and who augments each.","reference\u002F10.interfaces",{"path":373,"title":374,"description":375,"stem":376},"\u002Freference\u002Fdiagnostics","Boot and check diagnostics","Every code a boot, the scan or fougere check can raise, and what it says.","reference\u002F11.diagnostics",{"path":378,"title":379,"description":380,"stem":381},"\u002Freference\u002Fpackages\u002Fadapter-duckdb","@fougere\u002Fadapter-duckdb","Read across an app's sources — one SQL query over what DuckDB can attach.","reference\u002Fpackages\u002Fadapter-duckdb",{"path":383,"title":384,"description":385,"stem":386},"\u002Freference\u002Fpackages\u002Fadapter-env","@fougere\u002Fadapter-env","The process environment as a source — MEILI_URL read as Meili's url, judged at boot.","reference\u002Fpackages\u002Fadapter-env",{"path":388,"title":389,"description":390,"stem":391},"\u002Freference\u002Fpackages\u002Fadapter-file","@fougere\u002Fadapter-file","Rows as files — one JSON or YAML file per row, in a directory per entity.","reference\u002Fpackages\u002Fadapter-file",{"path":393,"title":394,"description":395,"stem":396},"\u002Freference\u002Fpackages\u002Fadapter-graphql","@fougere\u002Fadapter-graphql","Entity → GraphQL types, inputs and CRUD, through Pothos.","reference\u002Fpackages\u002Fadapter-graphql",{"path":320,"title":8,"description":19,"stem":322},{"path":399,"title":400,"description":401,"stem":402},"\u002Freference\u002Fpackages\u002Fadapter-rest","@fougere\u002Fadapter-rest","Entity → REST routes.","reference\u002Fpackages\u002Fadapter-rest",{"path":404,"title":405,"description":406,"stem":407},"\u002Freference\u002Fpackages\u002Fadapter-sql","@fougere\u002Fadapter-sql","Entity → SQL tables through Kysely (SQLite, PostgreSQL, MySQL, SQL Server).","reference\u002Fpackages\u002Fadapter-sql",{"path":409,"title":410,"description":411,"stem":412},"\u002Freference\u002Fpackages\u002Fadmin","@fougere\u002Fadmin","A back-office derived from what the app already says it hosts — a react-admin DataProvider over the Fougere wire.","reference\u002Fpackages\u002Fadmin",{"path":414,"title":415,"description":416,"stem":417},"\u002Freference\u002Fpackages\u002Fapp","@fougere\u002Fapp","The host-independent half of a Fougere app: boot, call envelope, REST table, form contract.","reference\u002Fpackages\u002Fapp",{"path":419,"title":420,"description":421,"stem":422},"\u002Freference\u002Fpackages\u002Fauth-better","@fougere\u002Fauth-better","Fougere's auth — a translation layer onto better-auth.","reference\u002Fpackages\u002Fauth-better",{"path":424,"title":425,"description":426,"stem":427},"\u002Freference\u002Fpackages\u002Fcalls","@fougere\u002Fcalls","Optional call log for Fougere: a bounded ring of every dispatch, served as an rpc operation. Read it with `fougere devtools`.","reference\u002Fpackages\u002Fcalls",{"path":429,"title":430,"description":431,"stem":432},"\u002Freference\u002Fpackages\u002Fcli","@fougere\u002Fcli","The Fougere CLI — compose a workspace, serve a frond, call an operation.","reference\u002Fpackages\u002Fcli",{"path":434,"title":435,"description":436,"stem":437},"\u002Freference\u002Fpackages\u002Fcompiler","@fougere\u002Fcompiler","The scan: Fougere reading a project's source to produce the descriptors core boots from. Needs a filesystem and a TypeScript program.","reference\u002Fpackages\u002Fcompiler",{"path":439,"title":440,"description":441,"stem":442},"\u002Freference\u002Fpackages\u002Fcontainer","@fougere\u002Fcontainer","Fougere's DI container: resolution by type, wired from the AST scan. Zero dependencies.","reference\u002Fpackages\u002Fcontainer",{"path":444,"title":445,"description":446,"stem":447},"\u002Freference\u002Fpackages\u002Fcore","@fougere\u002Fcore","The core — scan, call contract, façades, remote stand-ins.","reference\u002Fpackages\u002Fcore",{"path":449,"title":450,"description":451,"stem":452},"\u002Freference\u002Fpackages\u002Fdecorators","@fougere\u002Fdecorators","Configuration sugar (@config) — declarative, never hidden runtime.","reference\u002Fpackages\u002Fdecorators",{"path":454,"title":455,"description":456,"stem":457},"\u002Freference\u002Fpackages\u002Fdefaults","@fougere\u002Fdefaults","The conventional boot of a Fougere app — the one place storage is wired.","reference\u002Fpackages\u002Fdefaults",{"path":459,"title":460,"description":461,"stem":462},"\u002Freference\u002Fpackages\u002Fgraph","@fougere\u002Fgraph","Fougere's graph: a labelled directed multigraph, and the four questions asked of it — order, cycles, components, reach. Zero dependencies.","reference\u002Fpackages\u002Fgraph",{"path":464,"title":465,"description":466,"stem":467},"\u002Freference\u002Fpackages\u002Fhttp","@fougere\u002Fhttp","The words every HTTP door speaks — a method, an answer, the headers a state travels in.","reference\u002Fpackages\u002Fhttp",{"path":469,"title":470,"description":471,"stem":472},"\u002Freference\u002Fpackages\u002Flog","@fougere\u002Flog","Logging for Fougere: two lines for every call, in every process, and a file destination for the lines.","reference\u002Fpackages\u002Flog",{"path":474,"title":475,"description":476,"stem":477},"\u002Freference\u002Fpackages\u002Fnext","@fougere\u002Fnext","The Next.js adapter: mounting, and the one import that is genuinely Next.","reference\u002Fpackages\u002Fnext",{"path":479,"title":480,"description":481,"stem":482},"\u002Freference\u002Fpackages\u002Fnuxt","@fougere\u002Fnuxt","The Nuxt module: Fougere's client primitives and server surface.","reference\u002Fpackages\u002Fnuxt",{"path":484,"title":485,"description":486,"stem":487},"\u002Freference\u002Fpackages\u002Fobservability","@fougere\u002Fobservability","Optional observability for Fougere: one span per operation, W3C Trace Context across any transport.","reference\u002Fpackages\u002Fobservability",{"path":489,"title":490,"description":491,"stem":492},"\u002Freference\u002Fpackages\u002Foclif","@fougere\u002Foclif","A frond's operations, as a terminal: topics, flags and help derived from what it declares.","reference\u002Fpackages\u002Foclif",{"path":494,"title":495,"description":496,"stem":497},"\u002Freference\u002Fpackages\u002Freact","@fougere\u002Freact","Fougere's four primitives as React hooks — host-independent.","reference\u002Fpackages\u002Freact",{"path":499,"title":500,"description":501,"stem":502},"\u002Freference\u002Fpackages\u002Fregistry","@fougere\u002Fregistry","Fougere's registry: one answer per name, refused when a second one arrives, and a reload that says it replaces. Zero dependencies.","reference\u002Fpackages\u002Fregistry",{"path":504,"title":505,"description":506,"stem":507},"\u002Freference\u002Fpackages\u002Fschema","@fougere\u002Fschema","The entity and its 4 axes — shape, role, lifecycle, boundary. Subject-owned judgments, edge-safe.","reference\u002Fpackages\u002Fschema",{"path":509,"title":510,"description":511,"stem":512},"\u002Freference\u002Fpackages\u002Fstate-cookie","@fougere\u002Fstate-cookie","A caller's state kept in a cookie — what `state: { cart: { cookie: {} } }` names, signed by core, carried by every HTTP door.","reference\u002Fpackages\u002Fstate-cookie",{"path":514,"title":515,"description":516,"stem":517},"\u002Freference\u002Fpackages\u002Fstate-session","@fougere\u002Fstate-session","A caller's state kept in a session — what `state: { cart: { session: {} } }` names: one cookie holds a reference, the values a row in a source.","reference\u002Fpackages\u002Fstate-session",{"path":519,"title":520,"description":521,"stem":522},"\u002Freference\u002Fpackages\u002Fsvelte","@fougere\u002Fsvelte","Fougere's four primitives as Svelte stores — host-independent.","reference\u002Fpackages\u002Fsvelte",{"path":524,"title":525,"description":526,"stem":527},"\u002Freference\u002Fpackages\u002Ftesting","@fougere\u002Ftesting","Tests derived from the declaration — cases, stubs and a gradient of realities.","reference\u002Fpackages\u002Ftesting",{"path":529,"title":530,"description":531,"stem":532},"\u002Freference\u002Fpackages\u002Ftransport-http","@fougere\u002Ftransport-http","The call contract on the wire, in JSON-RPC 2.0 (server + client).","reference\u002Fpackages\u002Ftransport-http",{"path":534,"title":535,"description":536,"stem":537},"\u002Freference\u002Fpackages\u002Fvite","@fougere\u002Fvite","The Vite plugin: what any Vite-built host must know to run a Fougere app.","reference\u002Fpackages\u002Fvite",{"path":539,"title":540,"description":541,"stem":542},"\u002Freference\u002Fpackages\u002Fworkflow","@fougere\u002Fworkflow","A release that goes to the end: the journal is three entities, the sweep is an operation, and a shared journal is one line of remotes:.","reference\u002Fpackages\u002Fworkflow",1794396612397]