Working with Arrow in TypeScript
Updated May 9, 2026
Apache Arrow IPC file handling with high-performance columnar data processing.
Installation
npm install fairspecGetting Started
The Arrow plugin provides:
loadArrowTable- Load Arrow IPC files into tablessaveArrowTable- Save tables to Arrow IPC filesArrowPlugin- Plugin for framework integration
For example:
import { loadArrowTable } from "fairspec"
const table = await loadArrowTable({ data: "table.arrow" })
// High-performance columnar formatBasic Usage
Loading Arrow Files
import { loadArrowTable } from "fairspec"
// Load from local file
const table = await loadArrowTable({ data: "data.arrow" })
// Load from remote URL
const table = await loadArrowTable({
data: "https://example.com/data.arrow",
})
// Load multiple files (concatenated)
const table = await loadArrowTable({
data: ["file1.arrow", "file2.arrow"],
})Saving Arrow Files
import { saveArrowTable } from "fairspec"
// Save with default options
await saveArrowTable(table, { path: "output.arrow" })
// Save with explicit format
await saveArrowTable(table, {
path: "output.arrow",
format: { name: "arrow" },
})Advanced Features
Remote File Loading
// Load from URL
const table = await loadArrowTable({
data: "https://example.com/data.arrow",
})
// Load multiple remote files
const table = await loadArrowTable({
data: [
"https://api.example.com/data-2023.arrow",
"https://api.example.com/data-2024.arrow",
],
})Created with ❤ and Livemark