node-opcua is a full OPC UA stack for NodeJS and the Browser written in Typescript.
Node-opcua is the OPC-UA stack running on NodeJS.
Why NodeJS ?
Because NodeJs is a great framework for designing high-performing asynchronous applications.
$ mkdir mytest
$ cd mytest
$ npm init
$ npm install node-opcua --unsafe-perms
$ # Create your first app.js file!
$ mkdir myserver
$ cd myserver
$ npm init
$ npm install node-opcua-samples --unsafe-perms
$ ./node_modules/.bin/simple_server
or
$ ./node_modules/.bin/simple_client -e "opc.tcp://opcserver.mAutomation.net:4841" -n="ns=1;s=EVR2.system.RTC_SEC"
or
$ ./node_modules/.bin/simple_client -e "opc.tcp://opcuademo.sterfive.com:26543"
- Nodejs version 18 or above
. This book provides a large number of practical and ready-to-use and fully documented examples. It's the best starting point to learn about node-opcua.
The funding of node-opcua entirely relies on its users.
We appreciate that, once you have evaluated the software and you have decided to use it in one of your applications, you consider supporting our effort by either financially contributing to one of our sponsor programs:
Grants ensure the following:
- π¨ Long-term maintenance of the project
- βοΈ maintain the website and continuous integration platform
- π£ Progress on the road map
- π Quick responses to bug reports
- π New features & enhancements
- βοΈ representing the node-opcua user community at the OPC Foundation
Thank you to all our backers! Become a backer
This project exists thanks to all the people who contribute.
To get professional support, consider subscribing to the node-opcua membership community:
Registered members have access to an extended set of online documentation.
Registered members can post and query Sterfive for any question related to NodeOPCUA in a private chat room.
or contact sterfive for dedicated consulting and more advanced support or for a certified version of node-opcua. (contact@sterfive.com).
If your company would like to participate and influence the development of future versions of node-opcua please contact sterfive.
Those are the items we would like to achieve in the next version of the API.
- improved documentation
- Compliance testing and certification (CTT)
- Pub-sub support
- support for redundancy
- session-less transactions
- WebSocket transport
- JTokens and OAuth
- reversed connection
- more tutorials
$ git clone https://github.com/node-opcua/node-opcua.git
$ cd node-opcua
$ npm install -g pnpm
$ pnpm recursive install
$ pnpm build
$ node packages/node-opcua-samples/bin/simple_server
$ git clone https://github.com/node-opcua/node-opcua.git
$ cd node-opcua
$ npm install -g pnpm
$ pnpm recursive install
$ pnpm build
$ node packages/node-opcua-samples/bin/simple_client.js -e "opc.tcp://opcserver.mAutomation.net:4841" -n="ns=1;s=EVR2.system.RTC_SEC"
-
more tutorials are available in the book (https://leanpub.com/node-opcuabyexample-edition2024)
-
more advanced examples and training material are available for the NodeOPCUA Subscription members at (https://support.sterfive.com)
- check out the API documentation
$ git clone git://github.com/node-opcua/node-opcua.git
$ cd node-opcua
$ npm install -g pnpm
$ pnpm install
$ pnpm recursive install
$ pnpm build
Service | ||
---|---|---|
Discovery Service Set | ||
FindServers() | β | |
GetEndpoints() | β | |
RegisterServer() | β | |
RegisterServer2() | β | |
FindServersOnNetwork() | β | |
Secure Channel Service Set | ||
OpenSecureChannel() | β | |
CloseSecureChannel() | β | |
Session Service Set | ||
CreateSession() | β | |
CloseSession() | β | |
ActivateSession() | β | |
Cancel() | ||
View Service Set | ||
Browse() | β | |
BrowseNext() | β | |
TranslateBrowsePathsToNodeIds() | β | |
RegisterNodes() | β | |
UnregisterNodes() | β | |
Attribute Service Set | ||
Read() | β | |
Write() | β | |
HistoryRead() | π | |
HistoryUpdate() | π | |
MonitoredItems Service Set | ||
CreateMonitoredItems() | β | |
ModifyMonitoredItems() | β | |
SetMonitoringMode() | β | |
SetTriggering() | π | |
DeleteMonitoredItems() | β | |
Subscription Service Set | ||
CreateSubscription() | β | |
ModifySubscription() | β | |
DeleteSubscriptions() | β | |
Publish() | β | |
Republish() | β | |
TransferSubscriptions() | β | |
Node Management Service Set | ||
AddNodes() | π | |
AddReferences() | π | |
DeleteNodes() | π | |
DeleteReferences() | π | |
Query Service Set | ||
QueryFirst() | π | |
QueryNext() | π | |
PubSUB | as a commercial module | β |
GDS | as a commercial module | β |
Transport Protocol | ||
Transport | Status | Comment |
UA-TCP UA-SC UA Binary | β | OPC.TCP - Binary |
SOAP-HTTP WS-SC UA Binary | π | HTTP/HTTPS - Binary |
SOAP-HTTP WS-SC UA XML | π | |
SOAP-HTTP WS-SC UA XML-UA Binary | π | |
Security Policies | ||
Policy | Status | Comment |
None | β | |
Basic128Rsa15 | β | deprecated in 1.04 |
Basic256 | β | deprecated in 1.04 |
Basic256Sha256 | β | |
Authentication | Status | Comment |
Anonymous | β | |
User Name Password | β | |
X509 Certificate | β | |
client facets | ||
Base Client Behaviour | β | |
AddressSpace Lookup | β | |
Attribute Read | β | |
DataChange Subscription | β | |
DataAccess | β | |
Discovery | β | |
Event Subscription | β | |
Method call | β | |
Historical Access | π | |
Advanced Type | β | |
Programming | π | |
Auditing | π | |
Redundancy | π | Sponsors wanted |
server profiles | ||
Core Server | β | |
Data Access Server | β | |
Embedded Server | β | |
Nano Embedded Device Server | β | |
Micro Embedded Device Server | β | |
Standard DataChange Subscription Server | β | |
Standard Event Subscription Server | β | |
Standard UA Server | β | |
Redundancy Transparent Server | π | Sponsors wanted |
Redundancy Visible Server | π | Sponsors wanted |
Node Management Server | π | Sponsors wanted |
Auditing Server | π | |
Complex Type Server | β | (sponsored) |
Session Diagnostics | β | (sponsored) |
Subscription Diagnostics | β | (sponsored) |
Alarms & Conditions | β | (sponsored) |
Pub & Sub | π | Sponsors wanted |
-
if you're using node-opcua in one of your project, please feel free to leave a comment and a quick description in the wiki
-
if you have a particular wish or found a issue, let us known and create an issue
The node-opcua core module is copyrighted and licencsd under the term of the "The MIT License".
This means that :
- node-opcua comes without any warranty of any kind.
- you can freely re-use in an open-source application or a commercial application
- you have to include the software copyright notice in all copies or substantial portions of the software.
You are strongly encouraged to apply to our NodeOPCUA Membership to get additional benefits and support.
Copyright (c) 2022-2024 Sterfive SAS - 833264583 RCS ORLEANS - France (https://www.sterfive.com) Copyright (c) 2014-2022 Etienne Rossignon