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
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_BYTES50 MiBLargest input file -
EXCEL_CSV_MAX_OUTPUT_BYTES100 MiBLargest output, nothing is written above it -
EXCEL_CSV_MAX_ROWS100000Most rows per read, write or conversion -
EXCEL_CSV_MAX_UNZIPPED_BYTES300 MiBMost bytes an .xlsx may declare it unpacks to (zip-bomb check) -
EXCEL_CSV_MAX_COLUMNS1000Most columns read, wider rows are cut (truncated: true) -
EXCEL_CSV_MAX_CELLS500000Most cells (rows × width, counted before padding) read in one call -
EXCEL_CSV_MAX_RESULT_BYTES50 MiBMost (estimated) bytes of cell values read in one call -
EXCEL_CSV_MAX_MEMORY_MB1024Memory budget of the parsing worker: heap cap and resident-memory (RSS) watchdog -
EXCEL_CSV_TIMEOUT_MS60000Per parse (1000 to 100000), the worker is killed when it passes
Cara memakainya
Di Graphrt Desktop
- Buka Plugins dan cari Excel & CSV.
- Klik Install lalu setujui.
- Ikuti langkah setup di halaman plugin, lalu tempel pengaturan yang dibutuhkan.
- Jelaskan pekerjaan yang membutuhkannya, dan builder menambahkan langkahnya.
Dengan CLI
$ graphrt plugin install excel-csv - id: excel_csv type: excel-csv.list_sheets