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-nodes-terabox

v0.1.4

Published

Professional n8n community node for advanced TeraBox cloud storage automation. Features secure QR login, session auto-refresh, batch file operations (upload/download/search), M3U8 media streaming, and intelligent session management. Enable share folder ac

Readme

TeraBox Banner

TeraBox - n8n Integration

Powerful TeraBox cloud storage automation for n8n workflows with session-based authentication, comprehensive file management, and media streaming capabilities

🚀 Transform Your TeraBox Automation

TeraBox is a comprehensive n8n custom node that brings the full power of TeraBox cloud storage to your automation workflows. Built with session-based authentication and designed for production use, it offers enterprise-grade features with an intuitive interface.

🌟 Key Features

Core Operations

  • Authentication: QR Code Login, Session Validation, Diagnostics
  • Files: List, Search, Download, Upload, Delete, Empty Recycle Bin, Copy, Move, Rename
  • User: Account Info, Storage Quota
  • Share: Verify, Query, List, Copy from shared folders
  • Media: Stream URLs, Media Metadata for videos and audio

Enterprise Features

  • 🔐 Session-Based Authentication - Secure cookie + jsToken authentication with QR login assistant
  • Smart File Management - Advanced filtering by category, date ranges, and sorting options
  • 🛡️ Comprehensive Error Handling - Clear error messages and automatic retry support
  • 📊 Structured Output - Consistent response format with operation status
  • 🎯 Category Filtering - Filter by Videos, Music, Pictures, Documents
  • 📅 Date Range Filtering - List files by modification time
  • 🔄 Share Operations - Access and copy files from shared folders
  • 🎬 Media Streaming - Get M3U8 streaming URLs for video/audio files

📦 Installation

Method 1: n8n Community Nodes (Recommended)

  1. Open n8n UI
  2. Go to SettingsCommunity Nodes
  3. Add in box "n8n-nodes-terabox"
  4. Click checkbox to allow to use external nodes.
  5. Click Install
  6. Restart n8n to load the custom node

Note: If you have trouble updating the node in the n8n UI, uninstall (remove) the TeraBox node first, then perform a fresh install to resolve the issue.

Method 2: Custom Nodes Directory

  1. Clone to n8n custom nodes directory
  2. Install dependencies
    npm install
  3. Build the project
    npm run build
  4. Restart n8n to load the custom node

Method 3: GitHub Installation

  1. Clone from GitHub
    git clone https://github.com/sadiakant/n8n-nodes-terabox.git
  2. Move to n8n custom nodes directory
  3. Install dependencies
    npm install
  4. Build the project
    npm run build
  5. Restart n8n to load the custom node

⚙️ Quick Setup

1. Authenticate with TeraBox

This node uses session-based authentication. You have two options:

Option A: QR Code Login (Recommended)

  1. Add a Terabox node to your workflow
  2. Set Resource to Authentication
  3. Set Operation to Start QR Login
  4. Execute and scan the QR code with your TeraBox mobile app
  5. Use Complete QR Login to get your credentials
  6. Save credentials in n8n Settings → Credentials

Option B: Manual Cookie Extraction

  1. Log in to TeraBox in your browser
  2. Open Developer Tools (F12) → Network tab
  3. Trigger any action and copy the Cookie header
  4. Copy the jsToken from the query parameters
  5. Create credentials in n8n with these values

For detailed step-by-step instructions, see our Authorization Guide.

2. Configure Credentials

