DocsGet started
Check your app with AI
A prompt for your AI coding assistant. It checks your app against the platform, tells you what to change, and changes only what you approve.
Use with AI
Most apps need one or two small changes before they run here: the port, a start script, a place for files. This prompt finds them for you. It knows every framework the platform runs and tells which one your app is; the guide of each framework carries a shorter prompt with that framework’s rules alone, at its top.
What the prompt does
Section titled “What the prompt does”- It looks first. The first pass is a dry run: your assistant reads the code and changes nothing.
- It reports in short. One line with the result, then a numbered list: what is wrong, where, and the fix.
- You decide. It asks which fixes to apply. You answer
all, some numbers, ornone. - It never commits. Changes stay uncommitted in your folder. You look at them and keep what you want.
How to use it
Section titled “How to use it”-
Open your app in your AI coding assistant.
Use an assistant that can read the files of your project, in the folder of the app.
-
Paste the prompt.
Copy it from the box below and send it as your message.
-
Read the report.
It starts with one line:
Result: ready,Result: ready after N fixesorResult: not supported yet. The lists below it are numbered. -
Choose the fixes.
Answer
all, the numbers you want (for example1, 3), ornone. Nothing is changed before you answer. -
Look at the changes and keep what you want.
git diffshows what changed.git restore <file>undoes one file. Commit when you are happy with it. -
Set what the report lists for the dashboard.
Some things are settings, not code: variables to add, a Node version, a build command. The report lists them under “Set in the dashboard”.
The prompt
Section titled “The prompt”Check whether the app in this repository can run on Orbit (hosting for Node.js apps, https://arrangic.com) and help me make it ready.
How to work
1. Start with a dry run. Read the code and report. Do not change, create or delete any file, and do not install, build or start the app.2. Before you read, run "git status". If there are uncommitted changes already, tell me, so that your changes and mine stay apart.3. After the report, ask which fixes to apply and wait for my answer. Apply only the fixes I confirm, each with the smallest change that works. No refactoring, no reformatting, no new packages unless the package is the fix.4. Never commit, push, stash, reset or switch branches. Leave every change uncommitted, so I can look at it and decide what to keep.5. Never show the value of a secret. Name the variable only.6. If you are not sure, say "not sure" and how I can check. Do not guess.7. Keep answers short and plain: one or two lines for each point, no introduction, no account of what you read.
What the platform expects
The project- A Node.js app: Express, Fastify, Hono (on Node, through @hono/node-server), Koa, Hapi, Sails, NestJS, Next.js, Nuxt, SvelteKit (adapter-node or adapter-static), Astro (static, or @astrojs/node in standalone mode), React Router in framework mode or Remix 2, TanStack Start (with nitro), React built with Vite or Create React App, Vue built with Vite or Vue CLI, Angular (built files only: server rendering with @angular/ssr is coming soon) and AdonisJS 6, or any other app that runs on Node.js and listens on PORT ("Node.js" in the dashboard, with its own build and start commands). Or a Laravel app: the rules below are for Node.js apps; for a Laravel app use the prompt at https://arrangic.com/docs/frameworks/laravel instead, and stop here. Apps that run neither on Node.js nor on Laravel cannot be deployed: say so and stop.- The dashboard picks the framework from composer.json, then package.json, first match wins: composer.json with "laravel/framework" in require is Laravel, read before package.json, so a Laravel app with React or Vue pages is Laravel; "next" in dependencies is Next.js; "nuxt" in dependencies or devDependencies is Nuxt; "@tanstack/react-start" or "@tanstack/solid-start" in either list is TanStack Start; "@react-router/dev", "@react-router/serve", "@remix-run/dev" or "@remix-run/serve" in either list is React Router; "@sveltejs/kit" in either list is SvelteKit; "astro" in either list is Astro; "@adonisjs/core" in dependencies is AdonisJS; "@nestjs/core" in dependencies is NestJS, also with "express" among the dependencies; "sails" in dependencies is Sails, also with express among the dependencies; "express" in dependencies is Express, also with React pages; "fastify" in dependencies is Fastify; "hono" in dependencies is Hono; "koa" in dependencies is Koa; "@hapi/hapi" in dependencies is Hapi; "react" in dependencies with "vite" or "react-scripts" is React; "vue" in dependencies with "vite" or "@vue/cli-service" is Vue; "@angular/core" in dependencies is Angular; otherwise the framework chosen by hand. The framework cannot be changed after the app is created. Say which one the app is.- package.json is at the top of the repository, or in one folder that I set as the root directory. A folder with a lockfile of its own is built by itself: only that folder is used. A folder without one that is part of a workspace (the "workspaces" field, pnpm-workspace.yaml) works too: its packages are installed from the nearest folder above it that has a package.json and a lockfile, and the build and start commands run in the folder of the app. Every package of the workspace is installed. A neighbour package that has to be built first belongs in the build command. The workspace needs a committed lockfile at its top.- The repository is at most 1 GB.- A Dockerfile, .dockerignore or docker-compose.yml is ignored. Only the packages in package.json are installed: no system packages such as ffmpeg, ImageMagick or the libraries a headless browser needs.
Install and build- Node.js 18, 20, 22 or 24 (24 when nothing is said). The version is read from .nvmrc, then from "engines.node" in package.json. .node-version is not read. Any other version gets the closest one that runs here.- The package manager follows the lockfile: pnpm-lock.yaml means pnpm, yarn.lock means Yarn (2 and newer install into node_modules, not Plug'n'Play), bun.lock or bun.lockb means Bun 1.4.2, otherwise npm. The lockfile is committed and matches package.json. Two lockfiles are a mistake. Bun installs the packages only: the app runs with Node, so the start command never runs "bun" or "bunx" (a build command may).- With a build command, everything in package.json is installed, also devDependencies; they are removed after the build. NODE_ENV is "production" for the build and for the running app. Without a build command devDependencies are not installed. Whatever the start command needs (ts-node, for example) has to be in "dependencies". Without a build command, a "prepare" or "postinstall" script must not need a dev tool (husky is the usual case).- Packages that compile native code during install can fail: there is no compiler. Packages that ship ready binaries are fine.- Build command: "npm run build" if package.json has a build script, or for NestJS, Next.js, Nuxt, SvelteKit, Astro, React Router, TanStack Start, React, Vue and Angular when it has none ("node ace build" for AdonisJS); "npx tsc" if there is a tsconfig.json and no build script; none otherwise. A build may take 30 minutes.- Fastify listens on 127.0.0.1 unless told otherwise, which the platform cannot reach: it needs host "0.0.0.0" in listen(), or "fastify start -a 0.0.0.0".- Hono runs on Node through @hono/node-server (serve({ fetch: app.fetch, port: Number(process.env.PORT) })). An app written for Bun or Deno alone (export default app, Bun.serve) needs that server.- Koa: a plain server, like Express; app.listen(port) binds every address.- Hapi: Hapi.server({ port: process.env.PORT, host: "0.0.0.0" }), never host "localhost" as its examples do.- Sails: reads PORT and binds every address by itself; "npm run start" is NODE_ENV=production node app.js. In production it refuses to lift without a session secret in config/session.js and, with sails-hook-sockets, without sockets.onlyAllowOrigins (the app's https address) or sockets.beforeConnect in config/env/production.js. The memory session store and sails-disk keep nothing across a restart: sessions and data belong in a database.- NestJS: build "npm run build" (nest build into dist), start "node dist/main", never "nest start" (the CLI is a dev dependency); app.listen(process.env.PORT ?? 3000), and with the Fastify adapter app.listen(port, "0.0.0.0"); enableShutdownHooks() for a clean stop. The running app carries its packages.- Next.js: the running app has the repository's files, the packages in dependencies and .next. The standalone output (output: 'standalone') is not used. Variables named NEXT_PUBLIC_* go into the browser code at build time, so a change to one needs a new build (the next deployment does that), and never hold a secret.- Nuxt: with the start command "node .output/server/index.mjs" the running app carries .output and package.json only: no node_modules, no source. A file the server reads at run time from outside .output is missing.- SvelteKit: needs @sveltejs/adapter-node (svelte.config.js, or vite.config.ts since SvelteKit 3), build "npm run build" into build, start "node build"; the running app carries its packages, so what the server needs at run time is in dependencies. With @sveltejs/adapter-static alone the platform serves build with its own server ("node /platform/static.cjs build"). adapter-auto writes nothing the platform can run. PUBLIC_* and $env/static/private values are written at build time (every Config variable reaches the build, a secret never does; a change needs a new build); $env/dynamic/private reads at run time.- Astro: without @astrojs/node the platform serves dist with its own server ("node /platform/static.cjs dist"), and every variable the site uses is fixed at build time (every Config variable reaches the build, a secret never does; a change needs a new build). With @astrojs/node in standalone mode: start "node dist/server/entry.mjs", the running app carries its packages, HOST is set to 0.0.0.0 by the platform. In middleware mode the app needs a server of its own.- React Router (framework mode, 7 and newer) and Remix 2: build "npm run build" (react-router build or remix vite:build), start "npm run start" (react-router-serve or remix-serve on build/server/index.js, which reads PORT); the running app carries its packages, so @react-router/serve, @react-router/node, react-router, react, react-dom and isbot stay in dependencies. VITE_* values in client code need "Build" turned on.- TanStack Start: with nitro and its Vite plugin the build writes .output, start "node .output/server/index.mjs", and the running app carries .output and package.json only; without nitro the build is a request handler in dist/server and the app needs a server of its own in the start command.- React: the platform serves the built folder with its own server: index.html for paths without an extension (client-side routes work), long caching for hashed files. Nothing of the app's code runs on the platform, so every variable it uses (VITE_*, REACT_APP_*) is written at build time; every Config variable reaches the build (a secret never does), a change needs a new build, and none may hold a secret. Hashed files under assets/ (Vite) or static/ (Create React App) are cached for a year.- Vue: the platform serves the built folder with its own server: index.html for paths without an extension (client-side routes work), long caching for hashed files. Nothing of the app's code runs on the platform, so every variable it uses (VITE_*, VUE_APP_*) is written at build time; every Config variable reaches the build (a secret never does), a change needs a new build, and none may hold a secret.- Angular: the platform serves the built folder with its own server: index.html for paths without an extension (client-side routes work), long caching for hashed files. Nothing of the app's code runs on the platform, so every variable it uses comes from its environment files at build time; a build step of its own reads the variables set in the dashboard, and none that reaches the browser may hold a secret.- AdonisJS: build "node ace build" (or the build script), start "node build/bin/server.js"; the running app carries build alone. APP_KEY has to be added as a variable before the first deployment, and every variable start/env.ts asks for. HOST (0.0.0.0), LOG_LEVEL and TZ are set by the platform; the app's own variables take precedence.- A variable is a Config variable or a secret. Every Config variable reaches the install, the build, the deploy commands, commands, cron jobs, workers and the running app (a token for a private package in .npmrc, or a value the build puts into the built files, needs nothing more). A secret reaches all of them except the install and the build, and nobody can read it back. So a value the build reads has to be a Config variable. A value the build writes into the files changes only with a new build: every change to a Config variable has the next deployment build the app again. Tell me which variables the build reads (they stay Config variables) and which only the running app reads (they can be secrets).
Starting- Start command: "npm run start" if package.json has a start script, otherwise "node" with the "main" file. It runs the server itself, with node: no nodemon, no watch mode. NestJS: "node dist/main", never its start script. Next.js: "npm run start" (next start, which reads PORT). Nuxt: "node .output/server/index.mjs" unless package.json has a start script. SvelteKit: "node build" (adapter-node) or "node /platform/static.cjs build" (adapter-static). Astro: "node /platform/static.cjs dist", or "node dist/server/entry.mjs" with the Node adapter; its start script is the dev server. React Router: "npm run start". TanStack Start: "node .output/server/index.mjs" with nitro, never its start script. React: "node /platform/static.cjs dist" ("build" for Create React App); the start script is never used, and a build that writes to another folder (build.outDir) needs that folder named in the start command, since the config is not read. Vue: "node /platform/static.cjs dist"; the start script is never used, and a build that writes to another folder (build.outDir, outputDir) needs that folder named in the start command, since the config is not read. Angular: "node /platform/static.cjs dist"; the platform finds the built site inside dist (dist, dist/browser or dist/<project>/browser, whichever ng build writes). With an outputPath outside dist, name that folder. The start script is never used. AdonisJS: "node build/bin/server.js", never its start script.- The server listens on the port in the PORT variable (the platform sets it: 3000 unless I change it, never below 1024) and on all interfaces: no host at all, or "0.0.0.0". Never "localhost" or "127.0.0.1". Only this one port receives traffic.- It has to be listening within 2 minutes. Slow one-off work such as database migrations belongs in the deploy commands: they run once for every deployment, before the new version takes traffic, for up to 15 minutes.- With a health check path set in the dashboard, the new version takes traffic only once that path answers with a status under 400, within the wait set there (10 to 300 seconds, 60 unless changed). Such a path should answer only when the app can do its work. Without a path, listening on the port is enough.- HTTPS is done by the platform. The app serves plain HTTP and loads no certificates of its own.- To stop the app the platform sends SIGTERM and waits 30 seconds.- The visitor's address is in the X-Real-IP request header, on every request and on the request that opens a WebSocket; a copy sent by the visitor is removed. Code that takes the address from req.ip, from "trust proxy" or from a list header should read X-Real-IP instead, and so should rate limiters and logs that work by address. Behind a proxy or CDN of my own, the proxy's own header is trusted only when X-Real-IP is one of the proxy's addresses.
While it runs- The app and the deploy commands run without root rights. They can write only in the folder of the app, in the home folder and in /tmp. Code that writes anywhere else, or that needs root, fails. The install and the build run with full rights.- The disk is temporary. Files written while the app runs (uploads, SQLite, JSON files, sessions kept in files) are lost when the app is deployed, restarted or put to sleep. Data belongs in a database or a file store outside the app. The platform offers a Postgres database as a resource of the team (Postgres 18, powered by Neon), attached to the app in the dashboard: the app then has DATABASE_URL (and DB_URL, DB_HOST, DB_PORT, DB_DATABASE, DB_USERNAME, DB_PASSWORD), a URL with sslmode=require&channel_binding=require that pg, Prisma, Drizzle, Knex, TypeORM and Sequelize take as it is; migrations belong in the deploy commands. It sleeps when nothing is connected, so code that queries it every minute or a queue polling it keeps it awake and running all month. Suggest it where SQLite or files are used as the database.- Memory is temporary in the same way, and it is not shared between replicas: sessions (express-session without a store), caches, rate limits and queues kept in memory. For these, the platform offers a Valkey cache as a resource of the team (Valkey 8, fully managed and Redis-compatible, reached through the Redis API), attached to the app in the dashboard: the app then has REDIS_URL, REDIS_HOST, REDIS_PORT, REDIS_USERNAME (default) and REDIS_PASSWORD. Code that uses ioredis, node-redis, BullMQ or connect-redis works with it unchanged; suggest it where memory is used as a store. Full, a cache refuses writes (eviction policy noeviction, the default) unless its eviction policy is set to drop keys: keep noeviction for queues and sessions, and suggest allkeys-lru for a cache that holds only data the app can make again.- An idle app sleeps and wakes only for a request. Timers and jobs do not run while it sleeps (node-cron, cron, node-schedule, croner, bree, agenda, bull, bullmq, bee-queue and pg-boss, or work started with setInterval). Such an app needs "Keep one replica always on" in the dashboard. With more than one replica, every replica runs the job. Work that should run on a schedule, once, without a visitor, fits the platform's cron jobs instead: a command set in the dashboard, run on a machine of its own from the live version with the app's variables, every 5 minutes to every week or on a cron expression (never more often than every 5 minutes), for up to 15 minutes a run. Name such work and suggest that. A queue worker or any command that keeps running fits the platform's workers: a command set in the dashboard, run on a machine of its own from the live version with the app's variables, as many copies as set, started again when it stops, moved to each new version, always on or started every 1, 5, 15, 30 or 60 minutes to look for work (then the command must exit with 0 once the queue is empty, and the app can call the worker's wake URL in PLATFORM_WAKE_URL_<NAME> right after queueing a job). The command gets SIGTERM and 10 to 300 seconds to finish. Name such work and suggest a worker.- WebSocket and Socket.IO work with nothing switched on. Every open socket takes one of a replica's places for requests ("Concurrent requests per replica" in the dashboard, 1 to 1000; a new app with socket.io, ws, sockjs, engine.io, uWebSockets.js, @fastify/websocket or express-ws starts with 250). A deployment closes every socket once: clients have to connect again by themselves. With more than one replica a Socket.IO client must use WebSocket only (transports: ['websocket']), and a message for all sockets reaches one replica only unless the app brings its own shared store.- Variable names are capital letters, digits and underscores, and do not start with a digit. PORT, NODE_ENV and names that start with PLATFORM_ are set by the platform: I cannot set them. NODE_ENV is always "production". The platform does not set APP_URL: if the code reads it, I add it in the dashboard with the address of the app. A .env file that is not committed is not there: every variable the code reads has to be added in the dashboard.
The report
First line, one of:Result: readyResult: ready after N fixesResult: not supported yet
Then up to three lists. Number the fixes in one sequence across the lists. Leave out a list that would be empty.
Must fix (it does not build or start without this)1. What is wrong, in a few words (file:line) Fix: the change, in one line
Should fix (it starts, but something breaks in use)2. What is wrong, in a few words (file:line) Fix: the change, in one line
Set in the dashboard (no code change)- Node version, port, root directory, build command, start command: only where the platform would not pick the right one by itself- Variables to add: names only- Keep one replica always on: only if the app runs jobs- Concurrent requests per replica: only if the app holds sockets open, the number of people connected at once per replica- Health check path: only if the app has a route that answers with a status under 400 once it is ready (/health, for example), that path
Last line, exactly:Apply fixes? Answer "all", the numbers (for example "1, 3"), or "none".
After I answer
Apply the confirmed fixes. Then tell me, briefly:- each file you changed and what changed in it- that nothing is committed: "git diff" shows the changes and "git restore <file>" undoes one- the "Set in the dashboard" list again
More on every rule: https://arrangic.com/llms.txtPrompt version: 2026-11-21What it checks
Section titled “What it checks”| It checks | Read more |
|---|---|
The framework, and where package.json is |
All frameworks |
| Node version, package manager, install and build | Build settings |
| The start command, the port and the address the server listens on | The guide of your framework, Express for example |
| Slow work at start that belongs in deploy commands | Deploy commands |
| A route the health check path can use | Deployments |
| Variables the code reads | Environment variables |
| Files and memory the app relies on | Sleep and wake |
| Timers and jobs that stop while the app sleeps | Sleep and wake |
What to keep in mind
Section titled “What to keep in mind”- It reads, it does not run. The check does not install, build or start your app. The first deployment is the real test.
- An assistant can be wrong. Read each fix before you say yes. If the report says “not sure”, check that point yourself.
- Your secrets stay out of the report. The prompt tells the assistant to name variables and never show their values.
© 2026 Orbit