domain-hound 0.1.8 → 0.1.9
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/.agents/plugins/marketplace.json +1 -1
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +43 -17
- package/clis/domain-check/company-search.mjs +1 -0
- package/clis/domain-check/google-play.mjs +11 -48
- package/clis/domain-check/google-search.mjs +3 -2
- package/clis/domain-check/handles.mjs +235 -106
- package/clis/domain-check/index.mjs +21 -6
- package/clis/domain-check/name-score.mjs +348 -0
- package/clis/domain-check/name-search.mjs +2 -4
- package/clis/domain-check/naming-method.mjs +37 -8
- package/clis/domain-check/price-catalog.mjs +12 -12
- package/clis/domain-check/public-name-checks.mjs +275 -0
- package/clis/domain-check/score-log.mjs +54 -0
- package/clis/domain-check/triage-sources.mjs +4 -1
- package/clis/domain-check/triage.mjs +109 -53
- package/clis/domain-check/youtube-handle.mjs +18 -0
- package/display.mjs +21 -17
- package/dossier.mjs +1 -1
- package/hosted-results.mjs +157 -0
- package/hosted.mjs +164 -0
- package/package.json +8 -1
- package/plugin.json +1 -1
- package/results-style.mjs +3 -0
- package/results.mjs +111 -44
- package/server.json +2 -2
- package/server.mjs +190 -17
- package/share.mjs +15 -5
- package/site/r/share-format.mjs +16 -5
- package/skills/naming/SKILL.md +76 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "domain-hound",
|
|
3
3
|
"displayName": "Domain Hound",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.9",
|
|
5
5
|
"description": "Domains for agents. One MCP for everything domains: find, check, buy, set up, watch, move, renew, keep track.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Lars Hvinden"
|
package/README.md
CHANGED
|
@@ -47,19 +47,30 @@ Then ask, for example: “Is lanternbay.com available?”, “Find a name for my
|
|
|
47
47
|
|
|
48
48
|
## Find and check
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
The
|
|
50
|
+
The package uses the same hosted search as [domainhound.dev](https://domainhound.dev). `check_domains` compares ten
|
|
51
|
+
endings by default: .com, .ai, .io, .dev, .co, .so, .sh, .inc, .tech and .app. A typed domain checks that exact ending.
|
|
52
|
+
An affordable .inc result appears in a bare-name search only after the registry confirms availability.
|
|
53
|
+
|
|
54
|
+
Each available domain shows the listed shops, first-year price, renewal and three-year cost, plus the cheapest shop
|
|
55
|
+
over three years. The Hound picks the highest-ranked available ending within $60 over three years when one qualifies.
|
|
56
|
+
The results put exact live US trademark matches first, followed by the domains, App Store, Google Play and public
|
|
57
|
+
handle checks. The package retries unknown public profile and Google Play results from your device. LinkedIn and
|
|
58
|
+
Reddit use the Wayback Machine CDX index, with the latest Common Crawl index as a fallback when Wayback cannot answer.
|
|
59
|
+
A capture includes its year. A successful empty archive search returns `not-seen`. Google Play matches a title or
|
|
60
|
+
a title starting with the name followed by a non-letter, ignoring case. Set `DOMAIN_HOUND_EMBED_CHECKS=off` for search
|
|
61
|
+
or profile links only on TikTok, Instagram, X, Threads, Facebook, LinkedIn, Reddit, Twitch and Google Play.
|
|
62
|
+
The package also tries Apple from your device when the hosted App Store lookup is rate-limited.
|
|
63
|
+
|
|
64
|
+
Pass `idea` to `triage_names` to generate names on the same service. The results page updates as the checks finish.
|
|
65
|
+
Pass `names` to screen names you already have. For a second generation round, pass the same `idea` with the `wanted`
|
|
66
|
+
and `avoid` names and the next `round` number.
|
|
67
|
+
|
|
68
|
+
Set `DOMAIN_HOUND_API_URL` to use a different HTTPS API origin or a loopback HTTP origin for development. The package
|
|
69
|
+
uses local registry and price checks if the API is unavailable. Set `DOMAIN_HOUND_LOCAL=1` to choose local checks.
|
|
70
|
+
Local naming uses the naming method to come up with candidates, then checks the supplied names. The local name screen
|
|
71
|
+
can also use EUIPO and Patentstyret credentials and check rival websites.
|
|
72
|
+
|
|
73
|
+
For a live price quote, use `quote_domain` or explicitly request a shop check. Set `DOMAIN_HOUND_SPACESHIP_KEY` and `DOMAIN_HOUND_SPACESHIP_SECRET` (Spaceship permission `domains:read`), or `DOMAIN_HOUND_DYNADOT_KEY` (a production API key). Dynadot gives its production key account-wide access. Domain Hound only uses it to search. It shows premium pricing when it has a quote and points you to the shop when it has a premium signal without a price.
|
|
63
74
|
|
|
64
75
|
GitHub allows 60 anonymous API requests an hour. To check GitHub handles more often, set `DOMAIN_HOUND_GITHUB_TOKEN` to a token with no scopes; Domain Hound sends it only to `api.github.com`.
|
|
65
76
|
|
|
@@ -71,13 +82,21 @@ For the optional browser fallback, run `npm install domain-hound playwright && n
|
|
|
71
82
|
- [Find an available startup name](https://domainhound.dev/guides/find-an-available-startup-name/)
|
|
72
83
|
- [Check whether an app name is taken](https://domainhound.dev/guides/is-my-app-name-available/)
|
|
73
84
|
|
|
74
|
-
Use `check_domains` for one exact domain or up to 20 names or domains. Use `triage_names` to
|
|
85
|
+
Use `check_domains` for one exact domain or up to 20 names or domains. Use `triage_names` to generate names for an idea or screen names you already have. Ask for `naming_method` to see the naming process.
|
|
86
|
+
|
|
87
|
+
### Naming skill and Name score
|
|
88
|
+
|
|
89
|
+
Brainstorm names all day. If they're not available, it's pointless. The naming skill gives your agent one method: subject words, six territories, five recipes (odd pair, pun, blend, insider term, phrase or character), hard bans, and one steering question: "Which two do you love, and which one do you hate?" The Claude Code plugin ships it as `skills/naming/SKILL.md`; any MCP client gets the same method from `naming_method`.
|
|
90
|
+
|
|
91
|
+
`triage_names` gives each of the first five names a **Name score**, 0 to 100: how clear the road is. It is not a probability. Points come from the best available ending (22), its 3-year price (3), trademarks (25), rivals (20), apps (8), handles (7) and name quality (15). Bans (digits, hyphens, -ly, -ify, -io, AI, GPT, bot, smart, generic words like hub or labs, over 12 letters) and hard filters (no available ending within $60 over 3 years, an identical live trademark in your classes, a strong same-name rival in your subject, a severe bad meaning) run first, in code; those names get no score and are never a pick. A check that failed counts 40% of its points and says "Not checked". Trademarks stay at 20 of 25 until the EU office answers. A failed US trademark or rival check keeps the total at 79 or less, and so does missing `candidates` evidence for the bans code cannot judge on its own. Bands: 80+ Strong, 60 to 79 Workable, 40 to 59 Risky, under 40 Advise against. Picks rank by score. Each scored name shows up to three reasons. The hosted generator includes its own Name score in each suggestion. A local bare-name lookup can also provide a preliminary score.
|
|
92
|
+
|
|
93
|
+
Set `DOMAIN_HOUND_SCORE_LOG=1` to keep a local calibration log in `~/.domain-hound/score-log.jsonl`: component points, weights version, rank, and whether the person explicitly picked a shown name. Once they choose, the agent can record it with `check_domains`, using the exact domain and `picked: true`. It is off by default, never leaves your machine, and holds no names unless you also set `DOMAIN_HOUND_SCORE_LOG_NAMES=1`.
|
|
75
94
|
|
|
76
95
|
Completed lookups save an HTML page and a Markdown copy in `~/.domain-hound/results/`. The page lists prices, availability and sources for each ending checked. On macOS, naming and batch results open in the background. Windows and Wayland request a background open where the desktop supports it. Exact checks and watch results stay in chat with a file link. Set `DOMAIN_HOUND_OPEN=off` on the MCP server to keep every page closed.
|
|
77
96
|
|
|
78
97
|
### Share
|
|
79
98
|
|
|
80
|
-
Use **Share** on the results page to send up to five names. The link carries the names, checked endings, verdicts, prices and check time after the `#`. The browser reads that part locally. Your brief and notes stay out of the link. Anyone with the full link can read the shortlist.
|
|
99
|
+
Use **Share** on the results page to send up to five names. The link carries the names, checked endings, verdicts, prices, the Name score and how many checks were not done, and the check time after the `#`. Score reasons and evidence stay local. The browser reads that part locally. Your brief and notes stay out of the link. Anyone with the full link can read the shortlist.
|
|
81
100
|
|
|
82
101
|
## Buy and set up
|
|
83
102
|
|
|
@@ -151,10 +170,13 @@ Quotes, transfer quotes, DNS plans, order and transfer claims and receipts stay
|
|
|
151
170
|
|
|
152
171
|
## Privacy and lookup hosts
|
|
153
172
|
|
|
154
|
-
|
|
173
|
+
Hosted checks send the name or domain to Domain Hound. A hosted naming round sends its idea and steering words to
|
|
174
|
+
Domain Hound and Cloudflare Workers AI. Set `DOMAIN_HOUND_LOCAL=1` for local lookups. Local lookups share candidates
|
|
175
|
+
with public evidence sources. Catalog downloads carry no candidate name. Clicking a results link sends the name in that link.
|
|
155
176
|
|
|
156
177
|
| Host or service | What the lookup sends |
|
|
157
178
|
| --- | --- |
|
|
179
|
+
| `domainhound-mcp.domainhound.workers.dev` | The name or domain, or the idea and steering words for generation. Shop credentials and approval tokens stay on your device during hosted checks. |
|
|
158
180
|
| `data.iana.org`; `whois.iana.org` | RDAP routing table request with no name; WHOIS referral request with only the ending. |
|
|
159
181
|
| The DNS resolvers configured on your device, authoritative DNS servers, and the registry’s RDAP or WHOIS host. RDAP routes come from IANA or use `rdap.registry.co`, `rdap.identitydigital.services`, `rdap.norid.no` and `rdap.nic.so`. WHOIS for .ai, .io and .me goes to `whois.nic.ai`, `whois.nic.io` and `whois.nic.me`. | Candidate or rival domain. A DNS routing query can contain just an ending or a nameserver hostname. Registry referrals and redirects can select another registry host. |
|
|
160
182
|
| Candidate website and public hosts it redirects to | The domain in a homepage request; an onward request can include a URL provided by that website. |
|
|
@@ -162,7 +184,11 @@ Domain Hound uses your brief locally. Availability queries use registries and DN
|
|
|
162
184
|
| `api.euipo.europa.eu` and `euipo.europa.eu` (sandbox: `api-sandbox.euipo.europa.eu` and `auth-sandbox.euipo.europa.eu`) | With EUIPO credentials, the token host gets the client ID and secret. The search host gets the client ID, access token and candidate spellings. |
|
|
163
185
|
| `api.patentstyret.no` | With a subscription key, the Norwegian office gets the key and candidate spellings. |
|
|
164
186
|
| `mcp.atom.com` | The taken domain for an exact listing lookup. The buyer's ceiling stays local. |
|
|
165
|
-
| `itunes.apple.com
|
|
187
|
+
| `itunes.apple.com` | Candidate name for US App Store search. |
|
|
188
|
+
| `www.tiktok.com`, `graph.facebook.com`, `publish.twitter.com` / `publish.x.com`, `www.threads.net` / `www.threads.com`, `www.youtube.com`, `www.twitch.tv` | The candidate's handle. |
|
|
189
|
+
| `web.archive.org`, `index.commoncrawl.org` | Candidate LinkedIn company or Reddit profile URL for the public archive search. |
|
|
190
|
+
| `play.google.com` | Candidate name for Google Play app search. |
|
|
191
|
+
| `www.googleapis.com` | The candidate's YouTube handle and optional local `YOUTUBE_API_KEY` when the key is configured. |
|
|
166
192
|
| `www.wikidata.org`, `www.google.com`, `trends.google.com`, `data.brreg.no` | Candidate name; Wikidata also gets entity or class IDs for matches. |
|
|
167
193
|
| `api.github.com`, `registry.npmjs.org`, `public.api.bsky.app` | Candidate name or handle, handle variants and public controls. With a GitHub token configured, it goes only to GitHub. |
|
|
168
194
|
| `www.sec.gov`, `tranco-list.eu` | Public company and site lists with no candidate name. |
|
|
@@ -49,6 +49,7 @@ export async function searchNorwegianCompanies(name, input, options) {
|
|
|
49
49
|
const match = companyMatch(letters(name), row.navn);
|
|
50
50
|
if (match) matches.set(row.organisasjonsnummer, {
|
|
51
51
|
name: compactText(row.navn, 65), match, url: 'https://virksomhet.brreg.no/nb/oppslag/enheter/' + row.organisasjonsnummer,
|
|
52
|
+
...(typeof row.hjemmeside === 'string' && { homepage: compactText(row.hjemmeside, 253) }),
|
|
52
53
|
...(Number.isSafeInteger(row.antallAnsatte) && row.antallAnsatte > 0 && { employees: row.antallAnsatte }),
|
|
53
54
|
});
|
|
54
55
|
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { cacheDir, mapLimit, readCache, writeCache } from './cache.mjs';
|
|
2
2
|
import { setTimeout as delay } from 'node:timers/promises';
|
|
3
3
|
import { withShopPages } from './confirm.mjs';
|
|
4
|
-
import {
|
|
4
|
+
import { compactText, day, request } from './triage-sources.mjs';
|
|
5
5
|
|
|
6
|
+
import { parsePlayCards, playSearchLink, playTitleMatches } from './public-name-checks.mjs';
|
|
7
|
+
|
|
8
|
+
export { parsePlayCards, playSearchLink };
|
|
6
9
|
const origin = 'https://play.google.com';
|
|
7
10
|
const maxHtmlBytes = 4_000_000;
|
|
8
11
|
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
+
export const googlePlayLabel = 'Google Play has no public search';
|
|
13
|
+
export const googlePlayLinkLabel = 'Search Google Play';
|
|
12
14
|
|
|
13
15
|
export function readPlayCards(query) {
|
|
14
16
|
// Google's featured and compact cards have different markup.
|
|
@@ -44,45 +46,6 @@ export function readPlayDetails(html, url) {
|
|
|
44
46
|
return { ratings: null, ...seller };
|
|
45
47
|
}
|
|
46
48
|
|
|
47
|
-
// Server-rendered fallback for installs without Chromium. It mirrors readPlayCards on a parse5 tree.
|
|
48
|
-
export function parsePlayCards(document, query) {
|
|
49
|
-
const nodes = [];
|
|
50
|
-
const walk = node => {
|
|
51
|
-
for (const child of node.childNodes ?? []) {
|
|
52
|
-
if (child.tagName) nodes.push(child);
|
|
53
|
-
walk(child);
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
walk(document);
|
|
57
|
-
const attribute = (node, name) => node.attrs.find(attr => attr.name === name)?.value;
|
|
58
|
-
const hasClass = (node, name) => (attribute(node, 'class') ?? '').split(/\s+/).includes(name);
|
|
59
|
-
const text = node => node.nodeName === '#text' ? node.value : (node.childNodes ?? []).map(text).join('');
|
|
60
|
-
const find = (node, name) => {
|
|
61
|
-
for (const child of node.childNodes ?? []) {
|
|
62
|
-
if (child.tagName && hasClass(child, name)) return child;
|
|
63
|
-
const found = child.tagName && find(child, name);
|
|
64
|
-
if (found) return found;
|
|
65
|
-
}
|
|
66
|
-
return null;
|
|
67
|
-
};
|
|
68
|
-
const clean = value => value.replace(/\s+/g, ' ').trim();
|
|
69
|
-
const emptyMessage = clean('No results for ' + query).toLowerCase();
|
|
70
|
-
if (nodes.some(node => ['h1', 'h2', 'h3', 'span', 'p'].includes(node.tagName) &&
|
|
71
|
-
clean(text(node)).toLowerCase() === emptyMessage)) return [];
|
|
72
|
-
const rows = nodes.flatMap(link => {
|
|
73
|
-
const href = link.tagName === 'a' ? attribute(link, 'href') : null;
|
|
74
|
-
if (!href?.startsWith('/store/apps/details?id=')) return [];
|
|
75
|
-
const featured = hasClass(link, 'Qfxief');
|
|
76
|
-
const nameNode = featured ? null : find(link, 'DdYX5');
|
|
77
|
-
const name = featured ? attribute(link, 'aria-label') : nameNode && text(nameNode);
|
|
78
|
-
const sellerNode = featured ? link.parentNode?.tagName && find(link.parentNode, 'LbQbAe') : find(link, 'wMUdtb');
|
|
79
|
-
const seller = sellerNode ? text(sellerNode) : null;
|
|
80
|
-
const id = new URL(href, origin).searchParams.get('id');
|
|
81
|
-
return name && seller && id ? [{ name, seller, id }] : [];
|
|
82
|
-
});
|
|
83
|
-
return rows.length ? rows : null;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
49
|
async function readBounded(response) {
|
|
87
50
|
if (!response.ok || Number(response.headers?.get('content-length')) > maxHtmlBytes || !response.body) {
|
|
88
51
|
await response.body?.cancel().catch(() => {});
|
|
@@ -129,12 +92,12 @@ function browserSource(page) {
|
|
|
129
92
|
};
|
|
130
93
|
}
|
|
131
94
|
|
|
132
|
-
async function lookUp(source,
|
|
95
|
+
async function lookUp(source, input, deadline) {
|
|
133
96
|
const remaining = () => Math.max(1, Math.floor(deadline - performance.now()));
|
|
134
97
|
const rows = await source.search(input, remaining);
|
|
135
98
|
if (rows === null) return null;
|
|
136
99
|
const matches = rows.flatMap(row => {
|
|
137
|
-
if (!/^[A-Za-z0-9_]+(?:\.[A-Za-z0-9_]+)+$/.test(row.id) || !
|
|
100
|
+
if (!/^[A-Za-z0-9_]+(?:\.[A-Za-z0-9_]+)+$/.test(row.id) || !playTitleMatches(input, row.name)) return [];
|
|
138
101
|
return [{ name: compactText(row.name, 70), seller: compactText(row.seller, 70),
|
|
139
102
|
url: origin + '/store/apps/details?id=' + row.id }];
|
|
140
103
|
});
|
|
@@ -161,7 +124,7 @@ export async function searchAndroidApps(names, options = {}) {
|
|
|
161
124
|
const filename = 'triage-play-' + name + '.json';
|
|
162
125
|
const prior = await readCache(directory, filename);
|
|
163
126
|
const age = now.getTime() - prior?.at;
|
|
164
|
-
if (age >= 0 && age < cacheLifetime && Array.isArray(prior.apps) && prior.apps.every(app => Object.hasOwn(app, 'ratings'))
|
|
127
|
+
if (age >= 0 && age < cacheLifetime && prior.version === 3 && Array.isArray(prior.apps) && prior.apps.every(app => Object.hasOwn(app, 'ratings'))) {
|
|
165
128
|
answered(name, prior.apps);
|
|
166
129
|
return null;
|
|
167
130
|
}
|
|
@@ -176,10 +139,10 @@ export async function searchAndroidApps(names, options = {}) {
|
|
|
176
139
|
let source;
|
|
177
140
|
try {
|
|
178
141
|
source = await useSource();
|
|
179
|
-
const apps = await lookUp(source,
|
|
142
|
+
const apps = await lookUp(source, input, Math.min(deadline, performance.now() + 8000));
|
|
180
143
|
if (apps === null || performance.now() >= deadline) continue;
|
|
181
144
|
answered(name, apps);
|
|
182
|
-
await writeCache(directory, filename, { at: now.getTime(), apps, version:
|
|
145
|
+
await writeCache(directory, filename, { at: now.getTime(), apps, version: 3 }).catch(() => {});
|
|
183
146
|
return;
|
|
184
147
|
} catch { /* An unavailable search gives no evidence about the name. */ }
|
|
185
148
|
finally { await source?.close?.(); }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mkdir, open } from 'node:fs/promises';
|
|
2
2
|
import { setTimeout as delay } from 'node:timers/promises';
|
|
3
3
|
import { cacheDir, readCache, writeCache } from './cache.mjs';
|
|
4
|
-
import { playSearchLink } from './google-play.mjs';
|
|
4
|
+
import { googlePlayLabel, googlePlayLinkLabel, playSearchLink } from './google-play.mjs';
|
|
5
5
|
import { compactText, day, letters, request } from './triage-sources.mjs';
|
|
6
6
|
|
|
7
7
|
const sharedCache = new URL('google/', cacheDir);
|
|
@@ -233,7 +233,8 @@ export function nameCheckLines(row) {
|
|
|
233
233
|
return [
|
|
234
234
|
{ label: 'Google', text: googleText(row?.google), link: googleSearchLink(input) },
|
|
235
235
|
{ label: 'App Store (iOS)', text: appText(competition.AppStore), link: appStoreSearchLink(input) },
|
|
236
|
-
{ label: 'Google Play (Android)', text:
|
|
236
|
+
{ label: 'Google Play (Android)', text: competition.GooglePlay == null ? googlePlayLabel : appText(competition.GooglePlay),
|
|
237
|
+
link: playSearchLink(input), ...(competition.GooglePlay == null && { linkLabel: googlePlayLinkLabel }) },
|
|
237
238
|
];
|
|
238
239
|
}
|
|
239
240
|
|