deployready 0.1.0 → 0.1.1

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,31 +1,31 @@
1
1
  # DeployReady
2
2
 
3
- > Local-first, AI-optional production-readiness scanner for your app. It runs 30+ structured tests against your code and your running localhost app, then **optionally** sends only the structured findings report — never your source code — to an AI model for deeper analysis.
3
+ > Local-first, AI-optional production-readiness scanner. It runs 30+ structured tests against your code **and** your running localhost app, gives you a 0–100 readiness score, and **optionally** sends only the structured findings report — never your source code — to an AI model for deeper analysis.
4
4
 
5
- ```
5
+ ```bash
6
6
  deployready analyze ./my-app
7
7
  ```
8
8
 
9
- > 📋 **See [STATUS.md](STATUS.md)** for the full usage guide, step-by-step npm publishing instructions, and an honest, always-current breakdown of what works today vs. what's still to be built.
10
-
11
- ## Why
9
+ ## Install
12
10
 
13
- Research in 2025–2026 found that **~91.5% of "vibe-coded" (AI-generated) apps ship with vulnerabilities**, only **~55%** of AI codegen tasks produce secure code, **86%** fail to defend against XSS, and AI-assisted commits leak secrets at roughly **2× the human baseline**. DeployReady catches those exact failure modes before you deploy.
11
+ **Global install** (recommended for repeated use):
14
12
 
15
- - **Other tools:** send your whole repo to an AI. Expensive, slow, privacy risk.
16
- - **DeployReady:** run the tests locally first. Send only structured findings to AI (if you want). Expert analysis without the token waste — and it works with no AI at all.
13
+ ```bash
14
+ npm install -g deployready
15
+ deployready ./my-app
16
+ ```
17
17
 
18
- ## Install
18
+ **Or run without installing** (one-off / try it out):
19
19
 
20
20
  ```bash
21
- npm install -g deployready
21
+ npx deployready ./my-app
22
22
  ```
23
23
 
24
- ## Usage
24
+ Requires Node.js >= 18.
25
25
 
26
- ### Interactive session (default)
26
+ ## Quick start
27
27
 
28
- Run `deployready` in your project to open a persistent session. You're greeted with an animated welcome and a **guided menu** — no need to know any commands; just pick a number. It stays open and you drive it one step at a time until you `exit`:
28
+ Run `deployready` inside your project to open an interactive, guided session — no commands to memorize, just pick a number:
29
29
 
30
30
  ```bash
31
31
  deployready ./my-app # or just: deployready
@@ -40,79 +40,106 @@ deployready ./my-app # or just: deployready
40
40
  5 Exit
41
41
  ```
42
42
 
43
- After any action it suggests your next step (e.g. “type `fix 1` to fix the top issue”). Type `menu` anytime to bring the guide back. Power users can ignore the menu and type commands directly:
43
+ After each action it suggests your next step (e.g. “type `fix 1` to fix the top issue”). Type `menu` anytime to bring the guide back.
44
+
45
+ ## Interactive commands
46
+
47
+ Once a session is open, you can drive it directly:
44
48
 
45
49
  ```
46
- deployready › scan # parse → live tests → optional AI
50
+ deployready › scan # full pipeline: parse → live tests → optional AI
47
51
  deployready › issues # list findings, numbered
48
- deployready › show 3 # full detail of a finding
49
- deployready › fix 3 # interactive fix: auto-fix, AI-proposed diff, or guidance
52
+ deployready › show 3 # full detail of finding #3
53
+ deployready › fix 3 # auto-fix, or an AI-proposed diff you approve (backup created)
54
+ deployready › verify 3 # re-run the checks to confirm a fix worked
50
55
  deployready › done 3 # mark fixed (score updates live)
51
- deployready › deploy aws # deployment walkthrough for your stack
52
- deployready › export # write deployready-report.md
56
+ deployready › open # open the HTML dashboard in your browser
53
57
  deployready › exit
