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 🙏

© 2025 – Pkg Stats / Ryan Hefner

steamworkswinx64-withlogs

v0.0.4

Published

Steamworks.js with additional logging and P2P session control for Windows x64

Readme

steamworkswinx64-withlogs

A modified version of steamworks.js with additional logging for Windows x64, including environment details, DLL loading, and Steam API initialization, and expanded P2P networking capabilities. This module enhances your Steamworks integration with detailed diagnostics and a new closeP2PSession API for seamless multiplayer session management, perfect for developers building robust Steam games. Written by Jonathan Fior at Innovative Bioresearch.

Features

  • Enhanced Logging: Uses winapi to log the exact path of the loaded steam_api64.dll, along with environment details and Steam API initialization, to diagnose issues like [ERR_DLOPEN_FAILED] (e.g., Rust: Found steam_api64.dll at: "C:...\node_modules\steamworkswinx64-withlogs\dist\win64\steam_api64.dll", Rust: SteamAPI_Init succeeded).
  • New P2P Session Control: Introduces closeP2PSession (new in v0.0.3), a custom export missing from steamworks.js, enabling seamless P2P session cleanup for buttery-smooth multiplayer. Powered by the Rust steamworks crate’s Networking::close_p2p_session.
  • Windows x64 Only: Optimized exclusively for Windows x64, ensuring compatibility with steamworksjs.win32-x64-msvc.node and the customized steam_api64.dll.
  • Pre-Built Binaries: Ships with all necessary files, including dist\win64\steam_api64.dll, steam_api64.lib, and steamworksjs.win32-x64-msvc.node, so no npm install is required for dependencies to use the module in your project.
  • Rebuild Support: Includes source files (src, Cargo.toml, build.js, sdk/redistributable_bin) for users who want to rebuild the module using npm run build, though this is optional as pre-built binaries are provided.
  • Steam Overlay Support: Retains electronEnableSteamOverlay for potential future use, though not currently recommended due to known issues (not enabled by default in example usage).
  • Full Steamworks API: Provides access to all steamworks.js features, including achievements, matchmaking, networking, and more, as detailed in the steamworks.js documentation.

Installation

The module includes all required files for immediate use on Windows x64. No additional npm install is needed to use the module, as it includes pre-built binaries. The pre-built dist\win64 files (dist\win64\steam_api64.dll, dist\win64\steam_api64.lib, dist\win64\steamworksjs.win32-x64-msvc.node) ensure the module works immediately on Windows x64 without additional installations for runtime use. Build is also not needed.

To install in your project:

npm install steamworkswinx64-withlogs

Usage


const steamworks = require('steamworkswinx64-withlogs');

// Initialize Steamworks with your App ID
const steam = steamworks.init(XXXXXXX); // Replace with your Steam App ID

// Example: Unlock an achievement
steam.achievement.activate('ACH_TEST');
console.log('Activated achievement: ACH_TEST');
console.log('Achievement ACH_TEST status:', steam.achievement.isActivated('ACH_TEST') ? 'Unlocked' : 'Locked');

// Note: Avoid calling steamworks.electronEnableSteamOverlay() until overlay issues are resolved