@rasyid2567/urlscanner 0.0.0-stage → 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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 rasyid2567
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,123 @@
1
- # Temporary Holding Version
1
+ # URLScanner (`@rasyid2567/urlscanner`)
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
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
+ ---
19
+
20
+ ## Requirements
21
+
22
+ - **Node.js >= 22.5.0** (uses built-in `node:sqlite`, zero native C++ build / `node-gyp`)
23
+
24
+ ## Quick Start
25
+
26
+ ```bash
27
+ npx @rasyid2567/urlscanner
28
+ ```
29
+
30
+ Or install globally:
31
+
32
+ ```bash
33
+ npm install -g @rasyid2567/urlscanner
34
+ urlscanner
35
+ ```
36
+
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
45
+
46
+ - **1-Hop Seed Pivoting (OSINT):**
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
+ ---
93
+
94
+ ## Local Development
95
+
96
+ ```bash
97
+ git clone https://github.com/Rasyid2567/urlscanner.git
98
+ cd urlscanner
99
+ npm install
100
+ npm run dev # Backend watch (:3847) + Vite dev server (:5173)
101
+ npm run typecheck # TypeScript check (tsc --noEmit)
102
+ npm test # Vitest unit & API integration tests
103
+ npm run build # Build dist/cli.js + dist/web/
104
+ ```
105
+
106
+ ---
107
+
108
+ ## Privacy, Security & Ethical Scope
109
+
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.
112
+
113
+ ---
114
+
115
+ ## Contributing & Security
116
+
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