Graphrt

Excel & CSV

List sheets, read rows (sheet, A1 range, header row, row cap, formulas as values), write and convert, CSV-injection protection (only nodes may turn it off), zip-bomb check, new output files only

Stable v0.1.0 Node.js 4 actions
Use in Graphrt Desktop

About

A Graphrt plugin for local CSV/TSV and Excel (.xlsx) files. Workflows and agents can list a workbook's sheets, read rows (a sheet, an A1 range, a header row, a row cap), write rows to a new CSV or XLSX file, and convert between the two. It uses exceljs and csv-parse/csv-stringify. Every result is a new file in one output directory.

What it can do

  • list_sheets: name, 1-based index, visibility (visible, hidden, veryHidden) and used row/column counts.
  • read: rows as objects keyed by the header row (header_row, default 1, 0 for none) or as arrays, from a CSV (delimiter auto-detected: ,, tab |, tab for .tsv) or an XLSX sheet (name or index) and range (A1:F200). Formula cells give their saved results, dates come as ISO strings, rich text as plain text. Empty or duplicate header names become column_N / name_2. max_rows (default 1000) with a truncated flag.
  • write: rows as objects (keys become columns, or set columns) or arrays, to CSV or XLSX (sheet_name).
  • convert: CSV/TSV → XLSX (decimal text becomes numbers, 007 stays text, or keep_text: true) and XLSX sheet → CSV.

Actions

Each action is a step you can add to a workflow. Agents can also use most of them as tools.

  • List sheets excel-csv.list_sheets
  • Read a table excel-csv.read
  • Write a table excel-csv.write
  • Convert CSV and XLSX excel-csv.convert

Settings

Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.

  • EXCEL_CSV_INPUT_DIRS (required)
    Comma-separated directories (absolute or ~/...) that files may be read from, subdirectories included
  • EXCEL_CSV_OUTPUT_DIR (none)
    Existing directory for outputs. Without it only list_sheets and read work. Outputs can be read back as inputs.
  • EXCEL_CSV_MAX_INPUT_BYTES 50 MiB
    Largest input file
  • EXCEL_CSV_MAX_OUTPUT_BYTES 100 MiB
    Largest output, nothing is written above it
  • EXCEL_CSV_MAX_ROWS 100000
    Most rows per read, write or conversion
  • EXCEL_CSV_MAX_UNZIPPED_BYTES 300 MiB
    Most bytes an .xlsx may declare it unpacks to (zip-bomb check)
  • EXCEL_CSV_MAX_COLUMNS 1000
    Most columns read, wider rows are cut (truncated: true)
  • EXCEL_CSV_MAX_CELLS 500000
    Most cells (rows × width, counted before padding) read in one call
  • EXCEL_CSV_MAX_RESULT_BYTES 50 MiB
    Most (estimated) bytes of cell values read in one call
  • EXCEL_CSV_MAX_MEMORY_MB 1024
    Memory budget of the parsing worker: heap cap and resident-memory (RSS) watchdog
  • EXCEL_CSV_TIMEOUT_MS 60000
    Per parse (1000 to 100000), the worker is killed when it passes

How to use it

In Graphrt Desktop

  1. Open Plugins and search for Excel & CSV.
  2. Click Install and approve it.
  3. Follow the setup steps on the plugin's page, then paste the settings it needs.
  4. Describe a job that needs it, and the builder adds the steps.
Plugins in Graphrt Desktop

With the CLI

terminal
$ graphrt plugin install excel-csv
workflow.yaml
- id: excel_csv
  type: excel-csv.list_sheets
Plugins in the docs