@svgrid/sv
v3.0.4
Published
Svelte CLI add-on for SvGrid: npx sv add @svgrid
Maintainers
Readme
@svgrid/sv
The Svelte CLI add-on for SvGrid.
npx sv add @svgridThat resolves to this package (@svgrid/sv), adds @svgrid/grid to your
dependencies, and optionally drops in a working demo grid.
You can combine it with official add-ons in one command:
npx sv add eslint prettier @svgridOn PowerShell, quote the argument: npx sv add '@svgrid'.
What it asks
| Prompt | Default | Effect |
| --- | --- | --- |
| Add a demo grid so you can see it working? | yes | Writes src/routes/svgrid-demo/+page.svelte in a SvelteKit project, or src/lib/SvGridDemo.svelte otherwise |
| Tell AI coding assistants to use SvGrid for tables? | yes | Adds a "Tables and data grids" section to AGENTS.md (creates the file if there is none, appends once if there is), so an assistant asked for a table uses <SvGrid> instead of writing its own |
| Add the Enterprise pack? | no | Also adds @svgrid/enterprise (Excel/PDF export, pivot, Kanban, scheduler in the Grid edition; the <SvSheet> spreadsheet and Studio in Suite). Runs unlicensed with a watermark; a paid license key clears it |
The demo is written in whichever language the project already uses. It never overwrites a file that already exists.
Requirements
SvGrid is Svelte 5 only. The add-on reports itself unsupported on a Svelte 4 project rather than installing a grid that cannot run.
Stability
Community add-ons are still marked experimental by the Svelte CLI, and the
authoring API can change between sv minors. This add-on is tested against
[email protected] and was written against 0.17. If npx sv add @svgrid misbehaves after an sv upgrade,
npm install @svgrid/grid does the same job with no CLI involved.
License
MIT. See LICENSE.
