The flow
In the dashboard, New app is one page with three calm steps:- Where is your code. Paste a repository URL or pick one from a connected account. There is no Analyze button: the preview starts a moment after you stop typing.
- Preview. A repository card appears in place with the owner and name, visibility, description, a languages bar, the latest commit, stars, forks and license, a README excerpt (plain text, never rendered as HTML) and a branch select that defaults to the default branch. Below it, one line says what was detected (for example “Next.js, builds with Railpack, listens on 3000”) with an Edit shortcut, and a monorepo gets an app picker. A private repository without a connected account explains that in one line and offers Connect an account or Use a deploy token. If the host is rate limited or has no preview, you can still continue.
- Short form. App name (suggested from the repository, checked against your existing apps), only the environment variables the repository needs (secret-looking names are masked, Add variable for more), and the address (a free address by default, or a custom domain). A summary line such as “Builds with Railpack from main and deploys to a free address” sits above the single Deploy button. Port, health check path, memory, directory and build type live under Advanced, with the detected values shown as placeholders.
Preview endpoint
POST /api/v1/git-sources/preview takes repo_url, optional ref, account_id and token, needs the same write ability as analyze, and returns the card data plus the analysis. kind is one of public, private_needs_account, not_found, rate_limited, unsupported_host or invalid_url. Only github.com, gitlab.com, bitbucket.org, codeberg.org and the hosts of your connected providers are contacted, through the same SSRF-guarded client as the rest of the git layer, so URLs such as http://169.254.169.254 or http://localhost are answered unsupported_host without any request. Tokens are never returned or logged. Tune it with APP_REPO_PREVIEW_TIMEOUT, APP_REPO_PREVIEW_CACHE_TTL, APP_REPO_PREVIEW_CACHE_MAX, APP_REPO_PREVIEW_MAX_BRANCHES and APP_REPO_PREVIEW_README_CHARS. Bitbucket Cloud has no rich preview yet; it falls back to the classic analysis step.
The flow survives a page reload: the repository and step are kept in sessionStorage (never tokens or env values), and the analysis runs again.
Explain it from the CLI
--output json returns the full result, including the detection object:
The same result comes from
POST /api/v1/git-sources/analyze (body: repo_url, optional ref and directory), which reuses your connected provider credentials. It reads only and persists nothing. The older POST /api/v1/imports/analyze returns the same payload.
What is detected
Next.js (App Router or Pages Router,standalone output, static export), Vite and Create React App single page apps, Astro (static or with the Node adapter), SvelteKit (static adapter or Node), Nuxt, Remix, Express, Fastify, NestJS, Django, FastAPI, Flask, Rails, Laravel, Go net/http, Rust axum, Spring Boot, plain static HTML, and any repository with a Dockerfile.
When signals conflict, the most specific framework wins: a Rails app with a package.json for its assets is Rails, and an Express server with a Dockerfile is built from the Dockerfile. A repository with several Dockerfiles uses the shallowest one and warns. A manifest that cannot be parsed falls back to matching its raw text, lowers the confidence, and warns.
Rust has no automatic build here yet. Detection still names it and warns; add a Dockerfile and it is built from that.
Monorepos
When the repository is a workspace (pnpm, npm, yarn, bun, Go workspaces, Nx or Turborepo), the What we found step lists its packages. Select the ones you want and press Create an app for each selected package. Each becomes its own app with the package directory as the build root and its watch paths applied, so a push only redeploys what it changed. You can also press Configure this one to take a single package through the normal steps. See Monorepos. Required environment variables are not asked for in the bulk action; add them on each app and redeploy.Worked examples
These are the fixtures undertest/fixtures. Output is abridged.
smoke/nextjs: a Dockerfile around Next.js
dogfood-nextjs: standalone output
Same as above, plus next.config.mjs sets output: 'standalone', so the server starts from .next/standalone. Port 3000, health /.
smoke/goapi: Go with a Dockerfile
go.sum; the warning only appears when go.mod has a require.
smoke/static: a Dockerfile serving static files
The Dockerfile decides: build type dockerfile, port 8080 from EXPOSE, no framework named. Remove the Dockerfile and the same files are detected as Static site, build type static, served on port 80.
monorepo: a workspace with no app at the root
failing-build: no recognisable framework
RUN step, which is what this fixture exists to show. See When a deploy fails.
Limits
- Analysis reads at most a few dozen small files per repository (
APP_WIZARD_MAX_FILES,APP_WIZARD_MAX_FILE_BYTES), so a huge tree can be partly read; a warning says so. - It works through the GitHub, GitLab and Gitea APIs. A host without a file API can still be connected by URL, but analysis answers that it cannot read it.
- Port and health guesses for Express and Fastify are conventions, not facts. Check them against the server code.