✨ Add @datadog/browser-remote-config standalone package#4239
Draft
mormubis wants to merge 3 commits intoadlrb/ssi-build-site-hostfrom
Draft
✨ Add @datadog/browser-remote-config standalone package#4239mormubis wants to merge 3 commits intoadlrb/ssi-build-site-hostfrom
mormubis wants to merge 3 commits intoadlrb/ssi-build-site-hostfrom
Conversation
Introduces a new lightweight package for fetching and parsing Datadog
remote configuration, independent of the RUM SDK.
Key features:
- fetchRemoteConfiguration(options) — fetch config with 30s AbortSignal timeout
- RemoteConfigResult discriminated union: { ok: true; value } | { ok: false; error }
for proper TypeScript narrowing (no non-null assertions needed)
- AbortSignal support for request cancellation
- Dynamic value resolution: cookies, DOM selectors, JS paths
- Uses buildSiteHost from @datadog/browser-core (no type-assertion hack)
This is purely additive — rum-core's existing remote config code is untouched.
Customers can use this package independently of the RUM SDK.
Bundles Sizes Evolution
🚀 CPU Performance
🧠 Memory Performance
|
|
✅ Tests 🎉 All green!❄️ No new flaky tests detected 🎯 Code Coverage (details) 🔗 Commit SHA: 98db6c2 | Docs | Datadog PR Page | Was this helpful? React with 👍/👎 or give us feedback! |
This was referenced Feb 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Customers using SSI (Server-Side Instrumentation) need to fetch remote configuration independently of the RUM SDK, at build time or server-side. This package provides that capability as a standalone, lightweight module.
Changes
New package:
@datadog/browser-remote-configfetchRemoteConfiguration(options)— fetch remote config with 30s timeoutRemoteConfigResult— discriminated union ({ ok: true; value } | { ok: false; error }) for safe TypeScript narrowing without non-null assertionsAbortSignalsupport — pass a signal for cancellation (e.g.AbortSignal.timeout(30_000))$cookie:name), DOM selectors ($dom:selector), JS paths ($js:path)buildSiteHostfrom@datadog/browser-core(PR1) — no type-assertion hackPurely additive
rum-core's existing
remoteConfigurationIdinit option is untouched. This PR only adds the new package.Testing