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 🙏

© 2025 – Pkg Stats / Ryan Hefner

ndk-svelte

v0.2.3

Published

CLI for managing NDK Svelte components

Readme

ndk-svelte CLI

Command-line tool for managing NDK Svelte components.

Installation

The CLI is designed to be used with npx without installation:

npx ndk-svelte add event-card

Or install globally:

npm install -g ndk-svelte

Commands

add

Add NDK components to your project.

# Add specific components
npx ndk-svelte add event-card user-profile

# Add a single component
npx ndk-svelte add event-card

# List available components
npx ndk-svelte add

# Install all components (requires --yes)
npx ndk-svelte add --all --yes

# Overwrite existing files
npx ndk-svelte add event-card --overwrite

Options:

  • [components...] - Component names to add
  • -a, --all - Install all available components
  • -o, --overwrite - Overwrite existing files
  • -y, --yes - Skip confirmation prompts
  • -p, --path <path> - Custom installation path
  • --registry <url> - Custom registry URL (default: https://shadcn.ndk.fyi)

upgrade

Check for component updates and optionally upgrade them.

# Check for updates
npx ndk-svelte upgrade

# Auto-upgrade all components
npx ndk-svelte upgrade --yes

# Use custom registry
npx ndk-svelte upgrade --registry https://custom-registry.com

Options:

  • -y, --yes - Auto-upgrade all components without prompting
  • --registry <url> - Custom registry URL (default: https://shadcn.ndk.fyi)

How It Works

  1. Scans your project for files with @ndk-version headers
  2. Fetches latest versions from the registry
  3. Compares versions and shows available upgrades
  4. Upgrades components using npx shadcn-svelte@latest add <component>

Example Output

🚀 NDK Svelte Component Upgrade Tool

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔍 Scanning project for NDK components...

📁 Scanning src/ (42 files)

✓ Found 3 NDK component(s):

  📦 event-card v0.8.0 (8 file(s))
  📦 user-profile v0.15.0 (13 file(s))
  📦 zap-button v0.5.0 (1 file(s))

📡 Checking for updates from https://shadcn.ndk.fyi...

✓ Registry version: 4.0.0-beta.22

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🔔 2 component(s) can be upgraded:

  📦 event-card
     Event Card
     0.8.0 → 0.14.0

  📦 user-profile
     User Profile
     0.15.0 → 0.18.0

💡 To upgrade all components, run:
   npx ndk-svelte upgrade --yes

   Or upgrade individually:
   npx shadcn-svelte@latest add event-card
   npx shadcn-svelte@latest add user-profile

Version Headers

Components installed with npx shadcn-svelte@latest add include version headers:

Svelte files:

<!-- @ndk-version: [email protected] -->
<script>
  // Component code
</script>

TypeScript/JavaScript files:

// @ndk-version: [email protected]
export function something() { }

The CLI scans these headers to determine which components you have installed and their versions.

Publishing

To publish a new version:

npm version patch  # or minor, or major
npm publish