Skip to content

autk-compute

autk-compute runs custom computations across all features in a GeoJSON FeatureCollection in parallel on the GPU, using WebGPU and WGSL shaders. Results are written back as new feature properties.

Installation

bash
npm install autk-compute

When to Use autk-compute vs SQL

ScenarioUse
Simple aggregations, counts, filtersautk-db raw SQL
Per-feature arithmetic on a few columnsautk-db raw SQL
Heavy per-feature computation (scoring, distance calculations, ML inference) across thousands of featuresautk-compute
Custom formulas that are hard to express in SQLautk-compute

autk-compute processes all features simultaneously on the GPU. For datasets with tens of thousands of features and complex per-feature logic, this is significantly faster than SQL.

Entry Point

typescript
import { geojsonCompute } from 'autk-compute';

geojsonCompute is a singleton instance of GeojsonCompute. You don't need to instantiate it.

What's Next


API Reference →

Released under the MIT License.