@kinloom/cli 0.1.1 → 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/dist/assets/cached-ocr.py +786 -0
- package/dist/assets/ocr.md +76 -0
- package/dist/assets/prep-scan.md +97 -0
- package/dist/assets/prep-scan.py +1313 -0
- package/dist/bundled-skills/acpl-persi/SKILL.md +103 -0
- package/dist/bundled-skills/acpl-persi/scripts/persi +539 -0
- package/dist/bundled-skills/archive-org/SKILL.md +162 -0
- package/dist/bundled-skills/archive-org/scripts/archive-org +1576 -0
- package/dist/bundled-skills/blm-glo/SKILL.md +54 -0
- package/dist/bundled-skills/california-archives/SKILL.md +130 -0
- package/dist/bundled-skills/california-archives/scripts/ca-archives +614 -0
- package/dist/bundled-skills/chronicling-america/SKILL.md +120 -0
- package/dist/bundled-skills/chronicling-america/scripts/chronam +553 -0
- package/dist/bundled-skills/cyndis-list/SKILL.md +53 -0
- package/dist/bundled-skills/findagrave/SKILL.md +129 -0
- package/dist/bundled-skills/findagrave/scripts/findagrave +965 -0
- package/dist/bundled-skills/hathitrust/SKILL.md +117 -0
- package/dist/bundled-skills/hathitrust/scripts/hathi +379 -0
- package/dist/bundled-skills/kentucky-archives/SKILL.md +124 -0
- package/dist/bundled-skills/kentucky-archives/scripts/ky-archives +646 -0
- package/dist/bundled-skills/library-of-michigan/SKILL.md +118 -0
- package/dist/bundled-skills/library-of-michigan/scripts/michiganology +515 -0
- package/dist/bundled-skills/missouri-archives/SKILL.md +109 -0
- package/dist/bundled-skills/missouri-archives/scripts/mo-archives +751 -0
- package/dist/bundled-skills/nara-catalog-search/SKILL.md +130 -0
- package/dist/bundled-skills/nara-catalog-search/scripts/nara +1387 -0
- package/dist/bundled-skills/narrative-audio/SKILL.md +103 -0
- package/dist/bundled-skills/narrative-audio/references/script-rules.md +109 -0
- package/dist/bundled-skills/narrative-audio/scripts/narrative-audio +290 -0
- package/dist/bundled-skills/new-jersey-archives/SKILL.md +135 -0
- package/dist/bundled-skills/new-jersey-archives/scripts/nj-archives +869 -0
- package/dist/bundled-skills/openarchieven/SKILL.md +97 -0
- package/dist/bundled-skills/openarchieven/scripts/openarchieven +624 -0
- package/dist/bundled-skills/texas-archives/SKILL.md +102 -0
- package/dist/bundled-skills/texas-archives/scripts/texas-archives +666 -0
- package/dist/bundled-skills/uk-archives/SKILL.md +110 -0
- package/dist/bundled-skills/uk-archives/scripts/uk-archives +631 -0
- package/dist/bundled-skills/usgs-gnis/SKILL.md +99 -0
- package/dist/bundled-skills/usgs-gnis/scripts/gnis +418 -0
- package/dist/bundled-skills/virginia-archives/SKILL.md +144 -0
- package/dist/bundled-skills/virginia-archives/scripts/va-archives +1039 -0
- package/dist/bundled-skills/wikitree/SKILL.md +154 -0
- package/dist/bundled-skills/wikitree/scripts/wikitree +455 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +488 -26
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +30 -5
- package/dist/client.js.map +1 -1
- package/dist/commands/ops/audit.d.ts +138 -0
- package/dist/commands/ops/audit.d.ts.map +1 -0
- package/dist/commands/ops/audit.js +872 -0
- package/dist/commands/ops/audit.js.map +1 -0
- package/dist/commands/ops/context.d.ts +100 -0
- package/dist/commands/ops/context.d.ts.map +1 -0
- package/dist/commands/ops/context.js +917 -0
- package/dist/commands/ops/context.js.map +1 -0
- package/dist/commands/ops/dates.d.ts +87 -0
- package/dist/commands/ops/dates.d.ts.map +1 -0
- package/dist/commands/ops/dates.js +228 -0
- package/dist/commands/ops/dates.js.map +1 -0
- package/dist/commands/ops/help.d.ts +8 -0
- package/dist/commands/ops/help.d.ts.map +1 -0
- package/dist/commands/ops/help.js +107 -0
- package/dist/commands/ops/help.js.map +1 -0
- package/dist/commands/ops/index.d.ts +8 -0
- package/dist/commands/ops/index.d.ts.map +1 -0
- package/dist/commands/ops/index.js +8 -0
- package/dist/commands/ops/index.js.map +1 -0
- package/dist/commands/ops/integrate.d.ts +61 -0
- package/dist/commands/ops/integrate.d.ts.map +1 -0
- package/dist/commands/ops/integrate.js +1063 -0
- package/dist/commands/ops/integrate.js.map +1 -0
- package/dist/commands/ops/sync.d.ts +194 -0
- package/dist/commands/ops/sync.d.ts.map +1 -0
- package/dist/commands/ops/sync.js +1251 -0
- package/dist/commands/ops/sync.js.map +1 -0
- package/dist/commands/ops/telemetry.d.ts +79 -0
- package/dist/commands/ops/telemetry.d.ts.map +1 -0
- package/dist/commands/ops/telemetry.js +249 -0
- package/dist/commands/ops/telemetry.js.map +1 -0
- package/dist/commands/ops/verify.d.ts +76 -0
- package/dist/commands/ops/verify.d.ts.map +1 -0
- package/dist/commands/ops/verify.js +325 -0
- package/dist/commands/ops/verify.js.map +1 -0
- package/dist/commands/records/help.d.ts +18 -0
- package/dist/commands/records/help.d.ts.map +1 -0
- package/dist/commands/records/help.js +174 -0
- package/dist/commands/records/help.js.map +1 -0
- package/dist/commands/records/index.d.ts +5 -0
- package/dist/commands/records/index.d.ts.map +1 -0
- package/dist/commands/records/index.js +5 -0
- package/dist/commands/records/index.js.map +1 -0
- package/dist/commands/records/registry.d.ts +32 -0
- package/dist/commands/records/registry.d.ts.map +1 -0
- package/dist/commands/records/registry.js +227 -0
- package/dist/commands/records/registry.js.map +1 -0
- package/dist/commands/records/resolve.d.ts +14 -0
- package/dist/commands/records/resolve.d.ts.map +1 -0
- package/dist/commands/records/resolve.js +61 -0
- package/dist/commands/records/resolve.js.map +1 -0
- package/dist/commands/records/runner.d.ts +27 -0
- package/dist/commands/records/runner.d.ts.map +1 -0
- package/dist/commands/records/runner.js +255 -0
- package/dist/commands/records/runner.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: openarchieven
|
|
3
|
+
description: Search and inspect Dutch and Belgian genealogical archives via the bundled uv-based `openarchieven` CLI or the public OpenArchieven 1.0 JSON API (`api.openarch.nl`). Covers Dutch civil registration (`BS Geboorte`, `BS Huwelijk`, `BS Overlijden`), municipal population registers (`Bevolkingsregisters`), DTB parish registers, and Rotterdam Holland America Line passenger lists (`Passagiersregisters`). Use when researching Dutch or Belgian ancestors, tracing emigrants departing Rotterdam, or verifying primary vital records across Netherlands regional archives.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# OpenArchieven
|
|
7
|
+
|
|
8
|
+
This skill includes a standalone executable Python CLI at `skills/openarchieven/scripts/openarchieven` using a PEP 723 `#!/usr/bin/env -S uv run --script` shebang with inline dependencies (`click`, `httpx`). No virtualenv setup, account, or API key is required for read queries.
|
|
9
|
+
|
|
10
|
+
OpenArchieven (`https://www.openarchieven.nl/`) aggregates hundreds of millions of indexed person mentions from Dutch and Belgian municipal and regional archives (including Brabants Historisch Informatie Centrum, West-Brabants Archief, Stadsarchief Rotterdam, Stadsarchief Amsterdam, Zeeuws Archief, Regionaal Historisch Centrum Eindhoven, and Gelders Archief).
|
|
11
|
+
|
|
12
|
+
## Bundled CLI (`scripts/openarchieven`)
|
|
13
|
+
|
|
14
|
+
Path: `skills/openarchieven/scripts/openarchieven`
|
|
15
|
+
|
|
16
|
+
### Search records
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
# Search by person name, place, and year (Vincent van Gogh's 1853 Zundert birth)
|
|
20
|
+
skills/openarchieven/scripts/openarchieven search --name "Vincent van Gogh" --place Zundert --year 1853
|
|
21
|
+
|
|
22
|
+
# Filter by Dutch civil registration source type or event type
|
|
23
|
+
skills/openarchieven/scripts/openarchieven search --name "Vincent van Gogh" --event-type "BS Geboorte" --place Zundert
|
|
24
|
+
skills/openarchieven/scripts/openarchieven search --name "Johannes Vermeer" --event-type Overlijden --limit 5
|
|
25
|
+
|
|
26
|
+
# Search municipal population registers (Bevolkingsregisters)
|
|
27
|
+
skills/openarchieven/scripts/openarchieven search --name "Vincent van Gogh" --source-type Bevolkingsregister --limit 10
|
|
28
|
+
|
|
29
|
+
# Search Holland America Line passenger lists at Stadsarchief Rotterdam (archive code: srt)
|
|
30
|
+
skills/openarchieven/scripts/openarchieven search --name "van Dijk" --source-type Passagiersregisters --archive srt --limit 5
|
|
31
|
+
|
|
32
|
+
# Year range filter and full JSON output
|
|
33
|
+
skills/openarchieven/scripts/openarchieven search --name "Vincent van Gogh" --year 1850-1855 --json
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
`search` also accepts a positional name (`openarchieven search "Vincent van Gogh" --place Zundert`).
|
|
37
|
+
|
|
38
|
+
### Inspect one full record (`show`)
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
# By archive code and UUID from search output
|
|
42
|
+
skills/openarchieven/scripts/openarchieven show bhi 78a37833-d731-ffe5-184c-f9f424826871
|
|
43
|
+
|
|
44
|
+
# Or by compact archive:uuid token or full OpenArchieven URL
|
|
45
|
+
skills/openarchieven/scripts/openarchieven show "bhi:78a37833-d731-ffe5-184c-f9f424826871"
|
|
46
|
+
skills/openarchieven/scripts/openarchieven show "https://www.openarchieven.nl/bhi:78a37833-d731-ffe5-184c-f9f424826871" --json
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
`show` queries `show.json` and parses the returned A2A (Archives-to-Archives) record: source type, archive institution, inventory/book/document numbers, event date and place, every person named on the deed with their role (`Kind`, `Vader`, `Moeder`, `Bruid`, `Bruidegom`, `Overledene`, `Geregistreerde`), scan image URLs, and the digital original link.
|
|
50
|
+
|
|
51
|
+
### Build a shareable website URL offline
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
skills/openarchieven/scripts/openarchieven url --name "Vincent van Gogh" --place Zundert --year 1853
|
|
55
|
+
skills/openarchieven/scripts/openarchieven url --record "bhi:78a37833-d731-ffe5-184c-f9f424826871"
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## API rules and quirks (verified live 2026-11-25)
|
|
59
|
+
|
|
60
|
+
- **Search endpoint:** `GET https://api.openarch.nl/1.0/records/search.json`
|
|
61
|
+
- **Record detail endpoint:** `GET https://api.openarch.nl/1.0/records/show.json?archive=<code>&identifier=<uuid>`
|
|
62
|
+
- **Auth:** none for read methods (`search.json`, `show.json`). Only comment write endpoints require an API key.
|
|
63
|
+
- **Rate limit:** 4 requests per second per IP address. The CLI sleeps 0.25 s per request and sends a `kinloom` User-Agent header.
|
|
64
|
+
- **Year and range filtering:** OpenArchieven's `search.json` ignores `eventyear=`, `year=`, and `period=` parameters. Pass a single year (`1853`) or range (`1850-1860`) inside the `name` query string (the CLI appends `--year` to `name` automatically).
|
|
65
|
+
- **Archive code parameter on v1.0:** Pass the short `archive_code` (such as `bhi`, `wba`, `srt`, `rhe`, `saa`, `zal`), not the full institution name, to `archive=` on both `1.0/records/search.json` and `1.0/records/show.json`. (OpenArchieven's newer OpenAPI spec documents `archive_code` for v1.1, while v1.0 reads `archive`.)
|
|
66
|
+
- **`sourcetype` vs `eventtype`:** Civil registration categories such as `BS Geboorte`, `BS Huwelijk`, `BS Overlijden`, `Bevolkingsregister`, and `Passagiersregisters` belong in `sourcetype`, while event verbs such as `Geboorte`, `Huwelijk`, `Overlijden`, `Registratie`, and `Vertrek` belong in `eventtype`. The CLI routes `BS ...`, `DTB ...`, and known source-type labels passed via `--event-type` to `sourcetype` automatically so queries do not silently return zero hits.
|
|
67
|
+
- **Error signaling:** Invalid archive codes or identifiers can return HTTP 200 with `{"error_code": 1, "error_description": "Invalid archive"}`; the CLI checks for `error_code` and exits non-zero.
|
|
68
|
+
- **Paging cap:** `number_show` accepts up to 100 rows per call; `start` accepts offsets up to 10,000.
|
|
69
|
+
|
|
70
|
+
## Key Dutch record types for genealogy
|
|
71
|
+
|
|
72
|
+
| Source type | Dutch label | Typical coverage | Value |
|
|
73
|
+
|---|---|---|---|
|
|
74
|
+
| Civil birth | `BS Geboorte` | 1811 to ~1925 (100-year privacy rule) | Exact birth date/time, place, parents' names, father's occupation and age |
|
|
75
|
+
| Civil marriage | `BS Huwelijk` | 1811 to ~1950 (75-year privacy rule) | Bride/groom ages, birthplaces, occupations, and both sets of parents |
|
|
76
|
+
| Civil death | `BS Overlijden` | 1811 to ~1975 (50-year privacy rule) | Death date, age, spouse, and parents' names |
|
|
77
|
+
| Population register | `Bevolkingsregister` | ca. 1850 to 1939 | Household composition, birth dates/places, religion, moves in and out (including emigration dates) |
|
|
78
|
+
| Parish registers (pre-1811) | `DTB Dopen`, `DTB Trouwen`, `DTB Begraven` | ca. 1580 to 1811 | Baptisms, marriage banns, and burials before civil registration |
|
|
79
|
+
| Passenger lists | `Passagiersregisters` | late 1800s to 1969 | Holland America Line departures at Stadsarchief Rotterdam (`srt`), ship name, departure date, destination |
|
|
80
|
+
|
|
81
|
+
## Research workflow notes
|
|
82
|
+
|
|
83
|
+
- **Search two people at once with `&`:** OpenArchieven supports combining two names in `--name`, such as `"Theodorus van Gogh & Anna Cornelia Carbentus"`, to pull every civil record naming a married couple together.
|
|
84
|
+
- **Mind Dutch tussenvoegsels and patronymics:** Prefixes (`van`, `van der`, `de`, `den`) are indexed alongside the surname; pre-1811 DTB records often index people by patronymic rather than a fixed surname (for example, 17th-century Leiden records before hereditary surnames became mandatory in 1811).
|
|
85
|
+
- **Follow `Bevolkingsregisters` across municipalities:** When a civil record shows a move or emigration, inspect the household entry with `show` to capture destination columns (`vertrokken naar`) before checking Rotterdam `Passagiersregisters` (`--archive srt`).
|
|
86
|
+
- **Verify against the original scan:** Indexed A2A transcripts occasionally misread handwritten dates or ages; open the `a2a_SourceAvailableScans` or `Original` URL from `show` before treating a date as final.
|
|
87
|
+
|
|
88
|
+
## Disk cache and environment variables
|
|
89
|
+
|
|
90
|
+
`search` and `show` cache successful responses on disk under `~/.cache/kinloom-openarchieven/` (default TTL `168` hours, advisory `flock` per cache key, atomic temp-file writes). HTTP errors, API `error_code` responses, and invalid payloads are never cached.
|
|
91
|
+
|
|
92
|
+
- `--refresh`: bypass cached reads and write the fresh response to disk.
|
|
93
|
+
- `--cache-ttl-hours <hours>`: override TTL for one call (`0` disables cached reads).
|
|
94
|
+
- `KINLOOM_OPENARCHIEVEN_CACHE_DIR`: override the cache directory path.
|
|
95
|
+
- `KINLOOM_OPENARCHIEVEN_CACHE_TTL_HOURS`: override the default TTL in hours.
|
|
96
|
+
|
|
97
|
+
No key or account is needed for OpenArchieven read queries.
|