heremyapp is in invite-only beta. Only invited GitHub accounts can sign up. Request an invite

Start here: instructions for AI agents

View as Markdown

You are an AI coding agent, and the user has pointed you at heremyapp (https://heremyapp.com) and asked you to publish, deploy or launch their project there. This page is the whole job, in order. Follow it from top to bottom and open the linked pages only when a step needs more detail. You need only curl, tar and shasum.

heremyapp hosts the project's landing page (static files: HTML, CSS, JS, images, fonts, video) and its installer downloads (.pkg, .dmg, .zip) at a permanent public URL such as https://heremyapp.com/ACCOUNT/SPACE. You build the page, and you take care of the privacy policy, terms, link previews and version numbers so the user does not have to. heremyapp does not run server code or databases, and it does not sign, notarize or review installers.

1. Work out what to publish

Look at the project before asking anything:

  • What it is: name, what it does, who it is for (README, Info.plist, package.json, store listings, the code).
  • What already exists: a site folder (site/, web/, landing/, docs/, public/, a build output such as dist/), an app icon, screenshots, an installer build, a contact email. For a mobile app, look up its store pages (Store links).
  • Which situation this is, because it sets how much you change (Landing page checklist):
    • New page: there is no landing page yet. Create one with the design guide.
    • Existing page: publish it as it is, adding only the missing basics (privacy policy, terms, title, description, language, link previews, icons, 404 page). Mention other gaps (phone layout, dark mode, structured data, more languages) in your report instead of adding them.
    • Release: the site is already on heremyapp. GET $API/spaces/SPACE/advice checks the live site with the current rules: pages made earlier may use an old site_url in og:url, og:image, canonical, hreflang and JSON-LD. Update the release information, fix what the advice reports, and redeploy.
  • Product type (Mac app, mobile app, web service, developer tool, game, ...) for the design guide.
  • Installer readiness, if the project ships an app: the Developer ID identities and the notarization profile (Installers). Check this now, so a missing credential goes into your single question in step 4 instead of interrupting the user later. If the user already said to publish it unsigned, skip this.
  • What heremyapp's upload checks will refuse, so you find it now and not after building the page:
    • Site files that are not what their names say: run file on the images, fonts and videos. A program or archive saved as .png fails the deploy (Static sites).
    • An installer .zip with more than the macOS app: unzip -l MyApp.zip. On the Free plan, Windows programs in it fail the upload (Installers).
    • A sign-in, payment card or wallet form anywhere on the site while any page title carries another company's name, including names like "Inbox Cleaner for Gmail". A Free account in its first 30 days (GET /me → account.plan, account.created_at) cannot publish this (Content checks). Put it in your one question in step 4.

If the product needs a server (a web app with a backend), heremyapp can host its landing page and link to the app, but not the app itself; tell the user.

2. Sign in (only when there is no token)

bash
export HEREMYAPP_TOKEN="${HEREMYAPP_TOKEN:-$(cat ~/.config/heremyapp/token 2>/dev/null)}"
API=https://api.heremyapp.com/v1
AUTH="Authorization: Bearer $HEREMYAPP_TOKEN"
curl -sS --fail-with-body "$API/me" -H "$AUTH"      # account.username is ACCOUNT in every URL

If there is no token or /me returns 401, start the device login. The user signs in with GitHub in their browser (the first time this creates their account) and approves; you never sign up, accept terms or pay for them.

bash
R=$(curl -sS --fail-with-body -X POST "$API/auth/device" -H "content-type: application/json" \
  -d '{"client_name":"AI agent publishing MY-PROJECT"}')
DEVICE_CODE=$(printf '%s' "$R" | sed -n 's/.*"device_code":"\([^"]*\)".*/\1/p')
printf '%s' "$R" | grep -oE '"(verification_uri_complete|user_code|signups)":"[^"]*"'

Send the user the verification_uri_complete link and the user_code, in their language, for example: "Open this link, sign in with GitHub, check that the code is ABCD-EFGH and click Approve." If signups is invite_only, add that only existing accounts can approve for now. Then poll and save the token without printing it:

bash
mkdir -p ~/.config/heremyapp && chmod 700 ~/.config/heremyapp
for i in $(seq 1 36); do
  sleep 5
  T=$(curl -sS -X POST "$API/auth/token" -H "content-type: application/json" -d "{\"device_code\":\"$DEVICE_CODE\"}")
  case "$T" in
    *'"token":"hma_'*) printf '%s' "$T" | sed -n 's/.*"token":"\(hma_[^"]*\)".*/\1/p' > ~/.config/heremyapp/token
                       chmod 600 ~/.config/heremyapp/token; echo approved; break ;;
    *authorization_pending*|*slow_down*) ;;
    *) echo "$T"; break ;;
  esac
