@domandigital/create-site 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,98 +1,104 @@
1
- # @domandigital/create-site
2
-
3
- The first thing that runs on a new Doman Digital client site. It installs the
4
- house packages and writes the per-site files they read, so every build starts
5
- on the same foundation before a single page is designed.
6
-
7
- ```bash
8
- pnpm create next-app@latest acme && cd acme
9
- pnpm create @domandigital/site
10
-
11
- # or Astro
12
- pnpm create astro@latest acme && cd acme
13
- pnpm create @domandigital/site
14
- ```
15
-
16
- With npm, flags go after `--`, or npm keeps them for itself:
17
- `npm create @domandigital/site@latest -- --dry-run`.
18
-
19
- ## Thin scaffold, fat packages
20
-
21
- It copies no package code into the site. Logic lives in
22
- `@domandigital/graph`, `@domandigital/seo` and `@domandigital/craft`, installed
23
- at a version range; the site only gets the files those packages read. A site
24
- upgrades by bumping packages. A template repo copied once drifts from the day
25
- it is copied, which is the failure this exists to avoid.
26
-
27
- ## What it writes
28
-
29
- | File | What it is |
30
- | --- | --- |
31
- | `site.facts.ts` | The only source of the business's name, contact details, places, accreditations and profiles. Unknown is `null`, never a placeholder |
32
- | `site.routes.ts` | Every page's indexing policy, keyword targets and internal links, seeded from the pages already on disk |
33
- | `links.json` | The backlink register: links the business has earned. It has no status for asks |
34
- | `redirects.json` | Every moved URL, read by `next.config` or `astro.config` |
35
- | `lib/graph/site-adapter.ts`, `lib/graph/page-graph.ts` | `site.facts.ts` mapped onto `@domandigital/graph`, and one JSON-LD graph per page. Only live profiles become `sameAs`; only checked accreditations reach search engines |
36
- | `components/JsonLd`, `components/DesignerCredit` | The JSON-LD script, and the credit: "Website by Doman Digital", linking to the homepage, `rel="nofollow"` |
37
- | `/press`, `/resources` | A press page built from the data files, and a noindex home for the site's linkable assets |
38
- | `tests/seo/*`, `tests/house.test.ts` | Route coverage, the redirect gate, JSON-LD integrity, the redirect wiring, and the rule that contact details live only in the facts file |
39
- | `docs/HOUSE.md` | The house rules, imported by `CLAUDE.md` (created if missing, otherwise one import line is added) |
40
- | `docs/DIRECTION.md`, `docs/seo-launch-checklist.md`, `docs/seo-baseline.md` | The site's decision and blocked registers, the listings to claim for its sector, and the launch, 90-day, 6-month and 12-month baseline |
41
- | `.github/workflows/seo-check.yml` | Only if the project has no workflows yet |
42
- | `package.json` | `seo:check` and `launch:check` scripts, and the house packages |
43
-
44
- It then runs `craft direction init` through the installed craft bin to start
45
- `art-direction.json`, unless one exists.
46
-
47
- ## What it never does
48
-
49
- - Write outside the project, or anything at all when it refuses.
50
- - Replace a data file (`site.facts.ts`, `site.routes.ts`, `links.json`,
51
- `redirects.json`, `docs/DIRECTION.md`, the checklist, the baseline), even with
52
- `--force`. Delete one to regenerate it.
53
- - Replace a house template file that differs, unless `--force`. Without it,
54
- the difference is reported: a re-run is also a drift report.
55
- - Guess at a framework config it does not recognise. It prints what to add,
56
- and `tests/seo/config.test.ts` fails until someone does.
57
- - Invent an answer. With `--yes` or no terminal, a missing required answer is
58
- an error that names the flag.
59
-
60
- ## Flags
61
-
62
- ```
63
- create-site [dir] [--client <legal name>] [--trading-name <name>]
64
- [--site-url <https://...>] [--sector trades|beauty|clinics|professional]
65
- [--description "<one or two sentences>"] [--answers <file.json>]
66
- [--dry-run] [--force] [--skip-install] [--yes] [--help] [--version]
67
- ```
68
-
69
- `--answers` takes a JSON file with any of `legalName`, `tradingName`,
70
- `siteUrl`, `sector`, `description`, `phone`, `email`, `locality`,
71
- `postalCode`, `serviceAreas`, `registers` (ids from `src/sectors.ts`) and
72
- `previousHosts`.
73
-
74
- Exit codes: 0 done, 1 refused (nothing written), 2 usage error.
75
-
76
- ## Supported projects
77
-
78
- Next.js with the App Router (`app/` or `src/app/`) and Astro (`src/pages/`),
79
- both TypeScript. The package manager comes from the lockfile, then
80
- `packageManager` in `package.json`, then whatever ran the command.
81
-
82
- On Astro with static output, redirects are meta-refresh pages rather than
83
- 301s. For a migration, deploy with a host adapter or add host-level redirects;
84
- the launch checklist says so.
85
-
86
- ## The sector register list is not yet checked
87
-
88
- `src/sectors.ts` lists the UK registers and directories each sector can claim.
89
- The names and homepages are well known, but whether each register shows a
90
- business website, and how it links, has not been verified by a person.
91
- `REGISTERS_CHECKED_ON` is `null` until someone has, and every generated
92
- checklist says so while it is.
93
-
94
- ## Upgrading a site
95
-
96
- Bump the house package ranges, then run `pnpm create @domandigital/site
97
- --dry-run` in the site to see which house files differ from the current
98
- templates.
1
+ # @domandigital/create-site
2
+
3
+ The first thing that runs on a new Doman Digital client site. It installs the
4
+ house packages and writes the per-site files they read, so every build starts
5
+ on the same foundation before a single page is designed.
6
+
7
+ ```bash
8
+ pnpm create next-app@latest acme && cd acme
9
+ pnpm create @domandigital/site
10
+
11
+ # or Astro
12
+ pnpm create astro@latest acme && cd acme
13
+ pnpm create @domandigital/site
14
+ ```
15
+
16
+ With npm, flags go after `--`, or npm keeps them for itself:
17
+ `npm create @domandigital/site@latest -- --dry-run`.
18
+
19
+ ## Thin scaffold, fat packages
20
+
21
+ It copies no package code into the site. Logic lives in
22
+ `@domandigital/graph`, `@domandigital/seo` and `@domandigital/craft`, installed
23
+ at a version range; the site only gets the files those packages read. A site
24
+ upgrades by bumping packages. A template repo copied once drifts from the day
25
+ it is copied, which is the failure this exists to avoid.
26
+
27
+ ## What it writes
28
+
29
+ | File | What it is |
30
+ | --- | --- |
31
+ | `site.facts.ts` | The only source of the business's name, contact details, places, accreditations and profiles. Unknown is `null`, never a placeholder |
32
+ | `site.routes.ts` | Every page's indexing policy, keyword targets and internal links, seeded from the pages already on disk |
33
+ | `links.json` | The backlink register: links the business has earned. It has no status for asks |
34
+ | `redirects.json` | Every moved URL, read by `next.config` or `astro.config` |
35
+ | `lib/graph/site-adapter.ts`, `lib/graph/page-graph.ts` | `site.facts.ts` mapped onto `@domandigital/graph`, and one JSON-LD graph per page. Only live profiles become `sameAs`; only checked accreditations reach search engines |
36
+ | `components/JsonLd`, `components/DesignerCredit` | The JSON-LD script, and the credit: "Website by Doman Digital", linking to the homepage, `rel="nofollow"` |
37
+ | `/press`, `/resources` | A press page built from the data files, and a noindex home for the site's linkable assets |
38
+ | `tests/seo/*`, `tests/house.test.ts` | Route coverage, the redirect gate, JSON-LD integrity, the redirect wiring, and the rule that contact details live only in the facts file |
39
+ | `docs/HOUSE.md` | The house rules, imported by `CLAUDE.md` (created if missing, otherwise one import line is added) |
40
+ | `docs/DIRECTION.md`, `docs/seo-launch-checklist.md`, `docs/seo-baseline.md` | The site's decision and blocked registers, the listings to claim for its sector, and the launch, 90-day, 6-month and 12-month baseline |
41
+ | `.github/workflows/seo-check.yml` | Only if the project has no workflows yet |
42
+ | `package.json` | `seo:check` and `launch:check` scripts, and the house packages |
43
+
44
+ It then runs `craft direction init` through the installed craft bin to start
45
+ `art-direction.json`, unless one exists.
46
+
47
+ ## What it never does
48
+
49
+ - Write outside the project, or anything at all when it refuses.
50
+ - Replace a data file (`site.facts.ts`, `site.routes.ts`, `links.json`,
51
+ `redirects.json`, `docs/DIRECTION.md`, the checklist, the baseline), even with
52
+ `--force`. Delete one to regenerate it.
53
+ - Replace a house template file that differs, unless `--force`. Without it,
54
+ the difference is reported: a re-run is also a drift report.
55
+ - Guess at a framework config it does not recognise. It prints what to add,
56
+ and `tests/seo/config.test.ts` fails until someone does.
57
+ - Invent an answer. With `--yes` or no terminal, a missing required answer is
58
+ an error that names the flag.
59
+
60
+ ## Flags
61
+
62
+ ```
63
+ create-site [dir] [--client <legal name>] [--trading-name <name>]
64
+ [--site-url <https://...>] [--sector trades|beauty|clinics|professional]
65
+ [--description "<one or two sentences>"] [--answers <file.json>]
66
+ [--dry-run] [--force] [--skip-install] [--yes] [--help] [--version]
67
+ ```
68
+
69
+ `--answers` takes a JSON file with any of `legalName`, `tradingName`,
70
+ `siteUrl`, `sector`, `description`, `phone`, `email`, `locality`,
71
+ `postalCode`, `serviceAreas`, `registers` (ids from `src/sectors.ts`) and
72
+ `previousHosts`.
73
+
74
+ Exit codes: 0 done, 1 refused (nothing written), 2 usage error.
75
+
76
+ ## Supported projects
77
+
78
+ Next.js with the App Router (`app/` or `src/app/`) and Astro (`src/pages/`),
79
+ both TypeScript. The package manager comes from the lockfile, then
80
+ `packageManager` in `package.json`, then whatever ran the command.
81
+
82
+ On Astro with static output, redirects are meta-refresh pages rather than
83
+ 301s. For a migration, deploy with a host adapter or add host-level redirects;
84
+ the launch checklist says so.
85
+
86
+ ## The sector register list
87
+
88
+ `src/sectors.ts` lists the UK registers and directories each sector can claim.
89
+ Each entry records what a real listing shows of the business's website
90
+ (`followed`, `nofollow`, `shown-unlinked` or `not-shown`), the date someone
91
+ opened one, and a note naming the listing or saying why none could be read.
92
+ An entry nobody has checked has `website: null`, and the generated checklist
93
+ says "Not checked" beside it, with the reason. A test refuses a status without
94
+ a date and a date without a status.
95
+
96
+ On 2026-09-24, 12 of the 42 entries were checked by rendering a listing in a
97
+ browser. Most of the rest sit behind a CAPTCHA or a bot challenge, or have no
98
+ single register. They need a person with a browser.
99
+
100
+ ## Upgrading a site
101
+
102
+ Bump the house package ranges, then run `pnpm create @domandigital/site
103
+ --dry-run` in the site to see which house files differ from the current
104
+ templates.
package/dist/cli.js CHANGED
@@ -23,50 +23,49 @@ var SECTORS = {
23
23
  clinics: { label: "Clinics and aesthetics", businessTypes: ["LocalBusiness", "MedicalBusiness"] },
24
24
  professional: { label: "Professional services", businessTypes: ["LocalBusiness", "ProfessionalService"] }
25
25
  };
