@zodiacs/engine 0.1.1-rc.16 → 1.1.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 (80) hide show
  1. package/CHANGELOG.md +1478 -0
  2. package/LICENSING.md +184 -30
  3. package/NOTICE +81 -14
  4. package/README.md +345 -67
  5. package/dist/{api-VOW6Umy5.d.ts → api-ChL1N2Sr.d.ts} +44 -7
  6. package/dist/ayanamsa-ClFzkKmV.d.ts +135 -0
  7. package/dist/calc.d.ts +218 -21
  8. package/dist/calc.js +580 -160
  9. package/dist/chunk-2PZYJQV5.js +83 -0
  10. package/dist/chunk-47ERTK5X.js +27 -0
  11. package/dist/{chunk-O3NJRGJ2.js → chunk-4XOYTBLS.js} +1 -1
  12. package/dist/chunk-767FTO7O.js +48 -0
  13. package/dist/{chunk-N4B5JNMA.js → chunk-7Y2F2IWN.js} +40 -28
  14. package/dist/chunk-B4M2Y7FT.js +96 -0
  15. package/dist/{chunk-KHBLFXFG.js → chunk-B5LKF437.js} +29 -28
  16. package/dist/{chunk-ONBZ4HK7.js → chunk-BHJXUY67.js} +4 -2
  17. package/dist/{chunk-PFGUCNOK.js → chunk-BMDASNPB.js} +6 -6
  18. package/dist/chunk-I3L4POY7.js +18 -0
  19. package/dist/{chunk-I7O5EGFV.js → chunk-LNGURVNH.js} +3 -3
  20. package/dist/{chunk-4NV4ZEFZ.js → chunk-NNOSOOWS.js} +4 -4
  21. package/dist/chunk-OVXQQEXL.js +41 -0
  22. package/dist/{chunk-WOU7JVD3.js → chunk-QLIEEICB.js} +205 -194
  23. package/dist/chunk-RMBWKZI2.js +130 -0
  24. package/dist/{chunk-AECKV73C.js → chunk-TSS2SZWQ.js} +8 -2
  25. package/dist/{chunk-L6ZHWJZ6.js → chunk-TZVPZHZM.js} +51 -29
  26. package/dist/chunk-WBTWY2OB.js +478 -0
  27. package/dist/chunk-Y4E3WJU5.js +87 -0
  28. package/dist/chunk-YPU3MDNI.js +852 -0
  29. package/dist/conventions.d.ts +70 -0
  30. package/dist/conventions.js +26 -0
  31. package/dist/crossings.d.ts +22 -10
  32. package/dist/crossings.js +1 -1
  33. package/dist/de440-pack.d.ts +43 -0
  34. package/dist/de440-pack.js +16 -0
  35. package/dist/de440.d.ts +113 -0
  36. package/dist/de440.js +19 -0
  37. package/dist/deltat.d.ts +28 -3
  38. package/dist/deltat.js +1 -1
  39. package/dist/ephemeris-exTSqBgb.d.ts +60 -0
  40. package/dist/geo.d.ts +46 -13
  41. package/dist/geo.js +4 -2
  42. package/dist/{houses-q1O2GGp4.d.ts → houses-Bh7GCnPi.d.ts} +14 -4
  43. package/dist/houses-extra.d.ts +22 -7
  44. package/dist/houses-extra.js +4 -2
  45. package/dist/index.d.ts +36 -49
  46. package/dist/index.js +54 -34
  47. package/dist/{internal-math-CmJ9xtaW.d.ts → internal-math-CxenuGfm.d.ts} +41 -27
  48. package/dist/internal-math.d.ts +4 -3
  49. package/dist/internal-math.js +14 -12
  50. package/dist/internal.d.ts +16 -7
  51. package/dist/internal.js +27 -6
  52. package/dist/lite-composite.js +114 -0
  53. package/dist/lite-declinations.js +253 -0
  54. package/dist/lite-dignities.js +333 -0
  55. package/dist/lite-sect.js +72 -0
  56. package/dist/lite.d.ts +82 -0
  57. package/dist/lite.js +4 -0
  58. package/dist/receipt.d.ts +3 -268
  59. package/dist/receipt.js +202 -89
  60. package/dist/reference-span-CILpclrz.d.ts +40 -0
  61. package/dist/{rulers-9wljfVaO.d.ts → rulers-CSSWtiWF.d.ts} +7 -2
  62. package/dist/sky.d.ts +26 -10
  63. package/dist/sky.js +23 -14
  64. package/dist/techniques.d.ts +160 -21
  65. package/dist/techniques.js +157 -89
  66. package/dist/time-bands-CZA9AlLg.d.ts +36 -0
  67. package/dist/time-scale-DIFNa0gz.d.ts +47 -0
  68. package/dist/time.d.ts +81 -0
  69. package/dist/time.js +74 -0
  70. package/dist/timing.d.ts +55 -17
  71. package/dist/timing.js +33 -45
  72. package/dist/types-DpPdtXgO.d.ts +335 -0
  73. package/dist/vedic.d.ts +150 -123
  74. package/dist/vedic.js +398 -440
  75. package/dist/window.d.ts +102 -80
  76. package/dist/window.js +108 -51
  77. package/dist/zone-history-BxmDCcTK.d.ts +290 -0
  78. package/package.json +26 -3
  79. package/dist/chunk-2OWGBT3O.js +0 -219
  80. package/dist/types-B4MCoCCS.d.ts +0 -228
package/README.md CHANGED
@@ -4,27 +4,119 @@ Pure TypeScript astrology calculations for browsers and Node.js. The package
4
4
  computes tropical planetary positions, natal charts, transit snapshots,
5
5
  synastry, secondary progressions, Moon phase, and Saturn-return seasons, and,
6
6
  in separate entries, one calculation API over frames, centers and
