Esta página só existe em inglês. O menu e os outros textos seguem em português.
rapadura
rapadura hosts static hotsites at https://<slug>.rapadura.space (new sites
are created under rapadura.space; sites created earlier under rapadura.net
or phpcomrapadura.org keep their address). Every publish creates an
immutable version (https://<slug>--v<n>.rapadura.space) and rollback is one
call. Static hotsites serve HTML, CSS, JS, images, fonts, PDFs and JSON. They
never execute server-side code.
Member limits in production: 5 retained sites (+1 after first publish, up
to +3 from inviting newcomers who join via rapadura invite), 500 MB total
storage across retained versions, 100 MB max archive/upload size, 100 MB
max file size, 20,000 files per site, and 20 versions retained per site.
Run rapadura limits --json or show_limits to confirm the caller's live
allowance.
Container apps and the community Laravel site are restricted to organization
staff/organizers and the platform owner (members have apps_allowed: false).
If the person has a staff or owner account, point them to the authenticated
staff documentation at /docs/staff/ (and /docs/staff/skill.md).
Choose the lane
- CLI available (
rapadura --versionworks): use it with--json. - MCP tools available (
publish_site,list_sites, …): use them. On the hosted lane pass files inline; on the local lane passpath. - claude.ai / Claude Desktop: the person adds a custom connector with the
URL
https://agents.rapadura.net/mcp(Settings → Connectors) and approves the GitHub sign-in once; the tools then appear as MCP tools. - Neither: follow https://agents.rapadura.net/docs/setup.md: install with
curl -fsSL https://agents.rapadura.net/install.sh | shand runrapadura login(the person completes GitHub's device page), or, without a terminal, connect the hosted MCP server.
Publish a new hotsite
- Build or write the site into one directory with
index.htmlat its root. - Run
rapadura publish ./dir --site <slug> --create --title "<title>" --jsonor callpublish_sitewithcreate=true. - Read the operation and receipt, not just the returned URL. Report the live
URL and version only when the receipt confirms
succeededand live.version_url(https://<slug>--v<n>.rapadura.space) keeps serving that exact version while retained.
Update: same command without --create. Roll back: rapadura rollback <slug> <n>.
Inspect: rapadura sites show <slug>, rapadura versions <slug>, rapadura logs <slug>.
Rules
- Redirects: put a
_redirectsfile at the site root, onesource target [301|302]per line, exact paths only (e.g./2019/ / 301,/ https://… 302). - Slugs: lowercase letters, digits, single hyphens; no
--. Reserved names (www, mail, panel, agents, …) are refused; pick another. - Never include
.env, keys,.ssh,wp-config.phpor any.php/ server script file in the publish directory. The upload is refused with the list of offending files; publish only the built output directory, never look for a workaround. - Ask for the person's explicit confirmation before publishing or updating a
live site (
publish_site/rapadura publish), rolling back a version (rollback_site/rapadura rollback), taking a site offline (delete_site/rapadura sites delete), detaching a custom domain (remove_domain/rapadura domain remove), claiming a permanent profile handle, switching profile listing mode toall, or changing Explore discoverability. Read-only inspection and explicitly requested restores of a retained deleted site (rapadura sites restore/restore_site) do not require an extra confirmation pause (never recreate a purged site or publish new code). Deletion is soft, taking the site offline now; deleted sites keep counting toward quota until the owner purges them. - Custom domain for a static site:
rapadura domain add <site> <domain> --reason "…"(orrequest_domain) files a request the owner must approve; confirm the site, domain, and reason with the person first, relay the DNS instructions from the receipt (the_rapadura-verify.<domain>TXT verification record withrapadura-verify=<token>and the A record to the edge IP), say the certificate is issued on the first visit after approval, and follow up withrapadura approvals/list_approvals. Do not say the domain is live before approval. Once approved,rapadura domain list/list_domainsshows it;rapadura domain remove/remove_domaindetaches it at once, so confirm with the person first. - A site that needs server-side code or a database cannot run as a static hotsite; tell the person static hotsites serve static assets only.
- Report from receipts, not from intent. If a call fails, relay
error.code,error.messageanderror.hintverbatim. - Tokens are secrets. Never print
RAPADURA_TOKEN, the credentials file, or any token into chat or logs.
Worked examples: https://agents.rapadura.net/docs/en/recipes-static.md
Public profile and Explore
Both are opt-in and off by default; neither changes who can open a site.
Read first, then write with the revision you read (a stale one is
profile_revision_conflict with the current state):
rapadura profile show --json: the profile (profile_url,enabled,revision,listing_mode) and every owned project with its selection.rapadura profile claim <handle> --revision N --display-name ... --bio ... --listing-mode selected|all: enables the profile athttps://<handle>.rapadura.net. The handle is permanent: confirm it with the person first.rapadura profile set --revision N --handle <claimed> --enabled=true|false --display-name ... --bio ... --listing-mode selected|all: replaces every setting.alllists current and future projects and needs--all-projects-confirmed, which only the person's explicit yes allows.rapadura profile site set <host> --revision N --listed=true|false --title ... --description ...: select or exclude one project.rapadura listing show <host>/rapadura listing set <host> --revision N --discoverable=true|false --title ... --description ...: the project's Explore opt-in at https://rapadura.net/explore. Explore lists it only when the profile is enabled and shows the project.
There are no MCP tools for these yet. An agent token needs profile.read /
profile.write, and listing.read / listing.write on named hosts. Guide:
https://agents.rapadura.net/docs/en/profiles.md
Starter recipe catalog
When docs are built with --recipes, /docs/recipes/index.json lists every
recipe's id, revision, maturity (planned, experimental, supported,
retired), guides, limits and source files, and
/docs/recipes/<id>/<revision>/recipe.json is its versioned metadata. Read
the JSON index, not the HTML gallery (/docs/en/recipes.html,
/docs/pt/receitas.html). Only supported with a qualified summary for
the same revision is qualified; never promise a recipe works from its gallery
entry. Run rapadura recipe readiness ID --site HOST (or omit --site for a
new project) to check current readiness.
Identity, operations and safe retries
- Use an agent token with the required sites and actions; never request a
person's login credential. Local
rapadura mcpcreates its own agent token from the person's local login; hosted MCP accepts OAuth or an agent token and rejects a personal login token (agent_token_required). Checkwhoamiandshow_limitsbefore work that might exhaust quota. - Give each new write a
request_key(Idempotency-Keyin HTTP,--request-keyin CLI). If delivery is uncertain, repeat the same change with the same key, or inspect its operation (get_operation/rapadura ops show).request_key_conflictmeans that key belongs to a different change; do not swap keys to force it through. queued,running,awaiting_approvalandoperation_not_finalare not completion. Followget_operation/list_operations(rapadura ops show|list|wait).- A recorded failure or cancellation is not a reason for automatic resubmission: inspect what changed and use a new key only for an intended new attempt.
- API examples: https://agents.rapadura.net/docs/en/api-examples.md
Errors
Stable codes: https://agents.rapadura.net/docs/errors.md. Common ones:
unauthorized → run rapadura login; slug_taken / slug_reserved /
invalid_slug → pick another slug; archive_forbidden_file → remove the
listed files and publish the built output folder; archive_too_large →
shrink under 100 MB; quota_exceeded / storage_quota_exceeded → inspect
rapadura limits / rapadura whoami --full; publish_failed → previous
version stays live, report full error; grant_denied → token grant lacks the
site or action; client_outdated → run rapadura update.