geo-checker 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 BaRam-OSS
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,89 @@
1
+ # geo-checker
2
+
3
+ > Lighthouse-style auditor for **Generative Engine Optimization (GEO)**. Checks how ready your site is to be cited by ChatGPT, Claude, Gemini, and Perplexity.
4
+
5
+ [![npm](https://img.shields.io/npm/v/geo-checker.svg)](https://www.npmjs.com/package/geo-checker)
6
+ [![license](https://img.shields.io/npm/l/geo-checker.svg)](./LICENSE)
7
+ [![CI](https://github.com/BaRam-OSS/geo-checker/actions/workflows/ci.yml/badge.svg)](https://github.com/BaRam-OSS/geo-checker/actions/workflows/ci.yml)
8
+
9
+ ---
10
+
11
+ ## Why
12
+
13
+ SEO tools check whether Google can rank your page. `geo-checker` checks whether **AI search engines** can find, understand, and cite it. It inspects 24 on-page signals across four categories and gives you a 0–100 score per category, plus concrete fix suggestions.
14
+
15
+ ## Install
16
+
17
+ ```sh
18
+ # One-off
19
+ npx geo-checker https://example.com
20
+
21
+ # Or as a dependency
22
+ npm install --save-dev geo-checker
23
+ ```
24
+
25
+ Node.js 20.18.1 or later required.
26
+
27
+ ## Usage — CLI
28
+
29
+ ```sh
30
+ geo-checker https://example.com # pretty output
31
+ geo-checker https://example.com --json > report.json # JSON output
32
+ geo-checker https://example.com --render # use headless browser (SPA sites)
33
+ geo-checker https://example.com --category crawler # run only one category
34
+ geo-checker https://example.com --only sd.required-fields
35
+ geo-checker https://example.com --fail-on warn # CI mode (exit 1 on warn/fail)
36
+ ```
37
+
38
+ Exit codes: `0` success · `1` policy failure · `2` runtime error.
39
+
40
+ ## Usage — Programmatic
41
+
42
+ ```ts
43
+ import { audit } from 'geo-checker';
44
+
45
+ const report = await audit('https://example.com', { render: false });
46
+ console.log(report.overall); // 78
47
+ console.log(report.categories.crawler); // { score: 92, results: [...] }
48
+ ```
49
+
50
+ ## What gets checked
51
+
52
+ | Category | What it covers | Weight |
53
+ |---|---|---:|
54
+ | **AI Crawler Access** | HTTPS, robots.txt, AI bot allow-lists (GPTBot, Google-Extended, ClaudeBot, PerplexityBot, CCBot, Amazonbot), `llms.txt`, sitemap.xml | 25 |
55
+ | **Structured Data** | JSON-LD presence & validity, schema.org types (Article, FAQPage, HowTo, Organization, BreadcrumbList, Product), required fields | 30 |
56
+ | **Citation Signals** | title, meta description, canonical, Open Graph, Twitter Card, author, publish/modified dates, `lang` | 25 |
57
+ | **Content Structure** | single H1, heading hierarchy, image alt coverage, TL;DR/FAQ blocks, word count | 20 |
58
+
59
+ See [`docs/rules.md`](./docs/rules.md) for every individual rule and how to fix a failure.
60
+
61
+ ## Extensibility
62
+
63
+ Add a custom rule:
64
+
65
+ ```ts
66
+ import { audit, defineRule } from 'geo-checker';
67
+
68
+ const hasJsonFeed = defineRule({
69
+ id: 'custom.has-json-feed',
70
+ category: 'crawler',
71
+ weight: 2,
72
+ title: 'JSON Feed present',
73
+ description: 'Site should expose a JSON Feed at /feed.json',
74
+ async run(ctx) {
75
+ // ...your logic
76
+ return { status: 'pass', score: 1, rationale: 'JSON feed found' };
77
+ },
78
+ });
79
+
80
+ await audit('https://example.com', { extraRules: [hasJsonFeed] });
81
+ ```
82
+
83
+ ## License
84
+
85
+ MIT © BaRam-OSS. See [LICENSE](./LICENSE).
86
+
87
+ ## Contributing
88
+
89
+ PRs welcome. See [CONTRIBUTING.md](./CONTRIBUTING.md).