7
- corrections with bounds and receipts, birth-time windows, house positions and
8
- cusp speeds, rise, set and transit times and planetary hours, returns and
9
- relationship charts, Hellenistic timing techniques, and sidereal positions
10
- and Jyotish techniques. Its calculations are synchronous; only loading a zone's
11
- history before 1970 (`prepareLocalTime`) and the GeoNames client, both in
12
- `@zodiacs/engine/geo`, are asynchronous. It is ESM-only, has no import-time
13
- side effects, and performs no network request from its core entry point. Its
14
- one runtime side effect is the ΔT it installs in astronomy-engine (see Time
15
- below).
16
-
17
- **Release candidate: 0.1.1-rc.16.** Public npm lookups for this package returned
18
- 404 on 2026-09-26. The expansion release remains held for review and operator
19
- publication authority. Install the exact candidate tarball supplied with the
20
- review, retaining its SHA-256 receipt:
7
+ corrections with bounds, time bands and receipts, birth-time windows, house
8
+ positions and cusp speeds, rise, set and transit times and planetary hours,
9
+ returns and relationship charts, Hellenistic timing techniques, sidereal
10
+ positions and Jyotish techniques, the time basis and the frame of date
11
+ without the ephemeris, and declination parallels, sect, composite midpoints
12
+ and dignities without it. Its calculations are synchronous; only loading a
13
+ zone's history before 1970 (`prepareLocalTime`) and the GeoNames client,
14
+ both in `@zodiacs/engine/geo`, are asynchronous. It is ESM-only, has no
15
+ import-time side effects, and performs no network request from its core
16
+ entry point. Its one runtime side effect is the ΔT it installs in
17
+ astronomy-engine (see Time below).
18
+
19
+ **1.1.0**, a minor release: 1.1.0-rc.13 with the version changed
20
+ (CHANGELOG.md). It ships a sealed
21
+ pack of JPL's DE440 for 1790 to 2210 and computes on it by default: a plain
22
+ `natalChart`, `positions`, `calc` or `birthWindow` call, with nothing opened
23
+ or supplied, takes the Sun, the Moon, the planets and the true node from the
24
+ pack, and the result names it (`chart.ephemeris`). On that default the Sun,
25
+ the Moon and the planets are within 1″ of JPL Horizons (DE441) at all 240
26
+ position vectors of the repository's conformance suite, 24 instants from 1851
27
+ to 2148, the largest difference 0.0127″ (`src/de440-default.test.ts`); on
28
+ astronomy-engine, which every release through 1.1.0-rc.7 computed on, 48 of
29
+ the 240 are. **Positions change against those releases**, by the difference
30
+ between the two ephemerides. At one instant a day (noon TT) from 1800 to
31
+ 2199 the largest is 29.19″ of ecliptic longitude for the Sun, the Moon and
32
+ the planets (Pluto, on 2199-12-31) and 32.64″ for the true node
33
+ (CHANGELOG.md has each body's). That is the largest at those instants, not a
34
+ limit: near the Sun a planet moves more, because the pack bends its light by
35
+ the Sun and astronomy-engine does not (at most 1.7512″, at the Sun's limb). From
36
+ 1.1.0-rc.12 the pack bends no light from a planet behind the Sun's disc, as
37
+ NASA JPL's Horizons system does not, a convention this package follows
38
+ from Horizons and credits to NASA JPL (`NOTICE`): at every passage behind the disc from 1800 to 2199
39
+ (393 passages, 3,490 instants inside the disc) the pack's place is within
40
+ 0.0023″ of Horizons's, taken relative to the Sun, where the formula of
41
+ 1.1.0-rc.10 and rc.11, which bent the light there too, is up to 333.48″ from it
42
+ (Mercury; reduced from `de440.bsp`)
43
+ ([docs/de440.md](docs/de440.md), *Behind the Sun's disc*;
44
+ `docs/evidence/1.1.0-rc.12-20261115/near-sun/`).
45
+ **No fallback is silent**: outside 1790-01-02 to 2209-12-31, or if the pack
46
+ cannot be opened, the engine computes on astronomy-engine, and the result
47
+ says so with a flag (`"outside-de440-span"`, `"de440-unavailable"`) and by
48
+ naming astronomy-engine as its ephemeris. A function that returns a bare
49
+ value (a `Date`, a number, a list) cannot carry that label, so it has a
50
+ labelled form beside it: `searchLongitudeCrossings` for
51
+ `findLongitudeCrossings`, and from 1.1.0-rc.11 `solarReturnInstantDetailed`,
52
+ `mostRecentSolarReturnInstantDetailed`, `lunarReturnInstantDetailed` and
53
+ `moonSignsBetweenDetailed` in `@zodiacs/engine/techniques`, which return
54
+ `{ value, ephemeris, flags }` ([docs/de440.md](docs/de440.md)). From
55
+ 1.1.0-rc.12 `chartPoints` and `chartDeclinations` carry their chart's
56
+ `ephemeris` and fallback `flags` too, given a birth or a chart.
57
+ `setDefaultEphemeris("astronomy-engine")` gives earlier releases' positions
58
+ everywhere, named and not flagged. From 1.1.0-rc.10 `@zodiacs/engine/calc`
59
+ (`calc`, `chart`, `events`) and `birthWindow` compute on the pack too, so
60
+ they agree with `natalChart`; what `calc()` gives beyond the apparent
61
+ geocentric place (other centers and corrections, the Earth) and the sky
62
+ entry's rising and setting still compute on astronomy-engine whatever the
63
+ default, so none is a fallback: a calc receipt names astronomy-engine, and
64
+ the sky entry's results name no ephemeris ([docs/de440.md](docs/de440.md)). The pack makes the package about four times larger unpacked
65
+ (4,581,449 bytes against 1.1.0-rc.7's 1,152,017), and an application
66
+ that bundles the root entry bundles the pack's 3,319,552 characters (see
67
+ [docs/de440.md](docs/de440.md) and CHANGELOG.md). 1.1.0-rc.9 was
68
+ 1.1.0's first draft, superseded before review; 1.1.0-rc.10,
69
+ 1.1.0-rc.11 and 1.1.0-rc.12 were drafts on the same pull request, reviewed
70
+ and replaced, and this release is 1.1.0-rc.13 with
71
+ the version changed;
72
+ 1.1.0-rc.8 was a draft
73
+ that shipped the pack behind `withEphemeris` only, withdrawn, and its
74
+ number is not used again. From 1.1.0-rc.7 the error limits
75
+ `@zodiacs/engine/calc` quotes for geocentric
76
+ positions come from DE440 on every day from 1800 through 2199 (CHANGELOG.md).
77
+ From 1.1.0-rc.6 a birth in an hour the clock showed twice can take the
78
+ later pass (`fold: "later"` in `@zodiacs/engine/geo`; see
79
+ [docs/time.md](docs/time.md)).
80
+ 1.1.0-rc.4 and 1.1.0-rc.5 were drafts that were not merged (CHANGELOG.md).
81
+ 1.1.0-rc.3 added
82
+ `@zodiacs/engine/de440`, positions from JPL's DE440 through a pack the caller
83
+ supplies, which the root's `withEphemeris` puts in place of the default
84
+ source; with `@zodiacs/engine/de440/pack` there are seventeen public entry
85
+ points (see [docs/de440.md](docs/de440.md)). Over
86
+ 1.0.0, natal receipts name their conventions as ids of the Zodiacs
87
+ conventions registry, which a new entry, `@zodiacs/engine/conventions`,
88
+ gives (from 1.1.0-rc.1; see *Draft natal receipts*). 1.1.0-rc.2 added two
89
+ entries that load no ephemeris, `@zodiacs/engine/time` and
90
+ `@zodiacs/engine/lite`; time bands in
91
+ `@zodiacs/engine/calc`; how far the birth time can move before each varga
92
+ sign changes; and corrections of statements that said more than their
93
+ evidence (CHANGELOG.md). The package follows Semantic Versioning:
94
+ [docs/versioning.md](docs/versioning.md) says what is public, how a number
95
+ may change, which records stay readable and how something public is
96
+ deprecated, and `api/` holds each public entry point's declarations.
97
+ Install it from npm:
21
98
 
22
99
  ```sh
23
- pnpm add ./zodiacs-engine-0.1.1-rc.16.tgz
100
+ npm install @zodiacs/engine
24
101
  ```
25
102
 
103
+ 1.0.0, npm's `latest` before this release, has no `./conventions`, `./time`,
104
+ `./lite`, `./de440` or DE440 pack, computes on astronomy-engine and writes no
105
+ ids. Until this release is published, `artifacts/zodiacs-engine-1.1.0.tgz`
106
+ in the repository, with its SHA-256 receipt, is the exact archive the Release
107
+ workflow publishes.
108
+
109
+ The Release workflow publishes the archive carried in `artifacts/` as it is,
110
+ with provenance (CONTRIBUTING.md, *Releases*). Before 1.0.0 npm carried
111
+ 0.1.1-rc.14 to 0.1.1-rc.16. 0.1.1-rc.17, 1.0.0-rc.1 and 1.0.0-rc.2 were never
112
+ published, so a caller moving from npm reads their CHANGELOG entries,
113
+ 1.0.0-rc.1's *Migration* first, and a caller on 0.1.1-rc.15, npm's `latest`
114
+ until 1.0.0, reads 0.1.1-rc.16's too.
115
+
26
116
  The package runs in browsers through a bundler, and in Node.js 20.19.0 or a
27
117
  later 20.x, or 22.7.0 or later (`"engines": { "node": "^20.19.0 || >=22.7.0" }`).
118
+ Node.js 20 reached its end of life on 2026-04-30: the package is still tested
119
+ there, but a 1.x minor release may drop it (docs/versioning.md, *Runtimes*).
28
120
  Its dependency, astronomy-engine 2.1.19, ships ES modules in a package that does
29
121
  not declare `"type": "module"`. Earlier Node versions load that file as
30
122
  CommonJS, so a plain Node import of this package fails there with "Named export
@@ -35,7 +127,7 @@ themselves and are not affected.
35
127
 
36
128
  From a source checkout, run `npm ci` and `npm run build`, then
37
129
  `npm pack --ignore-scripts`. Test the packed file in a clean consumer using
38
- `npm run consumer:smoke -- /absolute/path/to/zodiacs-engine-0.1.1-rc.16.tgz`.
130
+ `npm run consumer:smoke -- /absolute/path/to/zodiacs-engine-1.1.0.tgz`.
39
131
  The smoke check
40
132
  downloads the artifact's public dependencies and TypeScript 5.9.3; its output
41
133
  records the artifact hash and runtime, and it removes its temporary consumer
@@ -64,26 +156,52 @@ dependencies afresh with `npm ci` and takes nothing from the checkout's
64
156
  needs merge commits: a squash or rebase merge drops the source commits it
65
157
  checks against, and the check then fails.
66
158
 
67
- This candidate brings five opt-in entry points onto rc.15:
159
+ 1.0.0-rc.1 settled the API for 1.0.0. Before the promise was made, three
160
+ reviews read every public declaration of the twelve entry points; it acted on
161
+ what they found, recorded the result in `api/`, which CI checks, and lists
162
+ every breaking change, deprecation and experimental part in CHANGELOG.md with
163
+ what a caller does about it. `@zodiacs/engine/calc` now computes a caller's
164
+ ayanamsa carried by precession from any epoch in `EPHEMERIS_SPAN`, where rc.17
165
+ refused one outside 1800 to 2200. Where both compute a value, it is rc.17's,
166
+ to the bit, in a comparison of 6,411 calls across the twelve entry points.
167
+ rc.17 added the sidereal zodiac to `@zodiacs/engine/calc`: its four
168
+ functions take an ayanamsa of `@zodiacs/engine/vedic`, or a caller's own,
169
+ and, with every other default, give the Vedic entry's sidereal longitudes to
170
+ the bit; their bounds add the ayanamsa's (see Uniform calculation API). rc.16
171
+ brought five opt-in entry points onto rc.15:
68
172
  `@zodiacs/engine/calc`, one calculation API over eight frames, four centers
69
173
  and three corrections, with speeds, bounds and receipts; `/window`, birth-time
70
174
  window partitions; `/techniques`, returns, composite and Davison charts, the
71
175
  void-of-course Moon, aspect patterns, dignities and Moon signs; `/houses`,
72
176
  house positions of bodies with latitude, co-ascendants and cusp speeds; and
73
177
  `/sky`, rise, set, transit and planetary hours. `@zodiacs/engine/timing`
74
- gains planetary returns. The root imports none of them. The nutation is now
75
- the full IAU 2000B series, which the engine evaluates itself (see Nutation):
76
- every longitude moves from rc.15's by the change in Δψ, up to 0.2701″ from
77
- 1800 to 2200, and the angles and cusps by the change in the sidereal time and
78
- the true obliquity, up to 0.8003″ over 9,697 synthetic charts at places up to
79
- 60.17° N, and more toward the polar circle. Receipts gain a
80
- conventions set that names the nutation; rc.15's receipts stay readable. As
81
- in rc.15, a chart's instant is read on a time basis: from 1972 to 2027-10-02
82
- as UTC, with TT from the leap seconds and UT1 from IERS UT1 − UTC, and
83
- otherwise as UT1 with the ΔT model, or on UT1 or TT when `timeScale` says so
84
- (see Time). The ephemeris is still astronomy-engine 2.1.19. See CHANGELOG.md
85
- for the release history and `docs/evidence/rc16-20260930/` for this
86
- candidate's checks. Site adoption is reviewed separately.
178
+ gained planetary returns. The root imports none of them. rc.16 also made the
179
+ nutation the full IAU 2000B series, which the engine evaluates itself (see
180
+ Nutation): every longitude moved from rc.15's by the change in Δψ, up to
181
+ 0.2701″ from 1800 to 2200, and the angles and cusps by the change in the
182
+ sidereal time and the true obliquity, up to 0.8003″ over 9,697 synthetic
183
+ charts at places up to 60.17° N, and more toward the polar circle. Receipts
184
+ gained a conventions set that names the nutation; rc.15's receipts stay
185
+ readable. As in rc.15, a chart's instant is read on a time basis: from 1972
186
+ to 2027-10-02 as UTC, with TT from the leap seconds and UT1 from IERS
187
+ UT1 − UTC, and otherwise as UT1 with the ΔT model, or on UT1 or TT when
188
+ `timeScale` says so (see Time). From 1.1.0-rc.9 the ephemeris is the shipped
189
+ DE440 pack inside its years and astronomy-engine 2.1.19 elsewhere; where this
190
+ document speaks of the ephemeris's accuracy or of its error limits without
191
+ naming DE440, it speaks of astronomy-engine, the fallback and the ephemeris
192
+ of what the pack does not give. See CHANGELOG.md for the release history and
193
+ `docs/evidence/1.1.0-20261116/` for this release's checks
194
+ (1.1.0-rc.13's are in `docs/evidence/1.1.0-rc.13-20261115/`, 1.1.0-rc.12's in
195
+ `docs/evidence/1.1.0-rc.12-20261115/`, 1.1.0-rc.11's and 1.1.0-rc.10's in
196
+ their own dated folders there, 1.1.0-rc.9's, its superseded draft's, are in
197
+ `docs/evidence/1.1.0-rc.9-20261114/`)
198
+ (1.1.0-rc.3's are in `docs/evidence/de440-20261110/`, 1.1.0-rc.2's in
199
+ `docs/evidence/1.1.0-rc.2-20261102/`, 1.1.0-rc.1's in
200
+ `docs/evidence/1.1.0-rc.1-20261026/`, 1.0.0's in
201
+ `docs/evidence/1.0.0-20261011/`, 1.0.0-rc.2's in
202
+ `docs/evidence/1.0.0-rc.2-20261006/`, 1.0.0-rc.1's in
203
+ `docs/evidence/1.0.0-rc.1-20261006/`, rc.17's in
204
+ `docs/evidence/rc17-20261005/`). Site adoption is reviewed separately.
87
205
 
88
206
  ## Natal chart in 10 lines
89
207
 
@@ -186,27 +304,101 @@ for (const aspect of today.aspects) {
186
304
  and the speeds of the cusps and the angles (see `docs/houses.md`). It
187
305
  imports no ephemeris and no module of the root entry.
188
306
  - `@zodiacs/engine/vedic` provides the sidereal zodiac: ayanamsas, sidereal
189
- charts, nakshatras, vargas, KP sub-lords and dashas (see `docs/vedic.md`).
307
+ charts, nakshatras, vargas, KP sub-lords and dashas, and, new in
308
+ 1.1.0-rc.2, how far the birth time can move before each varga sign changes
309
+ (`vargaSensitivity`; see `docs/vedic.md`).
190
310
  - `@zodiacs/engine/sky` provides rise, set and transit times for an observer
191
311
  and planetary hours (see `docs/sky.md`).
192
312
  - `@zodiacs/engine/window` partitions a birth-time window into cells within
193
313
  which the chart's signs, houses and aspects are constant (see *Birth-time
194
314
  windows*).
315
+ - `@zodiacs/engine/conventions`, new in 1.1.0-rc.1, gives the ids of the
316
+ conventions registry a natal receipt names, and each id's address (see
317
+ *Draft natal receipts*). It imports no module of another entry point.
318
+ - `@zodiacs/engine/time`, new in 1.1.0-rc.2, gives the clock and the frame of
319
+ date a chart is computed on, and loads no ephemeris: `timeBasis`, an
320
+ instant's UT1 and TT with the `deltaT` and `timeScale` records a chart
321
+ reports; `elapsedDays`; `EPHEMERIS_SPAN`; the frame that turns
322
+ astronomy-engine's vectors to the ecliptic of date: `tilt`,
323
+ `eclipticFrame`, `meanEcliptic` and `eclipticOfDate`; and `timeBands`, the
324
+ 1-σ bands of a recorded instant's TT and UT1 (see *Time*).
325
+ - `@zodiacs/engine/de440`, new in 1.1.0-rc.3: `openDe440Pack` opens a sealed
326
+ pack of Chebyshev series refitted from DE440 that the caller supplies and
327
+ checks it against the SHA-256 it is given, and the root's
328
+ `withEphemeris(source, fn)` runs `fn` with the root's body positions taken
329
+ from it; charts name it, and so do their receipts. The calc entry, the
330
+ window entry, the sky entry's rising and setting and the vedic entry's
331
+ star-anchored ayanamsas and varga timing refuse inside it. The entry fetches nothing; the pack is
332
+ the caller's, or the one the next entry ships (see
333
+ [docs/de440.md](docs/de440.md)).
334
+ - `@zodiacs/engine/de440/pack`, new in 1.1.0-rc.9, gives out the pack the
335
+ package ships and the root computes on by default:
336
+ `de440-1790-2210.v2.zeph`, 2,489,664 bytes, refitted from NAIF's
337
+ `de440.bsp` for 1790 to 2210, as base64 text in one file that this entry
338
+ and the root share. `shippedDe440Source()` opens it, checked against its
339
+ SHA-256, and gives the source (`openShippedDe440Pack()` gives the same one
340
+ as a promise); `de440PackBytes()` gives the bytes and `DE440_PACK`
341
+ describes them. It fetches nothing. A plain root call needs none of this:
342
+ the root's `defaultEphemeris()` says what it computes on, and
343
+ `setDefaultEphemeris("astronomy-engine")` puts it back on astronomy-engine.
344
+ The `withEphemeris` callback must be synchronous (see
345
+ [docs/de440.md](docs/de440.md)).
346
+ - `@zodiacs/engine/lite`, new in 1.1.0-rc.2, gives declination parallels and
347
+ out-of-bounds flags, a chart's sect under a named convention
348
+ (`sectReading`), composite midpoints and their aspects, and the essential
349
+ dignities, and loads no ephemeris. The functions and tables of its
350
+ declination, composite and dignity parts are copies of the root's and
351
+ `@zodiacs/engine/techniques`', with the same results; its sect part
352
+ (`sectReading`, `orientality` and their constants) is new (see
353
+ [docs/lite.md](docs/lite.md)).
195
354
 
