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

@khwarizmi/cli

v0.3.1

Published

CLI buat memasang komponen Khwarizmi UI ke project kamu.

Readme

khwarizmi-ui

CLI buat menyalin komponen Khwarizmi UI ke project kamu.

Komponennya bukan library yang kamu import sebagai paket runtime — source file-nya disalin ke project supaya bebas kamu ubah. Project tetap membutuhkan Svelte 5, Tailwind CSS v4, dan dependency eksternal komponen yang relevan.

Pakai

Untuk memasang semua komponen dari npm:

npx khwarizmi-ui@latest add --all

Perintah di atas membuat file-file berikut di src/lib/components/khwarizmi-ui/, mis.:

src/lib/components/khwarizmi-ui/Button.svelte
src/lib/components/khwarizmi-ui/Card.svelte
src/lib/components/khwarizmi-ui/Input.svelte
src/lib/components/khwarizmi-ui/Select.svelte

Dependency yang dibutuhkan, termasuk lucide-svelte, dipasang otomatis. CLI juga memasang stylesheet global Khwarizmi UI dan mengimpornya otomatis ke src/app.css atau src/routes/app.css. Jika tidak terdeteksi, CLI meminta path-nya.

Atau pasang komponen tertentu:

npx khwarizmi-ui add button

Beberapa sekaligus:

npx khwarizmi-ui add button card input select

Semuanya sekaligus:

npx khwarizmi-ui add --all

Lihat semua yang tersedia:

npx khwarizmi-ui list

Perintah

| Perintah | Fungsi | | --- | --- | | add <komponen...> | Pasang satu atau beberapa komponen | | add --all | Pasang semua komponen yang ada di registry | | list | Daftar komponen yang tersedia |

Opsi

| Opsi | Fungsi | | --- | --- | | --all, -a | Pasang semua komponen yang ada di registry | | --overwrite | Timpa file yang sudah ada tanpa nanya | | --cwd <path> | Jalankan di folder lain | | --no-deps | Jangan pasang dependency npm | | --help, --version | |

Cara kerjanya

  1. Ambil definisi komponen dari registry.
  2. Pasang stylesheet global dan import-nya sekali.
  3. Tulis file ke path tujuannya, mis. src/lib/components/khwarizmi-ui/Button.svelte.
  4. Pasang dependency npm yang belum ada, pakai package manager yang terdeteksi dari lockfile project kamu (npm, pnpm, yarn, atau bun).

File yang sudah ada tidak ditimpa diam-diam — kamu akan ditanya dulu, kecuali memakai --overwrite. Kalau dijalankan bukan di terminal interaktif (mis. CI), file yang sudah ada dilewati supaya aman.

Prasyarat

Komponennya dibuat untuk Svelte 5 (runes) dan Tailwind CSS v4. Sebagian komponen memakai lucide-svelte; dependency ini dipasang otomatis oleh CLI.

Catatan versi npx

Sesaat setelah rilis baru, registry npm mungkin masih menyebarkan versi terbaru. Kalau npx khwarizmi-ui masih menjalankan versi lama atau hasilnya belum sesuai, coba @latest:

npx khwarizmi-ui@latest add --all

Registry sendiri

KHWARIZMI_UI_REGISTRY=http://localhost:5173 npx khwarizmi-ui add button

Lisensi

MIT