Small, cache-friendly configuration for web clients.
Wye serves deployment-scoped configuration at the edge and accepts lightweight client context for feature delivery diagnostics.
-
Deployment-scoped
Every integration carries an opaque
dep_…identifier. -
Cache-friendly
Configuration responses include
ETagand short public cache controls. -
Browser-safe
Client calls are asynchronous, accept an empty
204, and do not block the host application.
Example
fetch('https://config.wye.dev/v1/features', {
method: 'POST',
headers: { 'Content-Type': 'text/plain' },
body: JSON.stringify({
deployment_id: 'dep_a1b2c3d4e5f67890aabbccddeeff0011',
sdk_version: '0.1.0',
event_id: crypto.randomUUID(),
host: location.host,
origin: location.origin,
path: location.pathname,
referrer: document.referrer
})
});