API reference
Every public export of @userland-run/nano-sdk 0.2.10, grouped by area, with a link to the guide that documents and runs it. The bundled dist/index.d.ts has the exact signatures.
List the runtime exports
The value exports of the module this page loaded (types are compile-time only).
const names = Object.keys(sdk).sort();
print(names.length, "exports");
print(names.join(" "));35 exports CATALOG_PUBLIC_KEY_B64 Catalog CdnClient Nano NanoWorkerClient NodeRuntime ScriptError ServeBridge Shell Vfs canonicalize catalogPublicKey createHeadless createNano createNanoWorker defaultGenerationStore ensureCrossOriginIsolated fetchVerifiedChunk installApp isWasmKind kindToTier manifestKind manifestTier nanoImage openChunkCache parseHttpResponse provision publicKeyFromB64 registerNanoServiceWorker resolveIndex resolveManifest sha256Hex startServer tokenize verifySigned
Core
Nano members
run, exec, shExec, nodewriteStdin, setInteractiveStdin, closeStdin, cancel, destroywithVmLock, withVmServerLock, launchServerresolveNodeEnginefs, raw, readTextshell()nodeRuntime()script(), scripting()virtualServer, injectConnection, listenerscatalog(), installApp, installBundleregisterWasmApp, execWasmApp, registerWasmAppFromManifest, registerWasmServiceExecution, shell and Node
Serve and service worker
Worker, headless, provisioning
Catalog
Catalogindex, manifest, install, installBundle, bundleManifest, categories, collections)verifySigned, sha256Hex, canonicalize, catalogPublicKey, publicKeyFromB64, CATALOG_PUBLIC_KEY_B64Agent subpath
AgentTool, AgentHost, AgentToolsOptions, AgentToolResult, AgentApprove, WebMcpOptionsTerminal subpath
Live, end-to-end uses of these exports: the examples gallery and the feature pages.
Types
NanoConfig, ImageConfig, BinarySource, EngineConfig, ScriptingConfig, ExecOptions, ExecResult, DirEntry, ShellOptions, ShellResult, ShellHost, ExposeConfig, RuntimeLimits, ScriptEngineOptions, ScriptEngine, ConnectionInjector, ServeBridgeOptions, ParsedHttpResponse, StartServerOptions, ServerLaunch, NodeRunOptions, VMSnapshot, NanoImageOptions, NanoWorkerOptions, HeadlessConfig, HeadlessSession, ProvisionOptions, ProvisionedApp, CatalogOptions, CdnOptions, ChunkCache, GenerationStore, Manifest, SignedIndex, AppRecipe, Collection, InstallOptions, InstallProgress, ArtifactKind, Tier and the terminal's TerminalConfig are exported and documented on the guides above.