NewProfiles are here!View user profiles guide
NodeBB
JavaScriptZero Dependencies

ImgLink for NodeBB

The ImgLink NodeBB plugin is a pure Node.js 18+ implementation that requires zero npm dependencies. It uses the native fetch API, FormData, and Blob with fs.readFileSync to upload images to /api/v1/upload. The plugin exports a simple async upload() function for NodeBB's plugin hooks, with AbortSignal timeout support and a configurable retry loop. Includes plugin.json metadata for NodeBB's plugin manager. Tested on Node.js 22 in CI.

Platform
NodeBB 3.x
Runtime
Node.js 18+
Dependencies
Zero
CI Status
Passing

Requirements

  • Node.js 18 or higher
  • NodeBB 3.x
  • ImgLink API key (free)
  • No npm packages needed
Used by

Modern communities, gaming guilds, tech forums

Download ZIP

What's included

Zero npm dependencies — native fetch/FormData/Blob
async/await upload() function
AbortSignal.timeout() for request cancellation
Configurable retry loop with max attempts
NodeBB plugin.json metadata included
X-API-Key scoped authentication
Works on Node.js 18, 20, and 22
Node.js 22 CI tested

Installation Guide

Follow these steps to integrate ImgLink with NodeBB.

01

Copy to NodeBB plugins/

Copy the plugin folder into NodeBB's node_modules or plugins directory.

cp -r ./nodebb-plugin-imglink /path/to/nodebb/node_modules/
02

Activate in ACP

In NodeBB ACP → Extend → Plugins, find imglink and click Activate.

03

Configure credentials

Set your API key in NodeBB's ACP settings panel or in config.json.

{
  "apiBase": "https://imglink.cc",
  "apiKey": "YOUR_KEY_HERE",
  "timeoutSeconds": 30,
  "retries": 3
}
04

Verify the upload hook

Post an image and confirm the URL points to the imglink.cc CDN.

const result = await plugin.upload(filePath, config);
console.log(result.url); // https://imglink.cc/cdn/...

Why host images on ImgLink?

Global CDN

Images served from a global edge network. Sub-100ms load times. No bandwidth cost to your forum server.

Scoped API Keys

One API key per forum. Revoke or rotate instantly. Keys never leave your config file — never hardcoded.

Retry Safety

Exponential backoff on every upload. Images never fail silently — retries handle transient network issues.

Ready to deploy ImgLink on NodeBB?

Download the plugin, add your API key, and go live in under 10 minutes. Free to use — no credit card required.