54
58
  ```
55
59
 
56
60
  | Command | What it does |
57
61
  |---|---|
58
- | `scan` / `parse` / `dynamic` / `ai` | run the whole pipeline, or one step at a time |
59
- | `issues [crit\|warn\|info]` · `show <n>` | list findings (filterable) · show one in detail |
60
- | `fix <n>` | auto-fix where safe; else an AI-proposed diff you approve (creates a backup); else guidance |
61
- | `done <n>` · `ignore <n>` | mark fixed/ignored — the score recomputes immediately |
62
- | `score` · `status` · `deploy [aws\|do]` · `export` · `config` · `help` · `exit` | session utilities |
63
-
64
- ### One-shot (CI / scripting)
62
+ | `scan` · `parse` · `dynamic` · `ai` | run the whole pipeline, or one step at a time |
63
+ | `issues [crit\|warn\|info]` · `show <n>` | list findings (optionally filtered) · show one in detail |
64
+ | `fix <n>` | auto-fix where safe; otherwise an AI-proposed diff you approve (creates a backup); otherwise guidance |
65
+ | `verify <n>` | re-run the relevant checks to confirm a fix actually resolved the issue |
66
+ | `done <n>` · `ignore <n>` | mark fixed / ignored — the score recomputes immediately |
67
+ | `score` · `status` | show the current readiness score / session state |
68
+ | `deploy [aws\|do]` | deployment walkthrough for your stack |
69
+ | `export` · `open` | write `deployready-report.md` · open the HTML dashboard |
70
+ | `config` · `help` · `menu` · `clear` · `exit` | session utilities |
71
+
72
+ ## One-shot (CI / scripting)
65
73
 
66
74
  ```bash
67
- deployready init # first-time setup (pick model, store key)
68
- deployready analyze ./my-app # single non-interactive scan, prints results
69
- deployready analyze . --no-ai --no-dynamic # static only, fully offline
70
- deployready report ./my-app # scan and export markdown
71
- deployready analyze . --no-ai --no-dynamic --fail-on critical # CI gate: exit 2 on any critical
75
+ deployready init # first-time setup (pick model, store key)
76
+ deployready analyze ./my-app # single non-interactive scan, prints results
77
+ deployready analyze . --no-ai --no-dynamic # static only, fully offline
78
+ deployready report ./my-app # scan and export the markdown report
79
+ deployready config # show the active config (secrets never printed)
72
80
  ```
73
81
 
74
- One-shot flags: `-y/--yes` (auto-approve prompts), `--aggressive` (rate-limit burst), `--export` (markdown), `--html` + `--open` (HTML dashboard, opened in your browser), `--json` (machine-readable output), `--fail-on <critical|warning|info|none>` (CI exit code), `-v/--verbose`.
82
+ **Flags for `analyze`:**
83
+
84
+ | Flag | Effect |
85
+ |---|---|
86
+ | `-y, --yes` | auto-approve all prompts (non-interactive) |
87
+ | `--no-dynamic` | skip live localhost testing |
88
+ | `--no-ai` | skip AI analysis (local results only) |
89
+ | `--aggressive` | enable aggressive tests (rate-limit burst) |
90
+ | `--export` | write `deployready-report.md` |
91
+ | `--html` / `--open` | write an HTML dashboard / and open it in your browser |
92
+ | `--json` | print a machine-readable JSON report (implies `--yes`) |
93
+ | `--fail-on <severity>` | exit non-zero if findings at/above `critical \| warning \| info \| none` exist |
94
+ | `-v, --verbose` | verbose debug output |
95
+
96
+ **CI gate:** exit codes are `0` (clean), `2` (gate failed), `1` (tool error).
97
+
98
+ ```bash
99
+ deployready analyze . --no-ai --no-dynamic --fail-on critical
100
+ ```
75
101
 
76
- **CI:** exit codes are `0` (clean), `2` (gate failed), `1` (tool error). A ready-to-copy GitHub Action is in [`docs/github-action-example.yml`](docs/github-action-example.yml).
102
+ A ready-to-copy GitHub Action is in [`docs/github-action-example.yml`](docs/github-action-example.yml).
77
103
 
78
- ## Features
104
+ ## What it checks
79
105
 
80
- - **Static analysis** — Babel-based AST parsing (pure JS, no native build), dependency graph, stack detection (Express, Next.js, Fastify, NestJS, Koa, FastAPI, Flask, Django, Laravel).
81
- - **Secret & vulnerability scanning** — hardcoded credentials, `eval`/command/SQL injection, XSS sinks, weak crypto, insecure randomness, disabled TLS verification, committed `.env`, log injection — each mapped to **OWASP Top 10 (2025)** and **CWE**.
82
- - **Live dynamic testing** — detects your running localhost app and checks for auth bypass, exposed admin routes, secrets in responses, wildcard CORS, missing security headers, missing rate limiting, slow endpoints, missing cache headers, version-banner and stack-trace leaks.
83
- - **Production-readiness score (0–100)** with critical/warning/info breakdown.
84
- - **AI-optional** — works with no key; or send the structured report to Claude, OpenAI, or local Ollama.
85
- - **Markdown export** to share with your team.
106
+ - **Static analysis** — Babel-based AST parsing (pure JS, no native build) for JavaScript/TypeScript, plus Python. Dependency graph, route-mount resolution across files, and stack detection (Express, Next.js, Fastify, NestJS, Koa, FastAPI, Flask, Django, Laravel).
107
+ - **Secrets & vulnerabilities** — hardcoded credentials, `eval`/command/SQL injection, XSS sinks, weak crypto, insecure randomness, disabled TLS verification, committed `.env`, log injection — each mapped to **OWASP Top 10 (2025)** and **CWE**.
108
+ - **Live dynamic testing** — detects your running localhost app and checks for auth bypass, exposed admin routes, secrets in responses, wildcard CORS, missing security headers, missing rate limiting, slow endpoints, missing cache headers, and version/stack-trace leaks.
109
+ - **Readiness score (0–100)** with a critical / warning / info breakdown.
110
+ - **Reports** — terminal output, markdown export, and an HTML dashboard.
86
111
 
87
- ## How It Works
112
+ ## How it works
88
113
 
89
114
  ```
