Concepts
What a project provisions
What a deploy creates for a project, decided by the project's
repobot.deploy.json, and what it costs.
Starters
spaceboy start and spaceboy projects create provision the project's
repository from a starter. Use the full-stack starter unless you only need a
static site:
| Starter | --template | Declares | Deploys as |
|---|---|---|---|
| The full-stack starter | full-stack (the default for start) | AUTH, DATABASE, EMAIL | An app with sign-in, a Postgres database and email |
| Full-stack with files and jobs | repobot-saas | AUTH, DATABASE, EMAIL, STORAGE, JOBS | The above, plus file storage and scheduled jobs |
| Client-only site | (none) | nothing | A static site |
Every starter is the same complete codebase (Postgres + GraphQL API on
Cloud Functions, a React web app, iOS and Android apps); the declarations
decide what a deploy turns on. Change them in repobot.deploy.json and push.
repobot.deploy.json
| Field | Meaning |
|---|---|
clientOnly | true deploys the web app alone, with no backend |
capabilities | Any of AUTH, DATABASE, EMAIL, BACKEND, STORAGE, JOBS, PAYMENTS, AI, DOCUMENTS, PUSH, IOS, ANDROID |
authMethods | Sign-in methods, for example email-code, password |
webOutputs | Extra web apps served beside the main one |
What the first deploy creates
For each environment (development and production are separate):
- a Postgres database and role (
DATABASE), with your migrations applied; - the sign-in service and its secrets (
AUTH); - the GraphQL API and your functions, each with a public HTTPS URL (they scale to zero: the first request after a quiet spell waits for a cold start; see keep-warm in Functions);
- web hosting at a Spaceboy address (
https://<site>.dev-sites.spaceboy.aifor development); - a storage bucket (
STORAGE) and a scheduler (JOBS) when declared.
Later deploys apply new migrations and replace the functions and web app. When only the web app changed, and no secret or setting changed, a deploy ships the web app alone.
Price
- Free: building, and deploying to one development environment (within the organization's monthly free deploy minutes).
- $10 a month per published project. Need more room? Add capacity for $10 a month.
- Each published project, and each capacity you add, includes 1 GB database, 4 GB file storage, 50 hours a month of backend time, 5 GB a month of data transfer.
Publishing to production is the paid step: deploy --target production
stops with exit code 4 the first time and error.action names the next
step — a checkout link for a person, or the exact command to run. A
development deploy is never refused for payment. Nothing is charged without
a person confirming it.
spaceboy billing --json # what the organization pays for, and its usageFor agents: /docs/agents/what-a-project-provisions.md · llms.txt