domain-hound 0.1.4 → 0.1.6

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.
Files changed (43) hide show
  1. package/.agents/plugins/marketplace.json +1 -0
  2. package/.claude-plugin/marketplace.json +1 -0
  3. package/.claude-plugin/plugin.json +1 -1
  4. package/README.md +106 -13
  5. package/assets/readme-search.png +0 -0
  6. package/clis/domain-check/broker-atom.mjs +78 -0
  7. package/clis/domain-check/com-site.mjs +64 -25
  8. package/clis/domain-check/confirm.mjs +10 -5
  9. package/clis/domain-check/dossier.mjs +603 -0
  10. package/clis/domain-check/google-play.mjs +24 -11
  11. package/clis/domain-check/handles.mjs +337 -0
  12. package/clis/domain-check/index.mjs +69 -20
  13. package/clis/domain-check/marketplaces.mjs +107 -0
  14. package/clis/domain-check/meaning-words.LICENSE.txt +408 -0
  15. package/clis/domain-check/meaning-words.json +2397 -0
  16. package/clis/domain-check/meaning.mjs +77 -0
  17. package/clis/domain-check/name-search.mjs +83 -13
  18. package/clis/domain-check/naming-method.mjs +6 -4
  19. package/clis/domain-check/price-catalog.mjs +20 -12
  20. package/clis/domain-check/price-snapshot.json +142 -10
  21. package/clis/domain-check/registry.mjs +112 -19
  22. package/clis/domain-check/safe-web.mjs +207 -0
  23. package/clis/domain-check/traction.mjs +2 -2
  24. package/clis/domain-check/trademarks.mjs +372 -0
  25. package/clis/domain-check/triage-sources.mjs +52 -64
  26. package/clis/domain-check/triage.mjs +262 -72
  27. package/clis/spaceship/buy.mjs +327 -0
  28. package/clis/spaceship/client.mjs +170 -0
  29. package/clis/spaceship/dns.mjs +292 -0
  30. package/clis/spaceship/quote.mjs +123 -0
  31. package/clis/spaceship/setup.mjs +81 -0
  32. package/clis/spaceship/store.mjs +104 -0
  33. package/clis/spaceship/tools.mjs +258 -0
  34. package/display.mjs +16 -9
  35. package/dossier.mjs +185 -0
  36. package/package.json +36 -5
  37. package/plugin.json +4 -3
  38. package/results-style.mjs +10 -0
  39. package/results.mjs +291 -61
  40. package/server.json +3 -3
  41. package/server.mjs +275 -59
  42. package/share.mjs +43 -0
  43. package/site/r/share-format.mjs +125 -0