26
- var REGISTERS_CHECKED_ON = null;
27
26
  var REGISTERS = [
28
- { id: "gbp", name: "Google Business Profile", url: "https://business.google.com/", condition: "Every business with a place or a service area", sectors: "all" },
29
- { id: "bing-places", name: "Bing Places", url: "https://www.bingplaces.com/", condition: "Every business with a place or a service area", sectors: "all" },
30
- { id: "apple-business-connect", name: "Apple Business Connect", url: "https://businessconnect.apple.com/", condition: "Every business with a place or a service area", sectors: "all" },
31
- { id: "companies-house", name: "Companies House", url: "https://find-and-update.company-information.service.gov.uk/", condition: "Limited companies and LLPs: check the registered name matches site.facts.ts", sectors: "all" },
32
- { id: "ico", name: "ICO data protection fee register", url: "https://ico.org.uk/", condition: "Businesses that have paid the data protection fee", sectors: "all" },
33
- { id: "yell", name: "Yell", url: "https://www.yell.com/", condition: "One general UK directory, for consistent contact details", sectors: "all" },
34
- { id: "gas-safe", name: "Gas Safe Register", url: "https://www.gassaferegister.co.uk/", condition: "Gas work", sectors: ["trades"] },
35
- { id: "niceic", name: "NICEIC", url: "https://www.niceic.com/", condition: "Electrical contractors registered with NICEIC", sectors: ["trades"] },
36
- { id: "napit", name: "NAPIT", url: "https://www.napit.org.uk/", condition: "Contractors registered with NAPIT", sectors: ["trades"] },
37
- { id: "oftec", name: "OFTEC", url: "https://www.oftec.org/", condition: "Oil heating work", sectors: ["trades"] },
38
- { id: "hetas", name: "HETAS", url: "https://www.hetas.co.uk/", condition: "Solid fuel and stove installation", sectors: ["trades"] },
39
- { id: "fensa", name: "FENSA", url: "https://www.fensa.org.uk/", condition: "Window and door installation", sectors: ["trades"] },
40
- { id: "certass", name: "CERTASS", url: "https://www.certass.co.uk/", condition: "Window and door installation", sectors: ["trades"] },
41
- { id: "mcs", name: "MCS", url: "https://mcscertified.com/", condition: "Heat pumps, solar and other renewables", sectors: ["trades"] },
42
- { id: "trustmark", name: "TrustMark", url: "https://www.trustmark.org.uk/", condition: "TrustMark registered businesses", sectors: ["trades"] },
43
- { id: "fmb", name: "Federation of Master Builders", url: "https://www.fmb.org.uk/", condition: "FMB members", sectors: ["trades"] },
44
- { id: "buy-with-confidence", name: "Buy With Confidence", url: "https://www.buywithconfidence.gov.uk/", condition: "Where the local trading standards service runs it and the business is approved", sectors: ["trades"] },
45
- { id: "installer-finders", name: "Manufacturer installer finders", url: null, condition: "Accredited installers of a brand that lists them (boilers, EV chargers, heat pumps)", sectors: ["trades"] },
46
- { id: "babtac", name: "BABTAC", url: "https://www.babtac.com/", condition: "BABTAC members", sectors: ["beauty"] },
47
- { id: "beauty-guild", name: "The Guild of Beauty Therapists", url: "https://www.beautyguild.com/", condition: "Guild members", sectors: ["beauty"] },
48
- { id: "council-licence", name: "Council special treatment licence or registration", url: null, condition: "Where the local council licenses the treatments offered", sectors: ["beauty", "clinics"] },
49
- { id: "brand-salon-finders", name: "Product brand salon finders", url: null, condition: "Salons stocking or trained on a brand that lists them", sectors: ["beauty"] },
50
- { id: "fresha", name: "Fresha", url: "https://www.fresha.com/", condition: "If the business already takes bookings there", sectors: ["beauty"] },
51
- { id: "treatwell", name: "Treatwell", url: "https://www.treatwell.co.uk/", condition: "If the business already takes bookings there", sectors: ["beauty"] },
52
- { id: "cqc", name: "Care Quality Commission", url: "https://www.cqc.org.uk/", condition: "Only where the clinic carries out regulated activities", sectors: ["clinics"] },
53
- { id: "save-face", name: "Save Face", url: "https://www.saveface.co.uk/", condition: "Accredited aesthetic practitioners", sectors: ["clinics"] },
54
- { id: "jccp", name: "JCCP", url: "https://www.jccp.org.uk/", condition: "Practitioners on the JCCP register", sectors: ["clinics"] },
55
- { id: "gmc", name: "GMC register", url: "https://www.gmc-uk.org/", condition: "Doctors", sectors: ["clinics"], personLevel: true },
56
- { id: "nmc", name: "NMC register", url: "https://www.nmc.org.uk/", condition: "Nurses", sectors: ["clinics"], personLevel: true },
57
- { id: "gdc", name: "GDC register", url: "https://www.gdc-uk.org/", condition: "Dentists and dental professionals", sectors: ["clinics"], personLevel: true },
58
- { id: "gphc", name: "GPhC register", url: "https://www.pharmacyregulation.org/", condition: "Pharmacists", sectors: ["clinics"], personLevel: true },
59
- { id: "doctify", name: "Doctify", url: "https://www.doctify.com/", condition: "Clinics and practitioners listed there", sectors: ["clinics"] },
60
- { id: "insurer-finders", name: "Private insurer practitioner finders", url: null, condition: "Clinics recognised by a private health insurer", sectors: ["clinics"] },
61
- { id: "sra", name: "Solicitors Regulation Authority", url: "https://www.sra.org.uk/", condition: "SRA regulated firms", sectors: ["professional"] },
62
- { id: "law-society", name: "Law Society Find a Solicitor", url: "https://solicitors.lawsociety.org.uk/", condition: "Solicitors' firms", sectors: ["professional"] },
63
- { id: "icaew", name: "ICAEW", url: "https://www.icaew.com/", condition: "ICAEW registered firms", sectors: ["professional"] },
64
- { id: "acca", name: "ACCA", url: "https://www.accaglobal.com/", condition: "ACCA practising members", sectors: ["professional"] },
65
- { id: "aat", name: "AAT", url: "https://www.aat.org.uk/", condition: "AAT licensed accountants", sectors: ["professional"] },
66
- { id: "ciot", name: "Chartered Institute of Taxation", url: "https://www.tax.org.uk/", condition: "CIOT members", sectors: ["professional"] },
67
- { id: "fca", name: "FCA register", url: "https://register.fca.org.uk/", condition: "FCA authorised firms", sectors: ["professional"] },
68
- { id: "rics", name: "RICS", url: "https://www.rics.org/", condition: "RICS regulated firms", sectors: ["professional"] },
69
- { id: "arb", name: "Architects Registration Board", url: "https://arb.org.uk/", condition: "Architects", sectors: ["professional"], personLevel: true }
27
+ { id: "gbp", name: "Google Business Profile", url: "https://business.google.com/", condition: "Every business with a place or a service area", sectors: "all", website: null, checkedOn: null, note: "Not a register: the platform is the listing, and its website button is the platform's own. Not measured." },
28
+ { id: "bing-places", name: "Bing Places", url: "https://www.bingplaces.com/", condition: "Every business with a place or a service area", sectors: "all", website: null, checkedOn: null, note: "Not a register: the platform is the listing. Not measured." },
29
+ { id: "apple-business-connect", name: "Apple Business Connect", url: "https://businessconnect.apple.com/", condition: "Every business with a place or a service area", sectors: "all", website: null, checkedOn: null, note: "Not a register: the platform is the listing. Not measured." },
30
+ { id: "companies-house", name: "Companies House", url: "https://find-and-update.company-information.service.gov.uk/", condition: "Limited companies and LLPs: check the registered name matches site.facts.ts", sectors: "all", website: "not-shown", checkedOn: "2026-09-24", note: "Company overview page: name, number, address, status, officers. No website field." },
31
+ { id: "ico", name: "ICO data protection fee register", url: "https://ico.org.uk/", condition: "Businesses that have paid the data protection fee", sectors: "all", website: "not-shown", checkedOn: "2026-09-24", note: "Register entry (ESDWebPages/Entry/...): name, reference, dates, tier, address, other names. No website field." },
32
+ { id: "yell", name: "Yell", url: "https://www.yell.com/", condition: "One general UK directory, for consistent contact details", sectors: "all", website: null, checkedOn: null, note: "Bot challenge (403) to both curl and a headless browser." },
33
+ { id: "gas-safe", name: "Gas Safe Register", url: "https://www.gassaferegister.co.uk/", condition: "Gas work", sectors: ["trades"], website: null, checkedOn: null, note: "Bot challenge (403) to both curl and a headless browser." },
34
+ { id: "niceic", name: "NICEIC", url: "https://www.niceic.com/", condition: "Electrical contractors registered with NICEIC", sectors: ["trades"], website: null, checkedOn: null, note: "Search results load behind reCAPTCHA." },
35
+ { id: "napit", name: "NAPIT", url: "https://www.napit.org.uk/", condition: "Contractors registered with NAPIT", sectors: ["trades"], website: null, checkedOn: null, note: "Member search is a CAPTCHA form; the indexed sample profile had lapsed." },
36
+ { id: "oftec", name: "OFTEC", url: "https://www.oftec.org/", condition: "Oil heating work", sectors: ["trades"], website: "followed", checkedOn: "2026-09-24", note: "Technician detail page (find-a-technician/detail/?id=...): Website row, plain link." },
37
+ { id: "hetas", name: "HETAS", url: "https://www.hetas.co.uk/", condition: "Solid fuel and stove installation", sectors: ["trades"], website: null, checkedOn: null, note: "Bot challenge (Cloudflare) on the installer pages." },
38
+ { id: "fensa", name: "FENSA", url: "https://www.fensa.org.uk/", condition: "Window and door installation", sectors: ["trades"], website: null, checkedOn: null, note: "No listing reached: the installer search returned no results to a headless browser." },
39
+ { id: "certass", name: "CERTASS", url: "https://www.certass.co.uk/", condition: "Window and door installation", sectors: ["trades"], website: null, checkedOn: null, note: "No listing reached: the site refuses curl (403) and no public listing URL was found." },
40
+ { id: "mcs", name: "MCS", url: "https://mcscertified.com/", condition: "Heat pumps, solar and other renewables", sectors: ["trades"], website: "followed", checkedOn: "2026-09-24", note: "Find an Installer results: 'Visit Website', plain link; page robots index, follow." },
41
+ { id: "trustmark", name: "TrustMark", url: "https://www.trustmark.org.uk/", condition: "TrustMark registered businesses", sectors: ["trades"], website: null, checkedOn: null, note: "No listing reached: indexed sample profiles return 'Business not found'." },
42
+ { id: "fmb", name: "Federation of Master Builders", url: "https://www.fmb.org.uk/", condition: "FMB members", sectors: ["trades"], website: "followed", checkedOn: "2026-09-24", note: "Builder profile (fmb.org.uk/builder/...): 'Visit website', plain link; page robots index, follow." },
43
+ { id: "buy-with-confidence", name: "Buy With Confidence", url: "https://www.buywithconfidence.gov.uk/", condition: "Where the local trading standards service runs it and the business is approved", sectors: ["trades"], website: null, checkedOn: null, note: "Search results return 403 to a headless browser." },
44
+ { id: "installer-finders", name: "Manufacturer installer finders", url: null, condition: "Accredited installers of a brand that lists them (boilers, EV chargers, heat pumps)", sectors: ["trades"], website: null, checkedOn: null, note: "No single register: check the manufacturer's own finder." },
45
+ { id: "babtac", name: "BABTAC", url: "https://www.babtac.com/", condition: "BABTAC members", sectors: ["beauty"], website: null, checkedOn: null, note: "No listing reached: salon search is a form, and no indexed listing page was found." },
46
+ { id: "beauty-guild", name: "The Guild of Beauty Therapists", url: "https://www.beautyguild.com/", condition: "Guild members", sectors: ["beauty"], website: null, checkedOn: null, note: "No listing reached: the indexed sample directory entry returned 404." },
47
+ { id: "council-licence", name: "Council special treatment licence or registration", url: null, condition: "Where the local council licenses the treatments offered", sectors: ["beauty", "clinics"], website: null, checkedOn: null, note: "No single register: each council publishes its own, if at all." },
48
+ { id: "brand-salon-finders", name: "Product brand salon finders", url: null, condition: "Salons stocking or trained on a brand that lists them", sectors: ["beauty"], website: null, checkedOn: null, note: "No single register: check the brand's own finder." },
49
+ { id: "fresha", name: "Fresha", url: "https://www.fresha.com/", condition: "If the business already takes bookings there", sectors: ["beauty"], website: "not-shown", checkedOn: "2026-09-24", note: "Venue page (fresha.com/a/...): the listing template has no website field." },
50
+ { id: "treatwell", name: "Treatwell", url: "https://www.treatwell.co.uk/", condition: "If the business already takes bookings there", sectors: ["beauty"], website: "not-shown", checkedOn: "2026-09-24", note: "Venue page (treatwell.co.uk/place/...): the listing template has no website field." },
51
+ { id: "cqc", name: "Care Quality Commission", url: "https://www.cqc.org.uk/", condition: "Only where the clinic carries out regulated activities", sectors: ["clinics"], website: "followed", checkedOn: "2026-09-24", note: "Location contact tab (cqc.org.uk/location/.../contact): Website row, plain link. The overview tab shows only address and phone." },
52
+ { id: "save-face", name: "Save Face", url: "https://www.saveface.co.uk/", condition: "Accredited aesthetic practitioners", sectors: ["clinics"], website: "followed", checkedOn: "2026-09-24", note: "Clinic page (saveface.co.uk/en/clinic/...): 'Visit our website', plain link." },
53
+ { id: "jccp", name: "JCCP", url: "https://www.jccp.org.uk/", condition: "Practitioners on the JCCP register", sectors: ["clinics"], website: null, checkedOn: null, note: "No listing reached: member search is a form." },
54
+ { id: "gmc", name: "GMC register", url: "https://www.gmc-uk.org/", condition: "Doctors", sectors: ["clinics"], personLevel: true, website: null, checkedOn: null, note: "Bot challenge (403) to a headless browser." },
55
+ { id: "nmc", name: "NMC register", url: "https://www.nmc.org.uk/", condition: "Nurses", sectors: ["clinics"], personLevel: true, website: null, checkedOn: null, note: "A register of individuals; no listing opened." },
56
+ { id: "gdc", name: "GDC register", url: "https://www.gdc-uk.org/", condition: "Dentists and dental professionals", sectors: ["clinics"], personLevel: true, website: "not-shown", checkedOn: "2026-09-24", note: "Register result (olr.gdc-uk.org): status, titles, qualifications. No website field." },
57
+ { id: "gphc", name: "GPhC register", url: "https://www.pharmacyregulation.org/", condition: "Pharmacists", sectors: ["clinics"], personLevel: true, website: null, checkedOn: null, note: "A register of individuals; no listing opened." },
58
+ { id: "doctify", name: "Doctify", url: "https://www.doctify.com/", condition: "Clinics and practitioners listed there", sectors: ["clinics"], website: null, checkedOn: null, note: "Bot check (HTTP 202 interstitial) to a headless browser." },
59
+ { id: "insurer-finders", name: "Private insurer practitioner finders", url: null, condition: "Clinics recognised by a private health insurer", sectors: ["clinics"], website: null, checkedOn: null, note: "No single register: check each insurer's own finder." },
60
+ { id: "sra", name: "Solicitors Regulation Authority", url: "https://www.sra.org.uk/", condition: "SRA regulated firms", sectors: ["professional"], website: null, checkedOn: null, note: "Bot challenge (Cloudflare) on register pages." },
61
+ { id: "law-society", name: "Law Society Find a Solicitor", url: "https://solicitors.lawsociety.org.uk/", condition: "Solicitors' firms", sectors: ["professional"], website: null, checkedOn: null, note: "No listing reached: indexed office pages return an error to a headless browser." },
62
+ { id: "icaew", name: "ICAEW", url: "https://www.icaew.com/", condition: "ICAEW registered firms", sectors: ["professional"], website: null, checkedOn: null, note: "Bot challenge (Cloudflare) on find.icaew.com." },
63
+ { id: "acca", name: "ACCA", url: "https://www.accaglobal.com/", condition: "ACCA practising members", sectors: ["professional"], website: null, checkedOn: null, note: "No listing reached: the firm search reported itself unavailable." },
64
+ { id: "aat", name: "AAT", url: "https://www.aat.org.uk/", condition: "AAT licensed accountants", sectors: ["professional"], website: null, checkedOn: null, note: "No listing reached: the directory is a search form." },
65
+ { id: "ciot", name: "Chartered Institute of Taxation", url: "https://www.tax.org.uk/", condition: "CIOT members", sectors: ["professional"], website: null, checkedOn: null, note: "No listing reached: member search is a form on the ATT/CIOT portal." },
66
+ { id: "fca", name: "FCA register", url: "https://register.fca.org.uk/", condition: "FCA authorised firms", sectors: ["professional"], website: "followed", checkedOn: "2026-09-24", note: "Firm page (register.fca.org.uk/s/firm?id=...): the firm's website, plain link." },
67
+ { id: "rics", name: "RICS Find a Surveyor", url: "https://www.ricsfirms.com/", condition: "RICS regulated firms", sectors: ["professional"], website: "followed", checkedOn: "2026-09-24", note: "Office page on ricsfirms.com, RICS's Find a Surveyor: website shown as a plain link." },
68
+ { id: "arb", name: "Architects Registration Board", url: "https://arb.org.uk/", condition: "Architects", sectors: ["professional"], personLevel: true, website: null, checkedOn: null, note: "A register of individuals; no listing opened." }
70
69
  ];
