Developers / Getting started

Run the example. Read every step.

A small, dependency-free Node.js example using fictional supplier, batch, product, order and feedback records. It includes the calculation used by this site.

01 / Unpack the sample.

Download the ZIP and extract it. You will find run.mjs, supply-example.js, records.json and a bilingual README. Use Node.js 18 or newer; verification for this preview used Node.js 22.

The archive contains a standalone example only. There is no server to deploy and no account or network connection required to run it.

02 / Ask the first question.

Open a terminal in the extracted folder, then run the reported definition. The script prints the total, order count, evidence count and matched records.

node run.mjs reported
TotalOrdersFeedback records
$99,50034

03 / Change the definition.

Require a confirmed defect. SO-1048 no longer matches because its feedback is unconfirmed. The source data does not change; the definition does.

node run.mjs confirmed
TotalOrdersFeedback records
$67,00023

04 / Inspect or adapt the data.

The default calculation loads records.json. You can copy that file, change fictional values, and pass the new file path as the second argument. Keep identifiers and relationship keys consistent.

node run.mjs reported ./records.json

Read resolveExample() in supply-example.js. It filters September batches from SUP-A, resolves their products and orders, then selects tire feedback. It sums each matching order once.

Editing the download does not change this website. These examples show record traversal and aggregation; they do not call an LLM or perform autonomous reasoning.