Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Node host

import { createNodeHost, createMemoryStore } from '@enc-protocol/cvn/node'
const host = createNodeHost()                       // memory store, node timers, global fetch
const host2 = createNodeHost({ store: myStore })    // any StorePort — file, sqlite, yours

The store is in memory unless one is handed in. Timers and the clock are node's; randomness is node:crypto. This is the host the node test tier uses to drive a kernel with no DOM anywhere — the rule in the repositories CVN came from is no DOM emulation in node: a kernel that needs a document to be tested has a host leak.