90
115
  parse → static scan → (you approve) live localhost tests → aggregate + score
91
116
  → (you approve) AI analysis of findings JSON → terminal report → export
92
117
  ```
93
118
 
94
- Only the **structured findings JSON** is ever sent to an AI — and only after you approve, with all secrets redacted first. Ollama runs fully offline.
119
+ Only the **structured findings JSON** is ever sent to an AI — and only after you approve, with all secrets redacted first. With Ollama, nothing leaves your machine at all.
120
+
121
+ ## AI models (optional)
95
122
 
96
- ## Supported AI Models
123
+ DeployReady works fully offline with no AI. To enable deeper analysis, configure one via `deployready init`:
97
124
 
98
125
  | Model | Notes |
99
126
  |---|---|
100
127
  | Claude (Anthropic) | Set `ANTHROPIC_API_KEY` or store via `init`. Default: `claude-sonnet-4-6`. |
101
128
  | OpenAI | Set `OPENAI_API_KEY` or store via `init`. |
102
- | Ollama (local) | Fully offline, no key, nothing leaves your machine. |
129
+ | Ollama (local) | Fully offline, no key — nothing leaves your machine. |
103
130
 
104
- ## Security & Privacy
131
+ ## Security & privacy
105
132
 
106
- DeployReady is itself built to a high security bar — it reads your code, probes your ports, and holds your keys:
133
+ DeployReady reads your code, probes your ports, and holds your keys — so it's built to a high bar:
107
134
 
108
- - API keys are read from environment variables first and **never logged**. The on-disk config is written with `0600` permissions.
109
- - All output and any AI payload pass through a central **secret redactor**.
135
+ - API keys are read from environment variables first and **never logged**; the on-disk config is written with `0600` permissions.
136
+ - All terminal output and any AI payload pass through a central **secret redactor**.
110
137
  - Dynamic testing is **loopback-only** and **GET-only** by default; aggressive tests require explicit consent.
111
- - File scanning is confined to the project root with symlink/traversal protection and size caps.
138
+ - File scanning is confined to the project root, with symlink/traversal protection and size caps.
112
139
 
113
140
  ## Configuration
114
141
 
115
- `~/.deployready/config.json` — see [`docs/sample-config.json`](docs/sample-config.json). Prefer env vars for keys.
142
+ Config lives at `~/.deployready/config.json` — see [`docs/sample-config.json`](docs/sample-config.json). Prefer environment variables for API keys.
116
143
 
117
144
  ## Development
118
145
 
@@ -125,12 +152,8 @@ npm run dev # run from source via tsx
125
152
 
126
153
  ## Contributing
127
154
 
128
- Issues and PRs welcome. Each module has a single responsibility and a documented interface contract; extend by adding new files rather than modifying existing modules (see the architecture spec).
129
-
130
- ## Roadmap (Phase 1.5 / 2)
131
-
132
- Agentic fix application (propose → diff → approve → apply → verify), interactive deployment guides, real-time checklist sidebar, MCP database connectors, GitHub Action, and a compliance module.
155
+ Issues and PRs welcome — see [CONTRIBUTING.md](CONTRIBUTING.md).
133
156
 
134
157
  ---
135
158
 
136
- _Belal · Belsoft Solutions · 2026 · MIT License_
159
+ _Belal · Belsoft Solutions · MIT License_
@@ -13,7 +13,7 @@ const ConfigManager_1 = require("../config/ConfigManager");
13
13
  const ExportManager_1 = require("../ui/ExportManager");
14
14
  const CiGate_1 = require("../core/CiGate");
15
15
  const logger_1 = require("../utils/logger");
16
- const VERSION = '0.1.0';
16
+ const VERSION = '0.1.1';
17
17
  function buildProgram() {
18
18
  const program = new commander_1.Command();
19
19
  program
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deployready",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Local-first, AI-optional production-readiness scanner for your app. Finds security, performance, and architecture issues before you deploy.",
5
5
  "license": "MIT",
6
6
  "author": "Belal · Belsoft Solutions",