Node.js Quick Start
This quick start shows the smallest Node.js workflow that emits scope, tool, and LLM events.
Choose an Install Path
Pick the installation path that matches whether you are using a published package or a local checkout.
Install from a Package Manager
Use this path when you want the published package for application development.
Install from the Repository
Use this path when you are working from a local checkout and need editable source behavior.
This path is for local source development when you need to build the binding from the repository checkout.
Run One Scope, One Tool Call, and One LLM Call
The example below runs one minimal instrumented workflow through the binding.
What Success Looks Like
You should see:
- Event lines for the scope, tool, LLM, and mark lifecycle
{ echo: 'hello' }from the tool call- An object containing
ok: trueand the echoed message payload from the LLM callback
That combination tells you both the business callbacks and the instrumentation pipeline are working.
Where the Node.js Surface Lives
These package entry points are the main Node.js APIs to use from applications and integrations.
- Runtime lifecycle APIs are exported from the package root.
- Typed wrappers live in
nemo-relay-node/typed. - Plugin helpers live in
nemo-relay-node/plugin. - Adaptive helpers live in
nemo-relay-node/adaptive.
What to Learn Next
Use these links to continue from the quick start into the core runtime concepts.