@@ -0,0 +1,77 @@
1
+ import { readFileSync } from 'node:fs';
2
+ import { foldLatin } from './triage-sources.mjs';
3
+
4
+ // Bad-meaning screen from the open LDNOOBW lists (CC BY 4.0, see meaning-words.LICENSE.txt), built by
5
+ // scripts/build-meaning-words.mjs. A hit is a note and at most "Check first"; it never makes a name Avoid.
6
+ // Rules stay narrow to keep false alarms low:
7
+ // - is: the whole name, or one word of it ("Kick Ass"), is a listed word of three or more letters;
8
+ // - contains: a long listed word that no English dictionary word contains sits inside the glued name;
9
+ // - sounds like: the name or one word of it is spelled differently but said the same as one of those long words
10
+ // (ph/f, c/k, doubled letters).
11
+ // Words with accents match only with their accents ("göt" never matches "got"), unless five or more letters long.
12
+ const data = JSON.parse(readFileSync(new URL('./meaning-words.json', import.meta.url), 'utf8'));
13
+ const languageNames = { en: 'English', es: 'Spanish', pt: 'Portuguese', fr: 'French', de: 'German', it: 'Italian',
14
+ no: 'Norwegian', sv: 'Swedish', da: 'Danish', nl: 'Dutch', pl: 'Polish', tr: 'Turkish', 'ja-Latn': 'Japanese',
15
+ 'zh-Latn': 'Chinese' };
16
+ export const meaningSource = { name: data.source, url: data.url, license: data.license };
17
+
18
+ const plain = value => value.normalize('NFC').toLowerCase().replace(/ /g, '');
19
+ const folded = value => foldLatin(value).replace(/[^a-z]/g, '');
20
+ // Said the same: ph/f, ck/c/q/k, soft c/s, x/ks, z/s, and doubled letters.
21
+ export const soundKey = value => folded(value).replace(/ph/g, 'f').replace(/ck/g, 'k').replace(/c(?=[eiy])/g, 's')
22
+ .replace(/[cq]/g, 'k').replace(/x/g, 'ks').replace(/z/g, 's').replace(/(.)\1+/g, '$1');
23
+
24
+ const exact = new Map();
25
+ const loose = new Map();
26
+ const phrases = new Map();
27
+ const sounds = new Map();
28
+ const add = (map, key, word, language) => {
29
+ const entry = map.get(key) ?? { word, languages: [] };
30
+ if (!entry.languages.includes(language)) entry.languages.push(language);
31
+ map.set(key, entry);
32
+ };
33
+ for (const [language, words] of Object.entries(data.words)) {
34
+ for (const word of words) {
35
+ const key = folded(word);
36
+ if (word.includes(' ')) add(phrases, key, word, language);
37
+ else if (plain(word) === key || key.length >= 5) add(loose, key, word, language);
38
+ else add(exact, plain(word), word, language);
39
+ }
40
+ }
41
+ const strong = data.strong.filter(word => loose.has(word)).sort((a, b) => b.length - a.length);
42
+ for (const word of strong) if (!sounds.has(soundKey(word))) sounds.set(soundKey(word), loose.get(word));
43
+
44
+ function note(how, { word, languages }) {
45
+ const where = languages.slice(0, 2).map(language => languageNames[language] ?? language).join(' and ');
46
+ const text = { is: '“' + word + '” is a rude word in ' + where, contains: 'Contains “' + word + '”, a rude word in ' + where,
47
+ sounds: 'Sounds like “' + word + '”, a rude word in ' + where }[how];
48
+ return { how, word, languages: languages.slice(0, 2).map(language => languageNames[language] ?? language), note: text };
49
+ }
50
+
51
+ // The words of a name as typed: spaces, hyphens, digits and camel case split it.
52
+ function words(input) {
53
+ return String(input ?? '').normalize('NFC').replace(/(\p{Ll})(\p{Lu})/gu, '$1 $2').toLowerCase()
54
+ .split(/[^\p{L}]+/u).filter(Boolean);
55
+ }
56
+
57
+ export function screenMeaning(input) {
58
+ const parts = words(input);
59
+ if (!parts.length) return null;
60
+ const whole = parts.join('');
61
+ const wholeKey = folded(whole);
62
+ const find = value => exact.get(plain(value)) ?? loose.get(folded(value));
63
+ const named = find(whole) ?? phrases.get(wholeKey);
64
+ if (named && folded(whole).length >= 3) return note('is', named);
65
+ for (const part of parts.length > 1 ? parts : []) {
66
+ const hit = folded(part).length >= 3 && find(part);
67
+ if (hit) return note('contains', hit);
68
+ }
69
+ const inside = strong.find(word => word !== wholeKey && wholeKey.includes(word));
70
+ if (inside) return note('contains', loose.get(inside));
71
+ for (const part of new Set([whole, ...parts])) {
72
+ const key = folded(part);
73
+ const hit = key.length >= 3 && sounds.get(soundKey(part));
74
+ if (hit && folded(hit.word) !== key) return note('sounds', hit);
75
+ }
76
+ return null;
77
+ }
@@ -1,7 +1,8 @@
1
1
  import { domainToASCII, domainToUnicode } from 'node:url';
2
2
  import { checkDomainSite } from './com-site.mjs';
3
3
  import { cachedSignals, confirmingShops } from './confirm.mjs';
4
- import { bundledCatalog, datedListPrices, getNameCatalog, loadCachedCatalog, targetEndings } from './price-catalog.mjs';
4
+ import { bundledCatalog, datedListPrices, getNameCatalog, isListPriceUsable, listedPrices, loadCachedCatalog, requestEndings,
5
+ supportedEndings, targetEndings } from './price-catalog.mjs';
5
6
  import { linkable, shopSearchUrl } from './prices.mjs';
6
7
  import { lookupRegistrations } from './registry.mjs';
7
8
  import { foldLatin } from './triage-sources.mjs';
@@ -18,6 +19,12 @@ const facts = {
18
19
  eligibility: 'Norwegian organization or eligible individual, with a Norwegian postal address',
19
20
  source: 'https://www.norid.no/en/om-domenenavn/regelverk-for-no/', checked,
20
21
  },
