ctx.config
A JSON object you edit in the console. Your app reads it at launch. Change it any time — it is live within a minute, with no review.
Reading it
const rules = ctx.config.sites ?? {}; // plain object, ready before onLaunch const theme = ctx.config.theme as string | undefined; // Missing key, no config yet, network down — all the same: an empty object. Default in code.
It’s read-only: read it, don’t write it — the object is frozen, and anything you change deeper inside is gone the next time your app opens. Keep your own defaults in code so the app runs when the object is empty.
Editing it
Console → your app → Config. One JSON object, up to 32 KB. Save, and every launch after the next minute reads the new values. Anyone on the team can edit it.
What it is for
Per-site rules
Which sites, which selectors, which exceptions — without shipping a new version for every site that changes its markup.
Feature switches
Turn a half-finished part on for everyone in one save, or off again in one more.
Copy and events
The daily theme, a banner line, this week’s challenge — words that change more often than code does.
Two things it is not
Not secret. Every person who opens the app receives the file. Keys, tokens and anything you would not paste on a public page don’t belong here.
Not code. It ships without review, so treat it strictly as data — never build HTML from it, never eval it. Reviewers check this on apps that read config.
While you build
fave1 dev serves the config.json next to your manifest — try values locally before you save them in the console. No file, empty object.