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

nodebb-plugin-c4dpluginid

v0.1.7

Published

NodeBB plugin to request Cinema 4D Plugin IDs

Readme

c4dpluginid Plugin for NodeBB

A plugin to request Cinema 4D plugin IDs and notify user about the MAXON API domain space to use for developing Cinema 4D plugins.

The plugin needs the "Custom Pages" plugin to be installed and a custom page to be created with the following data used in the custom page "content" area:

<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script>
// executed upon the document is ready
// retrieve the list of all the registration IDs belonging to the user and list them in the page
$(document).ready(function() {
  socket.emit('modules.onLoadPage', function(err, result) {
    if (result.domainInfo !== undefined)
    {
      if (result.domainInfo[0] !== undefined && result.domainInfo[0].length != 0)
        document.getElementById("suggestedDomainH4").innerHTML = result.domainInfo[0];
      
      if (result.domainInfo[1] !== undefined && result.domainInfo[1].length != 0)
        document.getElementById("suggestedDomain").innerHTML = result.domainInfo[1];
      
      if (result.domainInfo[2] !== undefined && result.domainInfo[2].length != 0)
      document.getElementById("form").innerHTML = result.domainInfo[2];
    }
    if (result.pluginidInfo !== undefined && result.pluginidInfo.length != 0 )
      document.getElementById("registeredID").innerHTML = result.pluginidInfo;
  })
});

// executed upon the the 'generate ID' button is pressed
// parse the information provided in the form, request a new valid id, store it by updating the DB, 
// retrieve the list of all the registration IDs belonging to the user and  list them in the page
function GenerateID(){
  let pluginLabel = document.getElementById("pluginLabel").value;
  document.getElementById("pluginLabel").value = '';
  socket.emit('modules.onGenerateID', {values: [pluginLabel]}, function(err, result) {
    if (result.domainInfo !== undefined)
    {
      if (result.domainInfo[0] !== undefined && result.domainInfo[0].length != 0)
        document.getElementById("suggestedDomainH4").innerHTML = result.domainInfo[0];
      
      if (result.domainInfo[1] !== undefined && result.domainInfo[1].length != 0)
        document.getElementById("suggestedDomain").innerHTML = result.domainInfo[1];
      
      if (result.domainInfo[2] !== undefined && result.domainInfo[2].length != 0)
      document.getElementById("form").innerHTML = result.domainInfo[2];
    }
    if (result.pluginidInfo !== undefined && result.pluginidInfo.length != 0 )
      document.getElementById("registeredID").innerHTML = result.pluginidInfo;

    document.getElementById("pluginLabel").innerHTML = "done";
  });
}
</script>
</head>

<body>
<h4 id="suggestedDomainH4"></h4>
<p id="suggestedDomain"></p>
<p id="form"></p>
<p id="registeredID"></p>
</body>
</html>

Prerequisites

This plugin requires at this stage Custom Pages for NodeBB plugin to be installed. The plugin is available here.

Installation

npm install nodebb-plugin-c4dpluginid  

After installing the plugin it's mandatory to create a document used to store the global pluginID values using

$ mongo <dbname> -u <username> -p <password>

> db.getCollection('objects').insertOne({ _key : "globalPluginID", nextID : NumberInt(<YourInitialValue>), lastCreated : 0.0})

Data storage

The plugin makes use of a document (a MongoDB record) to store global information about pluginID actually structured as follow:

{
    "_key" : "globalPluginID",
    "nextID" : 1100001,
    "lastCreated" : 0.0
}

The nextID value can be initialized to any desired values. The lastCreate store the timestamp of the last created plugin ID.

Each pluginID entry is stored in a separate document actually structured as follow:

{
    "_key" : "pluginid:1100000",
    "pluginid" : 1100000,
    "uid" : 1,
    "label" : "MyFirstPlugin",
    "timestamp" : 1530535713654.0
}

The _key stores a unique string containing information about the entry. The pluginid stores the actual ID of the plugin. The uid stores the user who created the plugin ID. The label stores the name used for identifying the plugin ID. The timestamp stores the creation timestamp.