Sheetgraph
Sheetgraph is a library that compresses spreadsheets (~100x compression) while still maintaining their structure, such as a dependency graph for formulas, and other relevant metadata such as macros, cell data types, and formatting. It also provides a zipped full workbook of the spreadsheet for the agent to look up data as needed, so AI agents can understand complex spreadsheets. It is used in the submitter's Love Spreadsheets product/services platform and is actively maintained.
What it addresses
Processing messy, real-world, complex spreadsheets for AI agents: even a medium-sized spreadsheet converts to ~1m+ tokens if read fully, which blows up the context windows of most models, so agents instead sample spreadsheet data in chunks.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
Sheetgraph
Sheetgraph is a library that compresses spreadsheets (~100x compression) while still maintaining their structure, such as a dependency graph for formulas, and other relevant metadata such as macros, cell data types, and formatting. It also provides a zipped full workbook of the spreadsheet for the agent to look up data as needed, so AI agents can understand complex spreadsheets. It is used in the submitter's Love Spreadsheets product/services platform and is actively maintained.
Problem: Processing messy, real-world, complex spreadsheets for AI agents: even a medium-sized spreadsheet converts to ~1m+ tokens if read fully, which blows up the context windows of most models, so agents instead sample spreadsheet data in chunks.
Posted by @asharma327 · Original source ↗
Story title · @asharma327 · · Source ↗
Show HN: Sheetgraph, AI agents can understand complex spreadsheets
Submitted URL · @asharma327 · · Source ↗
https://github.com/asharma327/sheetgraph
Source text · @asharma327 · · Source ↗
I (& Claude) built this library Sheetgraph, https://github.com/asharma327/sheetgraph, to compress spreadsheets (~100x compression) while still maintaining their structure (like a dependency graph for formulas) & other relevant metadata such as macros, cell data types, formatting.
Source text · @asharma327 · · Source ↗
There is a zipped full workbook of the spreadsheet as well for the agent to lookup data as needed.
Source text · @asharma327 · · Source ↗
This is used in our primary product + services platform Love Spreadsheets so we are actively maintaining and improving it.
Source text · @asharma327 · · Source ↗
I built a tool www.lovespreadsheets.com earlier this year and a huge problem we kept running into is processing messy, real-world, complex spreadsheets for AI agents.
Source text · @asharma327 · · Source ↗
Even a "medium" sized spreadsheet converts to about 1m+ tokens if read fully, which immediately blows up the current context windows of most models. So I noticed most agents sample data from spreadsheets in chunks instead.