You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,12 +13,12 @@ A reusable JavaScript library for interactive map applications with LLM-powered
13
13
3. Edit `index.html` — set page title, pin CDN version
14
14
4. Deploy (see options below)
15
15
16
-
| Template | Deployment | API key handling |
17
-
|---|---|---|
18
-
|[`example/`](example/)| Kubernetes / managed host | Injected server-side via `config.json`|
19
-
|[`example-ghpages/`](example-ghpages/)| GitHub Pages / any static host | Entered by the user in-browser |
16
+
| Template | Deployment | API key handling | Live demo |
17
+
|---|---|---|---|
18
+
|[`example-k8s/`](example-k8s/)| Kubernetes / managed host | Injected server-side via `config.json`| not currently deployed|
19
+
|[`example-ghpages/`](example-ghpages/)| GitHub Pages / any static host | Entered by the user in-browser |[live](https://boettiger-lab.github.io/geo-agent/)|
20
20
21
-
See the [example README](example/README.md) for full details.
21
+
See the [example-k8s README](example-k8s/README.md) or [example-ghpages README](example-ghpages/README.md) for full details.
22
22
23
23
## Using the CDN
24
24
@@ -131,7 +131,7 @@ Client apps provide `layers-input.json`. All fields except `collections` are opt
131
131
132
132
There are two ways to supply model credentials:
133
133
134
-
**Server-provided** (Kubernetes / managed deployments): omit the `llm` section from `layers-input.json` and provide a `config.json` on the same server with `llm_models` + API keys. The `k8s/` manifests in `example/` inject secrets this way at deploy time.
134
+
**Server-provided** (Kubernetes / managed deployments): omit the `llm` section from `layers-input.json` and provide a `config.json` on the same server with `llm_models` + API keys. The `k8s/` manifests in `example-k8s/` inject secrets this way at deploy time.
135
135
136
136
**User-provided** (static sites — GitHub Pages, Netlify, etc.): set `"user_provided": true` in the `llm` section. A ⚙ button appears in the chat footer; visitors enter their own API key (stored in `localStorage`, never sent to the hosting server). The `default_endpoint` is pre-filled — [OpenRouter](https://openrouter.ai) is a good default giving access to many models via a single key.
137
137
@@ -154,11 +154,11 @@ The `app/` directory includes its own `index.html`, `layers-input.json`, and `sy
154
154
155
155
## Deployment
156
156
157
-
| Option | Template | How secrets are handled |
158
-
|---|---|---|
159
-
|**GitHub Pages** (or any static host) |[`example-ghpages/`](example-ghpages/)| User enters their own API key in-browser |
160
-
|**Hugging Face Spaces**| Start from either example | Mount a `config.json` as a Space secret-file |
161
-
|**Kubernetes**|[`example/`](example/) with [`k8s/`](example/k8s/)| Secrets injected into `config.json` via ConfigMap + init container |
157
+
| Option | Template | How secrets are handled | Live demo |
158
+
|---|---|---|---|
159
+
|**GitHub Pages** (or any static host) |[`example-ghpages/`](example-ghpages/)| User enters their own API key in-browser |[live](https://boettiger-lab.github.io/geo-agent/)|
160
+
|**Hugging Face Spaces**| Start from either example | Mount a `config.json` as a Space secret-file | — |
161
+
|**Kubernetes**|[`example-k8s/`](example-k8s/) with [`k8s/`](example-k8s/k8s/)| Secrets injected into `config.json` via ConfigMap + init container| not currently deployed|
162
162
163
-
The `k8s/` directory in this repo deploys the core library's own demo instance on the [NRP](https://nrp-nautilus.io) cluster. See [`example/k8s/`](example/k8s/) for the client app deployment template, and [`example/README.md`](example/README.md) for a full walkthrough of all three options.
163
+
See [`example-k8s/k8s/`](example-k8s/k8s/) for the client app Kubernetes deployment template, and [`example-k8s/README.md`](example-k8s/README.md) for a full walkthrough of all three options.
0 commit comments