71
70
  function registersFor(sector) {
72
71
  return REGISTERS.filter((r) => r.sectors === "all" || r.sectors.includes(sector));
@@ -674,8 +673,10 @@ function renderChecklist(a) {
674
673
  const registers = registersFor(a.sector);
675
674
  const held = registers.filter((r) => a.registers.includes(r.id));
676
675
  const rest = registers.filter((r) => !a.registers.includes(r.id));
677
- const line = (r) => `- [ ] **${r.name}**${r.url ? ` (${r.url})` : ""}: ${r.condition}.${r.personLevel ? " Held by a person: list it on their profile, not the business." : ""}`;
678
- const checked = REGISTERS_CHECKED_ON ? `Register list last checked by a person on ${REGISTERS_CHECKED_ON}.` : "**The register list has not yet been checked by a person.** Open each entry before relying on it: confirm the register still exists, that it shows a business website, and how it links.";
676
+ const line = (r) => `- [ ] **${r.name}**${r.url ? ` (${r.url})` : ""}: ${r.condition}.${r.personLevel ? " Held by a person: list it on their profile, not the business." : ""} ${websiteStatus(r)}`;
677
+ const checkedCount = registers.filter((r) => r.checkedOn).length;
678
+ const dates = [...new Set(registers.map((r) => r.checkedOn).filter((d) => d !== null))].sort();
679
+ const checked = checkedCount === registers.length ? `Every register below was checked on ${dates.join(", ")}.` : `${checkedCount} of the ${registers.length} registers below ${checkedCount === 1 ? "was" : "were"} checked${dates.length ? ` on ${dates.join(", ")}` : ""}: someone opened a real listing and read how it links to the business's website. **The rest say "not checked".** Open one of their listings before relying on them.`;
679
680
  return `# Launch checklist: ${a.tradingName}
680
681
 
681
682
  Sector: ${sector.label}. ${checked}
@@ -759,6 +760,20 @@ jobs:
759
760
  ${setup}
760
761
  `;
761
762
  }
763
+ function websiteStatus(r) {
764
+ switch (r.website) {
765
+ case "followed":
766
+ return `Website link on a listing: followed (checked ${r.checkedOn}).`;
767
+ case "nofollow":
768
+ return `Website link on a listing: nofollow (checked ${r.checkedOn}). Still a citation.`;
769
+ case "shown-unlinked":
770
+ return `Shows the website without a link (checked ${r.checkedOn}). Still a citation.`;
771
+ case "not-shown":
772
+ return `No website on its listings (checked ${r.checkedOn}). A citation, not a link.`;
773
+ default:
774
+ return `Not checked: ${r.note}`;
775
+ }
776
+ }
762
777
 
763
778
  // src/templates.ts
764
779
  import { readFileSync as readFileSync4 } from "fs";
@@ -786,7 +801,7 @@ var HOUSE_DEPENDENCIES = {
786
801
  "@domandigital/seo": "^0.3.0"
787
802
  };
788
803
  var HOUSE_DEV_DEPENDENCIES = {
789
- "@domandigital/craft": "^0.12.0",
804
+ "@domandigital/craft": "^0.13.0",
790
805
  "@types/node": "^22.0.0",
791
806
  vitest: "^4.1.11"
792
807
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domandigital/create-site",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "private": false,
5
5
  "description": "The first thing that runs on a new Doman Digital client site: installs the house packages and writes the per-site files they read (the facts file, route policy, backlink register, redirects, JSON-LD, the designer credit, house docs and the SEO checks), so every build starts on the same foundation and stays upgradeable by bumping packages.",
6
6
  "license": "Apache-2.0",
@@ -41,9 +41,9 @@
41
41
  "tsup": "^8.3.5",
42
42
  "typescript": "^5.6.3",
43
43
  "vitest": "^2.1.9",
44
- "@domandigital/craft": "^0.11.0",
44
+ "@domandigital/craft": "^0.14.0",
45
45
  "@domandigital/graph": "^0.7.0",
46
- "@domandigital/seo": "^0.3.0"
46
+ "@domandigital/seo": "^0.3.1"
47
47
  },
48
48
  "publishConfig": {
49
49
  "access": "public",
@@ -1,17 +1,17 @@
1
- ---
2
- // The designer credit. Written by @domandigital/create-site.
3
- //
4
- // Brand name as the link text, the homepage as the target, rel="nofollow".
5
- // Google's link spam policy lists "widely distributed links in the footers
6
- // or templates of various sites", and a studio credit on every client site
7
- // is that pattern. The credit is never a contract term and never tied to a
8
- // discount. Doman Digital decision, 24 September 2026: do not change the
9
- // text, the href or the rel.
10
- interface Props {
11
- class?: string;
12
- }
13
-
14
- const { class: className } = Astro.props;
15
- ---
16
-
17
- <a class={className} href="https://domandigital.co.uk/" rel="nofollow">Website by Doman Digital</a>
1
+ ---
2
+ // The designer credit. Written by @domandigital/create-site.
3
+ //
4
+ // Brand name as the link text, the homepage as the target, rel="nofollow".
5
+ // Google's link spam policy lists "widely distributed links in the footers
6
+ // or templates of various sites", and a studio credit on every client site
7
+ // is that pattern. The credit is never a contract term and never tied to a
8
+ // discount. Doman Digital decision, 24 September 2026: do not change the
9
+ // text, the href or the rel.
10
+ interface Props {
11
+ class?: string;
12
+ }
13
+
14
+ const { class: className } = Astro.props;
15
+ ---
16
+
17
+ <a class={className} href="https://domandigital.co.uk/" rel="nofollow">Website by Doman Digital</a>
@@ -1,14 +1,14 @@
1
- ---
2
- // One JSON-LD script per page. Pass buildPageGraph({ path, name, description }).
3
- // Written by @domandigital/create-site.
4
- import { escapeJsonLdForScript } from "@domandigital/graph";
5
- import type { JsonLdGraph } from "@domandigital/graph";
6
-
7
- interface Props {
8
- graph: JsonLdGraph;
9
- }
10
-
11
- const { graph } = Astro.props;
12
- ---
13
-
14
- <script type="application/ld+json" is:inline set:html={escapeJsonLdForScript(JSON.stringify(graph))} />
1
+ ---
2
+ // One JSON-LD script per page. Pass buildPageGraph({ path, name, description }).
3
+ // Written by @domandigital/create-site.
4
+ import { escapeJsonLdForScript } from "@domandigital/graph";
5
+ import type { JsonLdGraph } from "@domandigital/graph";
6
+
7
+ interface Props {
8
+ graph: JsonLdGraph;
9
+ }
10
+
11
+ const { graph } = Astro.props;
12
+ ---
13
+
14
+ <script type="application/ld+json" is:inline set:html={escapeJsonLdForScript(JSON.stringify(graph))} />