Developers → Deploy button
Put a button in your README. People who click it get their own App Server running your project on HTTPS a few minutes later.
Markdown
HTML
On a dark background use /deploy/button.svg?theme=dark.
.nameocean/app.toml in your repository can change any step. The visitor watches it and gets https://<name>.nameocean.org.For a GitHub repository the visitor chooses how their server gets the code:
When the repository is already theirs (for example one an AI app builder made in their GitHub account) and the NameOcean GitHub app can see it, it is connected directly. Other git hosts always run as they are.
How many servers were made from a repository: https://nameocean.net/deploy/count.json?repo=https://github.com/acme/shop answers {"repo": …, "deploys": 12} (public, cached for an hour), for a counter on your page.
[deploy]Add a [deploy] table to .nameocean/app.toml in your repository. The deploy page then shows your project's name, picks the smallest plan that runs it and asks for the env variables it needs. NameOcean reads it from GitHub, GitLab and Codeberg before the server exists. Nothing else on the server uses it.
[deploy] name = "Acme Shop" # shown on the deploy page description = "A small shop with Stripe checkout" plan = "starter" # smaller plans are not offered logo = "https://acme.dev/logo.png" # optional, https [[deploy.env]] name = "STRIPE_KEY" description = "Your Stripe secret key (sk_live_...)" required = true # the deploy waits until it is filled in [[deploy.env]] name = "SECRET_KEY" generate = true # NameOcean makes a random 48-character secret [[deploy.env]] name = "CURRENCY" value = "EUR" # a default the visitor can change
Up to 30 variables. Values go straight to the new server's env variables; NameOcean does not keep them. Check what the page will show with nameocean repo inspect https://github.com/acme/shop (or GET /api/v1/deploy/inspect?repo=…).
repo | https address of a public git repository (GitHub, GitLab, Codeberg get a repository card; any other git host works too) |
branch | the branch to deploy (default: the repository's) |
plan | the plan to preselect: free, tiny, starter, growth, pro |
env | env variable names to ask for, comma separated |
name | a server name to suggest |
ref | who sent the visitor (you, your site, your app builder) |
AI app builders and scripts do the same in one request:
$ nameocean servers create --plan starter --repo https://github.com/acme/shop --env STRIPE_KEY=sk_live_… --yes $ nameocean servers source update 3f9a1c2e # deploy the repository's newest commit
GET /api/v1/deploy/inspect?repo=… (MCP inspect_repo, CLI nameocean repo inspect URL) shows what a repository needs first. POST /api/v1/servers with {"plan": "starter", "repo": {"url": "https://github.com/acme/shop", "branch": "main"}, "env": {"STRIPE_KEY": "…"}, "confirm": true}; GET /api/v1/servers/{server} has source.status (waiting, deploying, deployed, failed); POST /api/v1/servers/{server}/source updates it. MCP: create_server with repo, branch, env, and update_from_source.