@a83/orbiter-admin 0.3.48 → 0.3.49

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.
Files changed (3) hide show
  1. package/README.md +4 -3
  2. package/package.json +1 -1
  3. package/src/cli.js +14 -0
package/README.md CHANGED
@@ -76,9 +76,10 @@ Login: `admin` / `admin`
76
76
 
77
77
  | Variable | Required | Default | Description |
78
78
  |-----------------|----------|---------|-------------|
79
- | `ORBITER_POD` | **yes** | — | Absolute path to the `.pod` file |
80
- | `PORT` | no | `4322` | HTTP port |
81
- | `ADMIN_ORIGIN` | no | `*` | Allowed CORS origins (comma-separated) |
79
+ | `ORBITER_POD` | **yes** | — | Absolute path to the `.pod` file |
80
+ | `PORT` | no | `4322` | HTTP port |
81
+ | `ADMIN_ORIGIN` | no | `*` | Allowed CORS origins (comma-separated) |
82
+ | `ORBITER_NO_TELEMETRY` | no | — | Set to `1` to disable the anonymous startup ping (version + node + platform, no personal data) |
82
83
 
83
84
  ---
84
85
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a83/orbiter-admin",
3
- "version": "0.3.48",
3
+ "version": "0.3.49",
4
4
  "description": "Standalone admin server for Orbiter CMS",
5
5
  "type": "module",
6
6
  "main": "./src/server.js",
package/src/cli.js CHANGED
@@ -32,3 +32,17 @@ if (process.env.ORBITER_POD) {
32
32
  }
33
33
 
34
34
  await import('./server.js');
35
+
36
+ // Startup ping — counts active installs. Opt out: ORBITER_NO_TELEMETRY=1
37
+ if (!process.env.ORBITER_NO_TELEMETRY) {
38
+ const { version } = JSON.parse(
39
+ (await import('node:fs')).readFileSync(
40
+ new URL('../package.json', import.meta.url), 'utf8'
41
+ )
42
+ );
43
+ fetch('https://ping.orbiter.sh/ping', {
44
+ method: 'POST',
45
+ headers: { 'Content-Type': 'application/json' },
46
+ body: JSON.stringify({ version, node: process.version, platform: process.platform }),
47
+ }).catch(() => {});
48
+ }