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

segx

v0.1.9

Published

Segx CLI untuk mengelola script otomatis dengan antarmuka interaktif

Readme

segx

Segx adalah CLI interaktif untuk menavigasi, memilih, dan menjalankan sekumpulan shell script dengan pengalaman yang rapi dan cepat. Tool ini dibangun di atas Bun dan TypeScript, tetapi dapat dijalankan dari mana saja setelah dipaketkan ke npm.

Instalasi Cepat

Pilih salah satu metode distribusi berikut (semuanya menyiapkan perintah global segx):

# npm
npm install -g segx

# Bun (paket utama)
bun install -g segx

# Bun (opsi fallback binary)
bun install -g segx-bin

# Homebrew (formula kustom)
brew install sst/tap/segx

# Skrip curl (repositori resmi podsni/segx)
curl -fsSL https://raw.githubusercontent.com/podsni/segx/main/install.sh | bash

Pastikan token publikasi npm (NPM_TOKEN) sudah dipasang di GitHub Secret agar workflow rilis dapat mem-publish ke registry. Saat dijalankan secara global, Segx otomatis menyalin skrip bawaan ke ~/.segx/script bila direktori belum tersedia.

Pengembangan Lokal

# Instal seluruh dependensi
bun install

# Jalankan CLI dalam mode pengembangan
bun run dev

# Bangun paket untuk distribusi
bun run build

# Pemeriksaan tipe (opsional)
bun run check

Variabel Lingkungan

  • MY_SCRIPT_DIR: ganti lokasi direktori script (default ./script).
  • MY_SCRIPT_REPO_URL: URL repositori yang ditampilkan pada header antarmuka (default https://github.com/podsni/segx).
  • SEG_PACKAGE_NAME, SEG_BUN_FALLBACK, SEG_BREW_FORMULA, SEG_POST_INSTALL_NOTE: override dinamis untuk skrip install.sh bila Anda melakukan fork/clone dan ingin mengganti identitas paket tanpa mengedit file (default ke identitas segx).

Contoh menjalankan CLI dengan konfigurasi khusus:

MY_SCRIPT_DIR=/opt/scripts \
MY_SCRIPT_REPO_URL=https://github.com/podsni/segx \
bun run dev

Arsitektur Singkat

  • src/cli.ts: titik masuk utama yang mengatur alur CLI.
  • src/ui.ts: interaksi terminal berbasis @clack/prompts.
  • src/script-manager.ts: logika pemindaian skrip (termasuk dukungan sub-folder).
  • install.sh: skrip instalasi universal untuk penggunaan via curl | bash.

Rilis Otomatis

Repositori ini menyertakan workflow GitHub Actions (.github/workflows/release.yml) yang akan:

  • Menginstal dependensi dengan Bun.
  • Membangun paket menggunakan tsup.
  • Mem-publish ke npm (npm publish --provenance --access public).

Workflow dipicu saat rilis GitHub dipublikasikan atau dijalankan secara manual (workflow_dispatch). Jangan lupa menambahkan secret NPM_TOKEN dengan hak publish ke registry npm Anda.

Selamat menggunakan Segx! 🎉