[{"data":1,"prerenderedAt":467},["ShallowReactive",2],{"fougere:post.list:{}":3,"reference:\u002Freference\u002Fpackages\u002Ftransport-http":6,"reference-pages":245},{"items":4,"hasMore":5},[],false,{"id":7,"title":8,"body":9,"description":19,"extension":237,"file":238,"meta":239,"navigation":240,"path":241,"seo":242,"stem":243,"__hash__":244},"reference\u002Freference\u002Fpackages\u002Ftransport-http.md","@fougere\u002Ftransport-http",{"type":10,"value":11,"toc":231},"minimark",[12,16,20,33,38,160,164,171],[13,14,8],"h1",{"id":15},"fougeretransport-http",[17,18,19],"p",{},"The call contract on the wire, in JSON-RPC 2.0 (server + client).",[17,21,22,23,26,27,26,30],{},"Entries: ",[24,25,8],"code",{}," · ",[24,28,29],{},"@fougere\u002Ftransport-http\u002Freceive",[24,31,32],{},"@fougere\u002Ftransport-http\u002Fclient",[34,35,37],"h2",{"id":36},"what-you-import","What you import",[39,40,41,53],"table",{},[42,43,44],"thead",{},[45,46,47,51],"tr",{},[48,49,50],"th",{},"name",[48,52],{},[54,55,56,66,76,86,96,110,124,133,142,151],"tbody",{},[45,57,58,64],{},[59,60,61],"td",{},[24,62,63],{},"createHttpTransport",[59,65],{},[45,67,68,73],{},[59,69,70],{},[24,71,72],{},"frameCall",[59,74,75],{},"Frame a call as a JSON-RPC request.",[45,77,78,83],{},[59,79,80],{},[24,81,82],{},"unframeResponse",[59,84,85],{},"Unframe a JSON-RPC response — the result, or the revived FougereError thrown.",[45,87,88,93],{},[59,89,90],{},[24,91,92],{},"handleRpc",[59,94,95],{},"A peer's call, through the app's cycle when the receiver holds one.",[45,97,98,103],{},[59,99,100],{},[24,101,102],{},"pageDoor",[59,104,105,106,109],{},"The door a page calls through: its state is what the host resolved, and it may not write ",[24,107,108],{},"args",".",[45,111,112,117],{},[59,113,114],{},[24,115,116],{},"peerDoor",[59,118,119,120,123],{},"The door a process calls another through: ",[24,121,122],{},"verify"," establishes its state, and what it judged is not judged again.",[45,125,126,131],{},[59,127,128],{},[24,129,130],{},"receive",[59,132],{},[45,134,135,140],{},[59,136,137],{},[24,138,139],{},"maxFrameBytes",[59,141],{},[45,143,144,149],{},[59,145,146],{},[24,147,148],{},"serve",[59,150],{},[45,152,153,158],{},[59,154,155],{},[24,156,157],{},"PARSE_ERROR",[59,159],{},[34,161,163],{"id":162},"types","Types",[17,165,166,167,170],{},"TypeScript types only — they do not run. Import them with ",[24,168,169],{},"import type"," to type your own code: a variable, a parameter, an option object.",[39,172,173,181],{},[42,174,175],{},[45,176,177,179],{},[48,178,50],{},[48,180],{},[54,182,183,193,203,213,222],{},[45,184,185,190],{},[59,186,187],{},[24,188,189],{},"ReceiveOptions",[59,191,192],{},"What a receiver does with the caller's envelope.",[45,194,195,200],{},[59,196,197],{},[24,198,199],{},"RpcCall",[59,201,202],{},"One call, unframed.",[45,204,205,210],{},[59,206,207],{},[24,208,209],{},"PageDoorOptions",[59,211,212],{},"What a host hands the door a page calls through.",[45,214,215,220],{},[59,216,217],{},[24,218,219],{},"RunningReceiver",[59,221],{},[45,223,224,229],{},[59,225,226],{},[24,227,228],{},"RpcResponse",[59,230],{},{"title":232,"searchDepth":233,"depth":233,"links":234},"",2,[235,236],{"id":36,"depth":233,"text":37},{"id":162,"depth":233,"text":163},"md",null,{},true,"\u002Freference\u002Fpackages\u002Ftransport-http",{"title":8,"description":19},"reference\u002Fpackages\u002Ftransport-http","DO2mBmq-XoEreG68J2YsPVRQmrxaXVBxTTNST66TFQA",[246,251,256,261,266,271,276,281,286,291,296,301,306,311,316,321,326,331,336,341,346,351,356,361,366,371,376,381,386,391,396,401,406,411,416,421,426,431,436,441,446,451,456,457,462],{"path":247,"title":248,"description":249,"stem":250},"\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":252,"title":253,"description":254,"stem":255},"\u002Freference\u002Ferrors","Error codes","Every code an operation can refuse with, and its HTTP status.","reference\u002F02.errors",{"path":257,"title":258,"description":259,"stem":260},"\u002Freference\u002Fconfig","fougere.config.ts","Every key the app config admits, and which package answers each one.","reference\u002F03.config",{"path":262,"title":263,"description":264,"stem":265},"\u002Freference\u002Ffrond-config","frond.config.ts","Every key a frond's own config admits.","reference\u002F04.frond-config",{"path":267,"title":268,"description":269,"stem":270},"\u002Freference\u002Fsources","Source types","Every type an entry of sources: may name, and the keys it admits.","reference\u002F05.sources",{"path":272,"title":273,"description":274,"stem":275},"\u002Freference\u002Fprotocols","Protocols","What protocols: may serve, and what each admits.","reference\u002F06.protocols",{"path":277,"title":278,"description":279,"stem":280},"\u002Freference\u002Fstates","State keepers","How state: may keep a caller's values.","reference\u002F07.states",{"path":282,"title":283,"description":284,"stem":285},"\u002Freference\u002Fforms","Forms","The types a frond is written with — each one read by the scan.","reference\u002F08.forms",{"path":287,"title":288,"description":289,"stem":290},"\u002Freference\u002Fports","Ports Fougere opens","The classes you stand in front of, or extend, to change what the framework does.","reference\u002F09.ports",{"path":292,"title":293,"description":294,"stem":295},"\u002Freference\u002Finterfaces","Interfaces to extend","The empty interfaces a package augments with declare module, and who augments each.","reference\u002F10.interfaces",{"path":297,"title":298,"description":299,"stem":300},"\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":302,"title":303,"description":304,"stem":305},"\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":307,"title":308,"description":309,"stem":310},"\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":312,"title":313,"description":314,"stem":315},"\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":317,"title":318,"description":319,"stem":320},"\u002Freference\u002Fpackages\u002Fadapter-graphql","@fougere\u002Fadapter-graphql","Entity → GraphQL types, inputs and CRUD, through Pothos.","reference\u002Fpackages\u002Fadapter-graphql",{"path":322,"title":323,"description":324,"stem":325},"\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":327,"title":328,"description":329,"stem":330},"\u002Freference\u002Fpackages\u002Fadapter-rest","@fougere\u002Fadapter-rest","Entity → REST routes.","reference\u002Fpackages\u002Fadapter-rest",{"path":332,"title":333,"description":334,"stem":335},"\u002Freference\u002Fpackages\u002Fadapter-sql","@fougere\u002Fadapter-sql","Entity → SQL tables through Kysely (SQLite, PostgreSQL, MySQL, SQL Server).","reference\u002Fpackages\u002Fadapter-sql",{"path":337,"title":338,"description":339,"stem":340},"\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":342,"title":343,"description":344,"stem":345},"\u002Freference\u002Fpackages\u002Fapp","@fougere\u002Fapp","The host-independent half of a Fougere app: boot, call envelope, REST table, form contract.","reference\u002Fpackages\u002Fapp",{"path":347,"title":348,"description":349,"stem":350},"\u002Freference\u002Fpackages\u002Fauth-better","@fougere\u002Fauth-better","Fougere's auth — a translation layer onto better-auth.","reference\u002Fpackages\u002Fauth-better",{"path":352,"title":353,"description":354,"stem":355},"\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":357,"title":358,"description":359,"stem":360},"\u002Freference\u002Fpackages\u002Fcli","@fougere\u002Fcli","The Fougere CLI — compose a workspace, serve a frond, call an operation.","reference\u002Fpackages\u002Fcli",{"path":362,"title":363,"description":364,"stem":365},"\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":367,"title":368,"description":369,"stem":370},"\u002Freference\u002Fpackages\u002Fcontainer","@fougere\u002Fcontainer","Fougere's DI container: resolution by type, wired from the AST scan. Zero dependencies.","reference\u002Fpackages\u002Fcontainer",{"path":372,"title":373,"description":374,"stem":375},"\u002Freference\u002Fpackages\u002Fcore","@fougere\u002Fcore","The core — scan, call contract, façades, remote stand-ins.","reference\u002Fpackages\u002Fcore",{"path":377,"title":378,"description":379,"stem":380},"\u002Freference\u002Fpackages\u002Fdecorators","@fougere\u002Fdecorators","Configuration sugar (@config) — declarative, never hidden runtime.","reference\u002Fpackages\u002Fdecorators",{"path":382,"title":383,"description":384,"stem":385},"\u002Freference\u002Fpackages\u002Fdefaults","@fougere\u002Fdefaults","The conventional boot of a Fougere app — the one place storage is wired.","reference\u002Fpackages\u002Fdefaults",{"path":387,"title":388,"description":389,"stem":390},"\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":392,"title":393,"description":394,"stem":395},"\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":397,"title":398,"description":399,"stem":400},"\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":402,"title":403,"description":404,"stem":405},"\u002Freference\u002Fpackages\u002Fnext","@fougere\u002Fnext","The Next.js adapter: mounting, and the one import that is genuinely Next.","reference\u002Fpackages\u002Fnext",{"path":407,"title":408,"description":409,"stem":410},"\u002Freference\u002Fpackages\u002Fnuxt","@fougere\u002Fnuxt","The Nuxt module: Fougere's client primitives and server surface.","reference\u002Fpackages\u002Fnuxt",{"path":412,"title":413,"description":414,"stem":415},"\u002Freference\u002Fpackages\u002Fobservability","@fougere\u002Fobservability","Optional observability for Fougere: one span per operation, W3C Trace Context across any transport.","reference\u002Fpackages\u002Fobservability",{"path":417,"title":418,"description":419,"stem":420},"\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":422,"title":423,"description":424,"stem":425},"\u002Freference\u002Fpackages\u002Freact","@fougere\u002Freact","Fougere's four primitives as React hooks — host-independent.","reference\u002Fpackages\u002Freact",{"path":427,"title":428,"description":429,"stem":430},"\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":432,"title":433,"description":434,"stem":435},"\u002Freference\u002Fpackages\u002Fschema","@fougere\u002Fschema","The entity and its 4 axes — shape, role, lifecycle, boundary. Subject-owned judgments, edge-safe.","reference\u002Fpackages\u002Fschema",{"path":437,"title":438,"description":439,"stem":440},"\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":442,"title":443,"description":444,"stem":445},"\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":447,"title":448,"description":449,"stem":450},"\u002Freference\u002Fpackages\u002Fsvelte","@fougere\u002Fsvelte","Fougere's four primitives as Svelte stores — host-independent.","reference\u002Fpackages\u002Fsvelte",{"path":452,"title":453,"description":454,"stem":455},"\u002Freference\u002Fpackages\u002Ftesting","@fougere\u002Ftesting","Tests derived from the declaration — cases, stubs and a gradient of realities.","reference\u002Fpackages\u002Ftesting",{"path":241,"title":8,"description":19,"stem":243},{"path":458,"title":459,"description":460,"stem":461},"\u002Freference\u002Fpackages\u002Fvite","@fougere\u002Fvite","The Vite plugin: what any Vite-built host must know to run a Fougere app.","reference\u002Fpackages\u002Fvite",{"path":463,"title":464,"description":465,"stem":466},"\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",1794396613421]