impact-compass 0.2.2 → 0.2.3

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
@@ -2,6 +2,11 @@
2
2
 
3
3
  *grab a compass before you sail soldier*
4
4
 
5
+ ```bash
6
+ npm i impact-compass
7
+ npx impact-compass idea.json output.json
8
+ ```
9
+
5
10
  A purely statistical, deterministic project idea validator and market research CLI.
6
11
 
7
12
  Impact Compass fetches keyword rankings and engagement signals from real sources like GitHub, npm, Reddit, Stack Exchange, Hacker News, Wikipedia, and the App Store. It checks the *hype* around your project before you waste six months, a billion tokens, and enough coffee to make your keyboard anxious.
@@ -59,11 +64,11 @@ The engine spits out a final score out of 100, along with a brutally honest inte
59
64
 
60
65
  ## Quickstart
61
66
 
62
- Install dependencies, then run an evaluation:
67
+ Install the published package, then run an evaluation:
63
68
 
64
69
  ```bash
65
- npm install
66
- npm run cli example-react.json output.json
70
+ npm i impact-compass
71
+ npx impact-compass idea.json output.json
67
72
  ```
68
73
 
69
74
  ### The Input Schema
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env node
2
+ /* eslint-disable @typescript-eslint/no-require-imports */
3
+ const { spawnSync } = require("node:child_process");
4
+ const path = require("node:path");
5
+
6
+ const tsxCli = require.resolve("tsx/cli");
7
+ const cliEntry = path.resolve(__dirname, "../src/cli.ts");
8
+ const result = spawnSync(process.execPath, [tsxCli, cliEntry, ...process.argv.slice(2)], {
9
+ stdio: "inherit",
10
+ });
11
+
12
+ if (result.error) {
13
+ console.error(result.error.message);
14
+ process.exit(1);
15
+ }
16
+
17
+ process.exit(result.status ?? 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impact-compass",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Deterministic market research CLI for startup idea validation, demand scoring, and competitive analysis.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -12,6 +12,9 @@
12
12
  "url": "https://github.com/adityachauhan0/impact-compass/issues"
13
13
  },
14
14
  "private": false,
15
+ "bin": {
16
+ "impact-compass": "./bin/impact-compass.js"
17
+ },
15
18
  "keywords": [
16
19
  "market-research",
17
20
  "idea-validation",
@@ -40,6 +43,7 @@
40
43
  "stackexchange"
41
44
  ],
42
45
  "files": [
46
+ "bin/",
43
47
  "src/",
44
48
  "DOCUMENTATION.md",
45
49
  "SKILLS.md",
@@ -59,7 +63,8 @@
59
63
  "lucide-react": "^1.16.0",
60
64
  "next": "16.2.6",
61
65
  "react": "19.2.4",
62
- "react-dom": "19.2.4"
66
+ "react-dom": "19.2.4",
67
+ "tsx": "^4.22.3"
63
68
  },
64
69
  "devDependencies": {
65
70
  "@tailwindcss/postcss": "^4",
package/src/cli.ts CHANGED
@@ -59,7 +59,7 @@ function wrapText(text: string, width: number): string[] {
59
59
  async function main() {
60
60
  const args = process.argv.slice(2);
61
61
  if (args.length < 2) {
62
- console.error(`Usage: npm run cli <input.json> <output.json>`);
62
+ console.error(`Usage: impact-compass <input.json> <output.json>`);
63
63
  process.exit(1);
64
64
  }
65
65