done
export HEREMYAPP_TOKEN="$(cat ~/.config/heremyapp/token 2>/dev/null)"; AUTH="Authorization: Bearer $HEREMYAPP_TOKEN"

The code is valid for 15 minutes; run the loop again if the user needs more time. Details: Authentication.

3. Create the space

The slug is part of the permanent URL; use the product name in lowercase with hyphens. If the name is not in Latin letters, use the product's English name when it has one (in Info.plist, a store listing, the README or a domain), and otherwise romanize it (달력메모 → dallyeok-memo). Decide it yourself, and keep the original name in name ({"slug":"dallyeok-memo","name":"달력메모"}). If step 1 found a site the content check will refuse, ask the step 4 question first: a space you create now uses one of the plan's spaces.

bash
curl -sS -X POST "$API/spaces" -H "$AUTH" -H "content-type: application/json" \
  -d '{"slug":"my-app","name":"My App"}' -w '\nHTTP %{http_code}\n'

201 creates it. 409 space_exists means the account already has it; that is fine when it is this project. 402 plan_limit means the plan's site limit was reached: tell the user and give them details.upgrade_url. Save the response's public_url (share this) and site_url (use it for absolute URLs inside the page). For an existing space, GET $API/spaces/my-app has them too; if it shows "paused": true, the space is over the plan's site limit and cannot be deployed to: tell the user now, before building anything (Changing plans).

4. Ask the user once, only for what you cannot find

Collect everything you can from the project first. Then send one message, in the user's language, with only the questions that are still open. Skip any question whose answer you already have.

Ask Only when
Contact details for the page and the privacy policy (email, business name, phone, address, country), or "skip" The space's contact_status is unknown (GET $API/spaces/SPACE/contact; a new space always is). If another of the account's spaces has details (GET $API/spaces, then its /contact), offer to reuse them.
More languages than English and the user's own You are creating a new page
A color or mood New page, and the product has no icon, colors or existing design to take them from
Screenshots New page, and the project has none you can use
App Store or Google Play links Mobile app, and the store lookups found no store page
Signing or notarization setup Step 1 found no Developer ID identity or no working notarization profile, and the user has not said to publish unsigned. Never ask for passwords in the chat; ask the user to store the credentials in the keychain themselves and tell you the profile name (Installers).
How to publish a site the content check will refuse Step 1 found a sign-in, payment or wallet form with another company's name in a title, on a new Free account. Offer the choices: publish without that form, take the name out of every page title, or first ask support@heremyapp.com to review the account (Content checks).

If the user already said they want no contact details, that is their answer: save skipped. Never ask about version numbers, slugs, file formats or wording; decide those yourself. Ask again later only if something fails that you could not check in advance (for example notarization is rejected). If the user does not answer or cannot be asked (for example in CI), go on with the defaults: English plus the user's language, colors from the icon (with no icon, one neutral accent color, and say so in your report), no store badges until you have the store links, and contact details left unknown (do not save skipped for them). A site the content check will refuse has no default: do not deploy it; report the choices to the user and stop.

A message for a new page could read: "I'll publish MyApp on heremyapp. Two quick questions: (1) Which contact details should the page and privacy policy show: email, business name, phone, address? You can skip this. (2) The page will be in English and Korean; any other languages?"

5. Publish the installer (if the project ships one)

  1. GET $API/spaces/SPACE/versions shows the published versions. For the first release, use the project's version (completed to three numbers, 1.0 → 1.0.0); later, pick the next version and build by the versioning policy (major: incompatible changes, minor: features, patch: fixes; build always goes up). Write them into the project, then build and sign.
  2. Package it as .dmg, .pkg or .zip, notarize, staple and check it with spctl (Installers). If the check fails, stop and ask the user.
  3. Register and upload it, and use the returned latest_url as the download link (Installers). If the upload response's advice is not empty (for example installer_unsigned), tell the user before announcing the release:
bash
FILE=./build/MyApp.pkg; NAME=$(basename "$FILE")
SIZE=$(stat -f%z "$FILE" 2>/dev/null || stat -c%s "$FILE"); SHA=$(shasum -a 256 "$FILE" | cut -d' ' -f1)
curl -sS --fail-with-body -X POST "$API/spaces/my-app/artifacts" -H "$AUTH" -H "content-type: application/json" \
  -d "{\"filename\":\"$NAME\",\"version\":\"1.2.0\",\"build\":\"46\",\"notes\":\"What changed\",\"size\":$SIZE,\"sha256\":\"$SHA\"}"
curl -sS --fail-with-body -T "$FILE" -H "$AUTH" "$API/artifacts/ARTIFACT_ID/content"   # upload.mode "single"

6. Build the page

