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

node-red-contrib-email-analysis-deepseek

v1.0.0

Published

AI-powered email analysis using DeepSeek API for Node-RED

Readme

node-red-contrib-email-analysis-deepseek

AI-powered email analysis using DeepSeek API for Node-RED.

Features

  • AI Email Analysis: Automatically analyzes email content using DeepSeek AI
  • Intent Detection: Identifies sender's real intent and needs
  • Key Information Extraction: Extracts important points like time, place, people
  • Reply Suggestions: Provides professional reply recommendations
  • Bilingual Support: English and Chinese analysis versions
  • Easy Configuration: Simple setup with API key configuration

Installation

cd ~/.node-red
npm install node-red-contrib-email-analysis-deepseek

Then restart Node-RED.

Usage

1. Add Node to Flow

After installation, you'll find two new nodes in the Node-RED palette:

  • Email Analysis DeepSeek (English output)
  • 邮件分析 DeepSeek (Chinese output)

2. Configure the Node

  1. Double-click the node to open configuration
  2. Set your DeepSeek API Key (required)
  3. Configure optional parameters:
    • Model: Choose between deepseek-chat or deepseek-coder
    • Max Tokens: Maximum response length (default: 1000)
    • Temperature: Response creativity 0-2 (default: 0.2)
    • Output Language: English or Chinese (English node only)

3. Input Format

The node expects email data in the following format:

{
    from: "[email protected]",
    to: "[email protected]", 
    subject: "Email Subject",
    text: "Email content...",
    date: "2024-01-01T12:00:00Z",
    messageId: "unique-message-id"
}

4. Output Format

The node outputs a structured analysis:

{
    success: true,
    timestamp: "2024-01-01T12:00:00Z",
    emailSummary: {
        from: "[email protected]",
        subject: "Email Subject",
        preview: "Email content preview...",
        date: "2024-01-01T12:00:00Z",
        messageId: "unique-message-id"
    },
    fullEmailContent: "Full email content...",
    aiAnalysis: "AI analysis with intent, key info, and suggested reply",
    tokenUsage: {
        prompt_tokens: 100,
        completion_tokens: 50,
        total_tokens: 150
    }
}

API Key Setup

  1. Visit DeepSeek
  2. Sign up and create an account
  3. Generate an API key
  4. Copy the key (starts with sk-)
  5. Paste it in the node configuration

Example Flow

[
    {
        "id": "email-input",
        "type": "inject",
        "payload": {
            "from": "[email protected]",
            "to": "[email protected]",
            "subject": "Urgent: Need Help",
            "text": "I need immediate assistance with my order...",
            "date": "2024-01-01T12:00:00Z",
            "messageId": "msg-001"
        }
    },
    {
        "id": "email-analysis",
        "type": "email-analysis-deepseek",
        "apiKey": "sk-your-api-key-here",
        "model": "deepseek-chat",
        "maxTokens": 1000,
        "temperature": 0.2,
        "language": "english"
    },
    {
        "id": "output",
        "type": "debug"
    }
]

Node Types

Email Analysis DeepSeek

  • Category: Analysis
  • Inputs: 1
  • Outputs: 1
  • Language: English output
  • Features: Configurable output language

邮件分析 DeepSeek (Chinese)

  • Category: Analysis
  • Inputs: 1
  • Outputs: 1
  • Language: Chinese output only
  • Features: Optimized for Chinese analysis

Error Handling

The node includes comprehensive error handling:

  • API Key Validation: Checks for valid API key format
  • Network Errors: Handles connection issues gracefully
  • API Errors: Provides detailed error messages
  • Invalid Input: Validates input data format

Dependencies

  • axios: HTTP client for API requests
  • Node-RED: Version 3.0.0 or higher
  • Node.js: Version 16.0.0 or higher

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

License

MIT License - see LICENSE file for details.

Support

Changelog

1.0.0

  • Initial release
  • English and Chinese analysis nodes
  • DeepSeek API integration
  • Comprehensive error handling
  • Multi-language support