196
355
  ### Uniform calculation API
197
356
 
198
357
  `@zodiacs/engine/calc` offers `calc`, `houses`, `events` and `chart` with one
199
- vocabulary: instants as ISO strings, Dates or `{ jd, scale: "UTC" | "UT1" | "TT" }`
358
+ vocabulary: instants as ISO strings, Dates or `{ jd, scale: "utc" | "ut1" | "tt" }`
200
359
  on the engine's time basis, as `positions()` reads them;
201
360
  eight frames (the ecliptic or the equator; true or mean of date, J2000.0 or
202
- the ICRS); geocentric, heliocentric, barycentric and topocentric centers; and
203
- apparent, astrometric or geometric positions with distances and speeds.
204
- Results carry bounds and a receipt of convention ids. A measured bound is the
205
- largest difference from JPL Horizons on 32 instants from 1802 to 2188: a
206
- sample maximum, not a limit. An estimated bound names what it rests on. What
207
- this version does not compute comes back as a typed refusal, such as the
208
- sidereal zodiac, or an instant whose UT1 or TT is outside 1800 to 2200: there
209
- calc has no comparison to take a bound from, while the root entry's functions
361
+ the ICRS); geocentric, heliocentric, barycentric and topocentric centers;
362
+ apparent, astrometric or geometric positions with distances and speeds; and
363
+ the tropical or the sidereal zodiac, with any ayanamsa of
364
+ `@zodiacs/engine/vedic` or a caller's own (Swiss Ephemeris's `SE_SIDM_USER`).
365
+ Results carry bounds and a receipt of convention ids, which names the
366
+ ephemeris. The apparent geocentric place of the Sun, the Moon and Mercury to
367
+ Pluto, and the true nodes, come from the shipped DE440 pack, as
368
+ `natalChart()`'s do (to the bit, with every default); every other center
369
+ and correction, and the Earth, from astronomy-engine
370
+ ([docs/calc.md](docs/calc.md), *Which ephemeris*). A measured bound is the
371
+ largest difference found, rounded up. For a position from the pack: from JPL
372
+ Horizons at the conformance suite's 240 L1 vectors (the Moon 0.013″, the Sun
373
+ and the planets under 0.004″, in the true ecliptic of date), with no bound
374
+ for its distance, its speed or the true node, which no arbiter has checked
375
+ on the pack. For a position from astronomy-engine: for the geocentric Sun,
376
+ Moon, planets and true nodes, from JPL's DE440 at noon TT on each of the 146,097 days from
377
+ 1800-01-01 to 2199-12-31; for every other center and body, from JPL Horizons
378
+ on 32 instants from 1802 to 2188 (for the mean nodes and Black Moon Lilith,
379
+ from their definitions evaluated with ERFA on the same instants). Its
380
+ `basis` says which. It is a sample maximum, not a limit. In the sidereal
381
+ zodiac a bound adds the
382
+ ayanamsa's: the largest difference of its mean, and of its rate, from ERFA's
383
+ construction of the same definition, over every year from 1800 to 2199. An
384
+ estimated bound names what it rests on. Results also carry `band`, which is
385
+ not a bound on the error: to first order, how far a position, an angle, a
386
+ cusp or an event's clock label moves when the instant's TT and UT1 move by
387
+ the 1-σ bands its time basis records. An angle's or a cusp's band is its rate
388
+ on UT1 times the UT1 band plus its rate on TT (the frame's precession and
389
+ nutation, the obliquity and a sidereal zodiac's ayanamsa) times the TT band;
390
+ the true nodes' is their speed over ±0.25 day times the TT band, which
391
+ smooths their short-period motion; and a topocentric position's is an upper
392
+ bound on its first-order movement, not that movement. On UTC input from
393
+ 1972-01-01 to 2027-10-02 without a pinned ΔT, TT comes from the leap seconds
394
+ (exactly to 2027-06-28, when the shipped list expires; after it the list's
395
+ last value is carried), so every geocentric, heliocentric and barycentric
396
+ position's band is 0 there, and the band falls on the angles and cusps,
397
+ topocentric positions and each event's UT1 (docs/calc.md, *Bands*).
398
+ Root charts and natal envelopes carry none. What this version does not compute
399
+ comes back as a typed refusal, such as gravitational deflection, or an
400
+ instant whose UT1 or TT is outside 1800 to 2200: there calc has no
401
+ comparison to take a bound from, while the root entry's functions
210
402
  still compute such an instant and flag it `outside-reference-span`. With
211
403
  every default, `calc({ body, time })` is the position `positions()` gives, to
212
404
  the bit. The root entry loads none of it. The reference, with the Swiss Ephemeris flag
@@ -214,9 +406,13 @@ mapping and the measured accuracy, is
214
406
  [docs/calc.md](https://github.com/zodiacs-org/engine/blob/main/docs/calc.md).
215
407
 
216
408
  Returned longitudes use degrees in `[0, 360)` and positions include sign and degree
217
- annotations. Charts use the tropical ecliptic of date. Planetary positions are
218
- geocentric and corrected for light time and aberration, but not for the Sun's
219
- gravitational deflection; the Moon's series carries neither correction. The
409
+ annotations. Charts use the tropical ecliptic of date. Positions are
410
+ geocentric. On the shipped DE440 pack, the default, each body's place is
411
+ corrected for light time, the Sun's light deflection (from 1.1.0-rc.12 none
412
+ for a planet behind the Sun's disc, as JPL Horizons) and aberration; on
413
+ astronomy-engine planetary positions are corrected for light time and
414
+ aberration, not for the deflection, and the Moon's series carries neither
415
+ correction. The
220
416
  chart functions do not calculate topocentric parallax; `@zodiacs/engine/calc`
221
417
  gives topocentric positions (`center: { topocentric }`), and
222
418
  `@zodiacs/engine/sky` finds rise and set for a topocentric observer.
@@ -444,6 +640,8 @@ short way round between the two supplied longitudes, reduced exactly modulo
444
640
  (1 + 2⁻⁵⁰ apart), and 1.1 and 0.1 (1 + 3·2⁻⁵⁵), do not. Body labels follow
445
641
  the configured-aspect rule. `eclipticToEquatorial` and `declinationsForBodies`
446
642
  expose the same geometry with an explicitly supplied obliquity.
643
+ `@zodiacs/engine/lite` carries copies of these, and of `findDeclinationAspects`,
644
+ that load no ephemeris ([docs/lite.md](docs/lite.md)).
447
645
 
448
646
  These are derived coordinates of the existing ephemeris, with its existing
449
647
  corrections and limits. They do not establish the programme's 0.01″ physical
@@ -479,8 +677,9 @@ outside those years Swiss uses a long-term sidereal time of its own.
479
677
 
480
678
  Placidus and Koch are undefined in polar regions, where |latitude| ≥ 90° − ε,
481
679
  with ε the true obliquity of date (about 66.56° today). There the engine falls
482
- back to whole-sign houses, exported as `POLAR_FALLBACK` (and, as before,
483
- `PLACIDUS_POLAR_FALLBACK`), and adds `polar-fallback` to the chart flags. Swiss
680
+ back to whole-sign houses, exported as `POLAR_FALLBACK` (and as
681
+ `PLACIDUS_POLAR_FALLBACK`, deprecated from 1.0, since Koch falls back too),
682
+ and adds `polar-fallback` to the chart flags. Swiss
484
683
  Ephemeris falls back to Porphyry instead. Every other system is defined at
485
684
  every latitude where the angles are. Inside the polar circle, where the
486
685
  ascendant is taken on the eastern half of the horizon, Regiomontanus, Campanus
@@ -520,23 +719,34 @@ Every chart gets those three. The Vertex, the East Point, the sect and the
520
719
  lots need a birth time and place.
521
720
 
522
721
  - The Vertex and the East Point come from the instant and the place, not from a
523
- supplied chart's angles. Given Swiss's sidereal time, latitude and obliquity,
524
- they agree with its `swe_houses_armc` to within 0.00001″.
722
+ supplied chart's angles. On the conformance suite's ten L2 vectors for them,
723
+ from 1833 to 2182 at latitudes from 60° S to 60° N, whose arbiter is ERFA's
724
+ sidereal time and obliquity with each point's published definition, they are
725
+ within 0.014″ and 0.007″ (`conformance/RESULTS.md`, which rounds to the
726
+ nearest 0.001″, and `conformance/results/summary.json`).
525
727
  - The sect is day when the Sun is between the descendant and the ascendant
526
- through the midheaven.
728
+ through the midheaven. `sectReading`, in `@zodiacs/engine/lite`, reads the
729
+ sect under the convention a caller names: this one, or the Sun's altitude
730
+ ([docs/lite.md](docs/lite.md)).
527
731
  - The lots use the chart's own ascendant and bodies. Each is the ascendant plus
528
732
  the arc between two points, taken as Paulus gives it by day and reversed by
529
733
  night. Ptolemy's Fortune, which does not reverse, is `asc + moon − sun`.
530
734
 
531
735
  `antiscion`, `contraAntiscion` and `midpoint` work on any two longitudes.
532
736
  `meanNodeLongitude`, `meanApogee`, `lunarMeanArguments`, `hellenisticLots` and
533
- `sectOf` expose the calculations underneath. The osculating ("true") Lilith is
737
+ `sectOf` expose the calculations underneath. The first three, with
738
+ `MEAN_LUNAR_INCLINATION`, are experimental from 1.0
739
+ ([docs/versioning.md](docs/versioning.md)): a minor release may change them,
740
+ and `chartPoints` and `@zodiacs/engine/calc` give the points themselves. The osculating ("true") Lilith is
534
741
  not offered: from astronomy-engine's lunar series it would be several
535
742
  arcminutes from Swiss's.
536
743
 
537
744
  ### Input flag compatibility
538
745
 
539
- Public birth inputs accept all six `ChartFlag` values. Supply an array with at
746
+ Public birth inputs accept all nine `ChartFlag` values: the six below,
747
+ `delta-t-extrapolated` (see Time) and the two fallback flags,
748
+ `de440-unavailable` and `outside-de440-span`, each of which a caller may echo
749
+ only where the calculation derives it. Supply an array with at
540
750
  most 64 entries; entries must be known string values in ordinary data slots.
541
751
  Repeated values collapse in first-occurrence order. Unknown strings, sparse
542
752
  slots, accessor slots, non-array iterables and simultaneous `dst-gap`/`dst-fold`
@@ -585,7 +795,7 @@ bracket, which cannot fail outside the polar circle; it never returns the last
585
795
  unconverged iterate. Near the polar limit a cusp carries the rounding of asin
586
796
  near ±1: up to 6.5e-7° one unit in the last place below it.
587
797
 
588
- See [CHANGELOG.md](CHANGELOG.md) for candidate changes. Reference coverage and
798
+ See [CHANGELOG.md](CHANGELOG.md) for each release's changes. Reference coverage and
589
799
  known limits are recorded in the site [platform evidence ledger](https://github.com/zodiacs-org/site/blob/75ae549c6bcedba67ccce7d467e1b54af0c83070/docs/platform/EVIDENCE.md).
590
800
  The date parser's representable range is not a claim of astronomical accuracy
591
801
  across that range. Reference cases are finite; broader numerical scope review
@@ -625,9 +835,13 @@ before it; a sampled plateau on the target is returned where it begins.
625
835
  Offsets of 90° or more on either side of a step are the far side of the circle,
626
836
  not a crossing.
627
837
 
628
- A fixed step alone loses both crossings when a station falls between two
629
- samples just past the target: at 5 days, a Saturn station within 0.0103° of
630
- it, or a Jupiter station within 0.0205°. Wherever the sampled motion turns
838
+ A fixed step alone can lose both crossings when a station takes the body
839
+ less than |f″|h²/8 past the target, f″ being the second derivative of its
840
+ longitude at the station and h the step, since both crossings can then fall
841
+ between two samples: at 5 days, up to 0.0056° for Saturn and 0.011° for
842
+ Jupiter at their stations from 2019 to 2024
843
+ (`docs/evidence/1.1.0-rc.2-20261102/f89/blind-band.json`).
844
+ Wherever the sampled motion turns
631
845
  without the offset changing sign, and the turning sample is within reach of the
632
846
  local curvature, the solver finds the extremum by golden-section search. It
633
847
  bisects both crossings when the extremum passes the target, and returns one,
@@ -737,8 +951,32 @@ against natalChart at every whole second, not proven. On 1,000 preregistered
737
951
  random windows (1800 to 2200, all thirteen systems, two thirds at 60° of
738
952
  latitude or more), all 24,188 sampled transitions were matched, none missed
739
953
  and none extra, and natalChart confirmed every switch at its millisecond
740
- (`docs/evidence/birth-window/RESULTS.md`); on this candidate's build, after
741
- the time basis and the nutation, again (`docs/evidence/birth-window/rc16/`).
954
+ (`docs/evidence/birth-window/RESULTS.md`); on rc.16's build, after the time
955
+ basis and the nutation, again (`docs/evidence/birth-window/rc16/`).
956
+
957
+ **On the shipped DE440 pack** (from 1.1.0-rc.10). A window is computed on
958
+ the source a plain `natalChart` uses, which inside `REFERENCE_SPAN` is the
959
+ pack, and says so: `result.ephemeris` names it, or names astronomy-engine,
960
+ with the flag `de440-unavailable` when that is a fallback. Everything this
961
+ section measures above was measured on astronomy-engine, where the search is
962
+ unchanged. On the pack three things differ. The true node comes from the
963
+ pack's own velocity and does not jitter: over 3,000 consecutive milliseconds
964
+ at each of 29,220 epochs it stays within 4.5e-12° of a quadratic, so an
965
+ ingress does not flicker. The pack's positions step where a read passes
966
+ from one of its Chebyshev records to the next: the true node by up to
967
+ 1.11″, more than J, the Moon by up to 0.0011″; the search takes each such
968
+ instant, a few in 48 hours, as a seam, like a step of the time basis. And
969
+ near the Sun the pack bends a planet's light, by at most 1.7512″ outside the
970
+ Sun's disc and, from 1.1.0-rc.12, not at all behind it, so within a degree
971
+ of the Sun the search takes that deflection as a displacement of at most
972
+ 1.8″, as it takes the node's jitter. The rate scan on the pack holds every
973
+ bound with its margin, bound over largest rate plus what its grid can miss
974
+ 1.634 to 2.057 (`docs/evidence/1.1.0-rc.12-20261115/window/`). Through
975
+ 1.1.0-rc.11 the pack bent light behind the disc too, Neptune's place moved
976
+ at 1.85 times its bound behind the Sun on 1920-08-04, and the search raised
977
+ its bounds there and compared single milliseconds within 0.01° of the Sun's
978
+ centre; from 1.1.0-rc.12 it does neither, and `src/window-de440.test.ts`
979
+ holds a window across each limb and the centre of a passage to natalChart.
742
980
 
743
981
  In one thread, a 10-minute window takes about 2 ms, two hours about 20 ms and
744
982
  a whole day about 0.23 s (medians, Node.js 22; `timing.json`). A window over a
@@ -841,7 +1079,17 @@ planets on Terrestrial Time (TT). `utc` is on UTC unless `timeScale` says
841
1079
  ut1MinusUtc, leapSeconds }`). `@zodiacs/engine/deltat` exports the model with
842
1080
  no dependencies. astronomy-engine keeps one ΔT for its whole module; every
843
1081
  engine call leaves the model installed, and code that calls astronomy-engine
844
- directly should install it too: `SetDeltaTFunction(deltaT)`.
1082
+ directly should install it too: `SetDeltaTFunction(deltaT)`. Such code can
1083
+ take the engine's clock and frame of date from `@zodiacs/engine/time`, which
1084
+ loads no ephemeris ([docs/time.md](docs/time.md), *Without the ephemeris*).
1085
+ Its `timeBands` turns a record's two bands, `deltaT.sigma` and
1086
+ `timeScale.ut1MinusUtc.sigma`, into the 1-σ bands of the TT and the UT1 the
1087
+ engine used: on UTC input from 1972-01-01 to 2027-10-02 without a pinned ΔT,
1088
+ TT comes from the leap seconds (exactly to 2027-06-28, when the shipped list
1089
+ expires; after it the list's last value is carried, with no band for a leap
1090
+ second not yet announced), so its band is 0, and UT1 carries the band of
1091
+ UT1 − UTC; with a pin, TT is UT1 plus the pin and takes UT1's band
1092
+ ([docs/time.md](docs/time.md), *The time bands*).
845
1093
 
846
1094
  `@zodiacs/engine/geo` reads wall times before 1970 on the tzdb 2025c history
847
1095
  with backzone, shipped as 16 lazily imported chunks: `prepareLocalTime(date,
@@ -849,8 +1097,13 @@ timeZone)` loads the one a zone needs, and a wall time before 1970 throws until
849
1097
  it has. From 1970 the host's Intl answers. A `longitude` reads a time in a
850
1098
  zone's local mean time era on the birthplace's own mean time; `calendar:
851
1099
  "julian"` takes an Old Style date, and `country` adds a note from the country's
852
- Gregorian adoption. Each resolution names the tzdb version, the transition
853
- behind the offset and its cause (`dst`, `legal-change` or `date-line`).
1100
+ Gregorian adoption. A wall time the clock showed twice takes its first pass,
1101
+ or its second with `fold: "later"` (from 1.1.0-rc.6). Each resolution names the tzdb version (the host's where
1102
+ its Intl answered, null when the runtime does not report one) and, where
1103
+ there is one, the transition behind the offset with its cause (`dst`,
1104
+ `legal-change` or `date-line`): the jump's in a gap or fold, or, where the
1105
+ shipped history answered, the last change it records before the time. From
1106
+ 1970, outside a gap or fold, the transition is null.
854
1107
  [docs/time.md](docs/time.md) describes every field.
855
1108
 
856
1109
  ## Nutation
@@ -878,7 +1131,12 @@ sidereal angle.
878
1131
 
879
1132
  ## Accuracy and licensing
880
1133
 
881
- The ephemeris is powered by the MIT-licensed `astronomy-engine`. Tests compare
1134
+ By default the positions come from a sealed pack refitted from the Jet
1135
+ Propulsion Laboratory's DE440 planetary and lunar ephemeris (Park, Folkner,
1136
+ Williams and Boggs 2021), which [NOTICE](NOTICE) credits and cites; the pack
1137
+ is Zodiacs.org's work, and JPL has not reviewed or endorsed it. Outside the
1138
+ pack's years, and for what its reduction does not give, the ephemeris is the
1139
+ MIT-licensed `astronomy-engine`. Tests compare
882
1140
  modern and historical positions with public JPL Horizons vectors and exercise
883
1141
  astronomical and geometric invariants. See [LICENSING.md](LICENSING.md) for the
884
1142
  full provenance audit and the explicit Swiss Ephemeris exclusion.
@@ -889,7 +1147,8 @@ Table S15 in the package's ΔT module (`@zodiacs/engine/deltat`, which the build
889
1147
  places in a shared chunk under `dist/` that `dist/deltat.js` re-exports) are
890
1148
  CC BY 4.0, attributed in [NOTICE](NOTICE).
891
1149
 
892
- The npm package contains no place database. It carries tzdb 2025c's zone
1150
+ The npm package contains no place database. It carries the DE440 pack
1151
+ (2,489,664 bytes), tzdb 2025c's zone
893
1152
  histories before 1970, the IERS leap-second list, an IERS UT1 − UTC table, a
894
1153
  table of Gregorian adoption dates from public-domain sources, 22 catalogue
895
1154
  values for the stars of the Vedic ayanamsas, and the IAU 2000B nutation series
@@ -905,7 +1164,8 @@ package implementation while keeping its scanner-oriented functions and lazy
905
1164
  bundle boundary intact. They are not covered by semantic-versioning guarantees;
906
1165
  third-party code must use the documented entry points: the root, `/calc`,
907
1166
  `/geo`, `/houses`, `/sky`, `/techniques`, `/timing`, `/vedic`, `/window`,
908
- `/receipt`, `/crossings` and `/deltat`.
1167
+ `/receipt`, `/conventions`, `/crossings`, `/deltat`, `/time`, `/lite`,
1168
+ `/de440` and `/de440/pack`.
909
1169
 
910
1170
  ## GeoNames request recovery
911
1171
 
@@ -995,7 +1255,7 @@ The time-basis sets, written from 0.1.1-rc.15 on, also record the instant's
995
1255
  scale (`receipt.timeScale`) and its time basis (`result.timeScale`), and a
996
1256
  local resolution records the calendar, the tzdb version and form, the clock,
997
1257
  the transition behind the offset and any birthplace mean time, each checked
998
- against the offsets and flags. The current set, written from 0.1.1-rc.16 on,
1258
+ against the offsets and flags. The set written from 0.1.1-rc.16 to 1.0.0
999
1259
  also names the nutation, the engine's IAU 2000B (`nutation`), and takes the
1000
1260
  Moon from astronomy-engine's geocentric series turned by the engine's frame
1001
1261
  (`moonPosition`); rc.15's set, which does not name the nutation, stays
@@ -1004,10 +1264,28 @@ as UT1, stay readable and replay as UTC requests (see docs/time.md). A
1004
1264
  receipt's engine, ephemeris and package versions must be SemVer 2.0.0
1005
1265
  versions. The codec accepts an earlier set only under the versions that wrote
1006
1266
  it, rc.15's under 0.1.1-rc.15 alone, and compares the engine's version in
1007
- SemVer order with 0.1.1-rc.16, which brought the current set, and with the
1008
- releases that brought each house system: a receipt of the current set that
1009
- names a version before 0.1.1-rc.16, such as 0.1.1-rc.15.1 or 0.1.1-beta, is
1010
- refused.
1267
+ SemVer order with the release that brought each set and each house system: a
1268
+ receipt names the engine that computed its chart, so rc.16's set and the
1269
+ current one are accepted from 0.1.1-rc.16 on, and one that names a version
1270
+ before it, such as 0.1.1-rc.15.1 or 0.1.1-beta, is refused.
1271
+
1272
+ The current set, written from 1.1.0-rc.1 on, is rc.16's with
1273
+ `conventionIds`, and its receipts list, as `receipt.conventionIds`, every id in
1274
+ the syntax of the Zodiacs conventions registry
1275
+ ([zodiacs.org/developers/conventions](https://zodiacs.org/developers/conventions/))
1276
+ that the receipt and its result name, in code-unit order, each once: each
1277
+ conventions and coverage field's key and value (`zodiac:tropical`), the
1278
+ requested and actual house systems (`house:placidus`), why there are no
1279
+ houses, each flag, the reference, the instant's scale (`time-scale:utc`), the
1280
+ ephemeris (`ephemeris:astronomy-engine@2.1.19`), and the result's ΔT model and
1281
+ segment, time basis and source of UT1 − UTC (`time-basis:iers`). The codec
1282
+ refuses ids that differ from those the envelope's fields name. Its envelopes
1283
+ require the feature `convention-ids`, so an earlier engine refuses them as
1284
+ `unsupported_feature` (docs/versioning.md). `@zodiacs/engine/conventions`
1285
+ exports the rule as `natalConventionIds(envelope)`, which also names a 1.0.0
1286
+ envelope's ids, with `conventionId`, `parseConventionId` (the value is
1287
+ everything after the first colon) and `conventionAddress`, an id's address on
1288
+ the registry's page; each throws a `RangeError` for a malformed id.
1011
1289
 
1012
1290
  `natalReplayInput` recovers the recorded request. It does not select or install
1013
1291
  the original engine. Recalculation with another engine, ephemeris dependency or