For an existing page, add only the basics listed in step 1 and keep everything else as it is; the rest of this list is for new pages (Landing page checklist).

  • Design: follow the design guide for the product type. Keep an existing page's design.
  • Content and often-missed items: for a new or redesigned page, follow the whole landing page checklist: title, description, lang, link previews, favicon and apple-touch-icon, structured data, llms.txt, 404.html, contact details. For an existing page, add only the basics listed in step 1.
  • Absolute URLs on every page (og:url, og:image, canonical, hreflang, JSON-LD) use the current site_url, never the public URL (Absolute URLs).
  • Privacy policy and terms: create privacy.html and terms.html from the templates, written from what the app really does, and link them from the footer of every page (Privacy policy and terms).
  • Languages: English and the user's language by default, with /ko/-style folders and hreflang.
  • Downloads: link buttons to the absolute latest_url, with version, size and requirements next to them.
  • App links: if the user wants site links to open their iOS or Android app, add the files and tell them the app settings in App links.
  • Keep the page in the project (an existing site folder, or a new site/ folder), not in a temporary copy, so the next release can update it.

7. Deploy, then fix what the advice says

bash
curl -sS --fail-with-body "$API/spaces/my-app/versions" -H "$AUTH"     # next site version and build; "paused": true means
# the space is over the plan's site limit and deploys fail with 403 space_paused: tell the user first (Plans and billing)
# The first deploy is always 1.0.0. Later deploys: bump=major|minor|patch by what changed (see Releases).
COPYFILE_DISABLE=1 tar -czf - -C site . | curl -sS --fail-with-body -X POST "$API/spaces/my-app/deployments" \
  --url-query "notes=First public page" \
  -H "$AUTH" -H "content-type: application/gzip" --data-binary @-
# curl older than 7.87 has no --url-query: use ".../deployments?notes=First%20public%20page"

If the folder has files that only configure another host (CNAME, _redirects, _headers, _config.yml, netlify.toml), leave them out with --exclude='CNAME' and so on; otherwise the deploy fails with unsupported_file_type (File rules).

The response's advice lists anything people often miss (privacy policy, terms, link previews, language, favicon). Fix what applies and deploy again with bump=patch until the list is empty or only has items that do not apply. Details: Static sites.

8. Verify

bash
curl -sIL https://heremyapp.com/ACCOUNT/my-app | grep -iE "^HTTP|^location|^x-heremyapp-(version|build)"   # 302 to site_url, then 200 and the new version
curl -fsSL -o /tmp/check.pkg https://heremyapp.com/dl/ACCOUNT/my-app/latest/MyApp.pkg && shasum -a 256 /tmp/check.pkg   # = $SHA

Also request every page and file the user named at site_url (for example pages with non-English names, or .well-known/ files) and check the status and content-type.

Check every external link on the pages (web app, store pages, social profiles). Anything this prints is a dead link to fix or report; a few sites answer 403 to scripts, so open those in a browser before calling them dead:

bash
grep -rhoE 'href="https?://[^"]+"' site | sed 's/^href="//; s/"$//; s/&/\&/g' | sort -u | while read -r u; do
  printf '%s %s\n' "$(curl -s -o /dev/null -L --max-time 15 -w '%{http_code}' "$u")" "$u"
done | grep -v '^[23]'

If you can open a browser, look at every language version at 375px wide and in dark mode, and check that the page does not scroll sideways (Design guide).

9. Report to the user

Reply in the user's language with:

  • The public URL https://heremyapp.com/ACCOUNT/SPACE (never the site origin) and the download link
  • What you published: pages, languages, privacy policy and terms, the version and build numbers
  • What you assumed, and that the privacy policy and terms come from templates and are not legal advice
  • Anything left for them: open advice items, dead links or placeholder text you did not fix, plan limits (Plans and billing)
  • For app stores: the privacy policy URL is https://heremyapp.com/ACCOUNT/SPACE/privacy
  • Visits and downloads appear in the dashboard at https://app.heremyapp.com/sites/SPACE, and you can fetch them later with GET $API/spaces/SPACE/stats (Visitor stats)

Rules

  • Never print, log or commit the token, or put it in site files.
  • Never sign up, accept terms, choose a plan or pay for the user; on 402, tell them and give them the upgrade link.
  • Ask once per task, and only what you cannot find yourself; ask again only when something fails that you could not check in advance. Decide versions yourself.
  • Do not upload an installer that fails signature checks unless the user explicitly says so.
  • Content checks: removing files that do not belong in the upload (a Windows build in a Mac .zip, an archive saved as an image, and the page's link to it) is a normal fix; do it and tell the user what you removed. Changing what the user wants published to get past a check (removing their sign-in page, renaming titles) is the user's decision: on content_flagged, stop and tell them. Never rename, encode or split files to get past a check.
  • When a request fails, read error.message and error.docs. More: For AI agents, API reference.

All docs in one Markdown file: /llms-full.txt