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

leobot-cli

v1.1.6

Published

CLI bot untuk register Canva + Leonardo accounts via backend API

Readme

Leo Bot (leobot-cli)

CLI tool + Chrome Extension untuk register akun Canva + Leonardo secara otomatis.

📋 Prerequisites

1. Node.js >= 20

Cek versi Node.js:

node --version
# Harus v20 atau lebih tinggi

Kalau belum ada, download & install dari nodejs.org.

2. Google Chrome

Leo Bot buka browser Chrome asli untuk daftar akun. Pastikan Chrome sudah terinstall:

⚠️ Leo Bot harus dijalankan di PC desktop (bisa buka browser). Tidak bisa di server.

3. Backend API

Leo Bot butuh backend untuk:

  • Cek OTP email
  • Simpan session browser
  • Cek credit Leonardo

Jalanin backend dulu (lihat dokumentasi terpisah), atau pake --api-url kalo backend udah di-deploy.

🚀 Install

Via npm (recommended)

npm install -g leobot-cli

Setelah install, cek:

leobot --help

Atau clone repo

git clone https://github.com/username/leobot.git
cd leobot
npm install
node bin/cli.js --help

🎮 Cara Pakai

1. Cek sistem

Jalanin leobot doctor buat ngecek semua prerequisite:

leobot doctor

Output:

🔍 Pre-flight check

  ✅ Node.js >=20: v22.22.2
  ✅ Google Chrome: /Applications/Google Chrome.app/...
  ✅ Playwright: Terinstall
  ✅ Display (GUI): macOS GUI
  ✅ Internet: Terhubung

2. Login

leobot login --api-url https://api-kamu.com

Atau kalo backend lokal:

leobot login

Masukin email + password yang terdaftar di backend.

Belum punya akun? leobot register

3. Generate Akun

Bikin 5 akun Canva + Leonardo sekaligus:

leobot gen -c 5

Atau 10 akun:

leobot gen -c 10

Setiap akun:

  1. Buka Canva.com
  2. Daftar pake email random
  3. Verifikasi OTP (otomatis)
  4. Masuk ke Leonardo via Canva
  5. Simpan session ke database
  6. Cek credit otomatis

4. Cek Status

leobot status

Output:

  Leo Bot - Account Status

  Total: 37 akun
  Aktif: 37
  Total Credits: 1.200.000
  Total Tokens: 34.000

5. Update CLI

leobot update

⌨️ Command Lengkap

| Command | Fungsi | |---------|--------| | leobot | Menu interaktif | | leobot login | Login | | leobot register | Daftar akun baru | | leobot gen -c N | Generate N akun | | leobot status | Lihat status akun | | leobot doctor | Cek sistem | | leobot logout | Hapus session | | leobot whoami | Cek login | | leobot update | Update CLI |

🔧 Options

-c, --count <n>       Jumlah akun (max: 20)
-h, --headless        Mode headless (gak buka browser)
-p, --proxy <url>     Pake proxy
-m, --manual-otp      Input OTP manual
--api-url <url>       Backend API URL
--email <email>       Email (buat scripting)
--password <pass>     Password (buat scripting)

🌐 Environment Variables

| Variable | Fungsi | |----------|--------| | LEO_GEN_API_URL | Backend API URL | | HTTP_PROXY | Proxy URL |

🖥️ Chrome Extension

Selain CLI, ada Chrome Extension yang bisa dipake buat:

  • Lihat daftar akun + credit langsung dari browser
  • Inject session (ganti login Leonardo)
  • Cek semua token real-time

Install Extension

  1. Buka chrome://extensions/
  2. Nyalakan Developer mode
  3. Klik Load unpacked
  4. Pilih folder extension/

Cara Pake Extension

  1. Login di app.leonardo.ai
  2. Klik icon extension
  3. Pilih akun → Inject Session
  4. Refresh Leonardo → login berubah

⚙️ Backend

Leo Bot butuh backend yang jalan. Backend handle:

  • Auth (login/register)
  • Cek OTP dari email
  • Simpan session browser
  • Credit checking via Leonardo API

Lihat dokumentasi backend terpisah untuk cara deploy.

❓ Troubleshooting

Error: Cannot find module 'playwright'

npm install -g playwright-core

Error: Chrome not found

Install Google Chrome dari https://google.com/chrome

Error: Cannot find package

npm install -g leobot-cli --force

Generate gagal terus

leobot doctor
# Cek apakah Chrome terinstall
# Cek apakah backend nyala
# Cek apakah akun masih aktif