[{"data":1,"prerenderedAt":406},["ShallowReactive",2],{"doc-seo-\u002Fdocs\u002Fplatform\u002Fstorage-and-sync":3,"content-query-iV4QeldyFr":6},{"title":4,"description":5},"SQLite Index & Monorepo Sync","How Strata stores project metadata in .strata\u002Fgraph.db and keeps it up to date incrementally.",{"_path":7,"_dir":8,"_draft":9,"_partial":9,"_locale":10,"title":4,"description":5,"badge":11,"body":12,"_type":400,"_id":401,"_source":402,"_file":403,"_stem":404,"_extension":405},"\u002Fdocs\u002Fplatform\u002Fstorage-and-sync","platform",false,"","Platform",{"type":13,"children":14,"toc":393},"root",[15,40,53,269,275,280],{"type":16,"tag":17,"props":18,"children":19},"element","p",{},[20,23,30,32,38],{"type":21,"value":22},"text","Strata stores its local index in ",{"type":16,"tag":24,"props":25,"children":27},"code",{"className":26},[],[28],{"type":21,"value":29},"\u003CworkspaceRoot>\u002F.strata\u002Fgraph.db",{"type":21,"value":31}," using SQLite in WAL mode (Schema v3). Everything stays inside your project's ",{"type":16,"tag":24,"props":33,"children":35},{"className":34},[],[36],{"type":21,"value":37},".strata\u002F",{"type":21,"value":39}," directory (ignored by Git).",{"type":16,"tag":41,"props":42,"children":44},"h2",{"id":43},"what-gets-stored-in-stratagraphdb",[45,47],{"type":21,"value":46},"What Gets Stored in ",{"type":16,"tag":24,"props":48,"children":50},{"className":49},[],[51],{"type":21,"value":52},".strata\u002Fgraph.db",{"type":16,"tag":54,"props":55,"children":56},"ul",{},[57,97,134,156,255],{"type":16,"tag":58,"props":59,"children":60},"li",{},[61,71,73,79,81,87,89,95],{"type":16,"tag":62,"props":63,"children":64},"strong",{},[65],{"type":16,"tag":24,"props":66,"children":68},{"className":67},[],[69],{"type":21,"value":70},"packages",{"type":21,"value":72},": Monorepo packages (from ",{"type":16,"tag":24,"props":74,"children":76},{"className":75},[],[77],{"type":21,"value":78},"pnpm-workspace.yaml",{"type":21,"value":80},", ",{"type":16,"tag":24,"props":82,"children":84},{"className":83},[],[85],{"type":21,"value":86},"package.json#workspaces",{"type":21,"value":88},", or root), detected framework, router, ",{"type":16,"tag":24,"props":90,"children":92},{"className":91},[],[93],{"type":21,"value":94},"tsconfig.json",{"type":21,"value":96}," path, and package exports.",{"type":16,"tag":58,"props":98,"children":99},{},[100,109,111,117,118,124,126,132],{"type":16,"tag":62,"props":101,"children":102},{},[103],{"type":16,"tag":24,"props":104,"children":106},{"className":105},[],[107],{"type":21,"value":108},"files",{"type":21,"value":110},": Tracked frontend files with ",{"type":16,"tag":24,"props":112,"children":114},{"className":113},[],[115],{"type":21,"value":116},"mtime",{"type":21,"value":80},{"type":16,"tag":24,"props":119,"children":121},{"className":120},[],[122],{"type":21,"value":123},"size",{"type":21,"value":125},", SHA-256 ",{"type":16,"tag":24,"props":127,"children":129},{"className":128},[],[130],{"type":21,"value":131},"content_hash",{"type":21,"value":133},", page\u002Flayout flags, and cached contracts.",{"type":16,"tag":58,"props":135,"children":136},{},[137,154],{"type":16,"tag":62,"props":138,"children":139},{},[140,146,148],{"type":16,"tag":24,"props":141,"children":143},{"className":142},[],[144],{"type":21,"value":145},"symbols",{"type":21,"value":147}," & ",{"type":16,"tag":24,"props":149,"children":151},{"className":150},[],[152],{"type":21,"value":153},"symbols_fts",{"type":21,"value":155},": Indexed components, functions, composables, stores, types, props, emits, slots, and models with a SQLite FTS5 full-text index.",{"type":16,"tag":58,"props":157,"children":158},{},[159,168,170,176,177,183,184,190,191,197,198,204,205,211,212,218,219,225,226,232,233,239,240,246,247,253],{"type":16,"tag":62,"props":160,"children":161},{},[162],{"type":16,"tag":24,"props":163,"children":165},{"className":164},[],[166],{"type":21,"value":167},"symbol_edges",{"type":21,"value":169},": Relationships between files and symbols (",{"type":16,"tag":24,"props":171,"children":173},{"className":172},[],[174],{"type":21,"value":175},"imports",{"type":21,"value":80},{"type":16,"tag":24,"props":178,"children":180},{"className":179},[],[181],{"type":21,"value":182},"reexports",{"type":21,"value":80},{"type":16,"tag":24,"props":185,"children":187},{"className":186},[],[188],{"type":21,"value":189},"renders",{"type":21,"value":80},{"type":16,"tag":24,"props":192,"children":194},{"className":193},[],[195],{"type":21,"value":196},"calls",{"type":21,"value":80},{"type":16,"tag":24,"props":199,"children":201},{"className":200},[],[202],{"type":21,"value":203},"reads_state",{"type":21,"value":80},{"type":16,"tag":24,"props":206,"children":208},{"className":207},[],[209],{"type":21,"value":210},"writes_state",{"type":21,"value":80},{"type":16,"tag":24,"props":213,"children":215},{"className":214},[],[216],{"type":21,"value":217},"watches_state",{"type":21,"value":80},{"type":16,"tag":24,"props":220,"children":222},{"className":221},[],[223],{"type":21,"value":224},"passes_prop",{"type":21,"value":80},{"type":16,"tag":24,"props":227,"children":229},{"className":228},[],[230],{"type":21,"value":231},"listens_event",{"type":21,"value":80},{"type":16,"tag":24,"props":234,"children":236},{"className":235},[],[237],{"type":21,"value":238},"provides_context",{"type":21,"value":80},{"type":16,"tag":24,"props":241,"children":243},{"className":242},[],[244],{"type":21,"value":245},"consumes_context",{"type":21,"value":80},{"type":16,"tag":24,"props":248,"children":250},{"className":249},[],[251],{"type":21,"value":252},"outbound_http",{"type":21,"value":254},").",{"type":16,"tag":58,"props":256,"children":257},{},[258,267],{"type":16,"tag":62,"props":259,"children":260},{},[261],{"type":16,"tag":24,"props":262,"children":264},{"className":263},[],[265],{"type":21,"value":266},"routes",{"type":21,"value":268},": Page and API routes per package.",{"type":16,"tag":41,"props":270,"children":272},{"id":271},"how-incremental-sync-stays-fast",[273],{"type":21,"value":274},"How Incremental Sync Stays Fast",{"type":16,"tag":17,"props":276,"children":277},{},[278],{"type":21,"value":279},"Strata avoids re-scanning the entire repository on every tool call:",{"type":16,"tag":281,"props":282,"children":283},"ol",{},[284,318,328,346,383],{"type":16,"tag":58,"props":285,"children":286},{},[287,292,294,300,302,308,310,316],{"type":16,"tag":62,"props":288,"children":289},{},[290],{"type":21,"value":291},"Clean Git fast path",{"type":21,"value":293},": If ",{"type":16,"tag":24,"props":295,"children":297},{"className":296},[],[298],{"type":21,"value":299},"git status --porcelain",{"type":21,"value":301}," is clean and ",{"type":16,"tag":24,"props":303,"children":305},{"className":304},[],[306],{"type":21,"value":307},"HEAD",{"type":21,"value":309}," plus package manifests match the last sync, sync finishes in under ",{"type":16,"tag":24,"props":311,"children":313},{"className":312},[],[314],{"type":21,"value":315},"15ms",{"type":21,"value":317}," without walking the filesystem.",{"type":16,"tag":58,"props":319,"children":320},{},[321,326],{"type":16,"tag":62,"props":322,"children":323},{},[324],{"type":21,"value":325},"File watcher dirty queue",{"type":21,"value":327},": While the MCP server is running, edits are queued in memory. If no files changed, sync returns immediately; if only a few files changed, only those files are re-parsed and updated in SQLite.",{"type":16,"tag":58,"props":329,"children":330},{},[331,336,338,344],{"type":16,"tag":62,"props":332,"children":333},{},[334],{"type":21,"value":335},"Parallel worker pool",{"type":21,"value":337},": On large initial scans (",{"type":16,"tag":24,"props":339,"children":341},{"className":340},[],[342],{"type":21,"value":343},">= 1,000",{"type":21,"value":345}," files to parse), Strata automatically distributes parsing across up to 4 Bun worker threads.",{"type":16,"tag":58,"props":347,"children":348},{},[349,354,356,362,363,368,369,374,375,381],{"type":16,"tag":62,"props":350,"children":351},{},[352],{"type":21,"value":353},"Automatic full-sync fallback",{"type":21,"value":355},": Changes to config files (",{"type":16,"tag":24,"props":357,"children":359},{"className":358},[],[360],{"type":21,"value":361},"package.json",{"type":21,"value":80},{"type":16,"tag":24,"props":364,"children":366},{"className":365},[],[367],{"type":21,"value":94},{"type":21,"value":80},{"type":16,"tag":24,"props":370,"children":372},{"className":371},[],[373],{"type":21,"value":78},{"type":21,"value":80},{"type":16,"tag":24,"props":376,"children":378},{"className":377},[],[379],{"type":21,"value":380},".gitignore",{"type":21,"value":382},") or bursts of more than 100 dirty files fall back to a full workspace sync so the index stays consistent.",{"type":16,"tag":58,"props":384,"children":385},{},[386,391],{"type":16,"tag":62,"props":387,"children":388},{},[389],{"type":21,"value":390},"Single-flight coalescing",{"type":21,"value":392},": Concurrent tool calls targeting the same workspace share one in-flight sync instead of duplicating work or fighting over SQLite locks.",{"title":10,"searchDepth":394,"depth":394,"links":395},3,[396,399],{"id":43,"depth":397,"text":398},2,"What Gets Stored in .strata\u002Fgraph.db",{"id":271,"depth":397,"text":274},"markdown","content:docs:platform:storage-and-sync.md","content","docs\u002Fplatform\u002Fstorage-and-sync.md","docs\u002Fplatform\u002Fstorage-and-sync","md",1795576105523]