@rasyid2567/urlscanner 0.1.0 → 1.0.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.
package/README.md CHANGED
@@ -1,6 +1,21 @@
1
1
  # URLScanner (`@rasyid2567/urlscanner`)
2
2
 
3
- Zero-setup local URL Scanner, OSINT Seed Pivoter, Layered Komdigi/ISP Block Validator, and Triage Workbench built with 100% pure Node.js & TypeScript (`node:sqlite`, Hono, React).
3
+ [![CI](https://github.com/Rasyid2567/urlscanner/actions/workflows/ci.yml/badge.svg)](https://github.com/Rasyid2567/urlscanner/actions/workflows/ci.yml)
4
+ [![npm version](https://img.shields.io/npm/v/%40rasyid2567%2Furlscanner?color=0d9488)](https://www.npmjs.com/package/@rasyid2567/urlscanner)
5
+ [![Node.js >= 22.5](https://img.shields.io/badge/node-%3E%3D22.5.0-0d9488)](https://nodejs.org/)
6
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
7
+
8
+ Zero-setup local **URL Scanner**, **1-Hop OSINT Seed Pivoter**, **Layered Block Validator**, and **Triage Workbench** built with 100% pure Node.js & TypeScript (`node:sqlite`, Hono, React 19, Vite, Tailwind CSS v4). Runs locally with Web UI, Interactive Terminal UI, and a cross-platform System Tray daemon.
9
+
10
+ ---
11
+
12
+ ## Screenshots
13
+
14
+ | Triage Queue (Light Mode) | Pivot & Import (Dark Mode) |
15
+ | --- | --- |
16
+ | ![Triage Queue Light Mode](docs/screenshots/triage-queue-light.png) | ![Pivot & Import Dark Mode](docs/screenshots/pivot-import-dark.png) |
17
+
18
+ ---
4
19
 
5
20
  ## Requirements
6
21
 
@@ -10,58 +25,99 @@ Zero-setup local URL Scanner, OSINT Seed Pivoter, Layered Komdigi/ISP Block Vali
10
25
 
11
26
  ```bash
12
27
  npx @rasyid2567/urlscanner
13
- # or install globally
28
+ ```
29
+
30
+ Or install globally:
31
+
32
+ ```bash
14
33
  npm install -g @rasyid2567/urlscanner
15
34
  urlscanner
16
35
  ```
17
36
 
18
- ## Features
37
+ Running `urlscanner` opens the **Choose Interface** launcher:
38
+ - **Web UI (Open in Browser)** — Opens the workbench at `http://localhost:3847`
39
+ - **Terminal UI (Interactive CLI)** — Keyboard-driven triage directly in your terminal
40
+ - **Hide to Tray (Background)** — Detaches to background with a native System Tray icon (**Open Dashboard** / **Quit**) on Linux, Windows & macOS
41
+
42
+ ---
43
+
44
+ ## Key Features
19
45
 
20
- - **Choose Interface Launcher:** Run `urlscanner` in your terminal to pick between:
21
- - **Web UI (Open in Browser):** Multi-language (`EN / ID / ES / JA`) Light & Dark Mode operational workbench at `http://localhost:3847`
22
- - **Terminal UI (Interactive CLI):** Fast keyboard-driven triage directly inside your terminal
23
- - **Run in Background (Daemon):** Detach server to background with `urlscanner status` and `urlscanner stop`
24
46
  - **1-Hop Seed Pivoting (OSINT):**
25
- - **CRT.sh Scraper** (Certificate Transparency logs)
26
- - **URLScan.io API v1 Search** (works out of the box without an API key; optional API key in Settings)
27
- - **HTML, Redirect & AMP Extractor** (normal browser UA, 301/302 + meta refresh + `amphtml`/`canonical` + outbound Login/Daftar/Link Alternatif extraction)
28
- - **1-Click Pivot** directly from any discovered domain row
29
- - **Bulk Import & URL Normalizer:** `tldts` eTLD+1 normalization with Private PSL (`*.pages.dev`, `*.blogspot.com`, `*.netlify.app`, etc. preserved uniquely) and strict `UNIQUE(normalized_domain)` deduplication.
30
- - **Layered Auto-Validator:** Parallel HTTP check, parking page detection, 3-layer ISP/TrustPositif Komdigi block detection (HTTP signature + configurable Indonesian DNS filter + 1-click TrustPositif blocklist sync), and safe Cloudflare challenge tagging (`cf_challenge` → *Manual Check (CF)*).
31
- - **Content Scorer (0–100):** Weighted scoring on `<title>`, meta description, headings, body text, domain patterns, and AMP/CTA signals, with editable keywords & blacklist domains in Settings.
32
- - **Triage Queue:** Status workflow (`new`, `claimed`, `submitted`, `valid`, `duplicate`, `rejected`), **1-Click Copy & Mark**, keyboard shortcuts (`j`/`k`/`c`/`o`/`s`/`v`/`d`/`r`/`Enter`), Detail Inspector Drawer, and TXT/CSV export.
47
+ - **CRT.sh Scraper** — Pulls related domains from Certificate Transparency logs
48
+ - **URLScan.io API v1 Search** — Searches indexed domains/titles/IPs (works without an API key; optional API key in Settings enables leading-wildcard searches)
49
+ - **HTML, Redirect & AMP Extractor** — Traces 301/302 redirects, `amphtml`/`canonical`, and outbound Login/Register/Alt links while stripping CDNs and static assets
50
+ - **1-Click Pivot** directly from any domain row or archive item
51
+ - **Bulk Import & PSL URL Normalizer:**
52
+ - `tldts` eTLD+1 normalization with `allowPrivateDomains: true` (`*.pages.dev`, `*.blogspot.com`, `*.netlify.app`, etc. remain separate)
53
+ - Strict `UNIQUE(normalized_domain)` deduplication and configurable domain blacklist
54
+ - **Layered Auto-Validator:**
55
+ - Parallel HTTP checks, domain parking detection, 3-layer ISP/TrustPositif block detection (HTTP signature + configurable Indonesian filter DNS resolver + 1-click TrustPositif blocklist sync), and safe Cloudflare challenge tagging (`cf_challenge` → *Manual Check (CF)*)
56
+ - **Content Scorer (0–100):**
57
+ - Weighted scoring across `<title>`, meta description, headings, body text, domain patterns, and AMP/CTA signals with editable keywords in Settings
58
+ - **Operational Web UI & Triage Workflow:**
59
+ - Multi-language (**EN / ID / ES / JA**), **Light & Dark Mode**, status workflow (`new`, `claimed`, `submitted`, `valid`, `duplicate`, `rejected`), **1-Click Copy & Mark**, Detail Inspector Drawer, Filtered Archive, and TXT/CSV export
60
+ - **Cross-Platform System Tray:**
61
+ - Native tray icon on **Linux (Wayland/X11)**, **Windows (10/11)**, and **macOS** with **Open Dashboard** and **Quit**, plus graceful headless fallback when `DISPLAY`/`WAYLAND_DISPLAY` is absent or `--no-tray` is passed
62
+
63
+ ---
64
+
65
+ ## CLI Usage & Flags
66
+
67
+ | Command / Flag | Description |
68
+ | --- | --- |
69
+ | `urlscanner` | Open the **Choose Interface** launcher (re-attaches cleanly if daemon is already running) |
70
+ | `urlscanner --web` | Launch server and open Web UI directly |
71
+ | `urlscanner --tui` | Launch Interactive Terminal UI directly |
72
+ | `urlscanner --no-menu --no-open` | Run headless HTTP/API server without interactive menu |
73
+ | `urlscanner --daemon` | Run background daemon with System Tray icon |
74
+ | `urlscanner --daemon --no-tray` | Run background daemon without System Tray icon |
75
+ | `urlscanner -p, --port <port>` | Custom HTTP port (default: `3847`) |
76
+ | `urlscanner --host <host>` | Bind host (default: `127.0.0.1`) |
77
+ | `urlscanner --data-dir <path>` | Custom SQLite storage directory (default: `~/.urlscanner`) |
78
+ | `urlscanner status` | Check background daemon PID, health, and data directory |
79
+ | `urlscanner stop` | Stop background daemon and remove tray icon |
80
+
81
+ ### Triage Keyboard Shortcuts (Web UI & TUI)
82
+
83
+ | Key | Action |
84
+ | --- | --- |
85
+ | `j` / `k` (or `↓` / `↑`) | Move row selection |
86
+ | `c` | Copy URL & mark **In Progress** |
87
+ | `o` | Open URL in new browser tab |
88
+ | `s` / `v` / `d` / `r` | Mark as **Submitted** / **Valid** / **Duplicate** / **Rejected** |
89
+ | `Enter` | Open Detail Inspector Drawer |
90
+ | `?` | Toggle shortcut bar |
91
+
92
+ ---
33
93
 
34
94
  ## Local Development
35
95
 
36
96
  ```bash
97
+ git clone https://github.com/Rasyid2567/urlscanner.git
98
+ cd urlscanner
37
99
  npm install
38
100
  npm run dev # Backend watch (:3847) + Vite dev server (:5173)
39
- npm test # Run Vitest unit & API integration tests
101
+ npm run typecheck # TypeScript check (tsc --noEmit)
102
+ npm test # Vitest unit & API integration tests
40
103
  npm run build # Build dist/cli.js + dist/web/
41
104
  ```
42
105
 
43
- Run the built CLI locally:
106
+ ---
44
107
 
45
- ```bash
46
- node dist/cli.js
47
- ```
108
+ ## Privacy, Security & Ethical Scope
48
109
 
49
- ## CLI Usage & Flags
110
+ - Binds to `127.0.0.1` by default and stores all data locally in SQLite (`~/.urlscanner/scanner.db`). No external telemetry.
111
+ - Uses standard HTTP/OSINT endpoints only; **never** attempts to bypass CAPTCHAs, proof-of-work gates, or anti-bot protections.
50
112
 
51
- ```bash
52
- urlscanner # Interactive "Choose Interface" launcher
53
- urlscanner --web # Launch server and open Web UI directly
54
- urlscanner --tui # Launch Interactive Terminal UI directly
55
- urlscanner --no-menu --no-open # Headless server mode
56
- urlscanner --port 8080 # Custom port (default: 3847)
57
- urlscanner --data-dir ./my-data # Custom SQLite storage directory (default: ~/.urlscanner)
58
- urlscanner status # Check background daemon status
59
- urlscanner stop # Stop background daemon
60
- ```
113
+ ---
61
114
 
62
- ## Publishing to npm
115
+ ## Contributing & Security
63
116
 
64
- ```bash
65
- npm login
66
- npm publish --access public
67
- ```
117
+ - Contributions are welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) and [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md).
118
+ - To report a security issue, see [SECURITY.md](SECURITY.md).
119
+ - Release history is tracked in [CHANGELOG.md](CHANGELOG.md).
120
+
121
+ ## License
122
+
123
+ [MIT](LICENSE) © 2026 Rasyid2567