Skip to content
SumOfficeSumOfficeSumOffice

Quick start: your first project

Prepare a folder, add a workbook and a script, run the example, and see the result.

You’ll need Node.js version 22 LTS or newer and any XLSX workbook. The ready-made kit on the desktop already has input.xlsx and the verified f1-api-first-run.mjs.

Terminal window
mkdir -p ~/Desktop/SumSheet-API-First-Run
cd ~/Desktop/SumSheet-API-First-Run

Copy an existing workbook and name it input.xlsx. The script doesn’t change the source file: it writes a new result.xlsx.

Terminal window
cp ~/Downloads/workbook.xlsx ./input.xlsx
ls -lh input.xlsx

Use the f1-api-first-run.mjs file from the Evaluation Kit. The full text is on the Verified script page.

Terminal window
cd ~/Desktop/SumSheet-API-First-Run
node ./f1-api-first-run.mjs

The script performs seven steps:

  • starts compute_contract_cli –session and gets the handshake;

  • opens input.xlsx through open_workbook_subset;

  • gets subsetId and sheetKey from Rust’s response;

  • writes A1 = SumSheet API, B1 = 21, C1 = the formula =B1*2;

  • reads C1 and gets displayValue 42;

  • performs Undo and Redo through the central history;

  • saves result.xlsx, starts a new process, and checks C1 after a cold open.

1. Session: compute_contract_cli_session_ready
2. Workbook opened: Data subset-...
3. Changes applied, revision: 1
4. C1 after the formula: ... displayValue: '42' ...
5. Undo/Redo: done
6. Saved: .../result.xlsx
7. Reopened, C1: ... displayValue: '42' ...
Terminal window
open -a ~/Applications/SumSheet.app ~/Desktop/SumSheet-API-First-Run/result.xlsx

Documentation assistant

Answers are assembled from the documentation and may be inaccurate — check the sources.