|
4 | 4 | [](https://github.com/replane-dev/replane-javascript/blob/main/LICENSE) |
5 | 5 | [](https://github.com/orgs/replane-dev/discussions) |
6 | 6 |
|
| 7 | +> **Tip:** Get started instantly with [Replane Cloud](https://cloud.replane.dev) — no infrastructure required. |
| 8 | +
|
7 | 9 | Small TypeScript client for watching configuration values from a Replane API with realtime updates and context-based override evaluation. |
8 | 10 |
|
9 | 11 | Part of the Replane project: [replane-dev/replane](https://github.com/replane-dev/replane). |
@@ -61,7 +63,7 @@ const replane = new Replane<Configs>({ |
61 | 63 | // Connect to the server |
62 | 64 | await replane.connect({ |
63 | 65 | sdkKey: process.env.REPLANE_SDK_KEY!, |
64 | | - baseUrl: "https://replane.my-hosting.com", |
| 66 | + baseUrl: "https://cloud.replane.dev", // or your self-hosted URL |
65 | 67 | }); |
66 | 68 |
|
67 | 69 | // Get a config value (knows about latest updates via SSE) |
@@ -158,7 +160,7 @@ interface Configs { |
158 | 160 | const replane = new Replane<Configs>(); |
159 | 161 | await replane.connect({ |
160 | 162 | sdkKey: "your-sdk-key", |
161 | | - baseUrl: "https://replane.my-host.com", |
| 163 | + baseUrl: "https://cloud.replane.dev", // or your self-hosted URL |
162 | 164 | }); |
163 | 165 |
|
164 | 166 | // Get value without context - TypeScript knows this is boolean |
@@ -215,7 +217,7 @@ interface Configs { |
215 | 217 | const replane = new Replane<Configs>(); |
216 | 218 | await replane.connect({ |
217 | 219 | sdkKey: "your-sdk-key", |
218 | | - baseUrl: "https://replane.my-host.com", |
| 220 | + baseUrl: "https://cloud.replane.dev", // or your self-hosted URL |
219 | 221 | }); |
220 | 222 |
|
221 | 223 | // Subscribe to all config changes |
|
0 commit comments