22
+ eu: {
23
+ need: 'EU or EEA eligibility',
24
+ eligibility: 'EU, Icelandic, Liechtenstein or Norwegian citizenship, residence or establishment',
25
+ note: 'Registration requires citizenship, residence or establishment in the EU, Iceland, Liechtenstein or Norway',
26
+ source: 'https://eurid.eu/en/knowledge-centre/rules-for-eu-domains/', checked: '2026-11-25',
27
+ },
21
28
  io: {
22
29
  note: 'Long-term registry uncertainty',
23
30
  source: 'https://www.icann.org/en/blogs/details/the-chagos-archipelago-and-the-io-domain-14-11-2024-en', checked,
@@ -33,7 +40,9 @@ const facts = {
33
40
  };
34
41
 
35
42
  const label = /^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/;
43
+ export const domainEnding = domain => domain.endsWith('.co.uk') ? 'co.uk' : domain.split('.').at(-1);
36
44
  export const defaultEndings = targetEndings;
45
+ export { requestEndings, supportedEndings };
37
46
  export const restrictedEndings = Object.keys(facts).filter(tld => facts[tld].eligibility);
38
47
  const firstCost = row => row.firstPayment ?? Infinity;
39
48
 
@@ -58,8 +67,8 @@ export function eligibilityNotes(endings) {
58
67
  }
59
68
 
60
69
  export function validEndings(endings) {
61
- return Array.isArray(endings) && endings.length > 0 && endings.length <= targetEndings.length
62
- && endings.every(ending => targetEndings.includes(ending));
70
+ return Array.isArray(endings) && endings.length > 0 && endings.length <= supportedEndings.length
71
+ && new Set(endings).size === endings.length && endings.every(ending => supportedEndings.includes(ending));
63
72
  }
64
73
 
65
74
  // One DNS label for a name. Spaces and punctuation go; letters never do. A name with non-ASCII letters (æ, ø, å, é)
@@ -150,7 +159,7 @@ export function rankName(rows) {
150
159
  return { ...row, ...termCosts(tld, price, renewal), reason, terms: facts[tld] ?? null,
151
160
  renewalJump: price != null && renewal > 2 * price };
152
161
  }).sort((a, b) => Number(b.exact) - Number(a.exact) || firstCost(a) - firstCost(b)
153
- || defaultEndings.indexOf(a.tld) - defaultEndings.indexOf(b.tld) || a.domain.localeCompare(b.domain));
162
+ || supportedEndings.indexOf(a.tld) - supportedEndings.indexOf(b.tld) || a.domain.localeCompare(b.domain));
154
163
  }
155
164
 
156
165
  export function pickName(rows, eligible) {
@@ -186,9 +195,36 @@ export function listQuote(catalog, { domain, tld }, now, bundled = bundledCatalo
186
195
  };
187
196
  }
188
197
 
198
+ // Savings are proof, never a pitch: the pick's three-year list cost against the median of at least three distinct shops'
199
+ // dated list prices for the same ending, all over a common three-year term. The lower median is used, so the comparison
200
+ // is never the highest price. Only a strictly positive difference counts; anything else returns null.
201
+ export function listSavings(catalog, { tld, price, renewal, shop, priceCheckedAt }, now, bundled = bundledCatalog) {
202
+ if (!(price > 0) || !(renewal > 0) || !shop || !priceCheckedAt) return null;
203
+ const own = termCosts(tld, price, renewal);
204
+ if (own.minimumYears !== 1 || own.renewalYears !== 1 || own.threeYear == null) return null;
205
+ const byShop = new Map();
206
+ for (const row of [...datedListPrices(catalog, tld, now, bundled), ...listedPrices(bundled, tld)]) {
207
+ if (!byShop.has(row.shop) && row.firstYear > 0 && row.renewal > 0 && isListPriceUsable(row.checkedAt, now)) {
208
+ byShop.set(row.shop, row);
209
+ }
210
+ }
211
+ const listed = byShop.get(shop);
212
+ // The pick must be one of the compared list prices, unchanged.
213
+ if (listed?.firstYear !== price || listed.renewal !== renewal || listed.checkedAt !== priceCheckedAt) return null;
214
+ const totals = [...byShop.values()].map(row => ({ shop: row.shop, checkedAt: row.checkedAt,
215
+ total: termCosts(tld, row.firstYear, row.renewal).threeYear })).sort((a, b) => a.total - b.total || a.shop.localeCompare(b.shop));
216
+ if (totals.length < 3) return null;
217
+ const median = totals[Math.floor((totals.length - 1) / 2)];
218
+ const saved = Math.round((median.total - own.threeYear) * 100) / 100;
219
+ if (!(saved > 0) || median.shop === shop) return null;
220
+ const dates = totals.map(row => new Date(row.checkedAt).toISOString().slice(0, 10)).sort();
221
+ return { years: 3, here: own.threeYear, shop, median: median.total, medianShop: median.shop, saved, shops: totals.length,
222
+ checkedFrom: dates[0], checkedTo: dates.at(-1) };
223
+ }
224
+
189
225
  // A premium, reserved or possible-premium signal never leaves a list price on the row.
