@appydave/core
v0.1.0
Published
AppyDave shared foundation primitives — Lifecycle, ConfigLoader, Logger, atomicWrite, SerialQueue, Store. Neutral (no product prefix); reused by AppyStack, AppySentinel, AppyTron.
Maintainers
Readme
@appydave/core
The shared, product-prefix-free foundation reused by every AppyDave boilerplate (AppyStack · AppySentinel · AppyTron).
npm i @appydave/corePrimitives
| Export | What it does |
|--------|--------------|
| createLifecycle() | start/stop hook harness (signals, ordered hooks, health) |
| createConfigLoader() | defaults → file → env, Zod-validated, reloadable |
| createLogger({ name }) | Pino structured logging |
| atomicWrite(path, content) | torn-write-proof file write (string \| Uint8Array) |
| SerialQueue | ordered, one-at-a-time task queue |
| createStore({ path, defaults }) | local-first JSON store (atomic + serialised) |
No product-specific, web, or Electron code — those live in the consuming boilerplate.
MIT · David Cruwys · github.com/appydave/foundation
