Docs · Frameworks

Deploy Node servers & full-stack apps.

Express, Fastify, Hono, Koa, or a hand-rolled http server — if your package.json project listens on a port, Canner runs it as-is. This is also how AI-generated full-stack exports deploy.

The one requirement: listen on $PORT

Canner assigns your app a port through the PORT environment variable and health-checks it on / (respond within 30 seconds of starting). Binding to 127.0.0.1 or 0.0.0.0 both work.

import express from 'express';
const app = express();

app.get('/', (req, res) => res.send('ok'));

// Canner sets PORT — always read it from the environment.
app.listen(process.env.PORT || 3000);

Detection finds your server entry automatically — the start script, main field, or a scan for the file that calls .listen(). A build script (e.g. TypeScript compilation) runs first if present.

Full-stack apps (server + built client)

A common shape — especially from AI coding tools like Bolt, v0, Manus, and Lovable — is one project whose Express/Hono server serves both an API and a built Vite client. Canner detects this and runs your server with node_modules kept, letting the server serve the client exactly as it does locally. No configuration, no splitting the project in two.

Databases: if the app expects Postgres, provision one and the DATABASE_URL it reads is injected automatically. Apps that hardcode MySQL or external services need those provided as environment variables.

Long-running by nature

Your app is a persistent process, not a serverless function: websockets, server-sent events, background intervals, and in-memory caches all work. Memory is capped per plan (see the limits) — a crash from exceeding it shows in the runtime logs.

WebSockets

Connections are proxied over HTTP/1.1 with the player’s address in X-Forwarded-For. When the platform reloads its routes (any project’s deploy or domain change, many times a day), open WebSocket connections are closed with code 1001: clients should reconnect. On a paid plan, Settings → WebSockets → Keep connections open keeps them open through those reloads, for up to 12 hours each. Deploying your own app still restarts it and closes its connections.

Security upgrades

If a build installs a package with a known critical vulnerability (Next.js, React Server Components, sharp), Canner builds with the newest fixed release on the same line instead: next 15.5.6 becomes the latest 15.5.x, never a new major version. Only the build changes; your repository and lockfile stay as they are, and the build log names the package, the advisory and the version used. Update the version in your package.json to match and the notice goes away.

When no fixed release exists on that line, the build stops and names the version to upgrade to. Versions without a critical advisory build as they always have.

Good to know

  • SvelteKit, Nuxt, and Remix are detected as their own frameworks and run with their standard Node servers — same rules, zero config.
  • Need cron? Scheduled jobs can hit an endpoint on your app on a schedule.
  • npm, pnpm, yarn, and bun lockfiles are all supported — commit one.
  • You choose the Node major (22, 24, or a newer LTS once it is released) in the project settings, or with engines.node. Canner runs the latest release of each major and checks for new ones daily, so security fixes arrive within a day. An exact version in engines.node or .nvmrc can’t be pinned; the build log says which release the build used.