morph-embed 0.1.0 → 0.2.1
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.
- package/README.md +32 -6
- package/dist/morph-embed.esm.mjs +947 -163
- package/dist/morph-embed.js +947 -163
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -103,7 +103,34 @@ Morph.init({
|
|
|
103
103
|
});
|
|
104
104
|
```
|
|
105
105
|
|
|
106
|
-
Your users
|
|
106
|
+
Your users click the **✦ launcher** (bottom corner, theme it or hide it) or
|
|
107
|
+
press **Alt+M** and describe what they want. That's the whole thing.
|
|
108
|
+
|
|
109
|
+
### What your users get (v0.2, research-grounded UX)
|
|
110
|
+
|
|
111
|
+
- **A visible entry point** — a small launcher button with an active-edit
|
|
112
|
+
badge. It never auto-opens and never talks first; one subtle pulse on first
|
|
113
|
+
visit only (none under `prefers-reduced-motion`).
|
|
114
|
+
- **Forgiveness by default** — every change applies instantly and shows an
|
|
115
|
+
**Undo** toast (the Gmail pattern). No confirmation dialogs to click through.
|
|
116
|
+
- **Full control & history** — "Your edits on this page" lists every saved
|
|
117
|
+
edit in the user's own words, with per-edit on/off toggle, per-edit delete,
|
|
118
|
+
and a reset. Persistence is disclosed right there ("re-applies every visit").
|
|
119
|
+
- **A narrated wait** — "Reading this page… → Designing your change…" instead
|
|
120
|
+
of a blank spinner while the model works.
|
|
121
|
+
- **A hotkey that actually works everywhere** — physical-key matching, so
|
|
122
|
+
macOS Option+M (which types "µ") fires correctly, German AltGr+M (also µ)
|
|
123
|
+
is never hijacked, and nothing triggers while typing in your app's inputs.
|
|
124
|
+
|
|
125
|
+
Configure or hide the launcher:
|
|
126
|
+
|
|
127
|
+
```js
|
|
128
|
+
Morph.init({
|
|
129
|
+
key: 'pk_…',
|
|
130
|
+
launcher: { position: 'bottom-left', accent: '#5b6cff' }, // or launcher: false
|
|
131
|
+
trigger: 'alt+m', // or 'none'
|
|
132
|
+
});
|
|
133
|
+
```
|
|
107
134
|
|
|
108
135
|
### What the model can ask of your sources
|
|
109
136
|
|
|
@@ -136,11 +163,10 @@ survives reload) is documented in its README.
|
|
|
136
163
|
|
|
137
164
|
## Status & keys
|
|
138
165
|
|
|
139
|
-
Morph Embed is in **early access**.
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
[
|
|
143
|
-
rate limits included).
|
|
166
|
+
Morph Embed is in **early access**. Get a publishable key self-serve at
|
|
167
|
+
[usemorph.xyz/dashboard](https://usemorph.xyz/dashboard) — create an account,
|
|
168
|
+
add your origins, copy the key (rate limits included). Questions or problems:
|
|
169
|
+
[GitHub issues](https://github.com/mandarwagh9/morph/issues).
|
|
144
170
|
|
|
145
171
|
Morph is also a [browser extension](https://usemorph.xyz) that reshapes any
|
|
146
172
|
website the same way — same engine, same security model.
|