murmur-rag 1.3.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/README.md +7 -9
  2. package/dist/cdn/{anthropic-tw416spz.js → anthropic-1y1mb77z.js} +2 -2
  3. package/dist/cdn/chunk-nhd6pd73.js +1 -0
  4. package/dist/cdn/embed-3swpcbya.js +83 -0
  5. package/dist/cdn/{embed-yz75savs.js → embed-7xhp36fz.js} +3 -3
  6. package/dist/cdn/{embed-3am76qfd.js → embed-hhcax25m.js} +6 -6
  7. package/dist/cdn/{embed-cx1r66ch.js → embed-q03dhgpb.js} +5 -5
  8. package/dist/cdn/embed-s9zy3aav.js +10 -0
  9. package/dist/cdn/{embed-g0p6yc29.js → embed-wd4wcxtq.js} +2 -2
  10. package/dist/cdn/{embed-q81wdr1z.js → embed-zckjbrcx.js} +4 -4
  11. package/dist/cdn/{google-556tp13p.js → google-b4zxgp7g.js} +5 -5
  12. package/dist/cdn/index-ev3304hr.js +1 -0
  13. package/dist/cdn/{index-8r44b2wt.js → index-f5ctpc4w.js} +1 -1
  14. package/dist/cdn/index-k0v6as0z.js +1 -0
  15. package/dist/cdn/index-q38abctd.js +1 -0
  16. package/dist/cdn/{index-qpy1k923.js → index-tjxzgn54.js} +2 -2
  17. package/dist/cdn/{mistral-25w1nsx5.js → mistral-e1jxb6vy.js} +2 -2
  18. package/dist/cdn/{murmur-1a55et82.js → murmur-yjgc7apa.js} +3 -3
  19. package/dist/cdn/murmur.js +6 -6
  20. package/dist/cdn/{openai-compatible-sg25g0vj.js → openai-compatible-8byk6wkm.js} +2 -2
  21. package/dist/cdn/{openai-bjrbem49.js → openai-q9byakt1.js} +11 -11
  22. package/dist/cdn/retriever-3yz0vzz9.js +1 -0
  23. package/dist/cdn/{transformers.web-49m0ht4a.js → transformers.web-nr67a9j3.js} +14 -14
  24. package/dist/lib/chunks/{index-4ftk20yq.js → index-ekxks9vp.js} +17 -17
  25. package/dist/lib/embed.js +4 -4
  26. package/dist/lib/llm/index.js +0 -23
  27. package/dist/lib/widget/index.js +2 -2
  28. package/dist/types/llm/index.d.ts +0 -8
  29. package/dist/types/widget/session.d.ts +7 -7
  30. package/package.json +1 -1
  31. package/dist/cdn/chunk-xyp6nm65.js +0 -1
  32. package/dist/cdn/embed-50pfy67v.js +0 -83
  33. package/dist/cdn/embed-rjpq8psf.js +0 -10
  34. package/dist/cdn/index-a5j4aat5.js +0 -1
  35. package/dist/cdn/index-ft8r539a.js +0 -1
  36. package/dist/cdn/index-pjxy71n5.js +0 -1
  37. package/dist/cdn/retriever-06ybegpd.js +0 -1
package/README.md CHANGED
@@ -17,7 +17,6 @@ Paste the line before `</body>`. Without options, the bubble answers from the pa
17
17
  | `data-index` | URL of the index written by `murmur index` (`/murmur-index.json`). Without it, the current page is read |
18
18
  | `data-endpoint` | Your OpenAI-compatible proxy (https): visitors chat without a key |
19
19
  | `data-mode`, `data-preload` | Who answers (`proxy`, `local`, `auto`, `key`) and when the in-browser model downloads (`question`, `open`, `idle`, `consent`) |
20
- | `data-api-key` | Your own key for every visitor: public, only a key with a spending limit |
21
20
  | `data-local` | `false` turns off the in-browser model, the default when there is no proxy: visitors then need their own key |
22
21
  | `data-provider`, `data-model` | Provider and model preselected for visitors, or the model asked of the proxy |
23
22
  | `data-instructions` | Your instructions to the assistant |
@@ -39,18 +38,17 @@ Reads every `.html`, `.md` and `.txt` file (or a live `sitemap.xml`), keeps the
39
38
 
40
39
  ## AI models and keys
41
40
 
42
- Pick who answers with `data-mode`:
41
+ Pick who answers with `data-mode`. A key in a web page can be read by anyone, so murmur never takes one: yours stays in your Worker, a visitor's in their own browser.
43
42
 
44
- | `data-mode` | |
45
- | ---------------- | -------------------------------------------------------------------------------------------- |
46
- | `proxy` | Your Worker holds the key (implied by `data-endpoint`). Most sites |
47
- | `local` | Only a model in the visitor's browser, no key settings |
48
- | `auto` (default) | Your proxy or key if set, else the browser model with visitors free to connect their own key |
49
- | `key` | A key only: yours (`data-api-key`), else each visitor's own |
43
+ | `data-mode` | |
44
+ | ---------------- | ------------------------------------------------------------------------------------- |
45
+ | `proxy` | Your Worker holds the key (implied by `data-endpoint`). Most sites |
46
+ | `local` | Only a model in the visitor's browser, no key settings |
47
+ | `auto` (default) | Your proxy if set, else the browser model with visitors free to connect their own key |
48
+ | `key` | Each visitor's own key, nothing else |
50
49
  - **Your Worker.** Deploy [`examples/cloudflare-worker`](examples/cloudflare-worker) (about 40 lines): it keeps the key as a secret, allows only your origin, fixes the model and caps answers. Then `data-endpoint="https://murmur-proxy.you.workers.dev/v1"`.
51
50
  - **In the browser.** [LFM3 1.7B](https://huggingface.co/LiquidAI/LFM3-1.7B) (Liquid AI, October 2026) runs on WebGPU through Transformers.js; questions never leave the device. `data-preload` sets when its ~1.1 GB downloads: `question` (default, with a discreet progress bar), `open` (bubble opened), `idle` (page idle) or `consent` (after a prompt). The weights stay in the browser's cache with persistent storage requested, and a cached model is prepared in the background on the next visit.
52
51
  - **The visitor's key.** The AI settings, built on llm-connect's store: provider and model from the [llm-models](https://github.com/maxgfr/llm-models) catalog, the key encrypted with AES-GCM under a non-extractable browser key and sent only to that provider, or a local Ollama / LM Studio.
53
- - **Your key in the page.** `data-api-key` with `data-provider` answers everyone with your key. Anyone can read it: only a key with a spending limit.
54
52
 
55
53
  ## npm package
56
54