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

syntax-autopublish

v1.0.1

Published

CLI tool untuk **auto publish project** ke:

Downloads

188

Readme

🚀 syntax-autopublish

CLI tool untuk auto publish project ke:

  • 📦 NPM
  • 🐍 PyPI
  • 🐙 GitHub

Dilengkapi dengan notifikasi Telegram otomatis ketika:

  • Login dibutuhkan
  • Publish berhasil
  • Publish gagal

Dibuat oleh SyntaxCommunity


✨ Fitur

✔ Auto detect jenis project
✔ Auto publish ke npm / PyPI / GitHub
✔ CLI interactive mode
✔ Telegram notification
✔ Login link auto-detect (misalnya npm login URL)


📦 Install

npm install -g syntax-autopublish

Atau gunakan tanpa global:

npx syntax-autopublish

⚙️ Setup Awal

Saat pertama kali dijalankan, kamu akan diminta mengisi:

  • Telegram Bot Token
  • Chat ID

🔹 Cara mendapatkan Telegram Bot Token

  1. Buka Telegram
  2. Cari @BotFather
  3. Ketik:
    /newbot
  4. Ikuti instruksi dan salin token yang diberikan

🔹 Cara mendapatkan Chat ID

  1. Kirim pesan ke bot kamu
  2. Buka di browser:
https://api.telegram.org/bot<TOKEN>/getUpdates
  1. Cari "chat":{"id": ... }

🖥️ Cara Pakai

🔹 Mode Interaktif

syntax-autopublish

Akan muncul menu:

Auto
npm
PyPI
GitHub

🔹 Auto Detect & Publish

syntax-autopublish auto

Tool akan mendeteksi:

| File Ditemukan | Target Publish | |---------------------|----------------| | package.json | npm | | pyproject.toml | PyPI | | setup.py | PyPI | | selain itu | GitHub push |


🔹 Publish Manual

syntax-autopublish npm
syntax-autopublish pypi
syntax-autopublish github

🔹 Ganti Telegram Token

syntax-autopublish change

🔹 Bantuan

syntax-autopublish help

🔐 Notifikasi Login Otomatis

Jika:

  • npm login membutuhkan verifikasi browser
  • twine meminta autentikasi
  • ada login URL muncul di terminal

Maka link login akan otomatis dikirim ke Telegram kamu.


🛠 Requirements

Untuk NPM

  • Node.js
  • npm sudah terinstall

Untuk PyPI

  • Python 3
  • build
  • twine

Install dependency Python:

pip install build twine

Untuk GitHub

  • Git sudah terinstall
  • Repository sudah terkoneksi dengan remote

🧠 Cara Kerja Singkat

  • Menggunakan node-pty untuk membaca output real-time
  • Mendeteksi URL login otomatis
  • Mengirim notifikasi menggunakan Telegram API
  • Auto detect jenis project berdasarkan file

💡 Contoh Workflow

  1. Push project ke GitHub
  2. Jalankan:
    syntax-autopublish github
  3. Jika perlu login, link akan dikirim ke Telegram
  4. Publish selesai
  5. Kamu akan menerima notifikasi sukses / gagal

🧩 Cocok Untuk

  • Developer yang sering publish package
  • Automation pipeline manual
  • Developer remote / VPS
  • CI manual trigger

❤️ Author

SyntaxCommunity


📜 License

MIT License


⭐ Support

Jika kamu suka tool ini:

  • Star repo
  • Share ke teman
  • Gunakan di project kamu

Happy Publishing 🚀