In n8n → Settings → Credentials:

  • Cookie Header: Your full Cookie header string (required)
  • JS Token: The jsToken from your session (required)
  • BDSToken: For file management operations (optional but recommended)
  • Base URL: API endpoint (default: https://dm.nephobox.com)

3. Validate Your Session

  1. Add a Terabox node
  2. Set Resource to Authentication
  3. Set Operation to Validate Session
  4. Execute to verify your credentials work

🎯 Comprehensive Operations Guide

For detailed documentation of all operations with parameters, examples, and use cases, see our Operations Guide.

🔧 Available Operations

| Resource | Operations | | ------------------ | ---------------------------------------------------------------------------------------------------------------- | | Authentication | Start QR Login, Check QR Login, Complete QR Login, Refresh Session Tokens, Validate Session, Session Diagnostics | | User | Get Info, Get Quota | | File | List, Search, Get Metadata, Download, Upload, Delete, Empty Recycle Bin, Copy, Move, Rename | | Share | Activate, Verify, Query, List, Copy | | Media | Stream URL, Share Stream URL, Metadata |

🛡️ Security Features

Session-Based Authentication

All authentication uses secure session cookies:

  • Cookies are stored securely in n8n credentials
  • QR login generates fresh sessions without manual extraction
  • Session validation checks token validity
  • Diagnostics provide detailed session health info

Input Validation

Comprehensive validation ensures data integrity:

  • File path validation
  • Category filter validation
  • Date range validation
  • JSON input validation for batch operations

Enhanced Error Handling

The node handles common TeraBox errors gracefully:

  • Session Expired: Clear guidance to re-authenticate
  • File Not Found: Helpful path verification
  • Permission Denied: Account permission checks
  • Storage Full: Quota monitoring
  • Invalid Parameters: Detailed error messages

⚡ Performance Features

Smart File Listing

  • Category-based filtering (Videos, Music, Pictures, Documents)
  • Date range filtering (last hours, days, or custom range)
  • Sortable results (by name, size, or modification time)
  • Pagination support for large directories

Efficient Operations

  • Batch file operations (delete, copy, move)
  • URL-based file uploads
  • Binary file downloads
  • Streaming media URLs

Structured Output

All operations return consistent output format:

{
	"success": true,
	"operationStatus": {
		"resource": "file",
		"operation": "list",
		"summary": "List completed successfully. Returned 25 items.",
		"timestamp": "2026-03-31T00:00:00.000Z"
	}
}

🚨 Troubleshooting

For comprehensive troubleshooting guidance, common issues, and solutions, see our Troubleshooting Guide.

Quick Fixes

| Issue | Solution | | ------------------- | --------------------------------- | | Session expired | Re-authenticate using QR Login | | File not found | Use exact path from File > List | | Upload failed | Check storage quota and file size | | Invalid credentials | Re-copy cookie and jsToken |

📚 Documentation

Use Cases

Automated File Management

  • Sync files between TeraBox and other cloud services
  • Organize files by category or date
  • Clean up old files automatically

Media Processing

  • Get streaming URLs for video processing
  • Download media files for transcoding
  • List and filter media by type

Backup Workflows

  • Download files for local backup
  • Copy files between TeraBox accounts
  • Monitor storage quota

Share Management

  • Access shared folder contents
  • Copy files from shared links
  • Query share information

Advanced Configuration

Category Filters

Use numeric codes for file categories:

  • 1 - Videos
  • 2 - Music
  • 3 - Pictures
  • 4 - Documents
  • 6 - Others

Date Range Filtering

Filter files by modification time:

  • Last Hours: Items modified in last N hours
  • Last Days: Items modified from today back through the previous N-1 calendar days
  • Custom Range: From/To date in ISO format

Batch Operations

Process multiple files at once:

["/path/to/file1.txt", "/path/to/file2.txt"]

URL Uploads

Upload files directly from URLs:

  1. Set Upload Source to URL
  2. Provide the source URL
  3. Node downloads and uploads automatically

🤝 Contributing

We welcome contributions to make TeraBox even better! Please see our Contributing Guide for detailed guidelines.

📄 License

MIT License - see LICENSE file for details.

🔗 Resources


Publishing Status

Build Status Publish Status Socket Badge GitHub Issues GitHub Pull Requests

NPM Status

npm version npm downloads/week npm downloads/month npm downloads/year node version npm license GitHub license npm total downloads npm unpacked size npm types npm collaborators

GitHub Status

github release github stars github forks last commit GitHub contributors GitHub watchers GitHub issues closed GitHub PRs closed Commit activity

Dependency Status

Telegram API TypeScript n8n pnpm >= 9.1 Node >= 18.17 telegram dependency n8n-workflow peer dependency


Built with ❤️ for n8n automation workflows