pi-client 0.1.0

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 +29 -0
  2. package/cli.js +5 -0
  3. package/package.json +18 -0
package/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # pi-client
2
+
3
+ > **This is a namespace reservation package.** Install [`@marcfargas/pi-client`](https://www.npmjs.com/package/@marcfargas/pi-client) for the real package.
4
+
5
+ ## Why does this package exist?
6
+
7
+ This unscoped wrapper exists to prevent supply-chain attacks. Without it, a
8
+ malicious actor could publish a package named `pi-client` on npm. Anyone who
9
+ then ran `npx pi-client` without having installed the scoped package first
10
+ would unknowingly execute the attacker's code.
11
+
12
+ By holding this name, `npx pi-client` safely delegates to the real
13
+ `@marcfargas/pi-client` package.
14
+
15
+ ## Usage
16
+
17
+ ```bash
18
+ # These all work:
19
+ npx pi-client connect ws://localhost:3333
20
+ npx @marcfargas/pi-client connect ws://localhost:3333
21
+
22
+ # Or install globally:
23
+ npm install -g pi-client
24
+ pi-client connect ws://localhost:3333
25
+ ```
26
+
27
+ ## License
28
+
29
+ MIT
package/cli.js ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+ // Thin wrapper — delegates to @marcfargas/pi-client.
3
+ // This unscoped package exists to prevent supply-chain attacks via npm name
4
+ // squatting. The real implementation lives in @marcfargas/pi-client.
5
+ import("@marcfargas/pi-client/cli");
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "pi-client",
3
+ "version": "0.1.0",
4
+ "description": "Namespace reservation for @marcfargas/pi-client. This package exists solely to prevent supply-chain attacks via npm name squatting. Install @marcfargas/pi-client for the real package.",
5
+ "type": "module",
6
+ "bin": {
7
+ "pi-client": "./cli.js"
8
+ },
9
+ "dependencies": {
10
+ "@marcfargas/pi-client": "0.1.0"
11
+ },
12
+ "license": "MIT",
13
+ "author": "Marc Fargas",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/marcfargas/pi-server"
17
+ }
18
+ }