Repository navigation
importkit v0.2.0
ImportKit adds preflight file validation without opening a destination or checkpoint.
validateFilechecks CSV, JSON Lines, and application-supplied deterministic readers.- Mapping failures are counted with bounded, sanitized issues by record ordinal. Structural parsing failures produce an explicit incomplete result; operational failures still throw.
- Validation and import share the same stable IDs. Imports retain their at-least-once recovery contract and require idempotent destination writes.
- Includes executable validation/recovery demos and a reproducible synthetic-workload benchmark. Node.js 24+; ESM; MIT.
Download altitud-studio-importkit-0.2.0.tgz and install with npm install ./altitud-studio-importkit-0.2.0.tgz. The checksum file covers the tarball and measured benchmark output.
Validation: 63 tests passed on Windows; its file-symlink test could not run because the OS denied symlink creation. All 64 tests passed on Linux WSL2, including the symlink test. Both demos passed on Linux and Windows. The packaged library was consumed from a separate JavaScript and TypeScript project.
The attached benchmark records a single run with 1,000,000 synthetic JSON Lines records (51,335,797 input bytes), Node.js 24.11.1 on Linux WSL2 x64, batches of 1,000, an append-only file destination, and an fsync per batch. Validation took 4,603.36 ms; import took 39,780.03 ms. The JSON includes memory samples and methodological limits. These are observations for that workload, not universal throughput or memory guarantees; the benchmark destination does not deduplicate replays.
Source must remain immutable during a run. Preflight validation does not make later writes globally atomic. Full recovery, error, privacy, and resource contracts are documented in the README.