@kinloom/cli 0.1.1 → 0.2.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.
Files changed (101) hide show
  1. package/dist/assets/cached-ocr.py +556 -0
  2. package/dist/assets/ocr.md +52 -0
  3. package/dist/assets/prep-scan.md +59 -0
  4. package/dist/assets/prep-scan.py +891 -0
  5. package/dist/bundled-skills/acpl-persi/SKILL.md +94 -0
  6. package/dist/bundled-skills/acpl-persi/scripts/persi +268 -0
  7. package/dist/bundled-skills/archive-org/SKILL.md +129 -0
  8. package/dist/bundled-skills/archive-org/scripts/archive-org +879 -0
  9. package/dist/bundled-skills/blm-glo/SKILL.md +54 -0
  10. package/dist/bundled-skills/california-archives/SKILL.md +120 -0
  11. package/dist/bundled-skills/california-archives/scripts/ca-archives +373 -0
  12. package/dist/bundled-skills/chronicling-america/SKILL.md +100 -0
  13. package/dist/bundled-skills/chronicling-america/scripts/chronam +250 -0
  14. package/dist/bundled-skills/cyndis-list/SKILL.md +53 -0
  15. package/dist/bundled-skills/findagrave/SKILL.md +116 -0
  16. package/dist/bundled-skills/findagrave/scripts/findagrave +520 -0
  17. package/dist/bundled-skills/hathitrust/SKILL.md +110 -0
  18. package/dist/bundled-skills/hathitrust/scripts/hathi +194 -0
  19. package/dist/bundled-skills/kentucky-archives/SKILL.md +123 -0
  20. package/dist/bundled-skills/kentucky-archives/scripts/ky-archives +358 -0
  21. package/dist/bundled-skills/library-of-michigan/SKILL.md +111 -0
  22. package/dist/bundled-skills/library-of-michigan/scripts/michiganology +346 -0
  23. package/dist/bundled-skills/missouri-archives/SKILL.md +100 -0
  24. package/dist/bundled-skills/missouri-archives/scripts/mo-archives +528 -0
  25. package/dist/bundled-skills/nara-catalog-search/SKILL.md +118 -0
  26. package/dist/bundled-skills/nara-catalog-search/scripts/nara +934 -0
  27. package/dist/bundled-skills/narrative-audio/SKILL.md +103 -0
  28. package/dist/bundled-skills/narrative-audio/references/script-rules.md +109 -0
  29. package/dist/bundled-skills/narrative-audio/scripts/narrative-audio +290 -0
  30. package/dist/bundled-skills/new-jersey-archives/SKILL.md +118 -0
  31. package/dist/bundled-skills/new-jersey-archives/scripts/nj-archives +585 -0
  32. package/dist/bundled-skills/openarchieven/SKILL.md +90 -0
  33. package/dist/bundled-skills/openarchieven/scripts/openarchieven +432 -0
  34. package/dist/bundled-skills/texas-archives/SKILL.md +93 -0
  35. package/dist/bundled-skills/texas-archives/scripts/texas-archives +441 -0
  36. package/dist/bundled-skills/uk-archives/SKILL.md +101 -0
  37. package/dist/bundled-skills/uk-archives/scripts/uk-archives +391 -0
  38. package/dist/bundled-skills/usgs-gnis/SKILL.md +89 -0
  39. package/dist/bundled-skills/usgs-gnis/scripts/gnis +254 -0
  40. package/dist/bundled-skills/virginia-archives/SKILL.md +104 -0
  41. package/dist/bundled-skills/virginia-archives/scripts/va-archives +466 -0
  42. package/dist/bundled-skills/wikitree/SKILL.md +148 -0
  43. package/dist/bundled-skills/wikitree/scripts/wikitree +219 -0
  44. package/dist/cli.d.ts +1 -1
  45. package/dist/cli.d.ts.map +1 -1
  46. package/dist/cli.js +383 -26
  47. package/dist/cli.js.map +1 -1
  48. package/dist/client.js +1 -1
  49. package/dist/commands/ops/audit.d.ts +138 -0
  50. package/dist/commands/ops/audit.d.ts.map +1 -0
  51. package/dist/commands/ops/audit.js +867 -0
  52. package/dist/commands/ops/audit.js.map +1 -0
  53. package/dist/commands/ops/context.d.ts +100 -0
  54. package/dist/commands/ops/context.d.ts.map +1 -0
  55. package/dist/commands/ops/context.js +917 -0
  56. package/dist/commands/ops/context.js.map +1 -0
  57. package/dist/commands/ops/help.d.ts +6 -0
  58. package/dist/commands/ops/help.d.ts.map +1 -0
  59. package/dist/commands/ops/help.js +74 -0
  60. package/dist/commands/ops/help.js.map +1 -0
  61. package/dist/commands/ops/index.d.ts +6 -0
  62. package/dist/commands/ops/index.d.ts.map +1 -0
  63. package/dist/commands/ops/index.js +6 -0
  64. package/dist/commands/ops/index.js.map +1 -0
  65. package/dist/commands/ops/integrate.d.ts +56 -0
  66. package/dist/commands/ops/integrate.d.ts.map +1 -0
  67. package/dist/commands/ops/integrate.js +872 -0
  68. package/dist/commands/ops/integrate.js.map +1 -0
  69. package/dist/commands/ops/sync.d.ts +177 -0
  70. package/dist/commands/ops/sync.d.ts.map +1 -0
  71. package/dist/commands/ops/sync.js +1078 -0
  72. package/dist/commands/ops/sync.js.map +1 -0
  73. package/dist/commands/ops/telemetry.d.ts +79 -0
  74. package/dist/commands/ops/telemetry.d.ts.map +1 -0
  75. package/dist/commands/ops/telemetry.js +249 -0
  76. package/dist/commands/ops/telemetry.js.map +1 -0
  77. package/dist/commands/records/help.d.ts +18 -0
  78. package/dist/commands/records/help.d.ts.map +1 -0
  79. package/dist/commands/records/help.js +174 -0
  80. package/dist/commands/records/help.js.map +1 -0
  81. package/dist/commands/records/index.d.ts +5 -0
  82. package/dist/commands/records/index.d.ts.map +1 -0
  83. package/dist/commands/records/index.js +5 -0
  84. package/dist/commands/records/index.js.map +1 -0
  85. package/dist/commands/records/registry.d.ts +32 -0
  86. package/dist/commands/records/registry.d.ts.map +1 -0
  87. package/dist/commands/records/registry.js +227 -0
  88. package/dist/commands/records/registry.js.map +1 -0
  89. package/dist/commands/records/resolve.d.ts +14 -0
  90. package/dist/commands/records/resolve.d.ts.map +1 -0
  91. package/dist/commands/records/resolve.js +61 -0
  92. package/dist/commands/records/resolve.js.map +1 -0
  93. package/dist/commands/records/runner.d.ts +25 -0
  94. package/dist/commands/records/runner.d.ts.map +1 -0
  95. package/dist/commands/records/runner.js +224 -0
  96. package/dist/commands/records/runner.js.map +1 -0
  97. package/dist/index.d.ts +2 -0
  98. package/dist/index.d.ts.map +1 -1
  99. package/dist/index.js +2 -0
  100. package/dist/index.js.map +1 -1
  101. package/package.json +3 -3
