domain-hound 0.1.10 → 0.1.11
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 +3 -2
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +22 -5
- package/assets/mulish-OFL.txt +93 -0
- package/assets/mulish-latin-wght-normal.woff2 +0 -0
- package/assets/results.css +175 -0
- package/clis/domain-check/handles.mjs +2 -2
- package/clis/domain-check/price-catalog.mjs +1 -1
- package/clis/domain-check/registry.mjs +6 -4
- package/clis/domain-check/traction.mjs +1 -1
- package/clis/portfolio/page.mjs +1 -14
- package/clis/portfolio/portfolio.mjs +5 -5
- package/clis/spaceship/tools.mjs +36 -42
- package/dossier.mjs +5 -5
- package/hosted-results.mjs +20 -9
- package/hosted.mjs +61 -7
- package/package.json +3 -1
- package/plugin.json +2 -1
- package/results-cards.mjs +169 -0
- package/results-style.mjs +9 -0
- package/results.mjs +142 -117
- package/server.json +2 -2
- package/server.mjs +188 -59
- package/skills/domains/SKILL.md +13 -0
- package/skills/naming/SKILL.md +1 -1
- package/watch.mjs +4 -4
|
@@ -5,9 +5,10 @@
|
|
|
5
5
|
"plugins": [
|
|
6
6
|
{
|
|
7
7
|
"name": "domain-hound",
|
|
8
|
-
"version": "0.1.
|
|
8
|
+
"version": "0.1.11",
|
|
9
9
|
"source": "./",
|
|
10
|
-
"description": "Domains for agents. One MCP for everything domains: find, check, buy, set up, watch, move, renew, keep track."
|
|
10
|
+
"description": "Domains for agents. One MCP for everything domains: find, check, buy, set up, watch, move, renew, keep track.",
|
|
11
|
+
"relevance": { "topic": "Domains", "signals": { "hosts": ["rdap.org", "porkbun.com"] } }
|
|
11
12
|
}
|
|
12
13
|
]
|
|
13
14
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "domain-hound",
|
|
3
3
|
"displayName": "Domain Hound",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.11",
|
|
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
|
@@ -4,7 +4,7 @@ One MCP for everything domains: find, check, buy, set up, watch, move, renew, ke
|
|
|
4
4
|
|
|
5
5
|
Domain Hound finds names and checks domain availability, first-year and renewal prices, app names, trademarks and social handles from Claude Code, Codex or any MCP client. Connect your Spaceship account to quote a domain, buy it with your approval and set up DNS. It also investigates and watches taken domains, plans moves to a cheaper registrar, and keeps track of every domain you own. It runs locally.
|
|
6
6
|
|
|
7
|
-
- **Find and check:** `triage_names`, `check_domains`, `
|
|
7
|
+
- **Find and check:** `triage_names`, `check_domains`, `naming_guide`
|
|
8
8
|
- **Buy and set up:** `quote_domain`, `buy_domain`, `setup_domain`
|
|
9
9
|
- **Watch taken domains:** `taken_domain_dossier`, `watch_domain`
|
|
10
10
|
- **Plan a move:** `move_domain`
|
|
@@ -22,12 +22,25 @@ Requires Node.js 20 or later.
|
|
|
22
22
|
claude mcp add domain-hound -- npx -y domain-hound
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
+
If the first launch times out while npm downloads the package, start Claude Code with `MCP_TIMEOUT=30000 claude`. [Claude Code MCP settings](https://code.claude.com/docs/en/mcp)
|
|
26
|
+
|
|
25
27
|
**Codex**
|
|
26
28
|
|
|
27
29
|
```sh
|
|
28
30
|
codex mcp add domain-hound -- npx -y domain-hound
|
|
29
31
|
```
|
|
30
32
|
|
|
33
|
+
For a fresh npm cache, set `startup_timeout_sec = 30` in the Domain Hound entry in `~/.codex/config.toml`:
|
|
34
|
+
|
|
35
|
+
```toml
|
|
36
|
+
[mcp_servers.domain-hound]
|
|
37
|
+
command = "npx"
|
|
38
|
+
args = ["-y", "domain-hound"]
|
|
39
|
+
startup_timeout_sec = 30
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[Codex MCP configuration](https://learn.chatgpt.com/docs/extend/mcp?surface=cli)
|
|
43
|
+
|
|
31
44
|
**Other MCP clients**
|
|
32
45
|
|
|
33
46
|
Add this to the client’s MCP configuration for a local stdio server.
|
|
@@ -47,6 +60,8 @@ Then ask, for example: “Is lanternbay.com available?”, “Find a name for my
|
|
|
47
60
|
|
|
48
61
|
## Find and check
|
|
49
62
|
|
|
63
|
+
The Claude Code and Codex plugins include a `domains` skill for availability, price comparisons, purchases and release watches. The `naming` skill covers naming a product, company or app.
|
|
64
|
+
|
|
50
65
|
The package uses the same hosted search as [domainhound.dev](https://domainhound.dev). `check_domains` compares ten
|
|
51
66
|
endings by default: .com, .ai, .io, .dev, .co, .so, .sh, .inc, .tech and .app. A typed domain checks that exact ending.
|
|
52
67
|
An affordable .inc result appears in a bare-name search only after the registry confirms availability.
|
|
@@ -59,7 +74,9 @@ Reddit use the Wayback Machine CDX index, with the latest Common Crawl index as
|
|
|
59
74
|
A capture includes its year. A successful empty archive search returns `not-seen`. Google Play matches a title or
|
|
60
75
|
a title starting with the name followed by a non-letter, ignoring case. Set `DOMAIN_HOUND_EMBED_CHECKS=off` for search
|
|
61
76
|
or profile links only on TikTok, Instagram, X, Threads, Facebook, LinkedIn, Reddit, Twitch and Google Play.
|
|
62
|
-
|
|
77
|
+
`check_domains` returns registry results and prices first. If the reply says name checks are pending, repeat the same call to collect them. The saved results page updates at the same link.
|
|
78
|
+
|
|
79
|
+
When the hosted lookup cannot check a .dev or .app domain, the package can ask Google Registry from your device and pass the result back to the hosted service to calculate the pick. It also tries Apple from your device when the hosted App Store lookup is rate-limited.
|
|
63
80
|
|
|
64
81
|
Pass `idea` to `triage_names` to generate names on the same service. The results page updates as the checks finish.
|
|
65
82
|
Pass `names` to screen names you already have. For a second generation round, pass the same `idea` with the `wanted`
|
|
@@ -84,17 +101,17 @@ For the optional browser fallback, run `npm install domain-hound playwright && n
|
|
|
84
101
|
- [Find an available startup name](https://domainhound.dev/guides/find-an-available-startup-name/)
|
|
85
102
|
- [Check whether an app name is taken](https://domainhound.dev/guides/is-my-app-name-available/)
|
|
86
103
|
|
|
87
|
-
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 `
|
|
104
|
+
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_guide` to see the naming process.
|
|
88
105
|
|
|
89
106
|
### Naming skill and Name score
|
|
90
107
|
|
|
91
|
-
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 `
|
|
108
|
+
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_guide`.
|
|
92
109
|
|
|
93
110
|
`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.
|
|
94
111
|
|
|
95
112
|
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`.
|
|
96
113
|
|
|
97
|
-
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.
|
|
114
|
+
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. Choose **Open results** in the tool response to open the page. The package saves these files without opening a browser.
|
|
98
115
|
|
|
99
116
|
### Share
|
|
100
117
|
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Google Inc.
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
/* Result styles vendored from lars-hv/domainhound-site at
|
|
2
|
+
2eee4e38864ad0870cfe317c5b5ca6307fd44bd4. Keep these excerpts in site order. */
|
|
3
|
+
:root {
|
|
4
|
+
color-scheme: light;
|
|
5
|
+
--ink: #100e08;
|
|
6
|
+
--cream: #fff7de;
|
|
7
|
+
--gold: #f4c64f;
|
|
8
|
+
--gutter: clamp(18px, 4.5vw, 64px);
|
|
9
|
+
--mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
|
|
10
|
+
}
|
|
11
|
+
*, *::after, *::before { box-sizing: border-box; }
|
|
12
|
+
[hidden] { display: none !important; }
|
|
13
|
+
body { margin: 0; color: var(--ink); background: var(--cream); font: 600 1rem/1.45 Mulish, Arial, sans-serif; }
|
|
14
|
+
h1, h2, h3, p, dl, dd, ul { margin: 0; }
|
|
15
|
+
h1, h2, h3, .number, .result > strong { font-weight: 1000; line-height: .99; letter-spacing: -.04em; }
|
|
16
|
+
h2 { font-size: clamp(2.5rem, 5.4vw, 5.8rem); }
|
|
17
|
+
a { color: inherit; text-underline-offset: .18em; }
|
|
18
|
+
a:hover { text-decoration-thickness: 2px; }
|
|
19
|
+
button, input { font: inherit; color: inherit; }
|
|
20
|
+
button { cursor: pointer; }
|
|
21
|
+
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
|
|
22
|
+
.wrap { width: min(100%, 1440px); margin-inline: auto; padding-inline: var(--gutter); }
|
|
23
|
+
.mast-inner, .mast nav, .brand, .foot { display: flex; align-items: center; }
|
|
24
|
+
.mast-inner, .foot { justify-content: space-between; gap: 12px; }
|
|
25
|
+
.mast-inner { min-height: 62px; }
|
|
26
|
+
.mast nav { gap: clamp(14px, 3vw, 38px); }
|
|
27
|
+
.mast nav a, .foot a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; font-size: .83rem; }
|
|
28
|
+
.brand { gap: 8px; min-height: 44px; font-weight: 1000; text-decoration: none; }
|
|
29
|
+
.action { display: inline-block; min-height: 44px; padding: 9px 21px; font-weight: 950; font-size: .98rem; line-height: 1.3; }
|
|
30
|
+
.action:hover { text-decoration: underline; text-underline-offset: .18em; }
|
|
31
|
+
:root {
|
|
32
|
+
--blue: #102385;
|
|
33
|
+
--ink: var(--blue);
|
|
34
|
+
--lime: #cdf473;
|
|
35
|
+
--coral: #ffab91;
|
|
36
|
+
--body-size: 1.0625rem;
|
|
37
|
+
}
|
|
38
|
+
body { font-size: var(--body-size); line-height: 1.5; }
|
|
39
|
+
.mast, .hero, .trust, footer { background: var(--blue); color: var(--cream); }
|
|
40
|
+
.mast .brand { font: 700 .9rem var(--mono); }
|
|
41
|
+
.mast-inner { min-height: 52px; }
|
|
42
|
+
.mast nav a, .foot a { font-size: .9375rem; }
|
|
43
|
+
.action {
|
|
44
|
+
background: var(--lime); color: var(--blue); border: 2px solid var(--blue);
|
|
45
|
+
border-radius: 999px; font-size: var(--body-size); line-height: 1.45;
|
|
46
|
+
}
|
|
47
|
+
.hunt-results {
|
|
48
|
+
background: var(--cream);
|
|
49
|
+
color: var(--blue);
|
|
50
|
+
padding-block: clamp(26px, 4vw, 56px);
|
|
51
|
+
}
|
|
52
|
+
.hunt-results h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
|
|
53
|
+
.results-head, .result-identity, .result-actions {
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
justify-content: space-between;
|
|
57
|
+
flex-wrap: wrap;
|
|
58
|
+
gap: 8px 16px;
|
|
59
|
+
}
|
|
60
|
+
.results-head h2 { overflow-wrap: anywhere; scroll-margin-block: 20px; }
|
|
61
|
+
.results-intro { margin-top: 8px; max-width: 68ch; }
|
|
62
|
+
.hunt-results a { font-weight: 800; }
|
|
63
|
+
.hunt-results { overflow-wrap: anywhere; }
|
|
64
|
+
.results-head { margin-bottom: 12px; }
|
|
65
|
+
.results-head:has(.requested-actions) { justify-content: flex-start; align-items: baseline; }
|
|
66
|
+
.hunt-card > .alternatives-title { display: block; margin: 16px 0 8px; }
|
|
67
|
+
.alternatives-title + .trademark-slot:not(:empty) { margin-bottom: 8px; }
|
|
68
|
+
.hunt-list { margin: 16px 0 0; list-style: none; padding: 0; display: grid; gap: 22px; }
|
|
69
|
+
.hunt-card + .hunt-card { margin-top: 24px; }
|
|
70
|
+
.hunt-list .hunt-card { border-top: 2px solid; padding-top: 12px; }
|
|
71
|
+
.hunt-card > h3 { display: inline; margin-right: 10px; font-size: 1.5rem; }
|
|
72
|
+
.name-score, .offer-count, .detail-checks h5 { font: 750 .82rem/1.5 var(--mono); }
|
|
73
|
+
.name-score { white-space: nowrap; }
|
|
74
|
+
.offer-count { margin: 12px 0 6px; }
|
|
75
|
+
.trademark-warning { border-left: 4px solid; background: var(--coral); padding: 12px 16px; }
|
|
76
|
+
.trademark-warning strong { font-size: 1.15rem; }
|
|
77
|
+
.trademark-warning p, .trademark-pending { font-size: .93rem; }
|
|
78
|
+
.trademark-pending { border-left: 2px solid; padding-left: 10px; }
|
|
79
|
+
.hunt-card[data-check-pending] .offer-row > :is(.action, .buy-note) { display: none; }
|
|
80
|
+
.ending-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 2px; background: var(--blue); }
|
|
81
|
+
.offer-row, .detail-checks { min-width: 0; background: var(--cream); padding: 15px 16px 0; }
|
|
82
|
+
.offer-row { display: flex; flex-direction: column; align-items: flex-start; }
|
|
83
|
+
.offer-head { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; }
|
|
84
|
+
.domain-title { margin: 0; font: 750 clamp(1.1rem, 1.75vw, 1.42rem)/1.2 var(--mono); letter-spacing: -.05em; }
|
|
85
|
+
.verdict, .lowest { background: var(--lime); padding: 1px 5px; font-weight: 850; }
|
|
86
|
+
.verdict { font-size: .75rem; }
|
|
87
|
+
.pick-label { margin-top: 3px; font-size: .8rem; }
|
|
88
|
+
.first-price { margin-top: 10px; }
|
|
89
|
+
.first-price strong { font: 950 1.75rem/1 Mulish, sans-serif; letter-spacing: -.055em; }
|
|
90
|
+
.first-price, .renewal, .three-year, .taken-group, .suggestion-foot { font-size: .91rem; }
|
|
91
|
+
.offer-row > .action { padding: 5px 14px; min-height: 34px; margin-top: 10px; text-decoration: none; background: transparent; font-size: .9rem; }
|
|
92
|
+
.offer-row > .action:hover { background: var(--lime); }
|
|
93
|
+
.offer-condition, .renewal-warning { margin: 5px 0; font-size: .82rem; }
|
|
94
|
+
.shop-table { width: 100%; margin: 12px 0 4px; border-collapse: collapse; font-size: .83rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
|
|
95
|
+
.shop-table td, .shop-table th { text-align: right; padding: 6px 0 6px 4px; border-top: 1px solid #10238540; }
|
|
96
|
+
.shop-table thead th { border-top: 1px solid; font-weight: 800; }
|
|
97
|
+
.shop-table th:first-child { text-align: left; padding-left: 0; }
|
|
98
|
+
.shop-table tbody small { display: block; width: fit-content; margin-top: 2px; font-size: .7rem; font-weight: 650; }
|
|
99
|
+
.shop-table tbody small.lowest { font-weight: 850; }
|
|
100
|
+
.renewal-warning { border-left: 2px solid var(--coral); padding-left: 8px; }
|
|
101
|
+
.checks-toggle, .more-shops { color: inherit; background: none; border: 0; cursor: pointer; font: 850 .9rem/1.4 Mulish, sans-serif; }
|
|
102
|
+
.checks-toggle { width: 100%; min-height: 44px; margin-top: auto; padding: 8px 0; text-align: left; border-top: 1px solid; }
|
|
103
|
+
.checks-toggle::after { content: '+'; float: right; }
|
|
104
|
+
.checks-toggle[aria-expanded=true]::after { content: '−'; }
|
|
105
|
+
.more-shops { padding: 5px 0; text-decoration: underline; }
|
|
106
|
+
.detail-checks { border: 2px solid var(--blue); border-top: 0; padding-bottom: 15px; }
|
|
107
|
+
.detail-checks h4 { font-size: 1.12rem; margin: 0 0 8px; }
|
|
108
|
+
.detail-checks h5 { margin: 0 0 5px; }
|
|
109
|
+
.check-grid, .handle-list { display: grid; gap: 10px; }
|
|
110
|
+
.handle-list { gap: 0; }
|
|
111
|
+
.check-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid #10238540; font-size: .88rem; }
|
|
112
|
+
.check-line a { text-align: right; font-weight: 650; }
|
|
113
|
+
.mark-result:not(:empty) { margin-top: 8px; font-weight: 800; font-size: .9rem; }
|
|
114
|
+
.taken-group { margin-top: 14px; }
|
|
115
|
+
.taken-list > a { font-family: var(--mono); margin-left: 4px; }
|
|
116
|
+
.taken-next { display: inline-block; margin-left: 6px; }
|
|
117
|
+
.suggestion-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 8px; }
|
|
118
|
+
.reason-list { padding-left: 20px; }
|
|
119
|
+
.suggestion-foot summary, .refine summary { width: fit-content; padding-block: 6px; font-weight: 800; cursor: pointer; }
|
|
120
|
+
.refine, .recovery:not([hidden]) { margin-top: 20px; }
|
|
121
|
+
.recovery > h3 { font-size: 1.6rem; }
|
|
122
|
+
.result-sharing { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; }
|
|
123
|
+
.result-sharing:has(a), .result-sharing:has(.quote-caption:not(:empty)) { margin-top: 16px; padding-top: 10px; border-top: 1px solid #10238540; }
|
|
124
|
+
.quote-caption, .result-sharing a { font-size: .8rem; }
|
|
125
|
+
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
126
|
+
@media (min-width: 760px) {
|
|
127
|
+
.steer-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
128
|
+
.idea-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
129
|
+
}
|
|
130
|
+
@media (min-width: 1000px) {
|
|
131
|
+
#result-pages > .hunt-card .ending-list { grid-template-columns: repeat(auto-fit, minmax(30%, 1fr)); }
|
|
132
|
+
#result-pages > .hunt-card .ending-list:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
133
|
+
.detail-checks { border-width: 1px; }
|
|
134
|
+
#result-pages > .hunt-card .check-grid { grid-template-columns: 1fr 2fr; gap: 28px; }
|
|
135
|
+
#result-pages > .hunt-card .handle-list { grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 20px; }
|
|
136
|
+
.ending-list { background: transparent; padding: 0; gap: 0; }
|
|
137
|
+
.ending-list > * { border: 1px solid var(--blue); }
|
|
138
|
+
}
|
|
139
|
+
/* Standalone receipts have one checks panel per name and native disclosure controls. */
|
|
140
|
+
.hunt-results h1 { margin: 0; max-width: none; font-size: clamp(2rem, 4vw, 3.5rem); }
|
|
141
|
+
.results-head { align-items: baseline; }
|
|
142
|
+
.mast-inner { flex-wrap: wrap; padding-block: 6px; }
|
|
143
|
+
.brand img { width: 32px; height: 32px; }
|
|
144
|
+
.mast time { font: 600 .85rem/1.5 var(--mono); }
|
|
145
|
+
.offer-row { padding-bottom: 12px; }
|
|
146
|
+
.hunt-card > .trademark-warning, .hunt-card > .ending-summary { margin-block: 10px; }
|
|
147
|
+
.name-details { border: 1px solid; padding-inline: 16px; }
|
|
148
|
+
.name-details > summary { padding-block: 10px; font-weight: 800; cursor: pointer; }
|
|
149
|
+
.name-details[open] { padding-bottom: 12px; }
|
|
150
|
+
.extra-shops { width: 100%; }
|
|
151
|
+
.extra-shops summary { width: fit-content; }
|
|
152
|
+
.extra-shops table { margin-top: 0; }
|
|
153
|
+
.taken-list a { display: inline-block; max-width: 100%; }
|
|
154
|
+
.name-score { white-space: normal; }
|
|
155
|
+
.name-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-block: 12px; }
|
|
156
|
+
.hunt-card > h2 { font-size: 1.65rem; margin-bottom: 8px; }
|
|
157
|
+
.idea-list > li { min-width: 0; }
|
|
158
|
+
.name-details h4 { margin: 12px 0 4px; }
|
|
159
|
+
.evidence-table td { white-space: nowrap; }
|
|
160
|
+
.hunt-card .suggestion-foot { flex-wrap: wrap; }
|
|
161
|
+
.results-intro, .quote-caption { margin-block: 8px; }
|
|
162
|
+
.local-evidence { margin-top: 8px; font-size: .9rem; }
|
|
163
|
+
.local-evidence p { margin-block: 4px; }
|
|
164
|
+
.result-sharing { margin-block: 12px; }
|
|
165
|
+
#result-pages > .hunt-card { margin-top: 12px; }
|
|
166
|
+
footer { padding-block: 14px; font-size: .85rem; }
|
|
167
|
+
@media (prefers-color-scheme: dark) {
|
|
168
|
+
:root { color-scheme: dark; --cream: #18203b; --blue: #f3edda; --ink: var(--blue); }
|
|
169
|
+
.mast, footer { background: #101630; color: var(--blue); }
|
|
170
|
+
.trademark-warning { background: #522f3a; border-color: var(--coral); }
|
|
171
|
+
.verdict, .lowest, .offer-row > .action:hover { color: #102385; }
|
|
172
|
+
.offer-row > .action { color: var(--blue); }
|
|
173
|
+
.offer-row > .action:hover { color: #102385; }
|
|
174
|
+
.shop-table td, .shop-table th, .result-sharing, .check-line { border-top-color: #838ca7; }
|
|
175
|
+
}
|
|
@@ -13,8 +13,8 @@ export const handleStates = {
|
|
|
13
13
|
unknown: "Couldn't check",
|
|
14
14
|
};
|
|
15
15
|
const hour = 3_600_000;
|
|
16
|
-
//
|
|
17
|
-
export const handleLifetime = { taken:
|
|
16
|
+
// All definite public profile states expire after one hour.
|
|
17
|
+
export const handleLifetime = { taken: hour, 'not-found': hour, 'not-seen': hour };
|
|
18
18
|
// One platform's whole run (its two controls, the exact handles and any variants) shares this budget.
|
|
19
19
|
export const platformBudgetMs = 2000;
|
|
20
20
|
export const handleVariants = name => ['get' + name, name + 'app', name + 'hq'];
|
|
@@ -134,7 +134,7 @@ async function startRefresh(directory) {
|
|
|
134
134
|
await lock.close();
|
|
135
135
|
const child = spawn(process.execPath, [fileURLToPath(new URL('./index.mjs', import.meta.url)), '--refresh-prices'], {
|
|
136
136
|
detached: true, stdio: 'ignore',
|
|
137
|
-
env: { ...process.env, DOMAIN_HOUND_PRICE_CACHE: fileURLToPath(directory) },
|
|
137
|
+
env: { ...process.env, DOMAIN_HOUND_OPEN: 'off', DOMAIN_HOUND_PRICE_CACHE: fileURLToPath(directory) },
|
|
138
138
|
});
|
|
139
139
|
child.on('error', () => {});
|
|
140
140
|
child.unref();
|
|
@@ -5,10 +5,11 @@ import { saleSignal } from './parking.mjs';
|
|
|
5
5
|
import { cacheDir, mapLimit, readCache, writeCache } from './cache.mjs';
|
|
6
6
|
|
|
7
7
|
export const bootstrapUrl = 'https://data.iana.org/rdap/dns.json';
|
|
8
|
-
//
|
|
9
|
-
// so a
|
|
8
|
+
// Cache confirmed availability for ten minutes, or thirty for Google Registry. A taken result lasts a day.
|
|
9
|
+
// DNS still runs first so a newly delegated name can be found before the cache expires.
|
|
10
10
|
export const takenLifetime = 24 * 3_600_000;
|
|
11
|
-
export const freeLifetime =
|
|
11
|
+
export const freeLifetime = 10 * 60_000;
|
|
12
|
+
const googleFreeLifetime = 30 * 60_000;
|
|
12
13
|
const identityDigital = 'https://rdap.identitydigital.services';
|
|
13
14
|
const rdapRateLimit = 'Registry RDAP returned HTTP 429';
|
|
14
15
|
// A rate-limited registry host is left alone for its Retry-After in this process and the next.
|
|
@@ -445,7 +446,8 @@ export async function lookupRegistrations(candidates, {
|
|
|
445
446
|
const filename = dnsFirst ? 'rdap-' + domain + '.json' : null;
|
|
446
447
|
const cached = filename && await readCache(directory, filename);
|
|
447
448
|
const age = now - cached?.at;
|
|
448
|
-
const
|
|
449
|
+
const availableLifetime = origin === 'https://pubapi.registry.google' ? googleFreeLifetime : freeLifetime;
|
|
450
|
+
const lifetime = { taken: takenLifetime, free: availableLifetime }[cached?.result?.status] ?? 0;
|
|
449
451
|
if (age >= 0 && age < lifetime) {
|
|
450
452
|
record(row, { ...cached.result, checkedAt: new Date(cached.at).toISOString() });
|
|
451
453
|
return;
|
|
@@ -141,7 +141,7 @@ async function startTrancoRefresh(directory) {
|
|
|
141
141
|
}
|
|
142
142
|
try { await (await open(marker, 'wx', 0o600)).close(); } catch { return; }
|
|
143
143
|
const child = spawn(process.execPath, [fileURLToPath(new URL('./index.mjs', import.meta.url)), '--refresh-tranco'], {
|
|
144
|
-
detached: true, stdio: 'ignore', env: { ...process.env, DOMAIN_HOUND_TRANCO_CACHE: fileURLToPath(directory) },
|
|
144
|
+
detached: true, stdio: 'ignore', env: { ...process.env, DOMAIN_HOUND_OPEN: 'off', DOMAIN_HOUND_TRANCO_CACHE: fileURLToPath(directory) },
|
|
145
145
|
});
|
|
146
146
|
child.on('error', () => {});
|
|
147
147
|
child.unref();
|
package/clis/portfolio/page.mjs
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
// The local results page for my_domains, in the same receipt style as the name results: one row per domain,
|
|
2
2
|
// most urgent first. One fixed file pair (portfolio.html and portfolio.md) is rewritten on each check.
|
|
3
|
-
import { spawn } from 'node:child_process';
|
|
4
3
|
import { randomUUID } from 'node:crypto';
|
|
5
4
|
import { mkdir, rename, unlink, writeFile } from 'node:fs/promises';
|
|
6
5
|
import { homedir } from 'node:os';
|
|
7
6
|
import { join, resolve } from 'node:path';
|
|
8
7
|
import { pathToFileURL } from 'node:url';
|
|
9
|
-
import { backgroundCommand } from '../../results.mjs';
|
|
10
8
|
import { receiptStyle } from '../../results-style.mjs';
|
|
11
9
|
|
|
12
10
|
const escape = value => String(value ?? '').replace(/[&<>"']/g, char =>
|
|
@@ -115,26 +113,15 @@ async function writePrivate(filename, content) {
|
|
|
115
113
|
}
|
|
116
114
|
}
|
|
117
115
|
|
|
118
|
-
//
|
|
116
|
+
// Save the portfolio files and return a link for the caller.
|
|
119
117
|
export function portfolioPages({ env = process.env,
|
|
120
118
|
directory = env.DOMAIN_HOUND_RESULTS_DIR || join(homedir(), '.domain-hound', 'results') } = {}) {
|
|
121
|
-
let opened = false;
|
|
122
119
|
return async (rows, lines, checkedAt, note) => {
|
|
123
120
|
await mkdir(directory, { recursive: true, mode: 0o700 });
|
|
124
121
|
const page = renderPage(rows, lines, checkedAt, note);
|
|
125
122
|
const filename = resolve(directory, 'portfolio.html');
|
|
126
123
|
await writePrivate(resolve(directory, 'portfolio.md'), page.md);
|
|
127
124
|
await writePrivate(filename, page.html);
|
|
128
|
-
if (!opened) {
|
|
129
|
-
opened = true;
|
|
130
|
-
await backgroundCommand(filename, env).then(command => {
|
|
131
|
-
if (!command) return;
|
|
132
|
-
const [executable, args, launchEnv] = command;
|
|
133
|
-
const browser = spawn(executable, args, { stdio: 'ignore', windowsHide: true, env: launchEnv });
|
|
134
|
-
browser.on('error', () => {});
|
|
135
|
-
browser.unref();
|
|
136
|
-
}).catch(() => {});
|
|
137
|
-
}
|
|
138
125
|
return pathToFileURL(filename).href.replaceAll('(', '%28').replaceAll(')', '%29');
|
|
139
126
|
};
|
|
140
127
|
}
|
|
@@ -15,18 +15,18 @@ const domainList = description => ({ type: 'array', minItems: 1, maxItems: maxSa
|
|
|
15
15
|
|
|
16
16
|
export const portfolioTool = {
|
|
17
17
|
name: 'my_domains',
|
|
18
|
-
description: '
|
|
18
|
+
description: 'Use this when checking expiry, renewal prices, DNS, site, TLS or email for domains the person owns. '
|
|
19
19
|
+ 'Use domains to save confirmed domains locally, remove to drop them, or no arguments to recheck. '
|
|
20
|
-
+ 'Use find: true to preview candidates from project files and Spaceship. Show the candidates and add only the domains the person confirms.
|
|
21
|
-
annotations: { title: 'My domains', readOnlyHint:
|
|
20
|
+
+ 'Use find: true to preview candidates from project files and Spaceship. Show the candidates and add only the domains the person confirms. Use check_domains to look at a new domain.',
|
|
21
|
+
annotations: { title: 'My domains', readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: true },
|
|
22
22
|
inputSchema: {
|
|
23
23
|
type: 'object',
|
|
24
24
|
properties: {
|
|
25
25
|
domains: domainList('Exact domains the person confirmed they own, like ["example.com"]. They join the saved list, then the whole list is checked.'),
|
|
26
26
|
find: { type: 'boolean', description: 'True to list candidate domains for the person to confirm. Saves and checks nothing.' },
|
|
27
27
|
paths: { type: 'array', minItems: 1, maxItems: maxPaths, items: { type: 'string', minLength: 1, maxLength: 1024 },
|
|
28
|
-
description: 'With find only: project folders to look in. Defaults to the current folder.' },
|
|
29
|
-
remove: domainList('Domains to drop from the saved list.'),
|
|
28
|
+
description: 'With find only: project folders to look in. For example ["./web"]. Defaults to the current folder.' },
|
|
29
|
+
remove: domainList('Domains to drop from the saved list, e.g. ["example.com"].'),
|
|
30
30
|
},
|
|
31
31
|
additionalProperties: false,
|
|
32
32
|
},
|