@hagicode/steamworks.js 0.1.6-dev.13 → 0.1.6-dev.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,22 +2,28 @@
2
2
  [![npm](https://img.shields.io/npm/v/@hagicode/steamworks.js.svg)](https://npmjs.com/package/@hagicode/steamworks.js)
3
3
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
4
 
5
- # Steamworks.js
5
+ # Steamworks.js (HagiCode fork)
6
6
 
7
- A modern implementation of the Steamworks SDK for HTML/JS and NodeJS based applications.
7
+ Node.js and Electron bindings for the Steamworks SDK, maintained as a personal fork of [ceifa/steamworks.js](https://github.com/ceifa/steamworks.js).
8
8
 
9
- ## Why
9
+ Introduction, guides and agent skills: **https://steamworks.hagicode.com/**
10
10
 
11
- I used [greenworks](https://github.com/greenheartgames/greenworks) for a long time and it's great, but I gave up for the following reasons.
11
+ ## About this fork
12
12
 
13
- * It's not being maintained anymore.
14
- * It's not up to date.
15
- * It's not context-aware.
16
- * You have to build the binaries by yourself.
17
- * Don't have typescript definitions.
18
- * The API it's not trustful.
19
- * The API implement callbacks instead of return flags or promises.
20
- * I hate C++.
13
+ This project is a fork of the upstream [steamworks.js](https://github.com/ceifa/steamworks.js) (Node/Electron bindings) and, through the `vendor/steamworks-rs` submodule, of [steamworks-rs](https://github.com/Noxime/steamworks-rs) (the Rust bindings it is built on). The Rust side lives in [HagiCode-org/steamworks-rs](https://github.com/HagiCode-org/steamworks-rs).
14
+
15
+ It exists for my own development work, not as a general replacement for upstream. It is shaped around two needs:
16
+
17
+ * **Working well with coding agents.** The repository carries agent guidance (`AGENTS.md`), task-oriented skills for Steam Workshop work (`steamworks-js/` and the `steamworks-workshop-*` folders), and a documentation site built from this README and those skills.
18
+ * **Covering the Steamworks features my projects use.** Workshop publishing and updates (additional previews, preview-only and content-only updates, item dependencies, per-language titles and descriptions), plus friends, stats and leaderboards, networking sockets/messages/utils, the server browser, timeline, screenshots and Remote Play.
19
+
20
+ What that means in practice:
21
+
22
+ * The npm package is [`@hagicode/steamworks.js`](https://npmjs.com/package/@hagicode/steamworks.js), not the unscoped `steamworks.js`, and it is released on its own schedule.
23
+ * Changes follow what I need, so there is no promise of staying in step with upstream. If you want the general-purpose library, use upstream.
24
+ * Upstream's history is kept. All credit for the original design and implementation goes to the upstream authors, and the MIT license with the original copyright notice (Gabriel Francisco Dos Santos) is kept in [LICENSE](./LICENSE). The Steamworks SDK files bundled through `vendor/steamworks-rs` are not covered by that license and remain under Valve's terms.
25
+
26
+ Bug reports and pull requests are still welcome. See [CONTRIBUTING.md](./CONTRIBUTING.md).
21
27
 
22
28
  ## API
23
29
 
@@ -46,9 +52,11 @@ To use steamworks.js you don't have to build anything, just install it from npm:
46
52
  npm i @hagicode/steamworks.js
47
53
  ```
48
54
 
49
- ### Migration from `steamworks.js`
55
+ Guides and agent skills are on the documentation site at https://steamworks.hagicode.com/. To try the latest build from `main`, install the `dev` dist-tag: `npm i @hagicode/steamworks.js@dev`.
56
+
57
+ ### Migration from upstream `steamworks.js`
50
58
 
51
- If you were using the unscoped `steamworks.js` package, update your `package.json`:
59
+ If you were using the unscoped upstream `steamworks.js` package and want this fork instead, update your `package.json`:
52
60
 
53
61
  ```json
54
62
  {
@@ -86,7 +94,7 @@ For the production build, copy the relevant distro files from `sdk/redistributab
86
94
 
87
95
  ## How to build
88
96
 
89
- > You **only** need to build if you are going to change something on steamworks.js code, if you are looking to just consume the library or use it in your game, refer to the [installation section](#installation).
97
+ > You **only** need to build if you are going to change something on this fork's code. If you just want to use the library in your game, see the [installation section](#installation).
90
98
 
91
99
  Make sure you have the latest [node.js](https://nodejs.org/en/), [Rust](https://www.rust-lang.org/tools/install) and [Clang](https://rust-lang.github.io/rust-bindgen/requirements.html). We also need [Steam](https://store.steampowered.com/about/) installed and running.
92
100
 
@@ -108,7 +116,7 @@ git submodule update --init --recursive
108
116
 
109
117
  Install dependencies with `pnpm install` and then run `pnpm run build:debug` to build the library.
110
118
 
111
- There is no way to build for all targets easily. The good news is that you don't need to. You can develop and test on your current target, and open a PR. When the code is merged to main, a github action will build for all targets and publish a new version.
119
+ There is no easy way to build for all targets locally, and you do not need to. Develop and test on your current target. When the code is merged to `main`, a GitHub Action builds every target and publishes a `dev` build.
112
120
 
113
121
  ### Testing Electron
114
122
 
@@ -470,7 +478,7 @@ client.cloud.setSyncPlatforms('save.json', 0 /* SyncPlatform.None */)
470
478
 
471
479
  ## Release Process
472
480
 
473
- This project uses automated release management:
481
+ This fork has its own release line and publishes to npm as `@hagicode/steamworks.js`. It does not follow upstream's release numbers. Releases are automated:
474
482
 
475
483
  - **Dev builds**: Every push to the `main` branch publishes a build to the npm `dev` dist-tag for testing
476
484
  - **Release drafts**: Every push to `main` updates one draft GitHub release for the next `vX.Y.Z`, drafted by [hagi-release-drafter](https://github.com/HagiCode-org/hagi-release-drafter). It is never published automatically
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "bugs": {
15
15
  "url": "https://github.com/HagiCode-org/steamworks.js/issues"
16
16
  },
17
- "version": "0.1.6-dev.13",
17
+ "version": "0.1.6-dev.18",
18
18
  "main": "index.js",
19
19
  "types": "index.d.ts",
20
20
  "napi": {