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

@svar-ui/svelte-excel-import

v2.6.2

Published

SVAR UI Excel Import widget

Readme

SVAR Svelte Excel Import

HomepageGetting StartedDemos

npm License npm downloads

SVAR Svelte Excel Import is a modal import wizard for Svelte and SvelteKit apps. It parses .xlsx, .csv, and .tsv files, lets the end user map source columns to your application fields, transforms rows into keyed objects, and returns the imported data to your app.

The widget comes with automatic column-to-field detection, multi-sheet support, type conversion, custom validation, full TypeScript support, and flexible CSS styling. The PRO Edition adds production-focused capabilities and a commercial license with priority support.

✨ Key Features

  • Modal import wizard for .xlsx, .csv, and .tsv files
  • Drag-and-drop or click-to-browse file upload
  • Automatic column-to-field mapping with header and keyword detection
  • Manual mapping via column-header dropdowns or a side field panel
  • Multi-sheet workbook support with sheet tabs
  • Column type detection and conversion (text, number, date, boolean)
  • Required fields and custom validation with inline errors
  • Live preview of mapped data before import
  • Import summary with imported / skipped counts and per-row errors
  • Preloaded data mode (skip upload and start at mapping)
  • Localization
  • Light and dark themes
  • Full TypeScript support

🚀 PRO Edition

SVAR Svelte Excel Import is available in open-source and PRO Editions. The PRO Edition adds production-focused import capabilities together with a commercial license and priority support.

Visit the pricing page for the full feature comparison, licensing details, and free trial.

Or see the live demo.

🛠️ How to Use

To use the widget, import the package and render the component while the import modal should be open:

<script>
	import { ExcelImport } from "@svar-ui/svelte-excel-import";

	let open = $state(false);

	const config = {
		fields: [
			{ id: "name", label: "Name", required: true },
			{ id: "email", label: "Email", required: true },
			{ id: "phone", label: "Phone" },
		],
		onimport: (rows, result) => {
			console.log("Imported rows:", rows, result);
		},
		onclose: () => (open = false),
	};
</script>

<button onclick={() => (open = true)}>Import Excel</button>

{#if open}
	<ExcelImport {...config} />
{/if}

For further instructions, follow the detailed quick start guide.

How to Modify

Typically, you don't need to modify the code. However, if you wish to do so, follow these steps:

  1. Install vite-plus (curl -fsSL https://vite.plus | bash on Mac/Linux, irm https://vite.plus/ps1 | iex on Windows). The project uses pnpm workspaces under the hood, so plain npm will not work.
  2. Run vp i from the project root to install dependencies.
  3. Run vp run build to build all packages.
  4. Start the demo app in development mode with vp run start.

Run Tests

To run the tests:

vp test

⭐ Show Your Support

If SVAR Svelte Excel Import helps your project, give us a star! It helps us reach more developers and keeps us motivated to add new features.

:speech_balloon: Need Help?

Post an Issue or use our community forum.