[{"data":1,"prerenderedAt":297,"buildId":298},["ShallowReactive",2],{"\u002Freference\u002Fscope":3,"\u002Freference\u002Fscope-surround":193,"navigation":204},{"id":4,"title":5,"body":6,"description":184,"extension":185,"links":186,"meta":187,"navigation":188,"path":189,"seo":190,"stem":191,"__hash__":192},"docs\u002F5.reference\u002F2.scope.md","Scope and design decisions",{"type":7,"value":8,"toc":167},"minimark",[9,13,18,26,30,58,62,67,73,77,92,96,99,103,109,113,138,142,160,164],[10,11,5],"h1",{"id":12},"scope-and-design-decisions",[14,15,17],"h2",{"id":16},"goal","Goal",[19,20,21,25],"p",{},[22,23,24],"code",{},"oruntime"," remains a lightweight primitive layer. It identifies the runtime, exposes common information, and helps code make portable decisions.",[14,27,29],{"id":28},"supported","Supported",[31,32,33,37,40,43,46,49,52,55],"ul",{},[34,35,36],"li",{},"Ordered runtime detection and strict mode.",[34,38,39],{},"Reliable runtime versions when available.",[34,41,42],{},"Environment variables, user arguments, and current directory access.",[34,44,45],{},"Immutable capability detection.",[34,47,48],{},"Fetch with consistent timeouts and cancellation.",[34,50,51],{},"Abortable timers and promise deadlines.",[34,53,54],{},"Portable URL helpers.",[34,56,57],{},"A shared error model.",[14,59,61],{"id":60},"outside-the-current-scope","Outside the current scope",[63,64,66],"h3",{"id":65},"http-and-websocket-servers","HTTP and WebSocket servers",[19,68,69,70,72],{},"Specialized server libraries already handle streams, upgrades, sockets, TLS, graceful shutdown, and performance. ",[22,71,24],{}," provides no server, router, or middleware.",[63,74,76],{"id":75},"file-systems-and-paths","File systems and paths",[19,78,79,80,83,84,87,88,91],{},"There are no ",[22,81,82],{},"oruntime\u002Ffs"," or ",[22,85,86],{},"oruntime\u002Fpath"," modules. Node.js, Bun, and Deno already share many ",[22,89,90],{},"node:"," APIs, while browsers, virtual systems, and remote storage have different contracts.",[63,93,95],{"id":94},"encoding-and-cryptography","Encoding and cryptography",[19,97,98],{},"These areas are not currently supported. Use native APIs or specialized libraries directly.",[63,100,102],{"id":101},"storage","Storage",[19,104,105,108],{},[22,106,107],{},"localStorage",", IndexedDB, OPFS, KV, R2, Redis, and file systems do not provide the same guarantees, so storage does not belong in the current core.",[63,110,112],{"id":111},"processes-and-operating-systems","Processes and operating systems",[19,114,115,118,119,122,123,125,126,129,130,133,134,137],{},[22,116,117],{},"subprocess"," and ",[22,120,121],{},"signals"," can be detected, but ",[22,124,24],{}," does not re-export ",[22,127,128],{},"node:child_process",", ",[22,131,132],{},"node:os",", or ",[22,135,136],{},"process",".",[14,139,141],{"id":140},"principles","Principles",[143,144,145,148,151,154,157],"ol",{},[34,146,147],{},"Prefer existing standards.",[34,149,150],{},"Detect real capabilities rather than relying only on the runtime name.",[34,152,153],{},"Never hide permission failures as missing values.",[34,155,156],{},"Avoid wrappers that merely rename an API.",[34,158,159],{},"Compose with the ecosystem and let applications choose specialized libraries.",[14,161,163],{"id":162},"criteria-for-new-features","Criteria for new features",[19,165,166],{},"A proposed abstraction should solve a need across several target runtimes, normalize behavior without losing essential information, add value beyond a re-export, have a reasonable maintenance cost, remain tree-shakable, and not duplicate a stronger specialized library.",{"title":168,"searchDepth":169,"depth":170,"links":171},"",1,2,[172,173,174,182,183],{"id":16,"depth":170,"text":17},{"id":28,"depth":170,"text":29},{"id":60,"depth":170,"text":61,"children":175},[176,178,179,180,181],{"id":65,"depth":177,"text":66},3,{"id":75,"depth":177,"text":76},{"id":94,"depth":177,"text":95},{"id":101,"depth":177,"text":102},{"id":111,"depth":177,"text":112},{"id":140,"depth":170,"text":141},{"id":162,"depth":170,"text":163},"Understand what oruntime supports, what it delegates, and why.","md",null,{},true,"\u002Freference\u002Fscope",{"title":5,"description":184},"5.reference\u002F2.scope","wtI65SVaYXfjj6957JghobJsIFECtUE5Tlm9tQDo1ok",[194,199],{"title":195,"path":196,"stem":197,"description":198,"children":-1},"API reference","\u002Freference\u002Fapi","5.reference\u002F1.api","Signatures and contracts for every public oruntime API.",{"title":200,"path":201,"stem":202,"description":203,"children":-1},"Roadmap","\u002Freference\u002Froadmap","5.reference\u002F3.roadmap","Stable features, areas to evaluate, and evolution rules.",[205,225,248,266,288],{"title":206,"path":207,"stem":208,"children":209,"icon":224},"Getting started","\u002Fgetting-started","1.getting-started\u002F1.index",[210,212,216,220],{"title":211,"path":207,"stem":208},"Introduction",{"title":213,"path":214,"stem":215},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation",{"title":217,"path":218,"stem":219},"Quick start","\u002Fgetting-started\u002Fquick-start","1.getting-started\u002F3.quick-start",{"title":221,"path":222,"stem":223},"Runtime support","\u002Fgetting-started\u002Fruntime-support","1.getting-started\u002F4.runtime-support","i-lucide-rocket",{"title":226,"icon":227,"path":228,"stem":229,"children":230,"page":247},"Core concepts","i-lucide-box","\u002Fcore-concepts","2.core-concepts",[231,235,239,243],{"title":232,"path":233,"stem":234},"Runtime detection","\u002Fcore-concepts\u002Fruntime-detection","2.core-concepts\u002F1.runtime-detection",{"title":236,"path":237,"stem":238},"Runtime adapter","\u002Fcore-concepts\u002Fruntime-adapter","2.core-concepts\u002F2.runtime-adapter",{"title":240,"path":241,"stem":242},"Capabilities","\u002Fcore-concepts\u002Fcapabilities","2.core-concepts\u002F3.capabilities",{"title":244,"path":245,"stem":246},"Error handling","\u002Fcore-concepts\u002Ferrors","2.core-concepts\u002F4.errors",false,{"title":249,"icon":250,"path":251,"stem":252,"children":253,"page":247},"Utilities","i-lucide-wrench","\u002Futilities","3.utilities",[254,258,262],{"title":255,"path":256,"stem":257},"Fetch","\u002Futilities\u002Ffetch","3.utilities\u002F1.fetch",{"title":259,"path":260,"stem":261},"Timers","\u002Futilities\u002Ftimers","3.utilities\u002F2.timers",{"title":263,"path":264,"stem":265},"URL","\u002Futilities\u002Furl","3.utilities\u002F3.url",{"title":267,"icon":268,"path":269,"stem":270,"children":271,"page":247},"Guides","i-lucide-graduation-cap","\u002Fguides","4.guides",[272,276,280,284],{"title":273,"path":274,"stem":275},"Deno permissions","\u002Fguides\u002Fdeno-permissions","4.guides\u002F1.deno-permissions",{"title":277,"path":278,"stem":279},"Conditional code","\u002Fguides\u002Fconditional-code","4.guides\u002F2.conditional-code",{"title":281,"path":282,"stem":283},"Testing multiple runtimes","\u002Fguides\u002Ftesting","4.guides\u002F3.testing",{"title":285,"path":286,"stem":287},"Frequently asked questions","\u002Fguides\u002Ffaq","4.guides\u002F4.faq",{"title":289,"icon":290,"path":291,"stem":292,"children":293,"page":247},"Reference","i-lucide-book-open","\u002Freference","5.reference",[294,295,296],{"title":195,"path":196,"stem":197},{"title":5,"path":189,"stem":191},{"title":200,"path":201,"stem":202},1796297154601,"7c446e43-2e3e-4ee5-9931-1c6979897184"]