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 🙏

© 2025 – Pkg Stats / Ryan Hefner

factory-agent-deepseek

v1.1.1

Published

Node-RED node for interfacing with Deepseek AI API

Readme

If you dont give a shit about agent, u can throw msg.payload to this node and it will send it to deepseek.

Node-RED factory-agent-deepseek

A Node-RED node for interacting with Deepseek's AI API to create agent-based systems. This node is designed to simplify the process of sending prompts to Deepseek's models and handling responses within Node-RED flows.

Features

  • Compose and send requests to Deepseek API with minimal configuration
  • Support for both deepseek-chat and deepseek-reasoner models
  • Combines environment, state, and action data into JSON format for user messages
  • Configurable temperature and max tokens settings
  • Secure API key storage

Installation

Install via Node-RED's Manage Palette:

  1. In Node-RED, navigate to the menu → Manage palette
  2. Go to the "Install" tab
  3. Search for "factory-agent-deepseek"
  4. Click install

Or install via npm:

cd ~/.node-red
npm install factory-agent-deepseek

Usage

Node Configuration

  1. Drag the factory-agent-deepseek node from the factory category in the palette to your flow
  2. Double-click the node to open the configuration panel
  3. Enter your Deepseek API key directly in the node configuration
  4. Select the model (deepseek-reasoner or deepseek-chat)
  5. Adjust temperature and max tokens settings if needed
  6. Click Done to save

Input

The node expects the following input properties:

  • msg.sysPrompt (string): The system prompt to send to Deepseek's system role
  • msg.envPrompt (string): Environment prompt to be combined with state and action
  • msg.state (string): State information to be combined with envPrompt and action
  • global.action (string): Action information from global context

Output

The node outputs:

  • msg.payload (object): The complete response from Deepseek API
  • msg.deepseekRequest (object): The request that was sent to Deepseek API
  • msg.result (string): The content from the Deepseek response message
  • msg.reasoning_content (string): The reasoning_content from the Deepseek response (if available)

Flow Context

The node manages a flow context variable:

  • flow.agentstate: Tracks the request status
    • processing: Set when the request is sent to Deepseek API
    • received: Set when a successful response is received

Example Flow

[{"id":"f6f2187d.f17ca8","type":"factory-agent-deepseek","z":"34de40b2.eb705","name":"Deepseek Agent","model":"deepseek-reasoner","temperature":"0.7","maxTokens":"2048","x":450,"y":300,"wires":[["c234a454.0cb648"]],"credentials":{"apiKey":"YOUR_API_KEY_HERE"}},{"id":"5a35c1ae.5e231","type":"inject","z":"34de40b2.eb705","name":"Test Input","props":[{"p":"sysPrompt","v":"You are a helpful assistant.","vt":"str"},{"p":"envPrompt","v":"Current time: 14:30","vt":"str"},{"p":"state","v":"User asked about weather.","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":270,"y":300,"wires":[["f6f2187d.f17ca8"]]},{"id":"c234a454.0cb648","type":"debug","z":"34de40b2.eb705","name":"Response","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":640,"y":300,"wires":[]}]

Files

The node includes the following files:

  1. factory-agent-deepseek.js - Main implementation
  2. factory-agent-deepseek.html - Configuration UI and help documentation
  3. package.json - Node-RED package information
  4. README.md - Documentation

License

MIT