pseolint 0.1.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 ouranos-labs
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 ADDED
@@ -0,0 +1,77 @@
1
+ # pseolint
2
+
3
+ > SpamBrain-proof your pSEO before you publish.
4
+
5
+ The only tool purpose-built for **programmatic SEO compliance**. Audits page *relationships*, not just pages. Detects the exact patterns Google's SpamBrain targets.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npx pseolint http://localhost:3000
11
+ ```
12
+
13
+ Or install globally:
14
+
15
+ ```bash
16
+ npm install -g pseolint
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ ```bash
22
+ # Audit your local dev server (recommended)
23
+ npx pseolint http://localhost:3000
24
+
25
+ # Audit a live site
26
+ npx pseolint https://yoursite.com
27
+
28
+ # Audit a build directory
29
+ npx pseolint ./out --threshold 40
30
+
31
+ # Save an HTML report
32
+ npx pseolint http://localhost:3000 --format html --output report.html
33
+ ```
34
+
35
+ ## Options
36
+
37
+ ```
38
+ -f, --format <type> console, json, markdown, html (default: "console")
39
+ -t, --threshold <n> Score threshold for CI exit code (default: 40)
40
+ -o, --output <file> Write report to file
41
+ --no-color Disable colored output
42
+ --concurrency <n> Max parallel HTTP fetches (default: 5)
43
+ --timeout <ms> Per-request timeout (default: 30000)
44
+ --sample-size <n> Audit a random subset of N pages
45
+ --ignore <patterns> Comma-separated glob patterns to exclude
46
+ --render Render pages in a browser before auditing
47
+ --browser-ws <url> CDP WebSocket endpoint for rendering
48
+ --no-crawl Disable crawl-based page discovery
49
+ ```
50
+
51
+ ## Configuration
52
+
53
+ Create `pseolint.config.ts` in your project root:
54
+
55
+ ```typescript
56
+ export default {
57
+ rules: {
58
+ nearDuplicateThreshold: 0.85,
59
+ thinContentMinWords: 500,
60
+ },
61
+ pageGroups: {
62
+ templates: {
63
+ match: '/templates/**',
64
+ rules: ['spam/*', 'content/*'],
65
+ },
66
+ },
67
+ ignore: ['/api/**', '/admin/**'],
68
+ };
69
+ ```
70
+
71
+ ## Documentation
72
+
73
+ See the full documentation at [github.com/ouranos-labs/pseolint](https://github.com/ouranos-labs/pseolint).
74
+
75
+ ## License
76
+
77
+ MIT
package/dist/cli.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export declare function runCli(args?: string[]): Promise<number>;
3
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAyCA,wBAAsB,MAAM,CAC1B,IAAI,GAAE,MAAM,EAA0B,GACrC,OAAO,CAAC,MAAM,CAAC,CA6FjB"}
package/dist/cli.js ADDED
@@ -0,0 +1,97 @@
1
+ #!/usr/bin/env node
2
+ import { Command } from "commander";
3
+ import { createRequire } from "node:module";
4
+ import { writeFile } from "node:fs/promises";
5
+ import { auditSource, formatConsole, formatJson, formatMarkdown, formatHtml, } from "@pseolint/core";
6
+ import { loadConfig, mergeOptions } from "./config.js";
7
+ const require = createRequire(import.meta.url);
8
+ const { version } = require("../package.json");
9
+ const formatters = {
10
+ console: formatConsole,
11
+ json: formatJson,
12
+ markdown: formatMarkdown,
13
+ html: formatHtml,
14
+ };
15
+ export async function runCli(args = process.argv.slice(2)) {
16
+ const program = new Command();
17
+ program
18
+ .name("pseolint")
19
+ .description("Programmatic SEO linter — audit sites for SpamBrain risk")
20
+ .version(version)
21
+ .argument("<source>", "Directory path or URL to audit")
22
+ .option("-f, --format <type>", "Output format: console, json, markdown, html", "console")
23
+ .option("-t, --threshold <n>", "SpamBrain Risk Score threshold for CI exit code", "40")
24
+ .option("-o, --output <file>", "Write report to file instead of stdout")
25
+ .option("--no-color", "Disable colored output")
26
+ .option("--concurrency <n>", "Max parallel HTTP fetches", "5")
27
+ .option("--timeout <ms>", "Per-request timeout in ms", "30000")
28
+ .option("--sample-size <n>", "Audit a random subset of N pages", "0")
29
+ .option("--ignore <patterns>", "Comma-separated glob patterns to exclude")
30
+ .option("--render", "Render pages in a browser before auditing")
31
+ .option("--browser-ws <url>", "CDP WebSocket endpoint for browser rendering")
32
+ .option("--no-crawl", "Disable crawl-based page discovery for URL sources");
33
+ program.parse(args, { from: "user" });
34
+ const opts = program.opts();
35
+ const source = program.args[0];
36
+ if (!source) {
37
+ program.help();
38
+ return 1;
39
+ }
40
+ const threshold = Number(opts.threshold);
41
+ if (Number.isNaN(threshold)) {
42
+ console.error(`Error: --threshold must be a number, got "${opts.threshold}"`);
43
+ return 1;
44
+ }
45
+ const format = opts.format;
46
+ if (!formatters[format]) {
47
+ console.error(`Error: unknown format "${format}". Choose from: console, json, markdown, html`);
48
+ return 1;
49
+ }
50
+ // Load config file and merge with CLI flags
51
+ const configFile = await loadConfig();
52
+ const cliFlags = {
53
+ concurrency: opts.concurrency !== "5" ? Number(opts.concurrency) : undefined,
54
+ timeout: opts.timeout !== "30000" ? Number(opts.timeout) : undefined,
55
+ sampleSize: opts.sampleSize !== "0" ? Number(opts.sampleSize) : undefined,
56
+ ignore: opts.ignore ? opts.ignore.split(",").map((s) => s.trim()) : undefined,
57
+ render: opts.render ? { browserWsEndpoint: opts.browserWs } : undefined,
58
+ crawlDiscovery: opts.crawl === false ? false : undefined,
59
+ };
60
+ const options = mergeOptions(configFile, cliFlags);
61
+ // Run audit
62
+ let summary;
63
+ try {
64
+ summary = await auditSource(source, options);
65
+ }
66
+ catch (err) {
67
+ const message = err instanceof Error ? err.message : String(err);
68
+ console.error(`Error: ${message}`);
69
+ return 1;
70
+ }
71
+ // Format output
72
+ const output = format === "console"
73
+ ? formatConsole(summary, { noColor: !opts.color })
74
+ : formatters[format](summary);
75
+ // Write or print
76
+ if (opts.output) {
77
+ const { dirname } = await import("node:path");
78
+ const { mkdir } = await import("node:fs/promises");
79
+ await mkdir(dirname(opts.output), { recursive: true });
80
+ await writeFile(opts.output, output, "utf-8");
81
+ console.log(`Report written to ${opts.output}`);
82
+ }
83
+ else {
84
+ console.log(output);
85
+ }
86
+ // Exit code based on threshold
87
+ return summary.score >= threshold ? 1 : 0;
88
+ }
89
+ // Direct execution
90
+ const scriptUrl = `file://${process.argv[1]?.replace(/\\/g, "/")}`;
91
+ if (import.meta.url === scriptUrl ||
92
+ import.meta.url === `file:///${process.argv[1]?.replace(/\\/g, "/")}`) {
93
+ runCli().then((code) => {
94
+ process.exit(code);
95
+ });
96
+ }
97
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,C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AAC;QAChB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,CAAC;QAC9C,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,MAAM,CAAC,kBAAkB,CAAC,CAAC;QACnD,MAAM,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QACvD,MAAM,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;QAC9C,OAAO,CAAC,GAAG,CAAC,qBAAqB,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAClD,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;IAED,+BAA+B;IAC/B,OAAO,OAAO,CAAC,KAAK,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC5C,CAAC;AAED,mBAAmB;AACnB,MAAM,SAAS,GAAG,UAAU,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,CAAC;AACnE,IACE,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,SAAS;IAC7B,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,WAAW,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,EACrE,CAAC;IACD,MAAM,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE;QACrB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrB,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { AuditOptions } from "@pseolint/core";
2
+ export declare function loadConfig(): Promise<AuditOptions>;
3
+ export interface CliFlags {
4
+ concurrency?: number;
5
+ timeout?: number;
6
+ sampleSize?: number;
7
+ ignore?: string[];
8
+ render?: {
9
+ browserWsEndpoint?: string;
10
+ };
11
+ crawlDiscovery?: boolean;
12
+ }
13
+ export declare function mergeOptions(configFile: AuditOptions, cliFlags: CliFlags): AuditOptions;
14
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAyCnD,wBAAsB,UAAU,IAAI,OAAO,CAAC,YAAY,CAAC,CAUxD;AAED,MAAM,WAAW,QAAQ;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE;QAAE,iBAAiB,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACxC,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAgB,YAAY,CAC1B,UAAU,EAAE,YAAY,EACxB,QAAQ,EAAE,QAAQ,GACjB,YAAY,CASd"}
package/dist/config.js ADDED
@@ -0,0 +1,65 @@
1
+ import { cosmiconfig } from "cosmiconfig";
2
+ import { z } from "zod";
3
+ const rulesSchema = z
4
+ .object({
5
+ stripUrlQuery: z.boolean().optional(),
6
+ stripWwwHost: z.boolean().optional(),
7
+ nearDuplicateThreshold: z.number().optional(),
8
+ entitySwapThreshold: z.number().optional(),
9
+ thinContentMinWords: z.number().optional(),
10
+ publicationVelocityMaxPerDay: z.number().optional(),
11
+ boilerplateMaxRatio: z.number().optional(),
12
+ templateDiversityMinUniqueRatio: z.number().optional(),
13
+ uniqueValueMinWords: z.number().optional(),
14
+ metaUniquenessMinJaccard: z.number().optional(),
15
+ linkDepthMaxClicks: z.number().optional(),
16
+ hubPagesMinSiblings: z.number().optional(),
17
+ hubPagesMaxSiblings: z.number().optional(),
18
+ titleOverlapThreshold: z.number().optional(),
19
+ keywordCollisionMinShared: z.number().optional(),
20
+ templateCoverageMinPages: z.number().optional(),
21
+ })
22
+ .optional();
23
+ const auditOptionsSchema = z.object({
24
+ rules: rulesSchema,
25
+ concurrency: z.number().optional(),
26
+ timeout: z.number().optional(),
27
+ sampleSize: z.number().optional(),
28
+ ignore: z.array(z.string()).optional(),
29
+ pageGroups: z.record(z.string(), z.object({
30
+ match: z.union([z.string(), z.array(z.string())]),
31
+ rules: z.array(z.string()).optional(),
32
+ overrides: z.record(z.string(), z.record(z.string(), z.unknown())).optional(),
33
+ })).optional(),
34
+ render: z.object({
35
+ browserWsEndpoint: z.string().optional(),
36
+ }).optional(),
37
+ crawlDiscovery: z.boolean().optional(),
38
+ templateGenerated: z.boolean().optional(),
39
+ });
40
+ export async function loadConfig() {
41
+ const explorer = cosmiconfig("pseolint");
42
+ const result = await explorer.search();
43
+ if (!result || result.isEmpty) {
44
+ return {};
45
+ }
46
+ const parsed = auditOptionsSchema.parse(result.config);
47
+ return parsed;
48
+ }
49
+ export function mergeOptions(configFile, cliFlags) {
50
+ const result = { ...configFile };
51
+ if (cliFlags.concurrency !== undefined)
52
+ result.concurrency = cliFlags.concurrency;
53
+ if (cliFlags.timeout !== undefined)
54
+ result.timeout = cliFlags.timeout;
55
+ if (cliFlags.sampleSize !== undefined)
56
+ result.sampleSize = cliFlags.sampleSize;
57
+ if (cliFlags.ignore !== undefined)
58
+ result.ignore = cliFlags.ignore;
59
+ if (cliFlags.render !== undefined)
60
+ result.render = cliFlags.render;
61
+ if (cliFlags.crawlDiscovery !== undefined)
62
+ result.crawlDiscovery = cliFlags.crawlDiscovery;
63
+ return result;
64
+ }
65
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,C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AAM,QAAQ,CAAC,MAAM,EAAE,CAAC;IAEvC,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QAC9B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,MAAM,GAAG,kBAAkB,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACvD,OAAO,MAAsB,CAAC;AAChC,CAAC;AAWD,MAAM,UAAU,YAAY,CAC1B,UAAwB,EACxB,QAAkB;IAElB,MAAM,MAAM,GAAG,EAAE,GAAG,UAAU,EAAE,CAAC;IACjC,IAAI,QAAQ,CAAC,WAAW,KAAK,SAAS;QAAE,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC,WAAW,CAAC;IAClF,IAAI,QAAQ,CAAC,OAAO,KAAK,SAAS;QAAE,MAAM,CAAC,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC;IACtE,IAAI,QAAQ,CAAC,UAAU,KAAK,SAAS;QAAE,MAAM,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,CAAC;IAC/E,IAAI,QAAQ,CAAC,MAAM,KAAK,SAAS;QAAE,MAAM,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;IACnE,IAAI,QAAQ,CAAC,MAAM,KAAK,SAAS;QAAE,MAAM,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;IACnE,IAAI,QAAQ,CAAC,cAAc,KAAK,SAAS;QAAE,MAAM,CAAC,cAAc,GAAG,QAAQ,CAAC,cAAc,CAAC;IAC3F,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { runCli } from "./cli.js";
2
+ export * from "@pseolint/core";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,cAAc,gBAAgB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export { runCli } from "./cli.js";
2
+ export * from "@pseolint/core";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,cAAc,gBAAgB,CAAC"}
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "pseolint",
3
+ "version": "0.1.0",
4
+ "description": "Programmatic SEO linter CLI — SpamBrain-proof your pSEO before you publish",
5
+ "license": "MIT",
6
+ "author": "Ouranos Labs <contact@ouranos-labs.dev>",
7
+ "homepage": "https://pseolint.dev",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/ouranos-labs/pseolint.git",
11
+ "directory": "packages/cli"
12
+ },
13
+ "keywords": ["seo", "pseo", "programmatic-seo", "spambrain", "lint", "cli"],
14
+ "type": "module",
15
+ "bin": {
16
+ "pseolint": "dist/cli.js"
17
+ },
18
+ "exports": {
19
+ ".": {
20
+ "import": "./dist/index.js",
21
+ "types": "./dist/index.d.ts"
22
+ }
23
+ },
24
+ "main": "dist/index.js",
25
+ "types": "dist/index.d.ts",
26
+ "engines": {
27
+ "node": ">=18"
28
+ },
29
+ "files": [
30
+ "dist"
31
+ ],
32
+ "scripts": {
33
+ "build": "tsc -p tsconfig.json",
34
+ "lint": "tsc --noEmit -p tsconfig.json",
35
+ "test": "vitest run --passWithNoTests",
36
+ "typecheck": "tsc --noEmit -p tsconfig.json"
37
+ },
38
+ "dependencies": {
39
+ "@pseolint/core": "workspace:*",
40
+ "commander": "^14.0.3",
41
+ "cosmiconfig": "^9.0.1",
42
+ "zod": "^4.3.6"
43
+ }
44
+ }