[{"data":1,"prerenderedAt":1581},["ShallowReactive",2],{"fougere:post.list:{}":3,"docs:\u002Fdocs\u002Fadopt\u002Fan-app":6,"docs-uses":1279,"docs-nav":1443},{"items":4,"hasMore":5},[],false,{"id":7,"title":8,"body":9,"description":1266,"extension":1267,"forms":1268,"kind":1269,"meta":1270,"navigation":204,"path":1271,"seo":1272,"stem":1273,"step":1274,"uses":1275,"__hash__":1278},"docs\u002Fdocs\u002F7.adopt\u002F2.an-app.md","Add Fougere to an app",{"type":10,"value":11,"toc":1254},"minimark",[12,43,48,59,140,155,276,286,294,309,321,325,453,487,507,511,518,524,609,625,636,689,696,701,705,712,715,747,758,765,769,772,857,860,864,893,897,903,907,910,913,917,920,1029,1063,1081,1085,1100,1106,1122,1171,1241,1244,1250],[13,14,15,16,20,21,24,25,28,29,32,33,36,37,42],"p",{},"You keep your app as it is: routing, pages, components, styling and server routes stay in\nplace. Fougere only adds its own paths: ",[17,18,19],"code",{},"\u002F_fougere\u002Fcall",", the one endpoint your pages call —\nwho is signed in included, ",[17,22,23],{},"session.get","; ",[17,26,27],{},"\u002Fauth\u002F**",", which answers once you turn auth on; and\n",[17,30,31],{},"\u002Fapi\u002F{frond}\u002F…"," and ",[17,34,35],{},"\u002Fgraphql"," if you turn ",[38,39,41],"a",{"href":40},"\u002Fdocs\u002Fserve\u002Frest-graphql","REST or GraphQL"," on.",[44,45,47],"h2",{"id":46},"add-fougere-to-a-nuxt-app","Add Fougere to a Nuxt app",[13,49,50,54,55,58],{},[51,52,53],"strong",{},"1. The module"," — in your existing ",[17,56,57],{},"nuxt.config.ts",":",[60,61,66],"pre",{"className":62,"code":63,"language":64,"meta":65,"style":65},"language-ts shiki shiki-themes material-theme-lighter fougere-pastel material-theme-palenight","export default defineNuxtConfig({\n  modules: [\u002F* your modules *\u002F, '@fougere\u002Fnuxt'],\n});\n","ts","",[17,67,68,92,128],{"__ignoreMap":65},[69,70,73,77,80,84,88],"span",{"class":71,"line":72},"line",1,[69,74,76],{"class":75},"sK6XW","export",[69,78,79],{"class":75}," default",[69,81,83],{"class":82},"s4mR9"," defineNuxtConfig",[69,85,87],{"class":86},"srlTG","(",[69,89,91],{"class":90},"s15xx","{\n",[69,93,95,99,101,104,108,111,115,119,122,125],{"class":71,"line":94},2,[69,96,98],{"class":97},"sHtqg","  modules",[69,100,58],{"class":90},[69,102,103],{"class":86}," [",[69,105,107],{"class":106},"skXKP","\u002F* your modules *\u002F",[69,109,110],{"class":90},",",[69,112,114],{"class":113},"sDDC1"," '",[69,116,118],{"class":117},"sN-8n","@fougere\u002Fnuxt",[69,120,121],{"class":113},"'",[69,123,124],{"class":86},"]",[69,126,127],{"class":90},",\n",[69,129,131,134,137],{"class":71,"line":130},3,[69,132,133],{"class":90},"}",[69,135,136],{"class":86},")",[69,138,139],{"class":90},";\n",[13,141,142,145,146,149,150,154],{},[51,143,144],{},"2. The config"," — ",[17,147,148],{},"fougere.config.ts"," at the root (",[38,151,153],{"href":152},"\u002Freference\u002Fconfig","every key","):",[60,156,158],{"className":62,"code":157,"language":64,"meta":65,"style":65},"import '@fougere\u002Fadapter-sql';\nimport { defineFougere } from '@fougere\u002Fcore';\n\nexport default defineFougere({\n  sources: { main: { type: 'sqlite', path: '.data\u002Fapp.db' } },\n});\n",[17,159,160,174,200,206,219,267],{"__ignoreMap":65},[69,161,162,165,167,170,172],{"class":71,"line":72},[69,163,164],{"class":75},"import",[69,166,114],{"class":113},[69,168,169],{"class":117},"@fougere\u002Fadapter-sql",[69,171,121],{"class":113},[69,173,139],{"class":90},[69,175,176,178,181,185,188,191,193,196,198],{"class":71,"line":94},[69,177,164],{"class":75},[69,179,180],{"class":90}," {",[69,182,184],{"class":183},"sPEhv"," defineFougere",[69,186,187],{"class":90}," }",[69,189,190],{"class":75}," from",[69,192,114],{"class":113},[69,194,195],{"class":117},"@fougere\u002Fcore",[69,197,121],{"class":113},[69,199,139],{"class":90},[69,201,202],{"class":71,"line":130},[69,203,205],{"emptyLinePlaceholder":204},true,"\n",[69,207,209,211,213,215,217],{"class":71,"line":208},4,[69,210,76],{"class":75},[69,212,79],{"class":75},[69,214,184],{"class":82},[69,216,87],{"class":86},[69,218,91],{"class":90},[69,220,222,225,227,229,232,234,236,239,241,243,246,248,250,253,255,257,260,262,264],{"class":71,"line":221},5,[69,223,224],{"class":97},"  sources",[69,226,58],{"class":90},[69,228,180],{"class":90},[69,230,231],{"class":97}," main",[69,233,58],{"class":90},[69,235,180],{"class":90},[69,237,238],{"class":97}," type",[69,240,58],{"class":90},[69,242,114],{"class":113},[69,244,245],{"class":117},"sqlite",[69,247,121],{"class":113},[69,249,110],{"class":90},[69,251,252],{"class":97}," path",[69,254,58],{"class":90},[69,256,114],{"class":113},[69,258,259],{"class":117},".data\u002Fapp.db",[69,261,121],{"class":113},[69,263,187],{"class":90},[69,265,266],{"class":90}," },\n",[69,268,270,272,274],{"class":71,"line":269},6,[69,271,133],{"class":90},[69,273,136],{"class":86},[69,275,139],{"class":90},[13,277,278,281,282,285],{},[51,279,280],{},"3. A first frond"," — one entity and one handler, under ",[17,283,284],{},"fronds\u002F"," in the app you already have:",[60,287,292],{"className":288,"code":290,"language":291},[289],"language-text","fronds\u002Ftodo\u002Fentities\u002FTodo.ts\nfronds\u002Ftodo\u002Fhandlers\u002FTodoHandler.ts\n","text",[17,293,290],{"__ignoreMap":65},[13,295,296,297,300,301,304,305,308],{},"Fougere knows what each file is from the folder it sits in. A page imports the entity with\n",[17,298,299],{},"import Todo from '@fronds\u002Ftodo\u002Fentities\u002FTodo.js'",": the alias exists on its own, so you add\nno ",[17,302,303],{},"package.json"," and no workspace entry. A second domain later goes in ",[17,306,307],{},"fronds\u002Fbilling\u002F",",\nnext to this one.",[13,310,311,312,315,316,320],{},"Run ",[17,313,314],{},"npm run dev"," and check the ",[38,317,319],{"href":318},"\u002Fdocs\u002Fadopt\u002Fnew-project#create-it","boot log",".",[44,322,324],{"id":323},"other-frameworks","Other frameworks",[326,327,328,344],"table",{},[329,330,331],"thead",{},[332,333,334,338,341],"tr",{},[335,336,337],"th",{},"Host",[335,339,340],{},"Package",[335,342,343],{},"What you write",[345,346,347,363,379,393,405,421,435],"tbody",{},[332,348,349,353,357],{},[350,351,352],"td",{},"Nuxt",[350,354,355],{},[17,356,118],{},[350,358,359,360],{},"one line in ",[17,361,362],{},"nuxt.config",[332,364,365,368,373],{},[350,366,367],{},"Next",[350,369,370],{},[17,371,372],{},"@fougere\u002Fnext",[350,374,375,376],{},"two one-line route files + ",[17,377,378],{},"withFougere()",[332,380,381,384,390],{},[350,382,383],{},"TanStack Start",[350,385,386],{},[387,388,389],"em",{},"none",[350,391,392],{},"two route files + the Vite plugin",[332,394,395,398,402],{},[350,396,397],{},"React Router",[350,399,400],{},[387,401,389],{},[350,403,404],{},"three resource routes + the Vite plugin",[332,406,407,410,414],{},[350,408,409],{},"SvelteKit",[350,411,412],{},[387,413,389],{},[350,415,416,417,420],{},"two ",[17,418,419],{},"+server.ts"," + the Vite plugin",[332,422,423,426,430],{},[350,424,425],{},"Express",[350,427,428],{},[387,429,389],{},[350,431,432],{},[17,433,434],{},"app.use(fougere())",[332,436,437,440,444],{},[350,438,439],{},"Hono, a Worker, any engine",[350,441,442],{},[387,443,389],{},[350,445,446,447],{},"one line — ",[38,448,450],{"href":449},"#serve-on-any-engine",[17,451,452],{},"answer",[13,454,455,458,459,462,463,462,466,469,470,473,474,479,480,482,483,486],{},[17,456,457],{},"fougere new"," writes these lines into the shell the host's own tool made, so a new app starts from\nwhat ",[17,460,461],{},"create-nuxt",", ",[17,464,465],{},"create-next-app",[17,467,468],{},"create-vite"," or ",[17,471,472],{},"sv create"," writes today — see\n",[38,475,477],{"href":476},"\u002Freference\u002Fcli",[17,478,457],{},". A host finds the fronds on its own — the nearest directory, up from the app, that holds\n",[17,481,284],{}," — so ",[17,484,485],{},"root"," is written only when they sit elsewhere, the same option for every host.",[13,488,489,490,493,494,497,498,500,501,504,505,320],{},"Three hosts need no package of their own, and that is not an accident: they serve\nWeb-standard ",[17,491,492],{},"Request","\u002F",[17,495,496],{},"Response",", so the facades go in unchanged. ",[17,499,372],{}," exists\nbecause Next has ",[17,502,503],{},"next\u002Fheaders"," — one import — and Nuxt's module is larger because an h3\nevent is not a ",[17,506,492],{},[44,508,510],{"id":509},"mount-fougere-in-your-framework","Mount Fougere in your framework",[13,512,513,514,517],{},"Mounting a facade is not the same as publishing an adapter: what you write below puts\nthe facade in place, and ",[17,515,516],{},"protocols:"," decides whether it serves anything.",[13,519,520,523],{},[51,521,522],{},"A Web-standard host"," — Next, TanStack Start, React Router, SvelteKit — mounts the\nhandlers directly:",[60,525,527],{"className":62,"code":526,"language":64,"meta":65,"style":65},"\u002F\u002F SvelteKit — src\u002Froutes\u002F_fougere\u002Fcall\u002F+server.ts\nimport { fougere } from '@fougere\u002Fapp\u002Fweb';\nexport const POST = ({ request }: { request: Request }) => fougere(request);\n",[17,528,529,534,556],{"__ignoreMap":65},[69,530,531],{"class":71,"line":72},[69,532,533],{"class":106},"\u002F\u002F SvelteKit — src\u002Froutes\u002F_fougere\u002Fcall\u002F+server.ts\n",[69,535,536,538,540,543,545,547,549,552,554],{"class":71,"line":94},[69,537,164],{"class":75},[69,539,180],{"class":90},[69,541,542],{"class":183}," fougere",[69,544,187],{"class":90},[69,546,190],{"class":75},[69,548,114],{"class":113},[69,550,551],{"class":117},"@fougere\u002Fapp\u002Fweb",[69,553,121],{"class":113},[69,555,139],{"class":90},[69,557,558,560,564,568,571,574,578,581,583,585,587,591,594,598,600,602,605,607],{"class":71,"line":130},[69,559,76],{"class":75},[69,561,563],{"class":562},"s76I7"," const",[69,565,567],{"class":566},"slP7D"," POST",[69,569,570],{"class":90}," =",[69,572,573],{"class":90}," ({",[69,575,577],{"class":576},"shDUQ"," request",[69,579,580],{"class":90}," }:",[69,582,180],{"class":90},[69,584,577],{"class":97},[69,586,58],{"class":90},[69,588,590],{"class":589},"sBZYL"," Request",[69,592,593],{"class":90}," })",[69,595,597],{"class":596},"scTuO"," =>",[69,599,542],{"class":82},[69,601,87],{"class":86},[69,603,604],{"class":183},"request",[69,606,136],{"class":86},[69,608,139],{"class":90},[13,610,611,614,615,617,618,620,621,624],{},[17,612,613],{},"fougere"," takes a ",[17,616,492],{}," and returns a ",[17,619,496],{},", and reads the door off the path, so every\nroute file hands it the same function. The file you create ",[387,622,623],{},"is"," the consent: no file, no facade.",[13,626,627,629,630,469,633,58],{},[51,628,425],{}," adds them as one middleware, like ",[17,631,632],{},"express.json()",[17,634,635],{},"cors()",[60,637,639],{"className":62,"code":638,"language":64,"meta":65,"style":65},"import { fougere } from '@fougere\u002Fapp\u002Fexpress';\n\napp.use(fougere());   \u002F\u002F every door; what each one serves is `protocols:` in fougere.config.ts\n",[17,640,641,662,666],{"__ignoreMap":65},[69,642,643,645,647,649,651,653,655,658,660],{"class":71,"line":72},[69,644,164],{"class":75},[69,646,180],{"class":90},[69,648,542],{"class":183},[69,650,187],{"class":90},[69,652,190],{"class":75},[69,654,114],{"class":113},[69,656,657],{"class":117},"@fougere\u002Fapp\u002Fexpress",[69,659,121],{"class":113},[69,661,139],{"class":90},[69,663,664],{"class":71,"line":94},[69,665,205],{"emptyLinePlaceholder":204},[69,667,668,671,673,676,678,680,683,686],{"class":71,"line":130},[69,669,670],{"class":183},"app",[69,672,320],{"class":90},[69,674,675],{"class":82},"use",[69,677,87],{"class":86},[69,679,613],{"class":82},[69,681,682],{"class":86},"())",[69,684,685],{"class":90},";",[69,687,688],{"class":106},"   \u002F\u002F every door; what each one serves is `protocols:` in fougere.config.ts\n",[13,690,691,692,695],{},"A path Fougere does not serve calls ",[17,693,694],{},"next()",", so an app's own routes keep answering\nwhether they were registered before or after.",[13,697,698,700],{},[51,699,352],{}," mounts them itself — its module has an API for that, and adds the composables\nat the same time.",[44,702,704],{"id":703},"several-apps","Several apps",[13,706,707,708,711],{},"A project can hold several apps: a Nuxt site and a terminal, for example (",[17,709,710],{},"--app \"nuxt:web,oclif:ops\"",").\nEach app runs every frond in its own process. That works for what is the same everywhere: the\ncode, the rules, and a database the apps share.",[13,713,714],{},"It does not work for what must exist once:",[716,717,718,729,735,741],"ul",{},[719,720,721,724,725,728],"li",{},[51,722,723],{},"Memory."," With no ",[17,726,727],{},"sources:",", each app keeps its own data, and the other never sees it.",[719,730,731,734],{},[51,732,733],{},"SQLite and files."," One writer at a time. A source with no transaction (memory, files, D1)\narbitrates inside one process only.",[719,736,737,740],{},[51,738,739],{},"Facts."," An announcement reaches the listeners of its own process only.",[719,742,743,746],{},[51,744,745],{},"Seeds."," Two apps starting on an empty database both plant them.",[13,748,749,750,753,754,320],{},"When something must exist once, run its frond in one place and let the other apps call it:\n",[17,751,752],{},"fronds: { mail: { remote: 'http:\u002F\u002Fmail:4100' } }",". See ",[38,755,757],{"href":756},"\u002Fdocs\u002Frun\u002Fdeploy","Deploy",[13,759,760,761,320],{},"To split an app you already have into fronds, see ",[38,762,764],{"href":763},"\u002Fdocs\u002Frun\u002Fsplit-an-existing-app","Split an existing app",[44,766,768],{"id":767},"migrate-feature-by-feature","Migrate feature by feature",[13,770,771],{},"Move one feature at a time, while your old routes keep serving the rest. Here is what\neach thing you maintain today becomes:",[326,773,774,784],{},[329,775,776],{},[332,777,778,781],{},[335,779,780],{},"You maintain today",[335,782,783],{},"It becomes",[345,785,786,798,810,826,840],{},[332,787,788,791],{},[350,789,790],{},"a Zod\u002FYup schema",[350,792,793,794],{},"the entity's fields — ",[38,795,797],{"href":796},"\u002Fdocs\u002Fconcepts\u002Fentity","shape axis",[332,799,800,803],{},[350,801,802],{},"a table definition or additive migration",[350,804,805,806,809],{},"derived — ",[17,807,808],{},"fougere migrate"," writes it from the same fields; destructive changes stay explicit",[332,811,812,818],{},[350,813,814,817],{},[17,815,816],{},"server\u002Fapi\u002Ftodos.post.ts"," + validation call",[350,819,820,821,825],{},"a ",[38,822,824],{"href":823},"\u002Fdocs\u002Fconcepts\u002Fhandler","handler"," operation, validated before your code runs",[332,827,828,831],{},[350,829,830],{},"form state + client-side rules",[350,832,833,839],{},[38,834,836],{"href":835},"\u002Fdocs\u002Fserve\u002Fforms",[17,837,838],{},"useFormFor(Todo)"," — same validation as the server",[332,841,842,848],{},[350,843,844,847],{},[17,845,846],{},"useFetch('\u002Fapi\u002Ftodos')"," + refresh bookkeeping",[350,849,850,856],{},[38,851,853],{"href":852},"\u002Fdocs\u002Fserve\u002Fpages",[17,854,855],{},"useQuery(todo, 'list')"," — typed by the handler, revalidated by commands",[13,858,859],{},"Delete the old files as each feature moves over: the goal is fewer files to keep in sync,\nnot a second copy.",[44,861,863],{"id":862},"what-stays-yours","What stays yours",[716,865,866,872,878],{},[719,867,868,871],{},[51,869,870],{},"Pages and components"," — Fougere adds composables, not components: no layout, no widgets.",[719,873,874,877],{},[51,875,876],{},"Other server routes"," — anything outside the paths above is left alone.",[719,879,880,883,884,887,888,892],{},[51,881,882],{},"Auth"," — optional. Keep your own system if you have one; ",[17,885,886],{},"useCurrentUser"," and the\nsession-to-handler flow need ",[38,889,891],{"href":890},"\u002Fdocs\u002Faccess\u002Fauthentication","Fougere auth"," to be enabled.",[44,894,896],{"id":895},"what-fougere-owns","What Fougere owns",[13,898,899,900,902],{},"Fougere owns an entity's rows: their table is written by ",[17,901,808],{}," (SQLite, Postgres, MySQL,\nSQL Server, D1), or they are files or memory. Move a feature over when you can hand its table to\nFougere, and keep your existing database code for the rest.",[44,904,906],{"id":905},"ask-your-agent","Ask your agent",[13,908,909],{},"Before moving anything, paste this prompt into the agent that already knows your codebase.\nIt finds what your code declares twice and what that has cost you, then prices moving one\nmodule to Fougere, and what would get worse.",[911,912],"audit-prompt",{},[44,914,916],{"id":915},"serve-on-any-engine","Serve on any engine",[13,918,919],{},"Every host above ends in the same function. When you already hold the app, call it yourself:",[60,921,923],{"className":62,"code":922,"language":64,"meta":65,"style":65},"import { answer } from '@fougere\u002Fapp\u002Fanswer';\n\nhono.all('*', async (c) => (await answer(app, c.req.raw)) ?? c.notFound());\n",[17,924,925,947,951],{"__ignoreMap":65},[69,926,927,929,931,934,936,938,940,943,945],{"class":71,"line":72},[69,928,164],{"class":75},[69,930,180],{"class":90},[69,932,933],{"class":183}," answer",[69,935,187],{"class":90},[69,937,190],{"class":75},[69,939,114],{"class":113},[69,941,942],{"class":117},"@fougere\u002Fapp\u002Fanswer",[69,944,121],{"class":113},[69,946,139],{"class":90},[69,948,949],{"class":71,"line":94},[69,950,205],{"emptyLinePlaceholder":204},[69,952,953,956,958,961,963,965,968,970,972,975,978,981,983,985,987,990,992,994,996,998,1001,1003,1007,1009,1012,1015,1018,1020,1022,1025,1027],{"class":71,"line":130},[69,954,955],{"class":183},"hono",[69,957,320],{"class":90},[69,959,960],{"class":82},"all",[69,962,87],{"class":86},[69,964,121],{"class":113},[69,966,967],{"class":117},"*",[69,969,121],{"class":113},[69,971,110],{"class":90},[69,973,974],{"class":562}," async",[69,976,977],{"class":90}," (",[69,979,980],{"class":576},"c",[69,982,136],{"class":90},[69,984,597],{"class":596},[69,986,977],{"class":86},[69,988,989],{"class":75},"await",[69,991,933],{"class":82},[69,993,87],{"class":86},[69,995,670],{"class":183},[69,997,110],{"class":90},[69,999,1000],{"class":183}," c",[69,1002,320],{"class":90},[69,1004,1006],{"class":1005},"sy9f4","req",[69,1008,320],{"class":90},[69,1010,1011],{"class":1005},"raw",[69,1013,1014],{"class":86},"))",[69,1016,1017],{"class":90}," ??",[69,1019,1000],{"class":183},[69,1021,320],{"class":90},[69,1023,1024],{"class":82},"notFound",[69,1026,682],{"class":86},[69,1028,139],{"class":90},[13,1030,1031,1034,1035,1037,1038,1040,1041,1044,1045,1048,1049,1052,1053,1055,1056,1059,1060,1062],{},[17,1032,1033],{},"answer(app, request)"," reads the door off the path — ",[17,1036,19],{},", REST under its prefix,\n",[17,1039,35],{}," (GraphQL over ",[17,1042,1043],{},"GET"," too, a mutation refused there) — and answers ",[17,1046,1047],{},"undefined"," when none\nof them is the request's, so the engine's own routes keep answering. It loads no boot, which is\nwhat lets a Worker import it (",[17,1050,1051],{},"demos\u002Fcloudflare-d1","). There is no router of ours to adapt: the\nengine is one, and its middleware is how you stand around the app — leaving a route out is a\nmiddleware answering before ",[17,1054,452],{}," does. ",[17,1057,1058],{},"fougere(request)"," from ",[17,1061,551],{}," is the same\nfunction for a host that has only the request: it boots the app at the first one.",[13,1064,1065,1068,1069,1072,1073,1077,1078,1080],{},[17,1066,1067],{},"fougere serve"," answers this way too, beside the envelope it serves its peers, and ",[17,1070,1071],{},"server: { use }","\nin the config stands around that half (",[38,1074,1076],{"href":1075},"\u002Fdocs\u002Fconcepts\u002Fconfiguration#add-middlewares-to-fougere-serve","config",").\nThe envelope is read off the Node stream rather than through a ",[17,1079,492],{},": it is the wire between two\nprocesses, and the same call answered 29 % less the other way.",[44,1082,1084],{"id":1083},"keep-class-names-in-production-builds","Keep class names in production builds",[13,1086,1087,1088,1091,1092,1095,1096,1099],{},"A call through a facade names its address as a literal (",[17,1089,1090],{},"{ address: 'post' }","), so nothing a\nminifier renames reaches it. What still reads a class name is the form — ",[17,1093,1094],{},"useFormFor(Post)","\nsubmits to the address named after the entity — and ",[17,1097,1098],{},"invoke(Post, 'list')"," on the server. A\nminifier renames classes, so a production build would designate an entity nobody hosts:",[60,1101,1104],{"className":1102,"code":1103,"language":291},[289],"Entity 'j' is not hosted here. Hosted here: post.\n",[17,1105,1103],{"__ignoreMap":65},[13,1107,1108,1109,32,1111,1114,1115,1118,1119,1121],{},"You do not have to declare anything for this. ",[17,1110,118],{},[17,1112,1113],{},"@fougere\u002Fvite"," reserve\nthe entity names for you — the first from the scan it just ran, the second by reading\n",[17,1116,1117],{},"fronds\u002F\u003Cfrond>\u002Fentities\u002F",". On Next, ",[17,1120,378],{}," does the same through webpack:",[60,1123,1125],{"className":62,"code":1124,"language":64,"meta":65,"style":65},"\u002F\u002F next.config.ts\nimport { withFougere } from '@fougere\u002Fnext\u002Fconfig';\nexport default withFougere(nextConfig);\n",[17,1126,1127,1132,1154],{"__ignoreMap":65},[69,1128,1129],{"class":71,"line":72},[69,1130,1131],{"class":106},"\u002F\u002F next.config.ts\n",[69,1133,1134,1136,1138,1141,1143,1145,1147,1150,1152],{"class":71,"line":94},[69,1135,164],{"class":75},[69,1137,180],{"class":90},[69,1139,1140],{"class":183}," withFougere",[69,1142,187],{"class":90},[69,1144,190],{"class":75},[69,1146,114],{"class":113},[69,1148,1149],{"class":117},"@fougere\u002Fnext\u002Fconfig",[69,1151,121],{"class":113},[69,1153,139],{"class":90},[69,1155,1156,1158,1160,1162,1164,1167,1169],{"class":71,"line":130},[69,1157,76],{"class":75},[69,1159,79],{"class":75},[69,1161,1140],{"class":82},[69,1163,87],{"class":86},[69,1165,1166],{"class":183},"nextConfig",[69,1168,136],{"class":86},[69,1170,139],{"class":90},[60,1172,1174],{"className":62,"code":1173,"language":64,"meta":65,"style":65},"\u002F\u002F vite.config.ts — TanStack Start, React Router, SvelteKit\nimport { fougere } from '@fougere\u002Fvite';\nexport default defineConfig({ plugins: [fougere(), sveltekit()] });\n",[17,1175,1176,1181,1201],{"__ignoreMap":65},[69,1177,1178],{"class":71,"line":72},[69,1179,1180],{"class":106},"\u002F\u002F vite.config.ts — TanStack Start, React Router, SvelteKit\n",[69,1182,1183,1185,1187,1189,1191,1193,1195,1197,1199],{"class":71,"line":94},[69,1184,164],{"class":75},[69,1186,180],{"class":90},[69,1188,542],{"class":183},[69,1190,187],{"class":90},[69,1192,190],{"class":75},[69,1194,114],{"class":113},[69,1196,1113],{"class":117},[69,1198,121],{"class":113},[69,1200,139],{"class":90},[69,1202,1203,1205,1207,1210,1212,1215,1218,1220,1222,1224,1227,1229,1232,1235,1237,1239],{"class":71,"line":130},[69,1204,76],{"class":75},[69,1206,79],{"class":75},[69,1208,1209],{"class":82}," defineConfig",[69,1211,87],{"class":86},[69,1213,1214],{"class":90},"{",[69,1216,1217],{"class":97}," plugins",[69,1219,58],{"class":90},[69,1221,103],{"class":86},[69,1223,613],{"class":82},[69,1225,1226],{"class":86},"()",[69,1228,110],{"class":90},[69,1230,1231],{"class":82}," sveltekit",[69,1233,1234],{"class":86},"()]",[69,1236,187],{"class":90},[69,1238,136],{"class":86},[69,1240,139],{"class":90},[13,1242,1243],{},"Express needs none of this: it runs your sources, nothing is minified.",[1245,1246,1247],"callout",{},[13,1248,1249],{},"An app that minifies without one of these will build cleanly and fail on the first call.\nThe failure is loud — the server says which entity it does host — but it happens in\nproduction, not at build time.",[1251,1252,1253],"style",{},"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 .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 .s15xx, html code.shiki .s15xx{--shiki-light:#39ADB5;--shiki-default:#A3B0A5;--shiki-dark:#89DDFF}html pre.shiki code .sHtqg, html code.shiki .sHtqg{--shiki-light:#E53935;--shiki-default:#93CFC0;--shiki-dark:#F07178}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 .sDDC1, html code.shiki .sDDC1{--shiki-light:#39ADB5;--shiki-default:#EE9F6B;--shiki-dark:#89DDFF}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 .sPEhv, html code.shiki .sPEhv{--shiki-light:#90A4AE;--shiki-default:#DDE5DA;--shiki-dark:#BABED8}html pre.shiki code .s76I7, html code.shiki .s76I7{--shiki-light:#9C3EDA;--shiki-default:#8FCF86;--shiki-dark:#C792EA}html pre.shiki code .slP7D, html code.shiki .slP7D{--shiki-light:#90A4AE;--shiki-default:#C9B6EA;--shiki-dark:#BABED8}html pre.shiki code .shDUQ, html code.shiki .shDUQ{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#DDE5DA;--shiki-default-font-style:inherit;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .sBZYL, html code.shiki .sBZYL{--shiki-light:#E2931D;--shiki-default:#EFCD8F;--shiki-dark:#FFCB6B}html pre.shiki code .scTuO, html code.shiki .scTuO{--shiki-light:#9C3EDA;--shiki-default:#A3B0A5;--shiki-dark:#C792EA}html pre.shiki code .sy9f4, html code.shiki .sy9f4{--shiki-light:#90A4AE;--shiki-default:#93CFC0;--shiki-dark:#BABED8}",{"title":65,"searchDepth":94,"depth":94,"links":1255},[1256,1257,1258,1259,1260,1261,1262,1263,1264,1265],{"id":46,"depth":94,"text":47},{"id":323,"depth":94,"text":324},{"id":509,"depth":94,"text":510},{"id":703,"depth":94,"text":704},{"id":767,"depth":94,"text":768},{"id":862,"depth":94,"text":863},{"id":895,"depth":94,"text":896},{"id":905,"depth":94,"text":906},{"id":915,"depth":94,"text":916},{"id":1083,"depth":94,"text":1084},"Your framework, and the lines you write in it: in the app you already have, or in a new one.","md",[118,1033],"task",{},"\u002Fdocs\u002Fadopt\u002Fan-app",{"title":8,"description":1266},"docs\u002F7.adopt\u002F2.an-app",null,[1276,1277],"frond","configuration","Y-rWLWMDyXx6Qjb6didk7o8vvqg3Gcz33y7z_T1EloU",[1280,1282,1284,1287,1290,1293,1296,1299,1302,1306,1310,1315,1319,1323,1327,1331,1335,1340,1344,1348,1353,1356,1360,1363,1367,1370,1374,1378,1382,1386,1390,1392,1396,1398,1402,1406,1410,1413,1416,1419,1422,1425,1428,1431,1434,1437,1440],{"path":796,"title":1281,"uses":1274},"Entity",{"path":823,"title":1283,"uses":1274},"Handler",{"path":1285,"title":1286,"uses":1274},"\u002Fdocs\u002Fconcepts\u002Frepository","Repository",{"path":1288,"title":1289,"uses":1274},"\u002Fdocs\u002Fconcepts\u002Ffrond","Frond",{"path":1291,"title":1292,"uses":1274},"\u002Fdocs\u002Fconcepts\u002Ffacade","Facade",{"path":1294,"title":1295,"uses":1274},"\u002Fdocs\u002Fconcepts\u002Ffact","Fact",{"path":1297,"title":1298,"uses":1274},"\u002Fdocs\u002Fconcepts\u002Fport","Port",{"path":1300,"title":1301,"uses":1274},"\u002Fdocs\u002Fconcepts\u002Fconfiguration","Configuration",{"path":890,"title":1303,"uses":1304},"Authentication",[1305,1276],"port",{"path":1307,"title":1308,"uses":1309},"\u002Fdocs\u002Faccess\u002Fstate","Keep a caller's state",[1277,824],{"path":1311,"title":1312,"uses":1313},"\u002Fdocs\u002Fdata\u002Fstorage","Store your data",[1314,1277],"entity",{"path":1316,"title":1317,"uses":1318},"\u002Fdocs\u002Fdata\u002Fseveral-databases","Several databases",[1277,1314],{"path":1320,"title":1321,"uses":1322},"\u002Fdocs\u002Fdata\u002Fcomputed-field","A computed field",[1314,1305],{"path":1324,"title":1325,"uses":1326},"\u002Fdocs\u002Fdata\u002Fevolve","Evolve a schema",[1314],{"path":1328,"title":1329,"uses":1330},"\u002Fdocs\u002Fdata\u002Fseeds","Seed data",[1314],{"path":1332,"title":1333,"uses":1334},"\u002Fdocs\u002Fdata\u002Fvalues","Read settings and secrets",[1314,1277],{"path":1336,"title":1337,"uses":1338},"\u002Fdocs\u002Fdata\u002Fmirror","Mirror a source you cannot query",[1339],"repository",{"path":1341,"title":1342,"uses":1343},"\u002Fdocs\u002Fdata\u002Ftogether","Two writes as one",[1339],{"path":1345,"title":1346,"uses":1347},"\u002Fdocs\u002Fbehaviour\u002Faround-every-call","Around every call",[1305,1276],{"path":1349,"title":1350,"uses":1351},"\u002Fdocs\u002Fbehaviour\u002Ffinish-a-fact","Finish a fact",[1352],"fact",{"path":40,"title":1354,"uses":1355},"REST, OpenAPI, GraphQL",[824,1277],{"path":852,"title":1357,"uses":1358},"Pages: queries and commands",[824,1359],"facade",{"path":835,"title":1361,"uses":1362},"A form",[1314],{"path":1364,"title":1365,"uses":1366},"\u002Fdocs\u002Fserve\u002Fadmin","An admin panel",[824],{"path":756,"title":1368,"uses":1369},"Deploy a split",[1277,1276],{"path":1371,"title":1372,"uses":1373},"\u002Fdocs\u002Frun\u002Fsecure","Secure calls between processes",[1277,1276],{"path":1375,"title":1376,"uses":1377},"\u002Fdocs\u002Frun\u002Flifecycle","Reload and shut down",[1277],{"path":1379,"title":1380,"uses":1381},"\u002Fdocs\u002Frun\u002Fobserve","Observe",[1277,824],{"path":1383,"title":1384,"uses":1385},"\u002Fdocs\u002Frun\u002Fdev-panel","The dev panel",[824],{"path":1387,"title":1388,"uses":1389},"\u002Fdocs\u002Frun\u002Ftest","Test",[1314,1305],{"path":763,"title":764,"uses":1391},[1276,1359,1277],{"path":1393,"title":1394,"uses":1395},"\u002Fdocs\u002Fadopt\u002Fnew-project","Start a project",[1276,1277],{"path":1271,"title":8,"uses":1397},[1276,1277],{"path":1399,"title":1400,"uses":1401},"\u002Fdocs\u002Fadopt\u002Fbring-your-schema","Bring your schema",[1314],{"path":1403,"title":1404,"uses":1405},"\u002Fdocs\u002Fadopt\u002Fanother-repository","A frond from another repository",[1359,1276],{"path":1407,"title":1408,"uses":1409},"\u002Fdocs\u002Fadopt\u002Fdemos","Demos",[],{"path":1411,"title":1412,"uses":1274},"\u002Fdocs\u002Fextending\u002Fscan","How the scan reads a project",{"path":1414,"title":1415,"uses":1274},"\u002Fdocs\u002Fextending\u002Fwithout-compiler","Boot without the compiler",{"path":1417,"title":1418,"uses":1274},"\u002Fdocs\u002Fextending\u002Fboot","The boot, step by step",{"path":1420,"title":1421,"uses":1274},"\u002Fdocs\u002Fextending\u002Fcard-and-wire","The card and the wire",{"path":1423,"title":1424,"uses":1274},"\u002Fdocs\u002Fextending\u002Fextension-points","Registries and extension points",{"path":1426,"title":1427,"uses":1274},"\u002Fdocs\u002Fextending\u002Fvocabulary","Teach a word",{"path":1429,"title":1430,"uses":1274},"\u002Fdocs\u002Fextending\u002Fextensions","Run code at boot and shutdown",{"path":1432,"title":1433,"uses":1274},"\u002Fdocs\u002Fextending\u002Fsource-adapter","Write a source adapter",{"path":1435,"title":1436,"uses":1274},"\u002Fdocs\u002Fextending\u002Fsurface","Write a surface",{"path":1438,"title":1439,"uses":1274},"\u002Fdocs\u002Fextending\u002Fforeign-frond","A frond in another language",{"path":1441,"title":1442,"uses":1274},"\u002Fdocs","What is Fougere",[1444],{"title":1445,"path":1441,"stem":1446,"children":1447,"page":-1},"Docs","docs",[1448,1450,1471,1480,1501,1510,1523,1542,1556],{"title":1442,"path":1441,"stem":1449},"docs\u002Findex",{"title":1451,"path":1452,"stem":1453,"children":1454,"page":5},"Concepts","\u002Fdocs\u002Fconcepts","docs\u002F1.concepts",[1455,1457,1459,1461,1463,1465,1467,1469],{"title":1281,"path":796,"stem":1456},"docs\u002F1.concepts\u002F1.entity",{"title":1283,"path":823,"stem":1458},"docs\u002F1.concepts\u002F2.handler",{"title":1286,"path":1285,"stem":1460},"docs\u002F1.concepts\u002F3.repository",{"title":1289,"path":1288,"stem":1462},"docs\u002F1.concepts\u002F4.frond",{"title":1292,"path":1291,"stem":1464},"docs\u002F1.concepts\u002F5.facade",{"title":1295,"path":1294,"stem":1466},"docs\u002F1.concepts\u002F6.fact",{"title":1298,"path":1297,"stem":1468},"docs\u002F1.concepts\u002F7.port",{"title":1301,"path":1300,"stem":1470},"docs\u002F1.concepts\u002F8.configuration",{"title":1472,"path":1473,"stem":1474,"children":1475,"page":5},"Access","\u002Fdocs\u002Faccess","docs\u002F2.access",[1476,1478],{"title":1303,"path":890,"stem":1477},"docs\u002F2.access\u002F1.authentication",{"title":1308,"path":1307,"stem":1479},"docs\u002F2.access\u002F2.state",{"title":1481,"path":1482,"stem":1483,"children":1484,"page":5},"Data","\u002Fdocs\u002Fdata","docs\u002F3.data",[1485,1487,1489,1491,1493,1495,1497,1499],{"title":1312,"path":1311,"stem":1486},"docs\u002F3.data\u002F1.storage",{"title":1317,"path":1316,"stem":1488},"docs\u002F3.data\u002F2.several-databases",{"title":1321,"path":1320,"stem":1490},"docs\u002F3.data\u002F3.computed-field",{"title":1325,"path":1324,"stem":1492},"docs\u002F3.data\u002F4.evolve",{"title":1329,"path":1328,"stem":1494},"docs\u002F3.data\u002F5.seeds",{"title":1333,"path":1332,"stem":1496},"docs\u002F3.data\u002F6.values",{"title":1337,"path":1336,"stem":1498},"docs\u002F3.data\u002F7.mirror",{"title":1342,"path":1341,"stem":1500},"docs\u002F3.data\u002F8.together",{"title":1502,"path":1503,"stem":1504,"children":1505,"page":5},"Behaviour","\u002Fdocs\u002Fbehaviour","docs\u002F4.behaviour",[1506,1508],{"title":1346,"path":1345,"stem":1507},"docs\u002F4.behaviour\u002F1.around-every-call",{"title":1350,"path":1349,"stem":1509},"docs\u002F4.behaviour\u002F2.finish-a-fact",{"title":1511,"path":1512,"stem":1513,"children":1514,"page":5},"Serve","\u002Fdocs\u002Fserve","docs\u002F5.serve",[1515,1517,1519,1521],{"title":1354,"path":40,"stem":1516},"docs\u002F5.serve\u002F1.rest-graphql",{"title":1357,"path":852,"stem":1518},"docs\u002F5.serve\u002F2.pages",{"title":1361,"path":835,"stem":1520},"docs\u002F5.serve\u002F3.forms",{"title":1365,"path":1364,"stem":1522},"docs\u002F5.serve\u002F4.admin",{"title":1524,"path":1525,"stem":1526,"children":1527,"page":5},"Run","\u002Fdocs\u002Frun","docs\u002F6.run",[1528,1530,1532,1534,1536,1538,1540],{"title":1368,"path":756,"stem":1529},"docs\u002F6.run\u002F1.deploy",{"title":1372,"path":1371,"stem":1531},"docs\u002F6.run\u002F2.secure",{"title":1376,"path":1375,"stem":1533},"docs\u002F6.run\u002F3.lifecycle",{"title":1380,"path":1379,"stem":1535},"docs\u002F6.run\u002F4.observe",{"title":1384,"path":1383,"stem":1537},"docs\u002F6.run\u002F5.dev-panel",{"title":1388,"path":1387,"stem":1539},"docs\u002F6.run\u002F6.test",{"title":764,"path":763,"stem":1541},"docs\u002F6.run\u002F7.split-an-existing-app",{"title":1543,"path":1544,"stem":1545,"children":1546,"page":5},"Adopt","\u002Fdocs\u002Fadopt","docs\u002F7.adopt",[1547,1549,1550,1552,1554],{"title":1394,"path":1393,"stem":1548},"docs\u002F7.adopt\u002F1.new-project",{"title":8,"path":1271,"stem":1273},{"title":1400,"path":1399,"stem":1551},"docs\u002F7.adopt\u002F3.bring-your-schema",{"title":1404,"path":1403,"stem":1553},"docs\u002F7.adopt\u002F5.another-repository",{"title":1408,"path":1407,"stem":1555},"docs\u002F7.adopt\u002F6.demos",{"title":1557,"path":1558,"stem":1559,"children":1560,"page":5},"Extending","\u002Fdocs\u002Fextending","docs\u002F8.extending",[1561,1563,1565,1567,1569,1571,1573,1575,1577,1579],{"title":1412,"path":1411,"stem":1562},"docs\u002F8.extending\u002F1.scan",{"title":1415,"path":1414,"stem":1564},"docs\u002F8.extending\u002F10.without-compiler",{"title":1418,"path":1417,"stem":1566},"docs\u002F8.extending\u002F2.boot",{"title":1421,"path":1420,"stem":1568},"docs\u002F8.extending\u002F3.card-and-wire",{"title":1424,"path":1423,"stem":1570},"docs\u002F8.extending\u002F4.extension-points",{"title":1427,"path":1426,"stem":1572},"docs\u002F8.extending\u002F5.vocabulary",{"title":1430,"path":1429,"stem":1574},"docs\u002F8.extending\u002F6.extensions",{"title":1433,"path":1432,"stem":1576},"docs\u002F8.extending\u002F7.source-adapter",{"title":1436,"path":1435,"stem":1578},"docs\u002F8.extending\u002F8.surface",{"title":1439,"path":1438,"stem":1580},"docs\u002F8.extending\u002F9.foreign-frond",1794951177124]