Appstar Publish

Publish to Appstar

Use this after the app is ready. The agent publishes the finished app to Appstar and sends back a claim link the user can open within 24 hours.

Publish instructions

Publish the finished Appstar app called "Linkbouquet".

You are the publishing agent. The app is already ready for release. Publish it to Appstar, then send the user the claim link so they can claim the app within 24 hours.

App summary:
A playful link bouquet builder where users add links as flowers, save the bouquet, and share or remix it.

Publish requirements:
- Confirm the finished app has a static dist/ directory.
- Confirm Vite or the static frontend build uses base: "./" so assets work when Appstar hosts the app under a route.
- Confirm appstar.json exists at the project root with this shape:

{
  "name": "Linkbouquet",
  "slug": "link-bouquet",
  "entry": "index.html",
  "spaMode": true,
  "permissions": ["profile:basic", "outputs:create"],
  "outputs": [
    {
      "type": "link_bouquet",
      "schema_version": 1
    }
  ]
}

Appstar integration:
- Confirm the app HTML loads the SDK with <script src="/appstar-sdk.js"></script>.
- Confirm the app calls window.Appstar?.getUser?.() when embedded.
- Confirm the app saves its main result with:

await window.Appstar?.saveOutput?.({
  output_type: "link_bouquet",
  title,
  summary,
  source_url: window.location.href,
  visibility: "private",
  data
});

Publishing:
- Run npm run build.
- Then publish locally to Appstar with:

node /Users/marc/developer/appstar-world/scripts/appstar-publish.mjs --slug link-bouquet --dist dist --base-url http://localhost:3000

After publishing, send the user:
- claimUrl as the primary link, labeled as valid for 24 hours
- claimExpiresAt
- appstarUrl

Do not stop at a preview URL. The final response should tell the user their app is published to Appstar and include the claim link first.