Install
Gridla is one npm package. gridla is the framework-neutral core; every adapter is a subpath of the same package with its framework as an optional peer dependency. All entries are ESM only and ship TypeScript declarations.
Entry points
Install only the peer for the entry you import; nothing else is pulled in. Preact uses gridla/react with react aliased to preact/compat, see the Preact guide.
Everything in gridla takes plain objects and returns new plain objects. Nothing touches the DOM or global state, so the core runs in Node, workers, and server renderers unchanged. The adapters touch no window or document at import time either.
Requirements
- Node 20.19 or newer for tooling; the library itself has no Node-specific code.
- A bundler or runtime that resolves the
exportsfield. The core has no side effects and tree-shakes. - Browsers: the last two versions of evergreen browsers. Syntax targets ES2022. Adapters need Pointer Events and
ResizeObserver. See browser support.
Next
- Vanilla quickstart: a canvas you can drag on, in fifty lines and no framework.
- React quickstart: the same with
GridProvider. - Adapters: the other frameworks, and the contract they all follow.