Integrate EasyToggle
Publish a JSON document, then fetch it from your app. No SDK. Development and production each keep their own URL.
1. Publish
- Create a project and open Development or Production.
- Add keys. Names start with a letter and may contain letters, numbers, and underscores, up to 64 characters.
- Values are booleans, numbers, strings, or JSON.
- Publish. The URL stays the same when you publish again.
2. Fetch
Point a dev build at /c/dev/ and a store build at /c/prod/. The token in the dashboard is the one that belongs to that environment.
const res = await fetch("https://easytoggle.com/c/prod/YOUR_TOKEN");
const config = await res.json();
if (config.maintenance) {
showMaintenanceScreen();
}
applyMultiplier(config.coin_multiplier ?? 1);A JSON value is inlined, so a key named shop comes back as an object, not a string. Keep a default in the app for any key that might be missing.
3. Caching and size
Responses are public JSON and may be cached for 60 seconds. CORS allows any origin, so a browser game can fetch the URL directly.
- Free: 32 KB published JSON, one project.
- Pro: 256 KB published JSON, up to 20 projects.
The limit is the UTF-8 size of the published document. There is no key-count cap. History keeps recent publishes per environment; restore republishes an older version and keeps the same public URL.