npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@svgrid/grid-wc

v1.1.0

Published

SvGrid as a framework-agnostic web component (<sv-grid> custom element). Drop into React, Vue, Angular, or plain HTML - no build step required.

Downloads

317

Readme

@svgrid/grid-wc

SvGrid as a framework-agnostic web component. A single, self-contained <sv-grid> custom element you can drop into React, Vue, Angular, or plain HTML - no build step, no Svelte required in the host app.

Powered by SvGrid, the Svelte 5 data grid: virtualization, Excel-style filters, sorting, inline editing, grouping, and pagination.

CDN (zero build)

<script type="module" src="https://unpkg.com/@svgrid/grid-wc"></script>

<sv-grid id="grid" sortable filterable style="display:block;height:420px"></sv-grid>

<script type="module">
  const grid = document.getElementById('grid')
  // Arrays/objects are set as PROPERTIES, not attributes:
  grid.columns = [
    { field: 'name', header: 'Name', editorType: 'text', width: 200 },
    { field: 'salary', header: 'Salary', align: 'right',
      format: { type: 'currency', currency: 'USD' } },
  ]
  grid.data = [
    { name: 'Ada Lovelace', salary: 145000 },
    { name: 'Alan Turing', salary: 160000 },
  ]
  grid.addEventListener('rowclick', (e) => console.log(e.detail))
</script>

npm

npm install @svgrid/grid-wc
import '@svgrid/grid-wc' // registers <sv-grid> globally

Attributes & properties

| Name | Kind | Default | Notes | | --- | --- | --- | --- | | data | property | [] | Array of row objects. Set via el.data = [...]. | | columns | property | [] | Array of column defs. Set via el.columns = [...]. | | sortable | attribute (boolean) | true | Enable column sorting. | | filterable | attribute (boolean) | true | Enable column filtering. | | selectable | attribute (boolean) | false | Row checkboxes + selection. | | editable | attribute (boolean) | false | Inline cell editing. | | row-height | attribute (number) | 36 | Row height in px. |

Events

| Event | detail | | --- | --- | | rowclick | the clicked row object | | selectionchange | array of selected rows |

Frameworks

  • React 19+: <sv-grid sortable .data={rows} .columns={cols} /> (older React: set via a ref).
  • Vue 3: <sv-grid sortable :data.prop="rows" :columns.prop="cols" />.
  • Angular: add CUSTOM_ELEMENTS_SCHEMA, then <sv-grid [data]="rows" [columns]="cols" sortable>.

Full guide: svgrid.com/docs/help/web-components.

Styling

Built with shadow: 'none' (light DOM) so your page CSS and the --sg-* theme tokens apply, and the grid's overlay popups stay styled:

sv-grid {
  --sg-bg: #fff;
  --sg-header-bg: #f8fafc;
  --sg-border: #e2e8f0;
}

Pro

This element ships the free MIT @svgrid/grid core. For export, import, print, pivot, and AI, see @svgrid/enterprise.

SvGrid(TM) is a trademark of jQWidgets Ltd. This package is MIT-licensed.