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

excel-dnd-toolkit

v0.1.0

Published

Framework-independent Excel drag-and-drop column mapper with a floating launcher and modal UI.

Readme

excel-dnd-toolkit

A framework-independent Excel column mapper for modern browsers. Installing the package can add a small draggable tool button to the right edge of the page. Clicking the button opens the complete workbook import, column mapping, validation, transformation, generation, and download interface in an isolated modal.

The published package is compiled JavaScript. It does not require Python, Streamlit, a backend, API keys, an .env file, or a UI framework dependency.

Features

  • Dynamically discovers every column in the selected source and destination worksheets.
  • Supports .xlsx and legacy .xls source workbooks and .xlsx destination workbooks.
  • Drag-and-drop and keyboard/click column mapping.
  • Deterministic automatic heading matching.
  • Adds unmatched source fields as new destination columns.
  • Merges multiple name fields into one destination.
  • Validates phone, email, and date values with inline corrections.
  • Derives Full Name and structured address fields offline.
  • Generates and downloads the mapped destination workbook in the browser.
  • Uses Shadow DOM so host-application CSS cannot change the tool UI.
  • Uses a fixed-position launcher and modal, so it does not change page height or layout.

Browser support

The package targets current evergreen Chrome, Edge, Firefox, and Safari. It uses modern browser standards including Custom Elements, Shadow DOM, File, Blob, structuredClone, crypto.randomUUID, and Intl.DisplayNames.

Install in Vue

npm install excel-dnd-toolkit

Add one import to the Vue application entry file, normally src/main.ts or src/main.js:

import { createApp } from "vue";
import App from "./App.vue";
import "excel-dnd-toolkit/auto";

createApp(App).mount("#app");

The floating Excel tool appears automatically on the right edge of the page. It can be dragged vertically and remembers its position in local storage.

No component registration, Vue plugin, stylesheet import, or .env configuration is required.

Controlled integration

Use the controlled API when the host application needs to open, close, reset, or remove the tool programmatically:

import { mountExcelMapper } from "excel-dnd-toolkit";

const mapper = mountExcelMapper(document.body, {
  launcherLabel: "Open customer workbook mapper",
  modalTitle: "Customer Workbook Mapper",
  onGenerated(file, fileName) {
    console.log(fileName, file.size);
  },
  onError(error) {
    console.error(error);
  }
});

mapper.open();
mapper.close();
mapper.reset();
mapper.destroy();

The same API works in React, Angular, Vue, Svelte, and plain JavaScript because it uses only browser DOM APIs.

Custom element

import { defineExcelDndTool } from "excel-dnd-toolkit";

defineExcelDndTool();
<excel-dnd-tool></excel-dnd-tool>

Events

The element dispatches composed, bubbling browser events:

  • excel-mapper:mappings-change
  • excel-mapper:generated
  • excel-mapper:error
document.addEventListener("excel-mapper:generated", (event) => {
  const { file, fileName } = event.detail;
  console.log(file, fileName);
});

Local quality checks

pnpm install
pnpm run check
pnpm audit --prod
pnpm outdated
pnpm pack --dry-run

pnpm run check runs strict TypeScript checking, Biome analysis, unit tests with coverage thresholds, and the production package build.

Publish using an npm account

  1. Confirm the final package name and fill in author, repository, and homepage in package.json.

  2. Create or sign in to an account at npmjs.com.

  3. Authenticate from the package directory:

    npm login
    npm whoami
  4. Run the complete verification:

    pnpm run check
    pnpm audit --prod
    pnpm pack --dry-run
  5. Publish the first public release:

    npm publish --access public
  6. For later releases, update the version before publishing:

    npm version patch
    npm publish

Do not place npm access tokens in this repository or in a package .env file. Use npm login, the user-level npm configuration, or trusted publishing in a CI workflow.

Security and privacy

Workbook processing runs in the browser. Selected workbook contents are not uploaded by this package. Host applications should still apply their own file size policies and content-security requirements.

License

MIT. The production bundle includes SheetJS Community Edition under the Apache License 2.0; see THIRD_PARTY_NOTICES.md and LICENSES/.