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

n8n-whatsapp-media-decrypt

v1.0.0

Published

Custom n8n node for decrypting WhatsApp encrypted media files (.enc)

Readme

WhatsApp Media Decrypt - n8n Custom Node

إضافة مخصصة لـ n8n لفك تشفير ملفات WhatsApp المشفرة (.enc) باستخدام mediaKey.

🧱 ما هي هذه الإضافة؟

هذه إضافة مخصصة (Custom Node) لـ n8n تتيح لك فك تشفير ملفات WhatsApp المشفرة تلقائياً باستخدام مفتاح الوسائط (mediaKey). تعمل الإضافة مع جميع أنواع ملفات الوسائط في WhatsApp مثل:

  • الرسائل الصوتية (Audio Messages)
  • الرسائل المرئية (Video Messages)
  • الصور (Image Messages)
  • المستندات (Document Messages)
  • الملصقات (Sticker Messages)

📋 المتطلبات

  • Node.js 18+
  • n8n framework
  • مفتاح الوسائط (mediaKey) للملف المشفر
  • رابط الملف المشفر (.enc)

ملاحظة مهمة: هذا المشروع يتطلب n8n framework. وحدات n8n-workflow و n8n-core متوفرة كـ peerDependencies وستكون متاحة عند تشغيل المشروع داخل بيئة n8n.

🚀 التثبيت

التثبيت كـ Custom Node في n8n موجود

  1. انسخ مجلد WhatsAppDecrypt إلى مجلد nodes في مشروع n8n الخاص بك:

    n8n/packages/nodes-base/nodes/WhatsAppDecrypt/
  2. أضف المكتبات المطلوبة إلى package.json:

    {
      "dependencies": {
        "axios": "^1.6.0",
        "whatsapp-media-decrypt": "^1.0.0"
      }
    }
  3. ابني المشروع:

    npm run build

التثبيت كـ Standalone Package

  1. استنسخ هذا المشروع:

    git clone <repository-url>
    cd n8n-whatsapp-media-decrypt
  2. ثبت المكتبات:

    npm install
  3. ابني المشروع:

    npm run build
  4. اربط الحزمة مع n8n:

    npm link
    cd /path/to/your/n8n
    npm link n8n-whatsapp-media-decrypt

🛠️ كيفية الاستخدام

المدخلات المطلوبة:

  1. Media URL (مطلوب): رابط الملف المشفر (.enc)
  2. Media Key (مطلوب): مفتاح الوسائط (base64 encoded)
  3. Media Type (مطلوب): نوع الرسالة (audioMessage, videoMessage, etc.)
  4. Output Format (اختياري): تنسيق الإخراج (Binary Data أو Base64 String)
  5. File Extension (اختياري): امتداد الملف المطلوب

المخرجات:

  • Binary Data: الملف المفكوك كـ binary data (افتراضي)
  • Base64 String: الملف المفكوك كـ base64 string
  • Metadata: معلومات إضافية عن الملف (الحجم، التوقيت، إلخ)

مثال على الاستخدام:

// في n8n workflow
{
  "url": "https://example.com/encrypted-media.enc",
  "mediaKey": "base64-encoded-media-key",
  "mediaType": "audioMessage",
  "outputFormat": "binary",
  "fileExtension": ".ogg"
}

📁 هيكل المشروع

src/
├── nodes/
│   └── WhatsAppDecrypt/
│       ├── WhatsAppDecrypt.node.ts
│       └── whatsapp.svg
└── index.ts

🔧 التطوير

أوامر التطوير:

# بناء المشروع
npm run build

# تطوير مع watch mode
npm run dev

# فحص الكود
npm run lint

# إصلاح مشاكل الكود
npm run lint:fix

إضافة ميزات جديدة:

  1. عدّل الملف src/nodes/WhatsAppDecrypt/WhatsAppDecrypt.node.ts
  2. أضف المعاملات الجديدة في properties array
  3. عدّل منطق التنفيذ في execute method
  4. ابني المشروع واختبر التغييرات

🐛 استكشاف الأخطاء

مشاكل شائعة:

  1. "Cannot find module 'whatsapp-media-decrypt'"

    • تأكد من تثبيت المكتبة: npm install whatsapp-media-decrypt
  2. "Failed to download file"

    • تحقق من صحة رابط الملف
    • تأكد من الاتصال بالإنترنت
  3. "Decryption failed"

    • تحقق من صحة mediaKey
    • تأكد من نوع الرسالة الصحيح
  4. "Invalid media type"

    • استخدم أحد الأنواع المدعومة: audioMessage, videoMessage, imageMessage, documentMessage, stickerMessage

🤝 المساهمة

المساهمات مرحب بها! يرجى:

  1. إنشاء fork للمشروع
  2. إنشاء branch للميزة الجديدة
  3. تطبيق التغييرات مع اختبارات
  4. إرسال Pull Request

📝 الترخيص

MIT License

📞 الدعم

إذا واجهت مشاكل أو لديك أسئلة، يرجى:

  1. فتح issue في GitHub
  2. التحقق من الوثائق
  3. مراجعة المشاكل الشائعة في قسم استكشاف الأخطاء

ملاحظة مهمة: هذه الإضافة للأغراض التعليمية والتطويرية. تأكد من الامتثال لشروط خدمة WhatsApp وقوانين الخصوصية المحلية عند استخدامها.