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

create-vite-svelte-navigator

v1.0.1

Published

create vite template svelte + vite-svelte-navigator

Readme

create-vite-svelte-navigator

Scaffold a Vite + Svelte project with vite-svelte-navigator preconfigured.
Fast setup, clean routing, and a friendly interactive CLI ✨

✨ Features

  • ⚡ Vite + Svelte (JavaScript or TypeScript)
  • 🧭 Preconfigured vite-svelte-navigator
  • 📁 Pages-based routing structure
  • 🧑‍💻 Interactive CLI (powered by @clack/prompts)
  • 📦 Auto-detects package manager (npm / pnpm / yarn / bun)

🚀 Getting Started

You can run the CLI using npx, pnpm, yarn, or bun.

npm create vite-svelte-navigator my-app

or

pnpm create vite-svelte-navigator my-app

or

yarn create vite-svelte-navigator my-app

or

bun create vite-svelte-navigator my-app

🧑‍💻 Interactive Setup

During setup, the CLI will ask you:

  • Project name
  • Language (TypeScript or JavaScript)
  • Confirm before deleting files (if the directory is not empty)

📁 Project Structure

After creation, your project will look like this:

my-app/
├─ src/
│  ├─ pages/
│  │  └─ Home.svelte
│  ├─ App.svelte
│  └─ main.ts
├─ index.html
├─ package.json
└─ vite.config.ts

🧭 Routing Example

Routing is already set up using vite-svelte-navigator.

<script lang="ts">
  import { RouterProvider, createBrowserRouter } from 'vite-svelte-navigator';
  import Home from './pages/Home.svelte';

  const router = createBrowserRouter([
    { path: '/', element: Home }
  ]);
</script>

<RouterProvider {router} />

📦 Installed Dependencies

The CLI automatically installs:

  • vite
  • svelte
  • vite-svelte-navigator

⚙️ Available Flags

You can skip prompts using flags:

--ts, --typescript    Use TypeScript
--js, --javascript    Use JavaScript

Example:

npm create vite-svelte-navigator my-app --ts

or bun

bun create vite-svelte-navigator my-app --ts

⚠️ Notes

  • If the target directory is not empty, the CLI will ask for confirmation before deleting files.
  • Default package manager is auto-detected from your environment.

📄 License

MIT License

❤️ Credits

  • Vite
  • Svelte
  • vite-svelte-navigator