Great article! I didn't know about ConfigCat. Looks like a cool service.
Two suggestions. Read the API key from the runtime environment. It shouldn't be in the code. kit.svelte.dev/docs/modules
I think as currently written the user could briefly see the "oops" message before the feature flag is loaded. Does creating the configCat client and reading the feature flag need to be in onMount? Realistically, the client would be shared among components, so probably created in a separate file.