` | Sets page status to published | | `draft-page --path
` | Sets page status to draft | | `archive-page --path
` | Sets page status to archived | | `restore-page --path
` | Clears `deletedAt` on a soft-deleted page | | `analytics` | Prints agent request summary for the last 30 days | | `cleanup` | Trims expired analytics rows and orphan cache entries | | `versions --path
` | Lists version history for one page | Add `--prod` to any command to target your production deployment. For example: `npx agent-ready go-live --prod`, `npx agent-ready status --prod`, `npx agent-ready scan --url https://your-deployment.convex.site --prod`. ## Demo apps Both demos are full Convex apps that show how the component and widget work together. They run on Convex with GitHub OAuth for admin access. Pick React or Svelte. Before running either demo, create a GitHub OAuth app at [github.com/settings/applications/new](https://github.com/settings/applications/new). Set the **Authorization callback URL** to your Convex HTTP Actions URL plus `/api/auth/callback/github` (for example, `https://your-deployment.convex.site/api/auth/callback/github`). The callback points to Convex, not localhost. Set the **Homepage URL** to `http://localhost:5173` for local dev. Then set the GitHub secrets on your Convex deployment: ```bash npx convex env set AUTH_GITHUB_ID "your-github-client-id" npx convex env set AUTH_GITHUB_SECRET "your-github-client-secret" npx convex env set SITE_URL "http://localhost:5173" npx convex env set ADMIN_EMAILS "your-email@example.com" ``` For production, set the same values with `--prod` and use your deployed frontend URL for `SITE_URL`. Run the React demo: ```bash cd example-react npm install npm run dev ``` Run the Svelte demo: ```bash cd example-svelte npm install npm run dev ``` The demo URL becomes `https://your-deployment.convex.site`. The widget, the files, and the host app live on the same domain. See `SETUP.md` for full production deploy instructions. ## Documentation - `README.md#install` is the canonical install guide for adding this Convex component to your React or Svelte app - `docs/install.md` points package readers back to the README install guide - `docs/install.html` is the same redirect-style install entry point as a standalone HTML page - `SETUP.md` is the author release guide for shipping this package to GitHub, npm, and Convex static hosting - `INTEGRATION.md` covers every integration path in a format optimized for AI coding agents - `CONTRIBUTING.md` documents the widget contract for community ports (Vue, Solid, Angular) - `prds/agent-readiness-v1.md` is the canonical design spec ## License Apache 2.0. See `LICENSE`.