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.
@@ -4,7 +4,7 @@
4
4
  "plugins": [
5
5
  {
6
6
  "name": "domain-hound",
7
- "version": "0.1.8",
7
+ "version": "0.1.9",
8
8
  "source": { "source": "local", "path": "./" },
9
9
  "policy": { "installation": "AVAILABLE", "authentication": "ON_INSTALL" },
10
10
  "category": "Productivity"
@@ -5,7 +5,7 @@
5
5
  "plugins": [
6
6
  {
7
7
  "name": "domain-hound",
8
- "version": "0.1.8",
8
+ "version": "0.1.9",
9
9
  "source": "./",
10
10
  "description": "Domains for agents. One MCP for everything domains: find, check, buy, set up, watch, move, renew, keep track."
11
11
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "domain-hound",
3
3
  "displayName": "Domain Hound",
4
- "version": "0.1.8",
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
- ### What it checks
51
-
52
- - **Domains:** registry RDAP or WHOIS for twelve endings by default (.com, .ai, .io, .me, .co, .dev, .app, .si, .so, .no, .xyz, .tech) and, on request, .net, .org, .sh, .gg, .inc, .studio, .se, .dk, .de, .uk, .co.uk and .eu. A domain is never called free without a registry or shop answer.
53
- - **Pick:** one quality order for AI-native companies: .com, .ai, .io, .dev, .app, .co, .so, .me, .si, then .xyz and .tech; other endings follow. The pick is the highest-quality free ending you can register whose payments over 3 years stay within $60, or within your budget when you give one; if none fits, it is the one with the least paid over 3 years. .ai is never the default pick unless you ask for it or its 3-year total fits your budget. Endings you list come first, in your order. A budget also drops endings that cost more than it upfront. The cheapest upfront payment and the best 3-year value get their own lines when they differ from the pick. Every checked ending stays on the page.
54
- - **Prices:** first payment, renewal and three-year cost from first-party registrar price lists, each with its date and label; renewal jumps and premium risk are flagged. Cloudflare's standard at-cost prices come from its official public table ([pricing.registrar.cloudflare.com](https://pricing.registrar.cloudflare.com/)), checked 2026-11-25 and shipped as a dated estimate; they compete with the other registrars, and rows priced there say Needs Cloudflare DNS.
55
- - **Trademarks:** live US marks (USPTO). EU (EUIPO) and Norwegian (Patentstyret) marks too when you set their free keys; otherwise, and for WIPO, search links to check yourself. Exact and near-identical live marks in the relevant classes (9, 35 and 42 for software) count the same at every office.
56
- - **Meaning:** names that are, contain or sound like a rude word in 14 languages get a note and Check first, never Avoid. Word lists: [LDNOOBW](https://github.com/LDNOOBW/List-of-Dirty-Naughty-Obscene-and-Otherwise-Bad-Words), © Shutterstock, CC BY 4.0, adapted (see `clis/domain-check/meaning-words.LICENSE.txt`).
57
- - **Apps and rivals:** same-name iOS and Android apps, companies, Wikidata entities and live sites, weighed by their traction.
58
- - **Handles:** GitHub, npm and Bluesky through their public APIs; YouTube, X, Instagram, TikTok, Facebook, LinkedIn and PyPI as links to check yourself. Each handle reads Taken, No public profile found, or Check yourself.
59
-
60
- Registry answers and prices cover every name. Trademark, app and rival checks cover the first five. Slow checks and public handles for the top three fill in the same results page after the first answer. A three-year savings line appears when the pick beats the middle price from at least three dated registrar lists.
61
-
62
- The default install checks the registry and shows dated list prices. For a confirmed price, 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.
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 screen a short list or a name you already have. Ask for `naming_method` to see how a shortlist is generated.
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
- Domain Hound uses your brief locally. Availability queries use registries and DNS. The name screen shares candidate names with public evidence sources. Catalog downloads carry no candidate name. With shop keys configured, one pick per lookup goes to the shop for a quote by default. Set `DOMAIN_HOUND_SHOP_QUOTES=top4` to include up to three runners-up. Clicking a results link to a shop or search site sends the name in that link.
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`, `play.google.com` | Candidate name for US store search; Google Play may also get the ID of a matched app. |
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 { appNameMatches, compactText, day, request } from './triage-sources.mjs';
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 function playSearchLink(input) {
10
- return origin + '/store/search?' + new URLSearchParams({ q: input, c: 'apps', hl: 'en', gl: 'US' });
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, name, input, deadline) {
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) || !appNameMatches(name, row.name)) return [];
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')) && (!prior.apps.length || prior.version === 2)) {
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, name, input, Math.min(deadline, performance.now() + 8000));
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: 2 }).catch(() => {});
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: appText(competition.GooglePlay), link: playSearchLink(input) },
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