@@ -0,0 +1,194 @@
1
+ #!/usr/bin/env -S uv run --script
2
+ # /// script
3
+ # requires-python = ">=3.11"
4
+ # dependencies = [
5
+ # "click>=8.1",
6
+ # "httpx>=0.27",
7
+ # ]
8
+ # ///
9
+ """Compact CLI for HathiTrust Digital Library lookups.
10
+
11
+ Uses the public Bibliographic API (no key, no login) to look up records by
12
+ identifier, and builds verified catalog search URLs for a real browser.
13
+ The Bib API is identifier lookup only: it cannot keyword-search.
14
+ Catalog search HTML is not scraped: HathiTrust serves Cloudflare
15
+ challenges to server-side fetches intermittently, so `url` prints a
16
+ search URL instead of fetching results.
17
+ """
18
+
19
+ from __future__ import annotations
20
+
21
+ import json
22
+ import sys
23
+ from urllib.parse import quote, urlencode
24
+
25
+ import click
26
+ import httpx
27
+
28
+ BIB_API_BASE = "https://catalog.hathitrust.org/api/volumes"
29
+ CATALOG_SEARCH_BASE = "https://catalog.hathitrust.org/Search/Home"
30
+ USER_AGENT = (
31
+ "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 "
32
+ "(KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
33
+ )
34
+ VALID_ID_TYPES = ("oclc", "lccn", "issn", "isbn", "htid", "recordnumber")
35
+ VALID_SEARCH_TYPES = ("all", "title", "author", "subject")
36
+
37
+
38
+ def bib_url(id_type: str, value: str, full: bool) -> str:
39
+ brevity = "full" if full else "brief"
40
+ return f"{BIB_API_BASE}/{brevity}/{id_type}/{quote(value, safe='')}.json"
41
+
42
+
43
+ def fetch_bib(client: httpx.Client, id_type: str, value: str, full: bool) -> dict:
44
+ url = bib_url(id_type, value, full)
45
+ try:
46
+ resp = client.get(url, timeout=30.0)
47
+ resp.raise_for_status()
48
+ except httpx.HTTPStatusError as exc:
49
+ raise click.ClickException(
50
+ f"Bib API request failed ({exc.response.status_code}): {url}"
51
+ ) from exc
52
+ except httpx.HTTPError as exc:
53
+ raise click.ClickException(f"Bib API request failed: {exc}") from exc
54
+ try:
55
+ return resp.json()
56
+ except ValueError as exc:
57
+ raise click.ClickException(f"Bib API returned non-JSON for {url}") from exc
58
+
59
+
60
+ def parse_id(spec: str) -> tuple[str, str]:
61
+ if ":" not in spec:
62
+ raise click.BadParameter(
63
+ f"Bad identifier {spec!r}. Use type:value, e.g. oclc:424023."
64
+ )
65
+ id_type, value = spec.split(":", 1)
66
+ id_type = id_type.strip().lower()
67
+ value = value.strip()
68
+ if id_type not in VALID_ID_TYPES or not value:
69
+ raise click.BadParameter(
70
+ f"Bad identifier {spec!r}. Type must be one of: "
71
+ f"{', '.join(VALID_ID_TYPES)}."
72
+ )
73
+ return id_type, value
74
+
75
+
76
+ def compact_bib(data: dict, full: bool) -> str:
77
+ lines: list[str] = []
78
+ records = data.get("records") or {}
79
+ items = data.get("items") or []
80
+ if not records and not items:
81
+ return "No matching HathiTrust record (empty records and items)."
82
+ for rec_no, rec in records.items():
83
+ titles = rec.get("titles") or []
84
+ lines.append(f"Record {rec_no}: {titles[0] if titles else '(no title)'}")
85
+ if len(titles) > 1:
86
+ lines.append(f" alt titles: {'; '.join(titles[1:])}")
87
+ lines.append(f" record URL: {rec.get('recordURL', '')}")
88
+ if rec.get("publishDates"):
89
+ lines.append(f" published: {', '.join(rec['publishDates'])}")
90
+ for field in ("oclcs", "lccns", "isbns", "issns"):
91
+ if rec.get(field):
92
+ lines.append(f" {field}: {', '.join(rec[field])}")
93
+ if full and rec.get("marc-xml"):
94
+ lines.append(" marc-xml:")
95
+ lines.append(rec["marc-xml"])
96
+ for item in items:
97
+ lines.append(
98
+ f"Item {item.get('htid', '')} ({item.get('orig', '')}): "
99
+ f"{item.get('usRightsString', '')}"
100
+ )
101
+ lines.append(f" item URL: {item.get('itemURL', '')}")
102
+ if item.get("enumcron"):
103
+ lines.append(f" enumcron: {item['enumcron']}")
104
+ if item.get("rightsCode"):
105
+ lines.append(f" rights code: {item['rightsCode']}")
106
+ return "\n".join(lines)
107
+
108
+
109
+ @click.group()
110
+ def cli() -> None:
111
+ """HathiTrust Digital Library lookups (Bibliographic API, no key)."""
112
+
113
+
114
+ @cli.command()
115
+ @click.argument("id_type", required=False)
116
+ @click.argument("value", required=False)
117
+ @click.option(
118
+ "--id",
119
+ "ids",
120
+ multiple=True,
121
+ help="Identifier as type:value, e.g. oclc:424023. Repeatable.",
122
+ )
123
+ @click.option("--full", is_flag=True, help="Full record with MARC-XML.")
124
+ @click.option("--json", "as_json", is_flag=True, help="Print raw API JSON.")
125
+ def bib(
126
+ id_type: str | None,
127
+ value: str | None,
128
+ ids: tuple[str, ...],
129
+ full: bool,
130
+ as_json: bool,
131
+ ) -> None:
132
+ """Look up record(s) by identifier.
133
+
134
+ ID_TYPE is one of oclc, lccn, issn, isbn, htid, recordnumber.
135
+
136
+ Examples:\n
137
+ hathi bib oclc 424023\n
138
+ hathi bib recordnumber 000578050\n
139
+ hathi bib --id oclc:424023 --id recordnumber:000578050
140
+ """
141
+ specs: list[tuple[str, str]] = []
142
+ if ids:
143
+ specs = [parse_id(spec) for spec in ids]
144
+ elif id_type and value:
145
+ id_type = id_type.strip().lower()
146
+ if id_type not in VALID_ID_TYPES:
147
+ raise click.BadParameter(
148
+ f"Invalid id type {id_type!r}. Choose from: "
149
+ f"{', '.join(VALID_ID_TYPES)}"
150
+ )
151
+ specs = [(id_type, value.strip())]
152
+ else:
153
+ raise click.UsageError(
154
+ "Give an identifier: hathi bib <type> <value> "
155
+ "or hathi bib --id type:value [--id type:value ...]"
156
+ )
157
+ merged: dict = {"records": {}, "items": []}
158
+ with httpx.Client(headers={"User-Agent": USER_AGENT}) as client:
159
+ for id_type, value in specs:
160
+ data = fetch_bib(client, id_type, value, full)
161
+ merged["records"].update(data.get("records") or {})
162
+ merged["items"].extend(data.get("items") or [])
163
+ if as_json:
164
+ click.echo(json.dumps(merged, indent=2, ensure_ascii=False))
165
+ else:
166
+ click.echo(compact_bib(merged, full))
167
+
168
+
169
+ @cli.command()
170
+ @click.argument("query")
171
+ @click.option(
172
+ "--type",
173
+ "search_type",
174
+ default="all",
175
+ show_default=True,
176
+ type=click.Choice(VALID_SEARCH_TYPES),
177
+ help="Catalog search field.",
178
+ )
179
+ def url(query: str, search_type: str) -> None:
180
+ """Print a verified catalog search URL for QUERY (open in a browser).
181
+
182
+ Examples:\n
183
+ hathi url "Abraham Lincoln" --type title\n
184
+ hathi url "Douglass, Frederick" --type author
185
+ """
186
+ params = urlencode(
187
+ {"lookfor": query, "type": search_type, "inst": ""},
188
+ quote_via=quote,
189
+ )
190
+ click.echo(f"{CATALOG_SEARCH_BASE}?{params}")
191
+
192
+
193
+ if __name__ == "__main__":
194
+ cli()
@@ -0,0 +1,123 @@
1
+ ---
2
+ name: kentucky-archives
3
+ description: Research historical and genealogical records in Kentucky through the Kentucky Historical Society (KHS) Digital Collections, the Kentucky Department for Libraries and Archives (KDLA) Preservica e-archives, and the Kentucky Secretary of State Land Office patent databases, using the bundled `ky-archives` CLI. Covers CONTENTdm surname and collection search, Confederate pension packets, County Court Orders patents (1835-2000), Virginia and Old Kentucky patents, and what is browser-only or visit-only. Use when tracing ancestors from Virginia into Kentucky, finding Kentucky land patents, family papers, photographs, oral histories, or a Confederate pension packet, or deciding whether a Kentucky record is online, orderable, or visit-only.
4
+ ---
5
+
6
+ # Kentucky Archives
7
+
8
+ Kentucky has three primary repositories for genealogical research, and they hold different collections. Do not treat them as one repository.
9
+
10
+ This skill includes a standalone executable Python CLI at `skills/kentucky-archives/scripts/ky-archives` using a PEP 723 `#!/usr/bin/env -S uv run --script` shebang with inline dependencies (`click`, `httpx`). No virtualenv setup or API key is needed. Run it from the repo root, for example `./skills/kentucky-archives/scripts/ky-archives cdm Lincoln`.
11
+
12
+ ## Bundled CLI (`scripts/ky-archives`)
13
+
14
+ | Command | What it does | Interface (verified live 2026-11-24) |
15
+ |---|---|---|
16
+ | `cdm <query> [--collection ALIAS] [--field FIELD] [--limit N] [--json]` | Search KHS Digital Collections | CONTENTdm dmwebservices API, key-free: `GET https://www.kyhistory.com/digital/api/search/collection/<alias>/searchterm/<term>/field/<field>/maxRecords/<n>` |
17
+ | `cdm-item <alias> <id> [--json]` | Full metadata for one CONTENTdm item | `GET https://www.kyhistory.com/digital/api/singleitem/collection/<alias>/id/<id>` |
18
+ | `collections [--json]` | List the 16 CONTENTdm collections and aliases | `GET https://www.kyhistory.com/digital/api/collections` |
19
+ | `cdm-url <query>` | Print the verified catalog web search URL (no request) | `https://www.kyhistory.com/cdm/search/searchterm/<term>/mode/exact` |
20
+ | `land <term> [--by grantee\|county\|watercourse\|survey-name\|survey-year\|grant-year\|patent\|warrant\|grant-book] [--limit 10\|25\|50\|100] [--json]` | Advanced search, County Court Orders patents | ASP.NET form POST to `https://web.sos.ky.gov/land/ccorders.aspx` (GET state, postback to open the advanced panel, POST the search) |
21
+ | `land-patent <number> [--book N] [--page N] [--json]` | Quick search by patent number (or grant book/page) | Same ASP.NET form, quick-search fields |
22
+ | `preservica <query> [--limit N] [--json]` | Search KDLA Preservica e-archives | WordPress search RSS feed: `GET https://kdla.access.preservica.com/search/<term>/feed/rss2/`; human search page is `https://kdla.access.preservica.com/?s=<term>` |
23
+ | `urls <query>` | Print every verified Kentucky search URL (no requests) | See the URLs in the sections below |
24
+
25
+ Notes on the interfaces:
26
+
27
+ - The CONTENTdm API returns `totalResults` and items with `collectionAlias`, `itemId`, `title`, `filetype`, `itemLink`, and `metadataFields`. The API's `itemLink` has no `/digital` prefix; the CLI adds it, because the bare link (`https://www.kyhistory.com/singleitem/...`) returns 403 from OCLC, while the `/digital/...` form returns 200 (verified live 2026-11-24).
28
+ - The KHS web UI returns 403 to a bare Linux-Chrome user agent and 200 to a Windows Chrome user agent. The CLI sends a Windows Chrome UA on every request for that reason. The CONTENTdm API itself accepts either.
29
+ - The Land Office form is ASP.NET with `__VIEWSTATE`/`__EVENTVALIDATION`; the CLI does the three-request dance (GET, postback to reveal the advanced panel, search POST) and parses the results table into patent, grantee, grant book/page, acreage, county, watercourse, survey name, survey/grant dates, and grant note.
30
+ - The Preservica host has no public Preservica search API (`/wp-json/` returns a Preservica "Page Not Found" page). The WordPress search RSS feed is the machine route; it returns up to 100 items per query. The site's search is full-text over titles, descriptions, creators, and document contents, so a hit's title often does not show why it matched: open the hit to confirm. Viewing a packet's scans needs the browser.
31
+ - No account or API key is needed to search any portal in this skill. Fees apply only to ordering copies, noted per repository below.
32
+
33
+ ## Kentucky Historical Society (KHS)
34
+
35
+ Portal: https://history.ky.gov/
36
+ Digital collections catalog: https://www.kyhistory.com/
37
+ Research and genealogy starting page: https://history.ky.gov/research-genealogy
38
+ Address: Thomas D. Clark Center for Kentucky History, 100 West Broadway, Frankfort, KY 40601. The Martin F. Schmidt Research Library on the second floor holds the largest genealogical collection in the state: over 16,000 rolls of microfilm, 90,000 books and periodicals, 30,000 vertical files, 1,900 cubic feet of manuscripts, 2,000 maps, 8,000 oral histories, and 200,000 historic photographs.
39
+
40
+ KHS Digital Collections is a searchable database of digital images and files from KHS collections: print, archival, graphic, audio, and video files, plus finding aids, photographs, oral histories, and manuscripts. It runs on CONTENTdm (16 collections, including Manuscripts `MS`, Resources and Finding Aids `LIB`, Printed Materials `RB`, Visual Materials `PH`, Maps and Atlases `Maps`, Kentucky Ancestors `p16602coll3`, and Oral History `Ohist`).
41
+
42
+ ```bash
43
+ # Surname search across all collections
44
+ skills/kentucky-archives/scripts/ky-archives cdm Lincoln
45
+ # Manuscripts only
46
+ skills/kentucky-archives/scripts/ky-archives cdm Lincoln --collection MS --limit 25
47
+ # Full metadata for one hit
48
+ skills/kentucky-archives/scripts/ky-archives cdm-item <alias> <item-id>
49
+ ```
50
+
51
+ The verified web search pattern, from KHS's own research blog, is `https://www.kyhistory.com/cdm/search/searchterm/<term>/mode/exact`, for example `https://www.kyhistory.com/cdm/search/searchterm/SC%201261/mode/exact` for a manuscript collection. Use it for a known collection number or a distinctive term; for a surname use the CLI or the catalog's surname search, which searches all manuscript collections and family histories at once.
52
+
53
+ Other KHS online tools:
54
+
55
+ - Pass the Word: a discovery tool for oral history collections across the Commonwealth, sponsored by the Kentucky Oral History Commission. Over 25,000 interviews from more than 100 archives, searchable by interviewee name and topic. Browser only, no machine interface found: https://passtheword.ky.gov/ (returned 200 live 2026-11-24).
56
+ - Kentucky Ancestors back issues, Vol. 1 (July 1965) through Vol. 48 (Summer 2013), digitized as PDFs through the Digital Collections Catalog (collection `p16602coll3`). Not indexed as of the KHS notice; search within each issue PDF.
57
+ - Civil War Governors of Kentucky Digital Documentary Edition, a KHS digital humanities project.
58
+ - The Register, the KHS scholarly journal, is available through Project Muse and JSTOR, not free on the KHS site.
59
+
60
+ What is in-person only at KHS: most manuscript collections are described in the catalog but only partly digitized. Ancestry.com Library Edition, HeritageQuest, American Periodicals 1740-1940, and the Louisville Courier-Journal 1830-1922 are free on site in the research library, not remotely. Copies can be ordered for a fee.
61
+
62
+ ## Kentucky Department for Libraries and Archives (KDLA), Kentucky State Archives
63
+
64
+ Portal: https://kdla.ky.gov/
65
+ E-archives (Preservica): https://kdla.access.preservica.com/
66
+
67
+ KDLA is the state archives proper. Its e-archives hold state government records including the Confederate pension files. Older guidance says KDLA search results often tell you where a document is filed and you then order a copy for a fee, rather than showing the whole document online. That is now only partly true: the Preservica e-archives do show scanned pension packets online.
68
+
69
+ ```bash
70
+ # Search the e-archives (full-text; open hits to confirm the match)
71
+ skills/kentucky-archives/scripts/ky-archives preservica Lincoln --limit 10
72
+ ```
73
+
74
+ Confederate Pension Application Packets are browsable in Preservica in numbered folders (for example packets 1526-1550, 2001-2025, 1101-1125), each packet a scanned application by a soldier or a widow, filed starting in 1912 when Kentucky began granting Confederate pensions. Search by surname to locate relevant packets, then view the scanned packet in a browser.
75
+
76
+ ## Kentucky Secretary of State, Land Office
77
+
78
+ Portal: https://www.sos.ky.gov/land/Pages/default.aspx
79
+ County Court Orders patents search: https://web.sos.ky.gov/land/ccorders.aspx
80
+
81
+ The Land Office is the repository for all Kentucky land patents, including those issued by Virginia before Kentucky statehood in 1792. Because Kentucky is not a federal public-land state, early Kentucky land ownership is proved through Virginia warrants and Kentucky state patents rather than federal BLM GLO patents.
82
+
83
+ Searchable online, verified 2026-11-24:
84
+
85
+ - Virginia Patent Series and Old Kentucky Patent Series: searchable by patent number or grantee. These cover patents finalized by Virginia grants before 1792 and the 7,771 Old Kentucky patents. Many patent files link to scanned color images. Related warrant databases are also searchable by name: Virginia Treasury Warrants (search by warrant number or by last name, first name), Revolutionary War Warrants, Lincoln Entries, Certificates of Settlement, and Preemption Warrants.
86
+ - County Court Orders series: 70,241 patents, 1835-2000, the largest series. Quick search by patent number (5 digits) or book and page; advanced search by county, watercourse, grant name, survey name, survey year, and grant year. Some patent numbers 0001.0-8241.0 link to scanned images of patent files.
87
+ - West of Tennessee River Military Patents: 242 patents, with scanned images of warrants, entries, surveys, and grants. West of Tennessee River Non-Military Patents: over 8,500 patent files with scanned images, plus a Jackson Purchase Locator.
88
+
89
+ ```bash
90
+ # Grantee search in the County Court Orders series (the CLI's `land` command)
91
+ skills/kentucky-archives/scripts/ky-archives land Lincoln --by grantee
92
+ # Other fields: --by county, --by watercourse, --by survey-year, --by grant-year
93
+ skills/kentucky-archives/scripts/ky-archives land Hardin --by county --limit 25
94
+ # Quick search by patent number
95
+ skills/kentucky-archives/scripts/ky-archives land-patent <patent-number>
96
+ ```
97
+
98
+ Not online: the South of Green River, Tellico, Kentucky Land Warrants, South of Walker's Line, and Warrants for Headrights series are not available online as of the Land Office's own series summary. Request those files by online order form or email to the Land Office, using Jillson's *The Kentucky Land Grants* to determine grantee, patent series, and citation first. Copies of grants can also be ordered from the KHS library and KDLA in Frankfort.
99
+
100
+ Browser only, no machine interface: the Virginia / Old Kentucky Patent Series browser at `https://web.sos.ky.gov/land/vakypatentseries.aspx` is a series dropdown plus a patent list (verified live 2026-11-24: series options are Virginia Patent Series and Old Kentucky Patent Series; there is no name search field). Use it in the browser to browse a series by patent number once the CLI or Jillson gives you the citation.
101
+
102
+ ## Kentucky vital records
103
+
104
+ Kentucky has no statewide vital-records database at KHS or KDLA. The University of Kentucky's Kentucky Vital Records Index covers deaths 1911-1992, marriages 1973-1993, and divorces 1973-1993. Earlier Kentucky vital events are in county records, church records, and subscription indexes. Do not expect the state archives to produce a Kentucky birth or marriage certificate. Note: the index's old URL `http://ukcc.uky.edu/vitalrec/` did not resolve live 2026-11-24, so no URL is given here; find the current index through the University of Kentucky Libraries site. Inferred, not verified: FamilySearch's Kentucky, Vital Record Indexes, 1911-1999 collection covers much of the same ground.
105
+
106
+ ## Research workflow
107
+
108
+ For families migrating into Kentucky from Virginia, check repositories in this order:
109
+
110
+ 1. Land Office Virginia and Old Kentucky Patent Series by grantee surname (this proves early land ownership and often names assignees and warrant holders).
111
+ 2. County Court Orders series (`ky-archives land <surname> --by grantee`) if the family held or acquired land after 1835.
112
+ 3. KHS Digital Collections (`ky-archives cdm <surname>`) for family papers, county indexes, and photographs.
113
+ 4. KDLA Preservica (`ky-archives preservica <surname>`) for Confederate pension packets and state agency files.
114
+ 5. Record the patent series, patent number, and survey year for every hit; the same individual often appears under both a Virginia warrant and a Kentucky patent.
115
+
116
+ ## Verification log (verified live 2026-11-24)
117
+
118
+ - `history.ky.gov` and `kdla.ky.gov` returned 200; `kyhistory.com` returned 200 to a Windows Chrome UA (403 to a bare Linux-Chrome UA); `kdla.access.preservica.com` returned 200; `web.sos.ky.gov/land/ccorders.aspx` and `www.sos.ky.gov/land/Pages/default.aspx` returned 200.
119
+ - CONTENTdm API: `/digital/api/collections` returned 16 collections; `/digital/api/search/...` and `/digital/api/singleitem/...` returned full JSON metadata. Item links verified: `/digital/singleitem/...` 200, `/digital/compoundobject/...` 200, bare `/singleitem/...` 403.
120
+ - Land Office: advanced search POST and quick search by patent number returned parsed results tables through the CLI.
121
+ - Preservica: WordPress search RSS feed returned up to 100 items per query; `/wp-json/` returned a Preservica "Page Not Found" page, confirming no public Preservica search API on this host.
122
+ - Pass the Word `https://passtheword.ky.gov/` returned 200. The UK Vital Records Index old URL `http://ukcc.uky.edu/vitalrec/` did not resolve (connection failure). The Virginia / Old Kentucky Patent Series page `vakypatentseries.aspx` returned 200 and shows series + patent dropdowns only.
123
+ - KDLA Preservica Confederate pension packets and Land Office patent series counts (County Court Orders 70,241 patents 1835-2000; 7,771 Old Kentucky patents) were confirmed on 2026-11-24.