190
226
  export function withoutListPrice(row, status, reason) {
191
- return { ...row, status, price: null, renewal: null, priceSource: null, priceCheckedAt: null,
227
+ return { ...row, status, price: null, renewal: null, priceSource: null, priceCheckedAt: null, savings: null,
192
228
  ...(reason && { registryReason: reason }) };
193
229
  }
194
230
 
@@ -217,7 +253,8 @@ export function mergeQuote(row, quote) {
217
253
  : quote.status === 'premium' ? quote.premium ?? true : possiblePremium(row, quote) ? 'possible'
218
254
  : (row.premium === 'risk' || row.premiumRisk) && quote.standard !== true ? 'possible' : false;
219
255
  const price = money(quote.price) > 0 ? quote.price : null;
220
- return { ...row, status: premium ? 'premium' : quote.status, price, renewal: price == null ? null : quote.renewal ?? null,
256
+ // A shop quote replaces the list price, so a list-price comparison no longer applies.
257
+ return { ...row, savings: null, status: premium ? 'premium' : quote.status, price, renewal: price == null ? null : quote.renewal ?? null,
221
258
  ...(premium && { premium }), shop: quote.shopName, buyUrl: quote.buyUrl, priceCheckedAt: null, priceSource: null,
222
259
  quotedAt: quote.checkedAt ?? null, checkedAt: quote.checkedAt ?? row.checkedAt, source: 'shop' };
223
260
  }
@@ -234,10 +271,11 @@ export async function searchCandidates(groups, options = {}) {
234
271
  const siteEndings = options.siteEndings ?? (options.skipComSite ? [] : ['com']);
235
272
  const lookedUp = new Map();
236
273
  const checks = [];
274
+ const lateChecks = [];
237
275
  let catalog = null;
238
276
  let timer;
239
277
  let complete = false;
240
- const onResult = ({ domain, tld, exact }, registry) => {
278
+ const onResult = ({ domain, tld, exact }, registry, dnsCode) => {
241
279
  if (timeLeft() <= 0) return;
242
280
  const publish = (result) => {
243
281
  lookedUp.set(domain, result);
@@ -247,19 +285,35 @@ export async function searchCandidates(groups, options = {}) {
247
285
  // A negative registry answer can be wrong. A real response on the domain beats a free claim.
248
286
  // Replay and unit callers that inject registry traffic can inject the site check as well.
249
287
  const checkNegative = registry.status === 'free' && (options.fetcher === undefined || options.verifyFreeSite);
250
- const checkTaken = registry.status === 'taken' && exact && siteEndings.includes(tld);
288
+ const checkTaken = registry.status === 'taken' && exact && siteEndings.includes(tld) && (options.siteFilter?.(domain) ?? true);
251
289
  if (!checkNegative) publish(registry);
252
290
  if (!checkNegative && !checkTaken) return;
253
- const timeout = Math.min(options.siteTimeout ?? 1200, timeLeft());
291
+ if (dnsCode === 'ENOTFOUND' && !options.verifyFreeSite && !options.comSite) {
292
+ // NXDOMAIN for the hostname also rules out its web address. Reuse the DNS answer.
293
+ sites.set(domain, { result: { state: 'no-site', why: 'DNS NXDOMAIN' } });
294
+ if (checkNegative) publish(registry);
295
+ return;
296
+ }
297
+ // A taken site may get a longer, final check that outlives the first answer (settleSites collects it).
298
+ const late = checkTaken && options.lateSiteMs > 0;
299
+ const timeout = late ? options.lateSiteMs : Math.min(options.siteTimeout ?? 1200, timeLeft());
254
300
  const visit = checkNegative ? options.verifyFreeSite ?? options.comSite ?? checkDomainSite
255
301
  : options.comSite ?? checkDomainSite;
256
- const pending = Promise.resolve().then(() => visit(domain, timeout, options.siteDetails || checkNegative)).then(site => {
302
+ const pending = Promise.resolve().then(() => visit(domain, timeout, options.siteDetails || checkNegative))
303
+ .then(site => {
257
304
  sites.get(domain).result = site;
258
305
  options.onSite?.(domain, site);
259
306
  if (checkNegative) publish(applyLiveSite(registry, site));
260
307
  }, () => { if (checkNegative) publish(registry); });
261
308
  sites.set(domain, { pending });
262
- checks.push(pending);
309
+ if (!late) checks.push(pending);
310
+ else {
311
+ // The first answer still waits as long as for any site check; the late check keeps running after that.
312
+ lateChecks.push(pending);
313
+ checks.push(Promise.race([pending, new Promise(resolve => {
314
+ setTimeout(resolve, Math.min(options.siteTimeout ?? 1200, timeLeft())).unref?.();
315
+ })]));
316
+ }
263
317
  };
264
318
  const loadCatalog = options.cachedOnly ? loadCachedCatalog(options.directory)
265
319
  : getNameCatalog({ ...options, now, coldWaitMs: bundled ? 0 : Math.min(1900, budgetMs) });
@@ -293,10 +347,11 @@ export async function searchCandidates(groups, options = {}) {
293
347
  ? { shop: quote.shop, checkedAt: quote.priceCheckedAt, ...termCosts(row.tld, quote.price, quote.renewal),
294
348
  renewalJump: quote.renewal > 2 * quote.price }
295
349
  : null;
350
+ const savings = status === 'probably-free' ? listSavings(catalog, { ...row, ...quote }, now, bundled) : null;
296
351
  const settled = withPremiumRisk({ ...row, status, checkedAt: lookup.checkedAt ?? checkedAt, source: lookup.source,
297
352
  registryReason: lookup.reason, forSale: Boolean(lookup.forSale), ...(lookup.marketplace && { marketplace: lookup.marketplace }),
298
353
  ...(status === 'check-at-shop' && lookup.likely && { likely: lookup.likely }),
299
- ...(status !== 'taken' ? quote : listPrice && { listPrice }) });
354
+ ...(status !== 'taken' ? quote : listPrice && { listPrice }), ...(savings && { savings }) });
300
355
  if (status === 'premium') return { ...withoutListPrice(settled, 'premium'), premium: true };
301
356
  if (status === 'reserved') return withoutListPrice(settled, 'reserved', lookup.reason);
302
357
  const signal = status === 'taken' ? null : signals.get(row.domain);
@@ -311,7 +366,22 @@ export async function searchCandidates(groups, options = {}) {
311
366
  }
312
367
  return { ...group, results: rows, comSite: checkedSites.com ?? null, sites: checkedSites };
313
368
  });
314
- return { groups: results, complete, priceDate: catalog?.checkedAt ?? bundled?.checkedAt ?? null, ms: Math.round(performance.now() - start) };
369
+ // Site checks that outlived the first answer fill in their group's sites when they finish.
370
+ const settleSites = async () => {
371
+ await Promise.all([...checks, ...lateChecks]);
372
+ for (const group of results) {
373
+ for (const row of group.results) {
374
+ const site = sites.get(row.domain)?.result;
375
+ if (!site || group.sites[row.tld]) continue;
376
+ group.sites[row.tld] = site;
377
+ if (row.tld === 'com') group.comSite = site;
378
+ if (site.state === 'for-sale') row.forSale = true;
379
+ }
380
+ }
381
+ return results;
382
+ };
383
+ return { groups: results, complete, priceDate: catalog?.checkedAt ?? bundled?.checkedAt ?? null, ms: Math.round(performance.now() - start),
384
+ settleSites };
315
385
  }
316
386
 
317
387
  export async function searchName(input, options = {}) {
@@ -1,5 +1,5 @@
1
1
  export const showAsIs = 'Show `display` exactly as written, then add at most two sentences of advice below it.';
2
- export const purchaseLine = 'Domain Hound cannot buy or complete checkout; use the link above.';
2
+ export const purchaseLine = 'This check leaves checkout to you; use the link above.';
3
3
 
4
4
  export const googleSearchInstruction = 'Before answering, use your built-in web search for each name marked google.search (up to 3). '
5
5
  + 'Search "<name>" and "<name>" app once each. Review the first 10 returned results of each search, or all results if fewer are returned. '
@@ -12,10 +12,12 @@ export const geoInstruction = 'GEO (presence in AI answers): for each name, answ
12
12
  + 'whether you know a specific brand, company or product by that exact name: "known: <what it is, a few words>" or "unknown". '
13
13
  + 'Say unknown for a plain dictionary word or when unsure. Do not guess.';
14
14
 
15
+ // One screening call: triage_names checks every ending for all the names it gets and screens the first five, so the
16
+ // recipe skips the preliminary check_domains batch (check_domains with shortlist still works for existing callers).
15
17
  export const namingRecipe = (about = '') => 'Naming recipe (intermediate). Use the final triage display.\n'
16
18
  + (about ? '1. Brief: ' + about.replace(/[\p{Cc}\p{Cf}\p{Zl}\p{Zp}]+/gu, ' ').trim()
17
19
  + '.\n' : '1. Brief: product, audience and preferences.\n')
18
20
  + '2. Generate about 30 words. Pair one with a familiar animal or object. Default to English unless the person asked for another language. Avoid category-generic names.\n'
19
- + '3. Check: call check_domains ONCE with seven bare names and shortlist: true (Quiet Otter → quietotter). No spaces or dots.\n'
20
- + '4. Triage: call triage_names ONCE on the best FIVE with free endings, a short about and geo from memory. Pass the same endings and budget to both calls.\n'
21
- + '5. Answer: Relay say as written. Let the person choose from the complete local results page.';
21
+ + '3. Screen: call triage_names ONCE with your best EIGHT names, strongest first (all get domains; the first five get marks, apps and rivals). '
22
+ + 'Add a short about, geo from memory, and any endings or budget the person gave. Skip check_domains.\n'
23
+ + '4. Answer: Relay say as written, starting with its results page line. Do not call again; the complete local results page fills in by itself.';
@@ -7,9 +7,15 @@ import { cacheDir, readCache, writeCache } from './cache.mjs';
7
7
  import { withShopPages } from './confirm.mjs';
8
8
  import { catalogPrice, dynadotOffer, offer, shops } from './prices.mjs';
9
9
 
10
- export const targetEndings = ['com', 'ai', 'io', 'me', 'co', 'dev', 'app', 'si', 'so', 'no'];
10
+ // The endings every bare name is checked on. The first ten are the 0.1.4 set; .net, .org, .xyz and .tech joined in 0.1.5.
11
+ export const targetEndings = ['com', 'ai', 'io', 'me', 'co', 'dev', 'app', 'si', 'so', 'no', 'net', 'org', 'xyz', 'tech'];
12
+ // Checked only when the person asks for them (or names them in endings).
13
+ export const requestEndings = ['sh', 'gg', 'inc', 'studio', 'se', 'dk', 'de', 'uk', 'co.uk', 'eu'];
14
+ export const supportedEndings = [...targetEndings, ...requestEndings];
15
+ // A saved or bundled catalog must cover these; newer endings are priced once a refresh has them.
16
+ const coreEndings = targetEndings.slice(0, 10);
11
17
  const otherEndings = ['so', 'no'];
12
- const spaceshipEndings = targetEndings.filter(tld => !otherEndings.includes(tld));
18
+ const spaceshipEndings = coreEndings.filter(tld => !otherEndings.includes(tld));
13
19
  const filename = 'prices.json';
14
20
  const day = 86_400_000;
15
21
  const primaryShops = ['spaceship', 'porkbun', 'dynadot'];
@@ -26,7 +32,7 @@ function validSource(id, prices) {
26
32
  const entries = Object.entries(prices ?? {});
27
33
  const required = id === 'spaceship' ? spaceshipEndings : id === 'gandi' ? [] : ['com', 'io', 'me'];
28
34
  return entries.length > 0 && required.every(tld => Object.hasOwn(prices, tld)) &&
29
- entries.every(([tld, row]) => targetEndings.includes(tld) && validPrice(row, shops[id].name));
35
+ entries.every(([tld, row]) => supportedEndings.includes(tld) && validPrice(row, shops[id].name));
30
36
  }
31
37
 
32
38
  function validDate(value) {
@@ -36,7 +42,7 @@ function validDate(value) {
36
42
  export function validCatalog(value) {
37
43
  if (!validDate(value?.checkedAt)) return false;
38
44
  if (!value.catalogs) {
39
- return targetEndings.every(tld => validPrice(value.prices?.[tld], otherEndings.includes(tld) ? 'Gandi' : 'Spaceship'));
45
+ return coreEndings.every(tld => validPrice(value.prices?.[tld], otherEndings.includes(tld) ? 'Gandi' : 'Spaceship'));
40
46
  }
41
47
  return Object.keys(value.catalogs).length > 0 && Object.entries(value.catalogs).every(([id, source]) =>
42
48
  [...primaryShops, 'gandi'].includes(id) && validDate(source.checkedAt) && validSource(id, source.prices));
@@ -233,17 +239,19 @@ export async function loadPorkbunPrices(fetcher = globalThis.fetch) {
233
239
  const response = await fetcher(porkbunPricing, { ...options, signal });
234
240
  const catalog = response.ok ? await response.json() : null;
235
241
  if (catalog?.status !== 'SUCCESS' || !catalog.pricing) throw new Error('Porkbun catalog unavailable');
236
- return Object.fromEntries(targetEndings.flatMap(tld => {
242
+ return Object.fromEntries(supportedEndings.flatMap(tld => {
237
243
  const row = catalog.pricing[tld];
238
- if (!row) return [];
239
- return [[tld, { shop: 'Porkbun', firstYear: catalogPrice(row.registration),
240
- renewal: catalogPrice(row.renewal), transfer: catalogPrice(row.transfer) }]];
244
+ const price = { shop: 'Porkbun', firstYear: catalogPrice(row?.registration),
245
+ renewal: catalogPrice(row?.renewal), transfer: catalogPrice(row?.transfer) };
246
+ return validPrice(price, 'Porkbun') ? [[tld, price]] : [];
241
247
  }));
242
248
  }
243
249
  try {
244
250
  return await Promise.any([
245
- load({ method: 'POST', headers: { 'Content-Type': 'application/json' }, body: '{}' }),
246
- delay(350, undefined, { signal }).then(() => load()),
251
+ load({ headers: { Accept: 'application/json' } }),
252
+ delay(350, undefined, { signal }).then(() => load({
253
+ method: 'POST', headers: { Accept: 'application/json', 'Content-Type': 'application/json' }, body: '{}',
254
+ })),
247
255
  ]);
248
256
  } finally {
249
257
  controller.abort();
@@ -263,7 +271,7 @@ export function dynadotPrices(html) {
263
271
  for (const row of values) {
264
272
  if (!row || typeof row !== 'object' || Array.isArray(row)) continue;
265
273
  const tld = values[row.name];
266
- if (!targetEndings.includes(tld)) continue;
274
+ if (!supportedEndings.includes(tld)) continue;
267
275
  const firstYear = usd(values[row.reg_price]);
268
276
  const renewal = usd(values[row.renew_price]);
269
277
  if (firstYear && renewal) prices[tld] = {
@@ -271,7 +279,7 @@ export function dynadotPrices(html) {
271
279
  };
272
280
  }
273
281
  }
274
- for (const tld of targetEndings.filter(tld => !prices[tld])) {
282
+ for (const tld of supportedEndings.filter(tld => !prices[tld])) {
275
283
  const row = dynadotOffer(html, tld, 'example.' + tld, new Date());
276
284
  if (row) prices[tld] = { shop: 'Dynadot', firstYear: row.regularFirstYear,
277
285
  renewal: row.renewal, transfer: row.regularTransferPrice };
@@ -1,5 +1,5 @@
1
1
  {
2
- "checkedAt": "2026-11-24T18:15:47.403Z",
2
+ "checkedAt": "2026-11-25T09:07:26.876Z",
3
3
  "catalogs": {
4
4
  "spaceship": {
5
5
  "checkedAt": "2026-11-24T18:15:47.403Z",
@@ -55,7 +55,7 @@
55
55
  }
56
56
  },
57
57
  "porkbun": {
58
- "checkedAt": "2026-11-24T18:15:47.403Z",
58
+ "checkedAt": "2026-11-25T09:07:26.876Z",
59
59
  "prices": {
60
60
  "com": {
61
61
  "shop": "Porkbun",
@@ -104,11 +104,77 @@
104
104
  "firstYear": 19.95,
105
105
  "renewal": 17.13,
106
106
  "transfer": null
107
+ },
108
+ "net": {
109
+ "shop": "Porkbun",
110
+ "firstYear": 12.52,
111
+ "renewal": 12.52,
112
+ "transfer": 12.52
113
+ },
114
+ "org": {
115
+ "shop": "Porkbun",
116
+ "firstYear": 7.98,
117
+ "renewal": 11.84,
118
+ "transfer": 11.84
119
+ },
120
+ "xyz": {
121
+ "shop": "Porkbun",
122
+ "firstYear": 1.29,
123
+ "renewal": 14.21,
124
+ "transfer": 14.21
125
+ },
126
+ "tech": {
127
+ "shop": "Porkbun",
128
+ "firstYear": 6.99,
129
+ "renewal": 50.98,
130
+ "transfer": 50.98
131
+ },
132
+ "sh": {
133
+ "shop": "Porkbun",
134
+ "firstYear": 31.2,
135
+ "renewal": 46.65,
136
+ "transfer": 46.65
137
+ },
138
+ "gg": {
139
+ "shop": "Porkbun",
140
+ "firstYear": 51.8,
141
+ "renewal": 51.8,
142
+ "transfer": 51.8
143
+ },
144
+ "studio": {
145
+ "shop": "Porkbun",
146
+ "firstYear": 11.84,
147
+ "renewal": 41.71,
148
+ "transfer": 41.71
149
+ },
150
+ "de": {
151
+ "shop": "Porkbun",
152
+ "firstYear": 2.9,
153
+ "renewal": 4.07,
154
+ "transfer": 5.1
155
+ },
156
+ "uk": {
157
+ "shop": "Porkbun",
158
+ "firstYear": 5.66,
159
+ "renewal": 5.66,
160
+ "transfer": null
161
+ },
162
+ "co.uk": {
163
+ "shop": "Porkbun",
164
+ "firstYear": 5.66,
165
+ "renewal": 5.66,
166
+ "transfer": null
167
+ },
168
+ "eu": {
169
+ "shop": "Porkbun",
170
+ "firstYear": 5.88,
171
+ "renewal": 5.88,
172
+ "transfer": 5.88
107
173
  }
108
174
  }
109
175
  },
110
176
  "dynadot": {
111
- "checkedAt": "2026-11-24T18:15:47.403Z",
177
+ "checkedAt": "2026-11-25T08:46:38.737Z",
112
178
  "prices": {
113
179
  "com": {
114
180
  "shop": "Dynadot",
@@ -116,6 +182,18 @@
116
182
  "renewal": 11.62,
117
183
  "transfer": 11.62
118
184
  },
185
+ "xyz": {
186
+ "shop": "Dynadot",
187
+ "firstYear": 1.5,
188
+ "renewal": 14.45,
189
+ "transfer": 14.45
190
+ },
191
+ "org": {
192
+ "shop": "Dynadot",
193
+ "firstYear": 7.99,
194
+ "renewal": 11.64,
195
+ "transfer": 11.64
196
+ },
119
197
  "co": {
120
198
  "shop": "Dynadot",
121
199
  "firstYear": 15.5,
@@ -128,11 +206,41 @@
128
206
  "renewal": 53.5,
129
207
  "transfer": 53.5
130
208
  },
209
+ "net": {
210
+ "shop": "Dynadot",
211
+ "firstYear": 7.49,
212
+ "renewal": 12.52,
213
+ "transfer": 12.52
214
+ },
131
215
  "me": {
132
216
  "shop": "Dynadot",
133
- "firstYear": 9.16,
134
- "renewal": 16.8,
135
- "transfer": 16.8
217
+ "firstYear": 9.21,
218
+ "renewal": 16.88,
219
+ "transfer": 16.88
220
+ },
221
+ "tech": {
222
+ "shop": "Dynadot",
223
+ "firstYear": 6.64,
224
+ "renewal": 52.65,
225
+ "transfer": 52.65
226
+ },
227
+ "eu": {
228
+ "shop": "Dynadot",
229
+ "firstYear": 4.21,
230
+ "renewal": 6.05,
231
+ "transfer": 6.05
232
+ },
233
+ "uk": {
234
+ "shop": "Dynadot",
235
+ "firstYear": 6.14,
236
+ "renewal": 6.14,
237
+ "transfer": null
238
+ },
239
+ "de": {
240
+ "shop": "Dynadot",
241
+ "firstYear": 3.84,
242
+ "renewal": 3.84,
243
+ "transfer": 3.84
136
244
  },
137
245
  "so": {
138
246
  "shop": "Dynadot",
@@ -146,6 +254,18 @@
146
254
  "renewal": 14.5,
147
255
  "transfer": 13.99
148
256
  },
257
+ "sh": {
258
+ "shop": "Dynadot",
259
+ "firstYear": 32.1,
260
+ "renewal": 48.15,
261
+ "transfer": 48.15
262
+ },
263
+ "studio": {
264
+ "shop": "Dynadot",
265
+ "firstYear": 11.99,
266
+ "renewal": 43.02,
267
+ "transfer": 43.02
268
+ },
149
269
  "dev": {
150
270
  "shop": "Dynadot",
151
271
  "firstYear": 8,
@@ -158,16 +278,28 @@
158
278
  "renewal": 85.6,
159
279
  "transfer": 171.2
160
280
  },
281
+ "gg": {
282
+ "shop": "Dynadot",
283
+ "firstYear": 53.5,
284
+ "renewal": 53.5,
285
+ "transfer": 53.5
286
+ },
287
+ "dk": {
288
+ "shop": "Dynadot",
289
+ "firstYear": 12.76,
290
+ "renewal": 12.76,
291
+ "transfer": 10.99
292
+ },
161
293
  "si": {
162
294
  "shop": "Dynadot",
163
- "firstYear": 11.24,
164
- "renewal": 11.24,
295
+ "firstYear": 11.29,
296
+ "renewal": 11.29,
165
297
  "transfer": null
166
298
  },
167
299
  "no": {
168
300
  "shop": "Dynadot",
169
- "firstYear": 7.91,
170
- "renewal": 7.91,
301
+ "firstYear": 7.97,
302
+ "renewal": 7.97,
171
303
  "transfer": null
172
304
  }
173
305
  }