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

@winccoa-tools-pack/npm-winccoa-core

v0.1.1

Published

Core utilities and type definitions for WinCC OA development. This library provides essential functionality for managing WinCC OA projects, components, and system interactions.

Readme

WinCC OA Core Utils

Core utilities and type definitions for WinCC OA development. This library provides essential functionality for managing WinCC OA projects, components, and system interactions.

📦 Installation

npm install @winccoa-tools-pack/npm-winccoa-core

🚀 Quick Start

Working with Projects

import {
    getRegisteredProjects,
    getRunningProjects,
    getRunnableProjects,
    getCurrentProjects,
    findProjectForFile
} from '@winccoa-tools-pack/npm-winccoa-core';

// Get all registered projects from the system
const allProjects = await getRegisteredProjects();
console.log(`Found ${allProjects.length} registered projects`);

// Filter to only running projects
const running = await getRunningProjects();
console.log(`${running.length} projects are currently running`);

// Get projects that can be started
const runnable = await getRunnableProjects();

// Get the current active project (if any)
const current = await getCurrentProjects();
if (current.length > 0) {
    console.log(`Current project: ${current[0].getName()}`);
}

// Find which project a file belongs to
const filePath = '/opt/WinCC_OA_Projects/myProject/config/config';
const project = await findProjectForFile(filePath);
if (project) {
    console.log(`File belongs to project: ${project.getName()}`);
    console.log(`Project ID: ${project.getId()}`);
    console.log(`Project is runnable: ${project.isRunnable()}`);
}

Managing Individual Projects

import { ProjEnvProject } from '@winccoa-tools-pack/npm-winccoa-core';

// Create and register a new project
const project = new ProjEnvProject();
project.setId('myProject');
project.setInstallDir('/opt/WinCC_OA_Projects/');
project.setVersion('3.21');
await project.registerProj();

// Check project status
if (project.isRegistered()) {
    console.log('Project successfully registered');
}

// Unregister when done
await project.unregisterProj();

Working with WinCC OA Installations

import {
    getAvailableWinCCOAVersions,
    getWinCCOAInstallationPathByVersion
} from '@winccoa-tools-pack/npm-winccoa-core';

// Get all installed WinCC OA versions (sorted highest to lowest)
const versions = getAvailableWinCCOAVersions();
console.log('Installed versions:', versions);
// Example output: ['3.20', '3.19', '3.18']

// Get installation path for a specific version
const path = getWinCCOAInstallationPathByVersion('3.20');
if (path) {
    console.log(`WinCC OA 3.20 installed at: ${path}`);
}

// Paths are cached for performance - first lookup queries registry/filesystem,
// subsequent lookups return cached value immediately

✨ Features

Component Management

  • WinCCOAComponent: Base class for all WinCC OA components
    • Automatic executable discovery across installed versions
    • Process timeout handling for reliable execution
    • Detached process spawning support
    • Version-specific component targeting
    • Stdout/stderr capture with timestamped logging

Project Management

  • ProjEnvProject: Complete project lifecycle management
    • Project registration and unregistration
    • Async operations with automatic retry logic
    • Status polling with proper async/await
    • Configuration file handling

Project Registry

  • ProjEnvProjectRegistry: Automatic project tracking
    • Real-time file system monitoring (pvssInst.conf)
    • Debounced cache refresh (100ms) for performance
    • Automatic invalidation on configuration changes

Utilities

  • Path resolution for WinCC OA installations
  • Version detection and comparison
  • Localization helpers
  • Log parsing and error handling

📦 Development

# Install dependencies
npm install

# Build the library
npm run build

# Run all tests
npm test

# Run only unit tests. Without WinCC OA instalation
npm run test:unit

# Run only integration tests. WinCC OA must be installed.
npm run test:integration

# Lint code
npm run lint

# Format code
npm run format

# Check code style
npm run style-check

🌳 Git Flow Workflow

This project uses Git Flow for branch management:

Branch Structure

  • main - Production-ready code (stable releases)
  • develop - Integration branch (pre-release features)
  • feature/* - New features
  • release/* - Release preparation
  • hotfix/* - Emergency fixes for production

For detailed workflow information, see docs/GITFLOW_WORKFLOW.md.

📖 Documentation

🔧 Configuration

Windows EOL (CRLF) Note

This repository enforces LF line endings for configuration files via .gitattributes to avoid spurious diffs.

If you see CRLF→LF warnings on Windows, normalize the files once:

cd C:\path\to\repo
git add --renormalize .
git commit -m "chore: apply eol normalization per .gitattributes"

🏆 Recognition

Special thanks to all our contributors who make this project possible!

Key Contributors

  • Martin Pokorny (@mPokornyETM) - Creator & Lead Developer
  • And many more amazing contributors!

📜 License

This project is licensed under the MIT License - see the LICENSE file for details.

Note: Some dependencies may use different license models.


⚠️ Disclaimer

WinCC OA and Siemens are trademarks of Siemens AG. This project is not affiliated with, endorsed by, or sponsored by Siemens AG. This is a community-driven open source project created to enhance the development experience for WinCC OA developers.


🎉 Thank You

Thank you for using WinCC OA tools package! We're excited to be part of your development journey. Happy Coding! 🚀


Quick Links

📦 VS Code Marketplace📚 Documentation🐛 Report Issues