Getting started
- Provision (one time):
ueee initcreates an R2 bucket + signing key and writesueee.config.yaml. - Add the integration to
astro.config.mjs:import ueee from 'ueee/astro';export default defineConfig({ integrations: [ueee()] }); - Mark up the elements you want editable (see Markup contract) — this is the one step the CLI can’t do for you.
- Add content in
src/content/<route>.yaml. - Edit: run
pnpm dev, open<page>?ueee=edit, change text, Save. - Sync:
ueee pullto land edits in git.
What the CLI does vs. what you do
Section titled “What the CLI does vs. what you do”| Step | Who |
|---|---|
Provision R2 + key + config (ueee init) | CLI |
Drain edits → git (ueee pull) | CLI |
Decide what is editable + add data-ueee markup | You — semantic authoring; no tool can infer it |
| Seed the content YAML | You today; a ueee scaffold command (planned) can generate it from existing markup |
Hosting note
Section titled “Hosting note”The save route is server-rendered. A statically-built site needs either Astro’s output: 'server' / hybrid with the Cloudflare adapter, or the save handler folded into an existing Worker. In astro dev it works without an adapter.