NodeJs installable package

github: https://github.com/Trust-Anchor-Group/TAG.NodeJs

Free package which installs Node JS version 24.11.1 on the running TAG Neuron® at $AppDataFolder/Packages/nodejs/node\.exe

Installable Package

The Node JS installer has been made into a package that can be downloaded and installed on any TAG Neuron. To create a package, that can be distributed or installed, you begin by creating a manifest file. This repository contains a manifest file called TAG.NodeJs.manifest. It defines the content files included in the package. You then use the Waher.Utility.Install and Waher.Utility.Sign command-line tools in the IoT Gateway repository, to create a package file and cryptographically sign it for secure distribution across the Neuron network.

The Node JS installer is published as a package on TAG Neurons. If your Neuron is connected to this network, you can install the package using the following information:

Package information
Package TAG.Nodejs.package
Installation key aKY7N1VcoNeDvWXRTyLSoP1ZmrkPkIrh6nIgffiOrjM9Ix+qkT9C7lWn8O2NCcZ/PmuSO9T6S/uA1535b7c39de3bfd6f8f762ce76c92053
More Information

Usage

The package does not set the machines PATH environment variable to enable use of

node index.js	

in a terminal, you have to specify the full path (eg: C:/Program Data/IoT Gateway/Packages/nodejs/node.exe) or use the runtime setting using web script (.ws)

exec := GetSetting("NodeJS.Executable.Path", "");  
ShellExecute(exec, "index.js", "");

or in c#

string ExecPath = await RuntimeSettings.GetAsync("NodeJS.Executable.Path", string.Empty);

Settings Page

The settings page is /NodeJs/Settings.md.

#package, #neuron, #javascript, #node


Embedding PDF Documents in Markdown via URL

As mentioned in a previous article, PDF documents can be embedded into Markdown. You can now also embed PDF documents, by simply using the URL, and embedding it into a multimedia construct in Markdown.

Example:

![`Harmonized Web API for real-time data.pdf`](https://neuro-foundation.io/Papers/Harmonized%20Web%20API%20for%20real-time%20data.pdf)

This results in:

#new, #features, #pdf, #neuron, #markdown


Embedding PDF Documents in Markdown

It is now (from build 2025-07-24) possible to embed a PDF document into a Markdown page using a simple code block. The basic syntax is as follows:

```application/pdf:PDF Document
JVBERi0xLjcNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL....
....
```

The code block is rendered to an embedded object in HTML (<embed/>), which, if the browser supports this tag, will display the PDF document directly embedded in the text.

This can be used for multiple purposes:

  • Sharing and displaying documents in posts or documentation.
  • Using PDF documents in KyC.
  • Uploading PDF documents to smart contracts, for documentation purposes.
  • etc.

Example:

This makes it seamless, for instance, to include PDF documents in idendity applications. It will be displayed embedded in the application for the operator:

PDF Document in Pending Identity Application view
PDF Document in Pending Identity Application view

#new, #features, #pdf, #neuron, #markdown, #kyc


Public Publish/Subscribe Web Service

Nodes that have been declared as open in XMPP Publish/Subscribe can be accessed as RSS Feeds (from build 2025-07-15). The feed contains links to the most recent items published on the node. Accessing the links will return the XML of the corresponding item.

Syntax of the URLs to access the RSS feed and corresponding items is:

https://DOMAIN/PubSub/NODE_ID

URLs of this type will return an RSS Feeds of the most recent items of the public Publish/Subscribe node with the name NODE_ID.

https://DOMAIN/PubSub/NODE_ID/ITEM_ID

URLs of this type will return the XML of the item ITEM_ID published on the public Publish/Subscribe node with the name NODE_ID.

Examples

You can try these examples to try the API:

The ReleaseNotes publish/subscribe node is also a Web Node, i.e. used for publishing information online. Compare the source publish/subscribe information accessible via the links above, to the corresponding web links:

#new, #features, #api, #neuron, #rss


Reverse Proxy Domain

Earlier articles [1] [2] [3] describe how the Neuron® can be used as a reverse proxy, and how web folders on the Neuron® can be mapped to resources on remote web servers. From build 2025-07-15 it is also possible to map an entire domain via the reverse proxy to a remote web server.

Configuration is done in the gateway.config file. You can also access the contents of this file via the Sources & Nodes option and then Gateway Configuration and Web Server from the Administrator portal.

Adding Reverse Proxy Domain
Adding Reverse Proxy Domain

Enter the local domain, and information about the remote web server to which the requests for this domain will be forwarded. Note that you will need to have defined the local domain as the domain or alternative domain of the Neuron® for the reverse proxy to work.

Reverse Proxy Domain Settings
Reverse Proxy Domain Settings

Security Note: Always use TLS encryption, even in the internal network, especially if sensitive information is communicated. Otherwise the TLS encryption used between the client and the domain only reaches the Neuron®, and the connection in the internal network is unencrypted, making it possible to eavesdrop on sensitive communication.

#new, #features, #neuron, #network, #architecture


Posts tagged #neuron

No more posts with the given tag could be found. You can go back to the main view by selecting Home in the menu above.