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

node-opcua

v2.175.2

Published

pure nodejs OPCUA SDK - module node-opcua

Readme

node-opcua

NPM version NPM downloads Node.js CI Coverage Status

The most complete OPC UA stack for Node.js — build industrial-grade OPC UA servers and clients in TypeScript.

Why node-opcua?

  • 🏭 Full OPC UA stack — server, client, discovery, aggregation, and GDS
  • 🔒 Production-grade security — X.509 certificates, encrypted channels, user authentication
  • 🌍 Cross-platform — Windows, Linux, macOS, and browser (via WebSocket)
  • 📦 120+ packages — modular architecture, use only what you need
  • 🛡️ Battle-tested — 12+ years of development, 1,600+ GitHub stars, 3,000+ tests
  • 📖 Well documentedNodeOPCUA by Example book + API reference

Quick Start

Requirements: Node.js 20 or later

npm install node-opcua

Create an OPC UA Server

import { OPCUAServer, DataType, Variant } from "node-opcua";

const server = new OPCUAServer({ port: 4840 });
await server.initialize();

const addressSpace = server.engine.addressSpace;
if (!addressSpace) throw new Error("AddressSpace not initialized");

const namespace = addressSpace.getOwnNamespace();
namespace.addVariable({
    browseName: "Temperature",
    componentOf: addressSpace.rootFolder.objects,
    dataType: DataType.Double,
    value: { get: () => new Variant({ dataType: DataType.Double, value: 22.5 }) },
});

await server.start();
console.log("Server started at", server.getEndpointUrl());

Connect as an OPC UA Client

import { OPCUAClient, AttributeIds } from "node-opcua";

const client = OPCUAClient.create({ endpointMustExist: false });
await client.connect("opc.tcp://localhost:4840");

const session = await client.createSession();
const value = await session.read({ nodeId: "ns=1;s=Temperature", attributeId: AttributeIds.Value });
console.log("Temperature =", value.value.value);

await session.close();
await client.disconnect();

🏢 Professional Support

| | Community (MIT) | Professional | | ------------------------ | :----------------: | :------------------: | | Full documentation | ✅ | ✅ + extended docs | | Bug fixes | Best effort | Priority SLA | | CVE security advisories | After disclosure | Early access — patch before public disclosure | | Certifiable version | — | ✅ | | Dedicated consulting | — | ✅ | | Custom development | — | ✅ |

Professional Support

Or contact Sterfive for dedicated consulting and enterprise needs.

📖 Documentation

Value-Added Extensions

Source-available companion modules available to NodeOPCUA subscription members (additional fee):

| Module | Description | | ------ | ----------- | | node-opcua-pub-sub | OPC UA PubSub over MQTT (Part 14) — Industry 4.0 ready | | aggregator | Combine and monitor hundreds of servers and millions of variables | | node-opcua-optimized-client | High-performance OPC UA client for demanding workloads | | node-opcua-gds | Global Discovery Server — certificate lifecycle at scale (Part 12) | | node-opcua-modeler-ex | Programmatic OPC UA modeler |

👉 Visit support.sterfive.com for access and pricing.

Ecosystem

AI-Powered Modeling with MCP

node-opcua-modeler-mcp-server — an MCP server that gives AI agents access to the OPC UA companion specification type system. Discover types, resolve namespace dependencies, and look up engineering units.

npx node-opcua-modeler-mcp-server

OPC UA Modeler

OPC UA Modeler — create, validate, and generate OPC UA information models using a YAML-first workflow with full companion spec support.

:heart: Sponsors

If you rely on node-opcua in production, please consider sponsoring the project. Your support funds long-term maintenance, new features, and representation at the OPC Foundation.

License

MIT — Copyright (c) 2014-2026 Etienne Rossignon / Sterfive SAS

See LICENSE for details.