201 entries across 38 modules.
PostHog single-event capture path, appended to the configured host.
Self-imposed cap on the length of a text property value, from
config.json (analytics.paramValueLimit). Not a PostHog limit (its
ceiling is ~1MB) — a privacy guard bounding how much of a search term or
error message can leave the device.
Self-imposed cap on how much of a React component stack rides along in a
$exception event, from config.json (analytics.componentStackLimit).
Unlike JS stack frames (capped by count via STACKTRACE_FRAME_LIMIT),
a component stack is one unstructured string, so it's bounded by length.
A JSON-safe value a PostHog event property may hold — the primitives
trackEvent always accepted, plus arrays/objects for structured
properties like $exception_list.
Serializable subset of RequestInit accepted by backgroundFetch. Only
structured-cloneable fields are supported; body must already be a string (callers
stringify JSON themselves).
A fully-assembled diagnostics snapshot, ready to render into a report.
Where a captured error originated: a global window/worker hook, an unhandled
promise rejection, React's error hooks, an aggregated supplier-search failure,
or a callback-style chrome.* API call that set chrome.runtime.lastError.
A single captured exception, trimmed to what a bug report needs.
Minimal metadata stored for each excluded product so the user can review (and eventually un-exclude) their ignore list from settings.
Map of exclusion-key → excluded product entry, as persisted in the
excluded_products IndexedDB object store (via @/utils/idbCache).
Response type that extends the standard Response with additional properties for data and request hash tracking.
Updates cached copies of one product after it was refetched on its own.
The price alert watchlist, and the rules for what counts as a price drop. Price changes themselves are logged in the price history; an alert only remembers the latest prices.
A price as the supplier lists it. Kept in the native currency, so a change in exchange rate can't look like a drop.
One price that went down.
A watched product.
The result of comparing fresh prices with an alert's last known ones.
References to specific supplier products, used to refetch them without running a search.
The identifiers of one size of a product. Suppliers with grouped listings refetch each member.
Everything needed to refetch one specific product. It carries several identifiers because no single field works for every supplier.
The builders a supplier found for a batch of refs.
The outcome of refetching one product. Only OK carries a product.
Re-exported from ./fetch so callers can reach the request helpers through a
single entry point.
Re-exported from ./fetch so callers can reach the request helpers through a
single entry point.
Re-exported from ./fetch so callers can reach the request helpers through a
single entry point.
Default freshness window for a cached response, in ms (chemicalInfo.cacheTtlDays in
config.json).
Options controlling a withTtlCache wrapper.
A single schema.org entity — a JsonObject that normally carries an
@type (and, at the top level, an @context). Every Thing in schema.org is
modelled this way.
Extracts, normalizes, and queries schema.org JSON-LD found on a page.
Construct it from a DOM (or DOM-like) document with SchemaOrgData.fromDocument, or from already-parsed objects with SchemaOrgData.fromNodes, then use the query helpers (get, first, all) or the type-keyed toNested view.
Strips personally identifiable and credential-like data from text and values before they are sent off the device as diagnostic logs. Pattern-based and deliberately conservative: it removes what it recognizes, so it complements (not replaces) not logging sensitive data in the first place.
The result of resolving a structure (SMILES or InChIKey) to searchable identifiers.
Selectable window for the stats views.
Ordered range options for the dropdown, each with its i18n label key. Ordered
widest-to-narrowest so the default (all) sits first.
Health verdict for one supplier over the selected range.
The per-supplier counters the classifier reads.
Release-update detection.
Two independent paths, chosen by getInstallSource:
chrome.runtime.onUpdateAvailable in the service worker; nothing here runs.How long to wait between GitHub release polls on the manual-install path.
How long "Later" suppresses the update prompt before it re-prompts. Sourced
from config.json (updatePrompt.snoozeHours).
How the running extension was installed.
One group of release-note bullets, e.g. everything under an ### Added
heading.
A newer release than the one currently running.
Resolves a CAS number or English chemical name to its Wikidata label and aliases in
another language. Cached for wikidata.ttlDays (config.json); a definitive "no match"
is cached as an empty array, a failed request (undefined) is not.
A chemical resolved to its English name and CAS number. Both are absent for "no match".
Resolves a chemical name written in English or a configured source language (see
wikidata.sourceLanguages in config.json, e.g. Dutch zoutzuur) to its English name and CAS number. The term must
equal a Wikidata label or alias exactly, so an unrelated top search hit is never trusted.
Cached for wikidata.ttlDays; a definitive "no match" is cached as {}, a failed request
(undefined) is not.
Regular expression for validating CAS (Chemical Abstracts Service) numbers. Matches the standard format of three segments: 2-7 digits, 2 digits, and 1 checksum digit.