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 +79 -56
- package/dist/cli/Commands.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
# DeployReady
|
|
2
2
|
|
|
3
|
-
> Local-first, AI-optional production-readiness scanner
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
## Why
|
|
9
|
+
## Install
|
|
12
10
|
|
|
13
|
-
|
|
11
|
+
**Global install** (recommended for repeated use):
|
|
14
12
|
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
```bash
|
|
14
|
+
npm install -g deployready
|
|
15
|
+
deployready ./my-app
|
|
16
|
+
```
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
**Or run without installing** (one-off / try it out):
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
|
|
21
|
+
npx deployready ./my-app
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
Requires Node.js >= 18.
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
## Quick start
|
|
27
27
|
|
|
28
|
-
Run `deployready`
|
|
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
|
|
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
|
|
49
|
-
deployready › fix 3 #
|
|
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 ›
|
|
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`
|
|
59
|
-
| `issues [crit\|warn\|info]` · `show <n>` | list findings (
|
|
60
|
-
| `fix <n>` | auto-fix where safe;
|
|
61
|
-
| `
|
|
62
|
-
| `
|
|
63
|
-
|
|
64
|
-
|
|
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
|
|
68
|
-
deployready analyze ./my-app
|
|
69
|
-
deployready analyze . --no-ai --no-dynamic
|
|
70
|
-
deployready report ./my-app
|
|
71
|
-
deployready
|
|
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
|
-
|
|
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
|
-
|
|
102
|
+
A ready-to-copy GitHub Action is in [`docs/github-action-example.yml`](docs/github-action-example.yml).
|
|
77
103
|
|
|
78
|
-
##
|
|
104
|
+
## What it checks
|
|
79
105
|
|
|
80
|
-
- **Static analysis** — Babel-based AST parsing (pure JS, no native build),
|
|
81
|
-
- **
|
|
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,
|
|
83
|
-
- **
|
|
84
|
-
- **
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
129
|
+
| Ollama (local) | Fully offline, no key — nothing leaves your machine. |
|
|
103
130
|
|
|
104
|
-
## Security &
|
|
131
|
+
## Security & privacy
|
|
105
132
|
|
|
106
|
-
DeployReady
|
|
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
|
|
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
|
|
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
|
|
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 ·
|
|
159
|
+
_Belal · Belsoft Solutions · MIT License_
|
package/dist/cli/Commands.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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",
|