[{"data":1,"prerenderedAt":376},["ShallowReactive",2],{"fougere:post.list:{}":3,"reference:\u002Freference\u002Fpackages\u002Fcontainer":6,"reference-pages":154},{"items":4,"hasMore":5},[],false,{"id":7,"title":8,"body":9,"description":19,"extension":146,"file":147,"meta":148,"navigation":149,"path":150,"seo":151,"stem":152,"__hash__":153},"reference\u002Freference\u002Fpackages\u002Fcontainer.md","@fougere\u002Fcontainer",{"type":10,"value":11,"toc":140},"minimark",[12,16,20,26,31,68,72,79],[13,14,8],"h1",{"id":15},"fougerecontainer",[17,18,19],"p",{},"Fougere's DI container: resolution by type, wired from the AST scan. Zero dependencies.",[17,21,22,23],{},"Entries: ",[24,25,8],"code",{},[27,28,30],"h2",{"id":29},"what-you-import","What you import",[32,33,34,46],"table",{},[35,36,37],"thead",{},[38,39,40,44],"tr",{},[41,42,43],"th",{},"name",[41,45],{},[47,48,49,59],"tbody",{},[38,50,51,57],{},[52,53,54],"td",{},[24,55,56],{},"ContainerError",[52,58],{},[38,60,61,66],{},[52,62,63],{},[24,64,65],{},"createContainer",[52,67],{},[27,69,71],{"id":70},"types","Types",[17,73,74,75,78],{},"TypeScript types only — they do not run. Import them with ",[24,76,77],{},"import type"," to type your own code: a variable, a parameter, an option object.",[32,80,81,89],{},[35,82,83],{},[38,84,85,87],{},[41,86,43],{},[41,88],{},[47,90,91,101,110,119],{},[38,92,93,98],{},[52,94,95],{},[24,96,97],{},"Container",[52,99,100],{},"DI container interface — the only thing application code sees.",[38,102,103,108],{},[52,104,105],{},[24,106,107],{},"Constructor",[52,109],{},[38,111,112,117],{},[52,113,114],{},[24,115,116],{},"RegisterOptions",[52,118],{},[38,120,121,126],{},[52,122,123],{},[24,124,125],{},"Lifetime",[52,127,128,131,132,135,136,139],{},[24,129,130],{},"'singleton'"," builds once per scope, ",[24,133,134],{},"'transient'",", the default, at each ",[24,137,138],{},"resolve",".",{"title":141,"searchDepth":142,"depth":142,"links":143},"",2,[144,145],{"id":29,"depth":142,"text":30},{"id":70,"depth":142,"text":71},"md",null,{},true,"\u002Freference\u002Fpackages\u002Fcontainer",{"title":8,"description":19},"reference\u002Fpackages\u002Fcontainer","btv6RtANr1TMYJ3wZ9Dba7m8jgb0M3VkL-BPz_FZbKg",[155,160,165,170,175,180,185,190,195,200,205,210,215,220,225,230,235,240,245,250,255,260,265,270,275,276,281,286,291,296,301,306,311,316,321,326,331,336,341,346,351,356,361,366,371],{"path":156,"title":157,"description":158,"stem":159},"\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":161,"title":162,"description":163,"stem":164},"\u002Freference\u002Ferrors","Error codes","Every code an operation can refuse with, and its HTTP status.","reference\u002F02.errors",{"path":166,"title":167,"description":168,"stem":169},"\u002Freference\u002Fconfig","fougere.config.ts","Every key the app config admits, and which package answers each one.","reference\u002F03.config",{"path":171,"title":172,"description":173,"stem":174},"\u002Freference\u002Ffrond-config","frond.config.ts","Every key a frond's own config admits.","reference\u002F04.frond-config",{"path":176,"title":177,"description":178,"stem":179},"\u002Freference\u002Fsources","Source types","Every type an entry of sources: may name, and the keys it admits.","reference\u002F05.sources",{"path":181,"title":182,"description":183,"stem":184},"\u002Freference\u002Fprotocols","Protocols","What protocols: may serve, and what each admits.","reference\u002F06.protocols",{"path":186,"title":187,"description":188,"stem":189},"\u002Freference\u002Fstates","State keepers","How state: may keep a caller's values.","reference\u002F07.states",{"path":191,"title":192,"description":193,"stem":194},"\u002Freference\u002Fforms","Forms","The types a frond is written with — each one read by the scan.","reference\u002F08.forms",{"path":196,"title":197,"description":198,"stem":199},"\u002Freference\u002Fports","Ports Fougere opens","The classes you stand in front of, or extend, to change what the framework does.","reference\u002F09.ports",{"path":201,"title":202,"description":203,"stem":204},"\u002Freference\u002Finterfaces","Interfaces to extend","The empty interfaces a package augments with declare module, and who augments each.","reference\u002F10.interfaces",{"path":206,"title":207,"description":208,"stem":209},"\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":211,"title":212,"description":213,"stem":214},"\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":216,"title":217,"description":218,"stem":219},"\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":221,"title":222,"description":223,"stem":224},"\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":226,"title":227,"description":228,"stem":229},"\u002Freference\u002Fpackages\u002Fadapter-graphql","@fougere\u002Fadapter-graphql","Entity → GraphQL types, inputs and CRUD, through Pothos.","reference\u002Fpackages\u002Fadapter-graphql",{"path":231,"title":232,"description":233,"stem":234},"\u002Freference\u002Fpackages\u002Fadapter-memory","@fougere\u002Fadapter-memory","Rows in a Map — the source a first run meets, and the one that ships no driver.","reference\u002Fpackages\u002Fadapter-memory",{"path":236,"title":237,"description":238,"stem":239},"\u002Freference\u002Fpackages\u002Fadapter-rest","@fougere\u002Fadapter-rest","Entity → REST routes.","reference\u002Fpackages\u002Fadapter-rest",{"path":241,"title":242,"description":243,"stem":244},"\u002Freference\u002Fpackages\u002Fadapter-sql","@fougere\u002Fadapter-sql","Entity → SQL tables through Kysely (SQLite, PostgreSQL, MySQL, SQL Server).","reference\u002Fpackages\u002Fadapter-sql",{"path":246,"title":247,"description":248,"stem":249},"\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":251,"title":252,"description":253,"stem":254},"\u002Freference\u002Fpackages\u002Fapp","@fougere\u002Fapp","The host-independent half of a Fougere app: boot, call envelope, REST table, form contract.","reference\u002Fpackages\u002Fapp",{"path":256,"title":257,"description":258,"stem":259},"\u002Freference\u002Fpackages\u002Fauth-better","@fougere\u002Fauth-better","Fougere's auth — a translation layer onto better-auth.","reference\u002Fpackages\u002Fauth-better",{"path":261,"title":262,"description":263,"stem":264},"\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":266,"title":267,"description":268,"stem":269},"\u002Freference\u002Fpackages\u002Fcli","@fougere\u002Fcli","The Fougere CLI — compose a workspace, serve a frond, call an operation.","reference\u002Fpackages\u002Fcli",{"path":271,"title":272,"description":273,"stem":274},"\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":150,"title":8,"description":19,"stem":152},{"path":277,"title":278,"description":279,"stem":280},"\u002Freference\u002Fpackages\u002Fcore","@fougere\u002Fcore","The core — scan, call contract, façades, remote stand-ins.","reference\u002Fpackages\u002Fcore",{"path":282,"title":283,"description":284,"stem":285},"\u002Freference\u002Fpackages\u002Fdecorators","@fougere\u002Fdecorators","Configuration sugar (@config) — declarative, never hidden runtime.","reference\u002Fpackages\u002Fdecorators",{"path":287,"title":288,"description":289,"stem":290},"\u002Freference\u002Fpackages\u002Fdefaults","@fougere\u002Fdefaults","The conventional boot of a Fougere app — the one place storage is wired.","reference\u002Fpackages\u002Fdefaults",{"path":292,"title":293,"description":294,"stem":295},"\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":297,"title":298,"description":299,"stem":300},"\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":302,"title":303,"description":304,"stem":305},"\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":307,"title":308,"description":309,"stem":310},"\u002Freference\u002Fpackages\u002Fnext","@fougere\u002Fnext","The Next.js adapter: mounting, and the one import that is genuinely Next.","reference\u002Fpackages\u002Fnext",{"path":312,"title":313,"description":314,"stem":315},"\u002Freference\u002Fpackages\u002Fnuxt","@fougere\u002Fnuxt","The Nuxt module: Fougere's client primitives and server surface.","reference\u002Fpackages\u002Fnuxt",{"path":317,"title":318,"description":319,"stem":320},"\u002Freference\u002Fpackages\u002Fobservability","@fougere\u002Fobservability","Optional observability for Fougere: one span per operation, W3C Trace Context across any transport.","reference\u002Fpackages\u002Fobservability",{"path":322,"title":323,"description":324,"stem":325},"\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":327,"title":328,"description":329,"stem":330},"\u002Freference\u002Fpackages\u002Freact","@fougere\u002Freact","Fougere's four primitives as React hooks — host-independent.","reference\u002Fpackages\u002Freact",{"path":332,"title":333,"description":334,"stem":335},"\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":337,"title":338,"description":339,"stem":340},"\u002Freference\u002Fpackages\u002Fschema","@fougere\u002Fschema","The entity and its 4 axes — shape, role, lifecycle, boundary. Subject-owned judgments, edge-safe.","reference\u002Fpackages\u002Fschema",{"path":342,"title":343,"description":344,"stem":345},"\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":347,"title":348,"description":349,"stem":350},"\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":352,"title":353,"description":354,"stem":355},"\u002Freference\u002Fpackages\u002Fsvelte","@fougere\u002Fsvelte","Fougere's four primitives as Svelte stores — host-independent.","reference\u002Fpackages\u002Fsvelte",{"path":357,"title":358,"description":359,"stem":360},"\u002Freference\u002Fpackages\u002Ftesting","@fougere\u002Ftesting","Tests derived from the declaration — cases, stubs and a gradient of realities.","reference\u002Fpackages\u002Ftesting",{"path":362,"title":363,"description":364,"stem":365},"\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":367,"title":368,"description":369,"stem":370},"\u002Freference\u002Fpackages\u002Fvite","@fougere\u002Fvite","The Vite plugin: what any Vite-built host must know to run a Fougere app.","reference\u002Fpackages\u002Fvite",{"path":372,"title":373,"description":374,"stem":375},"\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",1794396612930]