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

@wizxpert/table-configurator

v1.0.2

Published

Configurable table toolkit for Vue 3 + PrimeVue

Readme

Table Configurator

Vue 3 toolkit for PrimeVue 4.x — persistent column visibility & order, px-only widths, per-column styles, and toggleable in-cell sub-fields


Features

  • Persistent column configuration (visibility, order, widths)
  • Per-column styling (font, weight, alignment, bg/fg)
  • Toggleable in-cell sub-fields via named slots
  • Works with PrimeVue DataTable/TreeTable
  • State persistence via Pinia + localStorage
  • Non-intrusive: wrap your table; header/control panel are add-ons

Requirements

  • vue ^3.5.0
  • primevue ^4.3.0
  • @primevue/themes ^4.3.0
  • pinia ^3.0.0
  • primeicons ^7.0.0 (optional)
  • primeflex ^4.0.0 (optional)

Bundler note: The package is ESM-only and ships raw .ts + .vue. Use Vite (recommended) with @vitejs/plugin-vue, or another bundler configured to compile Vue SFCs from node_modules.


Installation

# once published to npm
npm i @wizxpert/table-configurator

Local dev alternative (if you work from this repo): use a Vite alias to table-configurator/table-configurator/index.ts or install the local folder.


Quick start

// main.ts (Vue 3)
import {createApp} from 'vue'
import {createPinia} from 'pinia'
import PrimeVue from 'primevue/config'
import Aura from '@primevue/themes/aura'

import App from './App.vue'

// Library
import {WxTableConfiguratorPlugin} from '@wizxpert/table-configurator'

const app = createApp(App)

app.use(createPinia())
app.use(PrimeVue, {theme: {preset: Aura}})
app.use(WxTableConfiguratorPlugin, {locale: 'en'})

app.mount('#app')
<!-- App.vue -->
<script setup lang="ts">
    import {ref} from 'vue'
    
    const products = ref([
        {code: 'P001', name: 'Chair', category: 'Furniture', price: 120},
        {code: 'P002', name: 'Keyboard', category: 'Electronics', price: 40},
        {code: 'P003', name: 'Pen', category: 'Office', price: 3}
    ])
    
    
</script>


<template>
    
    
    <div class="demo-layout">
        <!-- Table + Configurator -->
        <div class="table-area">
            <WxTableConfigurator storageKey="table.v1">
                
                <DataTable
                    :value="products"
                    show-gridlines
                    :reorderableColumns="true"
                >
                    <Column field="code" column-key="code" class="p-0">
                        <template #header>
                            <WxTableHeader header="Code"/>
                        </template>
                        <template #body="{ data }">
                            
                            <WxTableCell :row="data">
                                
                                <template #default="{ row }">
                                    {{ row.code }}
                                </template>
                                <template #Name="{ row }">
                                    <span class="text-xs font-bold">{{ row.name }}</span>
                                </template>
                                <template #Category="{ row }">
                                    <span class="text-xs">{{ row.category }}</span>
                                </template>
                                <template #Price="{ row }">
                                    <span class="text-xs">{{ row.price }}</span>
                                </template>
                            
                            </WxTableCell>
                        </template>
                    </Column>
                    <Column field="name" columnKey="name">
                        <template #header>
                            <WxTableHeader header="Name"/>
                        </template>
                    </Column>
                    <Column field="category" columnKey="category">
                        <template #header>
                            <WxTableHeader header="Category"/>
                        </template>
                    </Column>
                    <Column field="price" columnKey="price">
                        <template #header>
                            <WxTableHeader header="Price"/>
                        </template>
                    </Column>
                </DataTable>
            </WxTableConfigurator>
        </div>
        
        <!-- Control Panel -->
        <div class="control-panel-area">
            <WxTableControlPanel storage-key="table.v1"/>
        </div>
    </div>

Run the demo

cd demo
npm i
npm run dev

The demo uses local source via Vite alias and shows the control panel + header menu.


Documentation (local)

npm run docs:dev     # dev server
npm run docs:build   # builds to docs/.vitepress/dist
npm run docs:preview # preview static build

If you deploy to GitHub Pages under /table-configurator/, set base: '/table-configurator/' in docs/.vitepress/config.ts.


Project structure

.
├─ docs/                      # VitePress site
├─ demo/                      # Vite demo app
├─ src/                       # package
│  ├─ index.ts                # public entry (re-exports)
│  └─ src/                    # components, store, composables, etc.
├─  ...
├─ LICENSE-MIT
├─ LICENSE-APACHE
├─ NOTICE
└─ package.json

License

Dual-licensed under MIT or Apache-2.0 at your option.
See LICENSE-MIT, LICENSE-APACHE, and NOTICE.