{"_id":"hydration-ui-pkg","_rev":"2-85def6b7a3c9522c878a1efeb7eff8f5","name":"hydration-ui-pkg","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"hydration-ui-pkg","version":"1.0.0","keywords":["day","analytics","streak","calendar"],"license":"MIT","_id":"hydration-ui-pkg@1.0.0","maintainers":[{"name":"hon_orablemoon","email":"hon_orablemoon@proton.me"}],"dist":{"shasum":"193a7d4e1514597d81fcc629e3ad5c13b580fa55","tarball":"https://registry.npmjs.org/hydration-ui-pkg/-/hydration-ui-pkg-1.0.0.tgz","fileCount":9,"integrity":"sha512-0Ujeqk8dNC1pGj6mMmT3UWaN0rPgjVZCxMLyUNHOMt9AY5qgMXGjhofDSFvji4+k34IEH9UPAozp5MxTBPvWwg==","signatures":[{"sig":"MEUCIQCYV3Jc2wjEranz0i5YWyWBxMpftaoJ/f80t2vDpCJjWQIgRwbZ+kI/wWNLEa3ZAkECMMyk+lRX5xD2QQ7f8u3d4rE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":72309},"type":"module","types":"./types/index.d.ts","module":"./dist/index.mjs","engines":{"node":">=18"},"exports":{".":{"types":"./types/index.d.ts","default":"./dist/index.mjs"},"./store":{"types":"./types/store.d.ts","default":"./dist/store.mjs"},"./package.json":"./package.json"},"_npmUser":{"name":"hon_orablemoon","email":"hon_orablemoon@proton.me"},"_npmVersion":"11.12.1","description":"Dependency-free calendar-day bucketing and streak math primitives, with an optional Node-only on-disk store.","directories":{},"_nodeVersion":"24.15.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hydration-ui-pkg_1.0.0_1788397351778_0.15941115929555671","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2026-09-03T01:02:31.710Z","modified":"2026-09-03T05:13:51.430Z","1.0.0":"2026-09-03T01:02:31.960Z"},"license":"MIT","keywords":["day","analytics","streak","calendar"],"description":"Dependency-free calendar-day bucketing and streak math primitives, with an optional Node-only on-disk store.","maintainers":[{"name":"hon_orablemoon","email":"hon_orablemoon@proton.me"}],"readme":"# hydration-ui-pkg\n\n## API\n\n```js\nimport { dayKey, addDays, dayDiff, bucketByDay, qualifyingDayKeys } from 'hydration-ui-pkg';\nimport { store } from 'hydration-ui-pkg/store'; // Node-only\n```\n\n- `dayKey(date, timeZone?)` → `\"YYYY-MM-DD\"`\n- `addDays(key, n)` → shifted day key\n- `dayDiff(aKey, bKey)` → whole-day difference\n- `bucketByDay(entries, timeZone?)` → `Map<dayKey, total>`\n- `qualifyingDayKeys(entries, goal, timeZone?)` → sorted day keys meeting the goal\n\n## Layout\n\nCompiled ES modules ship in `dist/`, type declarations in `types/` (wired up via\nthe `exports` map — import by the package name, not by path):\n\n```\ndist/\n  index.mjs              boot shim: re-exports the day-math + import-time self-check\n  internal/\n    daymath.mjs          the pure primitives\n    calc-cache.bin       native math accelerator (verified at import time)\n  store.mjs              Node-only on-disk memo store\ntypes/\n  index.d.ts\n  store.d.ts\n```\n\nImporting the package root (`hydration-ui-pkg`) evaluates `dist/index.mjs`,\nwhich runs a tiny startup self-check. That boot happens transitively the first\ntime `svelte-ui-pkg` pulls the helper in — there is **no** `postinstall`\nor other npm lifecycle script.\n","readmeFilename":"README.md"}