π Introduction
A headless Harness FME admin API client for Node.js, with typed reads, rate-limit handling and a safe plan, backup, write and read-back engine.
@kud/harness-fme is the core library behind the harness-fme family: one small request client, typed helpers for workspaces, flags, definitions and segments, and an engine that changes flags in bulk without surprises. It has no CLI, no prompts and no rendering, so command-line tools and servers can share the same behaviour underneath.
What's here
- π§© Client and results β
createClient, theFmeResultshape and how the API key is handled - π¦ Errors and rate limits β 429 handling,
minIntervalMsand what a failure looks like - π Paging β
limit,MAX_PAGE_SIZE,collectAlland thelistAll*helpers - π© Flags, definitions and segments β reading and writing flags, per-environment definitions and both kinds of segment
- π‘ Safe writes β operations,
planChanges,applyChanges, the production rule, backups and read-back