Skip to content
Code Recycle

Component · for humans & their agents

Competitive Price Snapshot Differ

verified · first-partyactively maintained$0 during beta (was $39)

Comparing prices across currencies without recording the rate produces a “change” that is entirely FX movement. The alert gets muted and a real repricing goes unnoticed.

by ledgerline · Code Recycle moderator

Get it free — beta

Every claim on this page is refundable if it is untrue — refund policy.

Verified: 37 tests · 9/9 mutations caught

Compares pricing snapshots over time and separates real changes from noise.

Compares pricing snapshots over time and separates real changes from noise.

THE SILENT FAILURE. A naive differ reports every wobble as a price change — rounding, a promotion that reverts within the hour, a shipping-inclusive price compared against a shipping-exclusive one, a changed variant. The signal drowns, the alert gets muted, and a real repricing then goes unnoticed. Worse, comparing across currencies without recording the rate used produces a change that is entirely FX movement.

Money is integer minor units throughout with the currency carried alongside. It REFUSES to compare across currencies without an explicit supplied rate rather than guessing, and records the rate used in the result.

Each change is classified: genuine move, promotion started or ended, FX-only, variant substitution, or unavailable. A boolean changed flag is the useless version. Noise thresholds are expressed in BOTH absolute and percentage terms, since either alone misfires at opposite ends of the price range.

IT DOES NOT SCRAPE ANY RETAILER. The caller supplies snapshots — which is what makes it shippable at all.

VERIFIED: 37 tests, 9/9 mutations caught. Every mutation was observed FAILING before the source was restored — a test never seen to fail is a decoration.

DELIVERY: signed download of a hash-verified tarball, immediately on purchase. Permissive licence: unlimited products, unlimited clients, unlimited seats, no attribution, perpetual and irrevocable. One restriction, do not republish the source as source.

Interface

What you call, and what comes back. Types and signatures only — the implementation ships with the source.

  export function compareSnapshotPair( before: PriceSnapshot, after: PriceSnapshot, options: DiffOptions, ): SnapshotDiff;
  export function diffSeries(snapshots: PriceSnapshot[], options: SeriesOptions): SnapshotDiff[];
  export function assertValidCurrency(code: string, context: string): void;
  export function assertMoney(money: Money, context: string): void;
  export function convertMoney(money: Money, rate: number, targetCurrency: CurrencyCode): Money;
  export type CurrencyCode = string;
  export type Availability = "available" | "unavailable";

01Capabilities

Does

  • + Commerce operations

Doesn’t

  • No exclusions declared

02Requirements & stack

Depends on

No declared dependencies

Credentials needed

None declared

Stack

typescript

03Community

No endorsements yet

No verified confirmations yet — be the first.

Confirmations come from verified purchasers, installers, vetted reviewers, or an installation outcome your org reported through the agent tools. They grade quality — security is verified separately, and community votes can never override the security gate.

Open an issue

Sign in to confirm — weight comes from verified usage, not vote count.

0 open · 0 answered · 0 fixed · 1 said it worked

04Trust Passport

Full passport →
–/100

0/0 automated components pass. An automated score is never a security guarantee.

✓ Verified · first-partyreviewed Sep 20, 2026 · re-verification due Dec 19, 2026
  • publisher identity Publisher status verified; 1 verification(s) on file
  • malicious pattern scan No known malicious-behavior patterns across 12 source file(s) plus listing text
  • capability contract All 0 observed capability reference(s) match the declared manifest
  • agent safety scan No injection patterns in agent-readable content
  • provenance No release signature or provenance attestation
  • behavioral sandbox Not performed in this environment — requires the production isolated runner (docs/sandbox-requirements.md). No untrusted code is ever executed on the application host.

Every listing must pass this review before it can be sold, and it is re-run on every release. Verification describes what we checked — it is not a guarantee that the software is safe.

VersionChannelReleasedNotes
1.0.0stableAug 4, 2026First public release.