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

terabox-downloader

v1.1.1

Published

Telegram bot untuk download file dari Terabox — satu command langsung jalan

Readme

📦 Terabox Downloader Bot

Telegram Bot untuk download file dari Terabox — kirim link, terima file. Dynamic QRIS payment via KlikQRIS. Satu command langsung jalan.


🚀 Quick Start

npm install -g terabox-downloader
tbd

Pertama kali jalan, CLI interactive wizard akan nanya:

🤖 Bot Token (dari @BotFather):   <paste>
👑 Admin Telegram ID:               <paste>
💰 Harga VIP (default: 10000):      <enter>
⏳ Durasi VIP (default: 7 hari):    <enter>
🔑 KlikQRIS API Key:                <paste>
🏪 KlikQRIS Merchant ID:            <paste>
🧪 Sandbox mode? (y/N):             <enter>

✅ Bot langsung jalan. Ga perlu clone — CLI handle semuanya.

tbd              # Start bot (setup wizard di first run)
tbd setup        # Ulang konfigurasi .env
tbd update       # Git pull + update Python dependencies
tbd start        # Jalankan bot (skip wizard)

# Atau nama panjang:
terabox-downloader [setup|update|start]

| Metode | Command | |---|---| | npx (tanpa install) | npx terabox-downloader | | pip | pip install terabox-downloader-bot | | Docker | docker run -e BOT_TOKEN=xxx mocasus/terabox-downloader | | Manual | Clone repo → pip install -r requirements.txtpython bot.py |

Prasyarat: Node.js 18+, Python 3.10+, Git.


✨ Fitur

| Fitur | Detail | |---|---| | 🔗 Multi-mirror | terabox.com, teraboxapp.com, mirrobox.com, 1024tera.com, dll | | 🔍 Multi-strategy | Savetube (primary) → Publicearn → Direct — auto-fallback | | ⬇️ Smart upload | Auto-detect video/dokumen/audio, progress bar, file >50MB via direct link | | 💳 KlikQRIS | Dynamic QR code — scan via GoPay/OVO/DANA/M-Banking, auto-callback webhook | | 🎮 Inline buttons | Semua aksi bisa via tombol — ga perlu ketik command | | 🛡️ Admin panel | Approve manual, tambah VIP, broadcast, stats | | 🔒 HMAC signature | Verifikasi setiap webhook callback — anti fake payment | | 🆓 Trial mode | Free download N kali sebelum wajib VIP |


📋 Perintah Bot

User

| Command | Fungsi | |---|---| | /start | Register + menu utama (inline keyboard) | | /help | Bantuan — download, bayar, VIP, FAQ | | /vip | Info harga & beli VIP | | /bayar | Buat QR code pembayaran | | /status | Cek status akun & VIP |

Admin

| Command | Fungsi | |---|---| | /pending | Lihat pembayaran menunggu | | /approve <id> | Setujui pembayaran | | /reject <id> <alasan> | Tolak pembayaran | | /vipadd <uid> <hari> | Tambah VIP (0 = lifetime) | | /viprem <uid> | Cabut VIP | | /vips | List semua VIP | | /stats | Statistik user, VIP, revenue | | /broadcast <msg> | Kirim pesan ke semua user |


💳 KlikQRIS — Cara Setup

  1. Daftar di klikqris.com → verifikasi
  2. Ambil API Key dari dashboard → Pengaturan → API Key
  3. Isi .env: KLIKQRIS_API_KEY=... + KLIKQRIS_MERCHANT_ID=...
  4. Set webhook URL di dashboard KlikQRIS → https://domain-kamu/webhook/klikqris
  5. Test dengan sandbox: KLIKQRIS_SANDBOX=truesimulator → ganti ke false setelah OK
User /bayar → Bot create QR via KlikQRIS → User scan & bayar
→ KlikQRIS kirim webhook "PAID" → Bot verifikasi HMAC → VIP aktif

⚙️ Environment Variables

| Variable | Wajib | Default | |---|---|---| | BOT_TOKEN | ✅ | — | | ADMIN_IDS | ✅ | — |

| Variable | Default | |---|---| | VIP_ENABLED | true | | VIP_PRICE | 10000 | | VIP_DURATION_DAYS | 7 | | VIP_TRIAL_ENABLED | true | | VIP_TRIAL_DOWNLOADS | 3 |

| Variable | Default | |---|---| | KLIKQRIS_API_KEY | — | | KLIKQRIS_MERCHANT_ID | — | | KLIKQRIS_SANDBOX | false | | KLIKQRIS_BASE_URL | https://klikqris.com |

| Variable | Default | |---|---| | WEBHOOK_HOST | http://localhost:8000 | | WEBHOOK_PORT | 8000 |

| Variable | Default | |---|---| | MAX_FILE_SIZE_MB | 500 | | DOWNLOAD_DIR | ./downloads |


🏗️ Arsitektur

terabox-downloader/
├── bot.py                    🚀 Entry point
├── config.py                 ⚙️ Config loader
├── cli.js                    💻 npm CLI installer
│
├── database/
│   ├── models.py             🗃️ SQLite (users, payments, VIP)
│   └── migrations.py         🔄 Auto-migrate
│
├── terabox/
│   ├── resolver.py           🔍 Multi-strategy engine
│   ├── downloader.py         ⬇️ Async download + upload
│   ├── utils.py              🛠️ URL parser, formatter
│   └── strategies/
│       ├── savetube.py       🥇 Primary (no cookie)
│       ├── publicearn.py     🥈 Fallback (stub)
│       └── direct.py         🥉 Direct extraction (stub)
│
├── payments/
│   ├── klikqris.py           💳 KlikQRIS API client
│   ├── webhook_server.py     🌐 Webhook receiver
│   └── handler.py            🎯 Payment flow handlers
│
└── admin/
    ├── handlers.py           🛡️ Admin commands
    └── stats.py              📊 Statistics

| Layer | Teknologi | |---|---| | Bahasa | Python 3.10+ | | Bot | python-telegram-bot v20 | | DB | SQLite (WAL mode) | | HTTP | aiohttp | | CLI | Node.js (npm wrapper) | | Payment | KlikQRIS API |


📄 License

MIT — mocasus


⬆ Back to top