How tanstack/table works
TanStack Table is a headless datagrid library: application developers configure a table and its features through a framework adapter, then use the resulting table APIs and render their own UI. The shared core defines table construction, state, and row-model capabilities; adapters connect that engine to framework reactivity and rendering. An optional worker subsystem offloads selected row-model stages. The README documents the adapter breadth and major data-grid capabilities; worker and adapter call links below are limited to relationships visible in the supplied excerpts or index.
Main entry points: constructTable.ts Table construction · initTableWorker.ts Worker runtime · src/useTable.ts React adapter · src/useTable.ts Vue adapter
Components 16
Framework adapters
- React adapter
packages/react-table/src/useTable.ts - Vue adapter
packages/vue-table/src/useTable.ts - Lit controller
packages/lit-table/src/TableController.ts - Other adapters
packages
Table engine
- Table construction
packages/table-core/src/core/table/constructTable.ts - Table types
packages/table-core/src/types/Table.ts - Feature configuration
packages/table-core/src/types/TableFeatures.ts
Table capabilities
- Row models
packages/table-core/src/core/row-models - Grid features
packages/table-core/src/features
Worker processing
- Worker bridge
packages/table-core/src/worker/createTableWorker.ts - Worker row models
packages/table-core/src/worker/createWorkerRowModel.ts - Worker runtime
packages/table-core/src/worker/initTableWorker.ts - Worker protocol
packages/table-core/src/worker/tableWorkerProtocol.ts
Table devtools
- Devtools panel
packages/table-devtools/src/TableDevtools.tsx - Framework devtools
packages/react-table-devtools/src/useTanStackTableDevtools.ts
Other components
- Application developer
Connections 16
- Application developer → React adapter: configures
README.md - Application developer → Vue adapter: configures
README.md - Application developer → Lit controller: configures
README.md - Application developer → Other adapters: chooses binding
README.md - React adapter → Table construction: constructs table
packages/react-table/src/useTable.ts - Vue adapter → Table construction: constructs table
packages/vue-table/src/useTable.ts - Lit controller → Table construction: uses table core
packages/lit-table/src/TableController.ts - Table construction → Feature configuration: accepts features
- Feature configuration → Grid features: configures
packages/table-core/src/types/TableFeatures.ts - Application developer → Grid features: selects capabilities
README.md - Application developer → Row models: uses row models
README.md - Worker row models → Worker bridge: syncs work
packages/table-core/src/worker/createWorkerRowModel.ts - Worker bridge → Worker protocol: exchanges messages
packages/table-core/src/worker/createTableWorker.ts - Worker runtime → Worker protocol: handles messages
packages/table-core/src/worker/initTableWorker.ts - Worker runtime → Table construction: constructs worker table
packages/table-core/src/worker/initTableWorker.ts - Framework devtools → Devtools panel: uses shared panel
packages/react-table-devtools/src/useTanStackTableDevtools.ts