@painsel/add-no-ai-badge 1.0.0 → 1.0.2

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 +41 -0
  2. package/cli.js +1 -1
  3. package/package.json +11 -2
package/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # @painsel/add-no-ai-badge
2
+
3
+ A simple CLI utility to automatically inject the **No-AI Badge** into your website.
4
+
5
+ The No-AI Badge is a highly-secured, self-destructing web widget designed to protect your art and digital assets from unauthorized AI scraping. It features DevTools protection, print protection, invisible steganographic watermarking, and dynamic anti-scraper physics.
6
+
7
+ ## Usage
8
+
9
+ You don't even need to install this package permanently! Simply run it in your project's root directory (where your `index.html` is located) using `npx`:
10
+
11
+ ```bash
12
+ npx @painsel/add-no-ai-badge
13
+ ```
14
+
15
+ ### Interactive Prompts
16
+ The CLI will ask you two simple questions:
17
+ 1. **Position**: Where do you want the badge to appear on the screen? (`bottom-right`, `bottom-left`, `top-right`, `top-left`)
18
+ 2. **Physics**: Do you want to enable the anti-scraper runaway physics? (If enabled, the badge will teleport away when hovered over to frustrate manual scrapers).
19
+
20
+ Once you answer, the CLI will automatically parse your `index.html` and safely inject the necessary `<script>` tag right before the closing `</body>` tag.
21
+
22
+ ## Example Output
23
+ ```text
24
+ 🛡️ Welcome to the No-AI Badge CLI Setup!
25
+ -------------------------------------------
26
+ What position do you want the badge? (bottom-right/bottom-left/top-right/top-left) [bottom-right]: bottom-left
27
+ Enable anti-scraper runaway physics? (y/N) [N]: y
28
+ ✅ Successfully injected the No-AI Badge into index.html!
29
+ ```
30
+
31
+ ## Manual Installation
32
+ If you prefer to add the script tag manually, you can simply add the following to your HTML:
33
+ ```html
34
+ <script src="https://random-stuff.britishdex.workers.dev/no-ai-badge-embed/embed-badge.js"
35
+ data-position="bottom-right"
36
+ data-width="120">
37
+ </script>
38
+ ```
39
+
40
+ ## Learn More
41
+ For a full list of configuration options, check out the [main repository documentation](https://github.com/doti5000/random-stuff/tree/main/no-ai-badge-embed).
package/cli.js CHANGED
@@ -9,7 +9,7 @@ const rl = readline.createInterface({
9
9
  output: process.stdout
10
10
  });
11
11
 
12
- const SCRIPT_URL = 'https://random-stuff.britishdex.workers.dev/no-ai-badge-embed/embed-badge.js';
12
+ const SCRIPT_URL = 'https://random-stuff-swart-three.vercel.app/no-ai-badge-embed/embed-badge.js';
13
13
 
14
14
  console.log('🛡️ Welcome to the No-AI Badge CLI Setup!');
15
15
  console.log('-------------------------------------------');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@painsel/add-no-ai-badge",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "CLI tool to automatically inject the No-AI Badge into your website",
5
5
  "main": "cli.js",
6
6
  "bin": {
@@ -15,5 +15,14 @@
15
15
  "anti-scraping"
16
16
  ],
17
17
  "author": "painsel",
18
- "license": "ISC"
18
+ "license": "ISC",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/doti5000/random-stuff.git",
22
+ "directory": "packages/cli"
23
+ },
24
+ "bugs": {
25
+ "url": "https://github.com/doti5000/random-stuff/issues"
26
+ },
27
+ "homepage": "https://github.com/doti5000/random-stuff/tree/main/no-ai-badge-embed"
19
28
  }