← Local DN

Run the available Local DNs

Run these commands from the repository root. Node.js 24 or newer is required. Python 3 and Java 17 are required only for their corresponding cross-language examples.

1 · Run DN_LLM without a model

The deterministic provider proves the Signal boundary without a network request or credential.

npm --prefix sdk/dn-llm test
npm --prefix sdk/dn-llm run demo -- "Suggest a colour for BOX_A"

The second command prints the complete absorbed S_LLMRequest and emitted S_LLMResponse.

2 · Use a local OpenAI-compatible model

Copy the example configuration, select the local endpoint and model, and keep any key in an environment variable.

cp sdk/dn-llm/config/openai-compatible.config.example.json /tmp/dn-llm.local.json
export DN_LLM_CONFIG=/tmp/dn-llm.local.json
export DN_LLM_API_KEY=your-local-provider-key
node src/cpux/dnd-node-host.mjs sdk/dn-llm/src/DN.mjs --protocol=IS-DNHOST/1.0

For an endpoint that requires no key, configure the provider accordingly; never put credentials in a Signal or Application manifest.

3 · Run the promoted Practice Signals DN

node sdk/local-dn/cli.mjs verify sdk/local-dn/examples/DN_OrderBoxesAlphabetically/1.0.0
node sdk/local-dn/cli.mjs run-test sdk/local-dn/examples/DN_OrderBoxesAlphabetically/1.0.0 sdk/local-dn/examples/DN_OrderBoxesAlphabetically/1.0.0/fixtures/basic.json --implementation=javascript
node sdk/local-dn/cli.mjs run-test sdk/local-dn/examples/DN_OrderBoxesAlphabetically/1.0.0 sdk/local-dn/examples/DN_OrderBoxesAlphabetically/1.0.0/fixtures/basic.json --implementation=python
node sdk/local-dn/cli.mjs run-test sdk/local-dn/examples/DN_OrderBoxesAlphabetically/1.0.0 sdk/local-dn/examples/DN_OrderBoxesAlphabetically/1.0.0/fixtures/basic.json --implementation=java

4 · Install and resolve it

node sdk/local-dn/cli.mjs install sdk/local-dn/examples/DN_OrderBoxesAlphabetically/1.0.0
node sdk/local-dn/cli.mjs list
node sdk/local-dn/cli.mjs resolve DN_OrderBoxesAlphabetically 1.0.0 --implementation=javascript

resolve returns the verified command, working directory, protocol and absorbed/emitted Signal references required by a future is-core binding.

Practice Signals catalogue

DNCurrent availability
DN_OrderBoxesAlphabeticallyStandalone JavaScript, Python and Java package
DN_AlternateBoxColoursRunnable in Practice Signals
DN_ExchangeBoxNamesRunnable in Practice Signals
DN_MoveBoxAsAeroplaneRunnable in Practice Signals
DN_MoveBoxAsTrainRunnable in Practice Signals

Run all five browser implementations and their generated Signal trace with:

node --test test/practice-signals.test.ts