@eightmedia/flightcheck 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.
Files changed (3) hide show
  1. package/CHANGELOG.md +2 -1
  2. package/README.md +67 -21
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Changelog
2
2
 
3
- ## [0.1.0] — 2026-10-27
3
+ ## [1.0.0] — 2026-10-27
4
4
 
5
5
  ### Added
6
6
 
@@ -9,6 +9,7 @@
9
9
  Markdown rendered from the same model
10
10
  - Crawl + Tier 1 checks: security headers, DNS, robots.txt, sitemap, agent readiness
11
11
  - CLI binaries: `flightcheck`, `flightcheck-analyze`
12
+ - README guidance for installing and running inside a Node.js project
12
13
 
13
14
  ### Changed
14
15
 
package/README.md CHANGED
@@ -12,18 +12,77 @@ mismatches, exposed secrets, and more. Every run produces:
12
12
 
13
13
  ## Install
14
14
 
15
+ In a Node.js project (recommended):
16
+
15
17
  ```bash
16
- pnpm add -g @eightmedia/flightcheck
17
- # or: npm install -g @eightmedia/flightcheck
18
+ npm install @eightmedia/flightcheck
19
+ # or: pnpm add @eightmedia/flightcheck
20
+ # or: yarn add @eightmedia/flightcheck
21
+ ```
22
+
23
+ Requires Node.js 22+. The package is ESM-only (`"type": "module"`).
24
+
25
+ ## Use in a Node project
26
+
27
+ ### CLI via npm scripts
28
+
29
+ Add scripts to your `package.json`:
30
+
31
+ ```json
32
+ {
33
+ "scripts": {
34
+ "flightcheck": "flightcheck",
35
+ "flightcheck:analyze": "flightcheck-analyze"
36
+ }
37
+ }
18
38
  ```
19
39
 
20
- Or run without installing:
40
+ Then:
21
41
 
22
42
  ```bash
23
- pnpm dlx @eightmedia/flightcheck https://example.com
24
- # or: npx @eightmedia/flightcheck https://example.com
43
+ npm run flightcheck -- https://example.com
44
+ npm run flightcheck:analyze -- ./flightcheck/20260618.1413-example.com-raw.json
45
+ ```
46
+
47
+ Or call the binaries directly after install:
48
+
49
+ ```bash
50
+ npx flightcheck https://example.com
51
+ npx flightcheck-analyze ./flightcheck/20260618.1413-example.com-raw.json
52
+ ```
53
+
54
+ Without adding it to a project:
55
+
56
+ ```bash
57
+ npx @eightmedia/flightcheck https://example.com
58
+ ```
59
+
60
+ ### Programmatic API
61
+
62
+ ```js
63
+ import { runChecks } from "@eightmedia/flightcheck";
64
+
65
+ const { outputs, results } = await runChecks({
66
+ startUrl: "https://example.com",
67
+ });
68
+
69
+ const report = outputs.analyze?.report;
70
+ console.log(report?.analysis.pagesAnalyzed, report?.findings.length);
71
+
72
+ // Write paths (when analyze ran):
73
+ console.log(outputs.analyze?.reportPath);
74
+ console.log(outputs.analyze?.reportJsonPath);
25
75
  ```
26
76
 
77
+ Lower-level entry points:
78
+
79
+ ```js
80
+ import { runCrawlCheck, runAnalyzeCheck } from "@eightmedia/flightcheck";
81
+ import { listChecks } from "@eightmedia/flightcheck/checks";
82
+ ```
83
+
84
+ See [docs/check-api.md](docs/check-api.md) for the modular check API.
85
+
27
86
  ## How it works
28
87
 
29
88
  1. **Crawl & checks** — pages are scanned and modular checks run (SEO, a11y, security,
@@ -45,8 +104,8 @@ See [docs/analyze.md](docs/analyze.md) for the report schema.
45
104
  ## Quick start
46
105
 
47
106
  ```bash
48
- pnpm add -D @eightmedia/flightcheck
49
- pnpm exec flightcheck https://example.com
107
+ npm install @eightmedia/flightcheck
108
+ npx flightcheck https://example.com
50
109
  ```
51
110
 
52
111
  This writes timestamped files in `./flightcheck/`, for example:
@@ -63,7 +122,7 @@ redirect domains. Use `--checks` for a subset, or `--json-only` for crawl JSON o
63
122
  Re-analyze an existing crawl without re-crawling:
64
123
 
65
124
  ```bash
66
- pnpm exec flightcheck-analyze ./flightcheck/20260618.1413-example.com-raw.json
125
+ npx flightcheck-analyze ./flightcheck/20260618.1413-example.com-raw.json
67
126
  ```
68
127
 
69
128
  ## Documentation
@@ -77,19 +136,6 @@ pnpm exec flightcheck-analyze ./flightcheck/20260618.1413-example.com-raw.json
77
136
  - [QC checks plan](docs/qc-checks-plan.md) — roadmap
78
137
  - [Docs index](docs/index.md) · [Changelog](CHANGELOG.md)
79
138
 
80
- ## Programmatic API
81
-
82
- ```typescript
83
- import { runChecks } from "@eightmedia/flightcheck";
84
-
85
- const { outputs } = await runChecks({
86
- startUrl: "https://example.com",
87
- });
88
-
89
- const report = outputs.analyze?.report;
90
- // report.analysis.stack, report.findings, …
91
- ```
92
-
93
139
  ## Development
94
140
 
95
141
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eightmedia/flightcheck",
3
- "version": "0.1.0",
3
+ "version": "1.0.0",
4
4
  "description": "Pre-launch website audit: crawl SEO/a11y/security checks and emit structured JSON + Markdown reports.",
5
5
  "license": "GPL-3.0",
6
6
  "type": "module",