Graphrt

Excel & CSV

Daftar sheet, baca baris (sheet, range A1, baris header, batas baris, formula sebagai nilai), tulis dan konversi, perlindungan CSV injection (hanya node yang boleh mematikannya), cek zip bomb, hanya membuat file output baru

Stabil v0.1.0 Node.js 4 aksi
Pakai di Graphrt Desktop

Tentang

Plugin Graphrt untuk file CSV/TSV dan Excel (.xlsx) lokal. Workflow dan agent bisa menampilkan sheet dalam workbook, membaca baris (sheet, range A1, baris header, batas baris), menulis baris ke file CSV atau XLSX baru, dan mengonversi di antara keduanya. Memakai exceljs dan csv-parse/csv-stringify. Setiap hasil adalah file baru di satu folder output.

Yang bisa dilakukan

  • 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.

Aksi

Setiap aksi adalah langkah yang bisa ditambahkan ke workflow. Agent juga bisa memakai sebagian besar aksi sebagai tool.

  • 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

Pengaturan

Graphrt menyalakan plugin dengan environment yang bersih. Hanya nilai ini yang sampai ke plugin, dan secret tidak masuk log.

  • 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

Cara memakainya

Di Graphrt Desktop

  1. Buka Plugins dan cari Excel & CSV.
  2. Klik Install lalu setujui.
  3. Ikuti langkah setup di halaman plugin, lalu tempel pengaturan yang dibutuhkan.
  4. Jelaskan pekerjaan yang membutuhkannya, dan builder menambahkan langkahnya.
Plugin di Graphrt Desktop

Dengan CLI

terminal
$ graphrt plugin install excel-csv
workflow.yaml
- id: excel_csv
  type: excel-csv.list_sheets
Plugin di docs