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

@wanzofc1/aisyah

v1.0.0

Published

Comprehensive security utility with wanzofc integration (Android Support).

Readme

const manual = `

                AISYAH - SECURITY TOOLKIT

================================================================

[ KEGUNAAN ] Paket ini adalah "All-in-One Security Suite" untuk aplikasi Node.js. Dirancang untuk berjalan di berbagai lingkungan termasuk Android (Termux) karena menggunakan library "pure javascript" (Jimp) untuk pemrosesan gambar, bukan binary native yang sering bermasalah di mobile.

Fitur Utama:

  1. Enkripsi Data & 2FA (Google Authenticator)
  2. Proteksi Jaringan (Rate Limit, Bot Detect, CORS, Proxy Detect)
  3. Keamanan File (MIME Sniffing, EXIF Remover, Zip Bomb Defend)
  4. Sanitasi Input (XSS, SQL Injection)
  5. Manajemen Autentikasi (Password Strength, Session, Magic Link)
  6. Logging & Database (Integrasi MongoDB otomatis)

[ CARA INSTALL ] Pastikan Node.js sudah terinstall, lalu jalankan:

$ npm install aisyah

Dependency yang akan terinstall otomatis:

  • mongoose (Database)
  • jimp (Gambar/Android support)
  • speakeasy, qrcode (2FA)
  • file-type, adm-zip (File checking)
  • uuid (ID generation)

[ CARA PENGGUNAAN (INIT) ] Import dan jalankan konfigurasi awal. Pastikan MongoDB local/cloud siap.

const Aisyah = require('aisyah');

const security = new Aisyah({ secretKey: 'kunci_rahasia_aplikasi_anda', // Wajib diganti mongoUri: 'mongodb://localhost:27017/aisyah_security', // Otomatis connect maxUploadSize: 5 * 1024 * 1024, // 5MB tempDir: './temp_uploads' });


[ 1. ENKRIPSI & 2FA ]

// Enkripsi String const rahasia = security.encryption.encrypt("Data Penting"); const asli = security.encryption.decrypt(rahasia);

// 2 Factor Auth (Google Auth) const secret = security.twoFactor.generateSecret(); const qrCode = await security.twoFactor.generateQRCode(secret.otpauth_url); // Verifikasi const isValid = security.twoFactor.verifyToken(secret.base32, '123456');


[ 2. NETWORK GUARD (Express/Fastify Middleware) ]

// Rate Limiter (Cegah Spam Request) // Cek IP pengguna, max 100 request per menit if (!security.network.checkRateLimit('192.168.1.1', 100)) { return 'Too Many Requests'; }

// Bot Detection if (security.network.isBot(req.headers['user-agent'])) { return 'Bot Detected'; }

// Secure Headers const headers = security.network.getSecureHeaders(); // Gunakan: res.set(headers);


[ 3. FILE SECURITY (Support Android/Jimp) ]

const fs = require('fs');

// Cek Zip Bomb const buffer = fs.readFileSync('upload.zip'); if (security.fileGuard.checkZipBomb(buffer)) { throw new Error('Zip Bomb Detected!'); }

// Bersihkan Metadata Foto (GPS/EXIF) - Aman untuk Android const cleanImageBuffer = await security.fileGuard.stripImageMetadata(imageBuffer);

// Cek Tipe File Asli (MIME Sniffing) const mime = await security.fileGuard.getMimeType(buffer); // ex: 'image/png'


[ 4. INPUT SANITIZER & VALIDATOR ]

// XSS & SQL Injection const cleanInput = security.sanitizer.xssFilter("alert(1)"); // <script>... const isSqli = security.sanitizer.checkSqlInjection("' OR '1'='1"); // true

// Email & URL Scanner const isEmailValid = await security.validator.validateEmail('[email protected]'); // Cek MX Record const urlCheck = await security.validator.scanUrl('http://malicious-site.com'); // Cek Blacklist DB


[ 5. AUTH MANAGER ]

// Cek Password const passCheck = security.auth.checkPasswordStrength('admin123'); // Output: { score: 2, isStrong: false }

// Generate API Key const apiKey = security.auth.generateApiKey('sk_prod_');

// Session Encryption const sessId = security.auth.createSession({ userId: 1, role: 'admin' }); const sessData = security.auth.getSession(sessId);


[ CATATAN PENTING ] Paket ini menggunakan 'mongoose'. Saat di-instantiate: new Aisyah({ ... }) Koneksi ke MongoDB akan berjalan otomatis di background. Pastikan service MongoDB (mongod) sudah berjalan.

================================================================ `;

console.log(manual);

module.exports = manual;