Toolpal

@toolpal/csv-insights

public

v2.0published 1 download this weekMIT

Profiles a CSV file locally and exactly instead of eyeballing it: row count, each column's inferred type (number, date, boolean, text), missing and unique values, min/max/mean/median/sum/standard deviation for numeric columns, date ranges, and the most frequent values of text columns. Handles quoted fields and comma, semicolon, tab or pipe delimiters. Offline, no API key needed.

manifest.json7.1 KBRaw
{
  "manifestVersion": 1,
  "name": "@toolpal/csv-insights",
  "version": "2.0",
  "description": "Profiles a CSV file locally and exactly instead of eyeballing it: row count, each column's inferred type (number, date, boolean, text), missing and unique values, min/max/mean/median/sum/standard deviation for numeric columns, date ranges, and the most frequent values of text columns. Handles quoted fields and comma, semicolon, tab or pipe delimiters. Offline, no API key needed.",
  "license": "MIT",
  "keywords": [
    "csv",
    "data",
    "analytics",
    "profiling",
    "statistics",
    "spreadsheet"
  ],
  "entry": "dist/tool.mjs",
  "sdk": "0.1.0",
  "engines": {
    "node": ">=22.15.0"
  },
  "inputSchema": {
    "type": "object",
    "required": [
      "file"
    ],
    "properties": {
      "file": {
        "type": "string",
        "description": "CSV, TSV or pipe/semicolon-delimited text file",
        "x-toolpal-file": true
      },
      "delimiter": {
        "anyOf": [
          {
            "type": "string",
            "const": ","
          },
          {
            "type": "string",
            "const": ";"
          },
          {
            "type": "string",
            "const": "tab"
          },
          {
            "type": "string",
            "const": "|"
          }
        ],
        "description": "Field separator; detected from the header row when left out"
      },
      "topValues": {
        "type": "integer",
        "minimum": 1,
        "maximum": 20,
        "description": "Frequent values to list per text column, 5 by default"
      }
    }
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "rows",
      "columnCount",
      "delimiter",
      "raggedRows",
      "columns"
    ],
    "properties": {
      "rows": {
        "type": "integer",
        "description": "Data rows, not counting the header"
      },
      "columnCount": {
        "type": "integer"
      },
      "delimiter": {
        "type": "string"
      },
      "raggedRows": {
        "type": "integer",
        "description": "Rows whose field count differs from the header"
      },
      "columns": {
        "type": "array",
        "items": {
          "type": "object",
          "required": [
            "name",
            "type",
            "filled",
            "missing",
            "unique"
          ],
          "properties": {
            "name": {
              "type": "string"
            },
            "type": {
              "anyOf": [
                {
                  "type": "string",
                  "const": "number"
                },
                {
                  "type": "string",
                  "const": "date"
                },
                {
                  "type": "string",
                  "const": "boolean"
                },
                {
                  "type": "string",
                  "const": "text"
                },
                {
                  "type": "string",
                  "const": "empty"
                }
              ]
            },
            "filled": {
              "type": "integer"
            },
            "missing": {
              "type": "integer",
              "description": "Empty cells and NA, N/A, null, none, NaN or -"
            },
            "unique": {
              "type": "integer"
            },
            "stats": {
              "type": "object",
              "required": [
                "min",
                "max",
                "mean",
                "median",
                "sum",
                "stdDev"
              ],
              "properties": {
                "min": {
                  "type": "number"
                },
                "max": {
                  "type": "number"
                },
                "mean": {
                  "type": "number"
                },
                "median": {
                  "type": "number"
                },
                "sum": {
                  "type": "number"
                },
                "stdDev": {
                  "type": "number"
                }
              }
            },
            "range": {
              "type": "object",
              "required": [
                "earliest",
                "latest"
              ],
              "properties": {
                "earliest": {
                  "type": "string"
                },
                "latest": {
                  "type": "string"
                }
              }
            },
            "topValues": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "value",
                  "count"
                ],
                "properties": {
                  "value": {
                    "type": "string"
                  },
                  "count": {
                    "type": "integer"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "examples": [
    {
      "title": "Profile a sales CSV",
      "prompt": "Profile sample.csv and summarize every column's types, stats, and missing values",
      "input": {
        "file": "sample.csv",
        "topValues": 3
      },
      "output": {
        "rows": 5,
        "columnCount": 4,
        "delimiter": ",",
        "raggedRows": 0,
        "columns": [
          {
            "name": "date",
            "filled": 5,
            "missing": 0,
            "unique": 5,
            "type": "date",
            "range": {
              "earliest": "2026-10-01",
              "latest": "2026-10-12"
            }
          },
          {
            "name": "region",
            "filled": 5,
            "missing": 0,
            "unique": 3,
            "type": "text",
            "topValues": [
              {
                "value": "US",
                "count": 3
              },
              {
                "value": "APAC",
                "count": 1
              },
              {
                "value": "EU",
                "count": 1
              }
            ]
          },
          {
            "name": "amount",
            "filled": 4,
            "missing": 1,
            "unique": 4,
            "type": "number",
            "stats": {
              "min": -150,
              "max": 2400,
              "mean": 1075.125,
              "median": 1025.25,
              "sum": 4300.5,
              "stdDev": 911.3555
            }
          },
          {
            "name": "paid",
            "filled": 5,
            "missing": 0,
            "unique": 2,
            "type": "boolean",
            "topValues": [
              {
                "value": "true",
                "count": 3
              },
              {
                "value": "false",
                "count": 2
              }
            ]
          }
        ]
      }
    }
  ],
  "permissions": {
    "net": false,
    "env": [],
    "tmp": true
  },
  "limits": {
    "timeoutMs": 30000,
    "memoryMb": 256
  },
  "build": {
    "toolpal": "0.1.0",
    "esbuild": "0.28.2",
    "options": "sha256-tMpkndD8HsDUvZadrPbEAMGGIGK7nvmTGxMMlUxy9Fo="
  }
}