Node.js and Express

Host a Node.js or Express app

An Express, Fastify, Hono or plain Node server deploys as it is. Your agent writes a short Dockerfile, and the server gets a public HTTPS address and a volume for anything it needs to remember.

Paste this into your coding agent

Run curl -s https://vibecodedhost.com/deploy.md and follow its instructions to deploy this project.

Works in Claude Code, Codex, Cursor and anything else that can run a shell command.

The files

What your agent writes.

You do not have to write any of this. It is here so you can see how little there is, and check your agent's work if a deploy goes wrong.

With this manifest the app would be live at https://my-api.vibecodedhost.app. The name is yours to choose, as long as no other app has it.

Every field of vibe.json, explained →

vibe.json
{
  "version": 1,
  "name": "my-api",
  "containers": [
    {
      "name": "web",
      "build": {
        "context": ".",
        "dockerfile": "Dockerfile"
      },
      "port": 3000,
      "public": true,
      "env": {
        "NODE_ENV": "production",
        "PORT": "3000"
      },
      "volume": "/data",
      "healthPath": "/"
    }
  ]
}
Dockerfile
FROM node:22-slim
WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev
COPY . .
EXPOSE 3000
CMD ["node", "server.js"]

Worth knowing

Node.js and Express on Vibe Hosting

Listen on 0.0.0.0

A server bound to localhost cannot be reached from outside its container. app.listen(3000, "0.0.0.0") is the fix, and the most common reason a first deploy fails its health check.

The port in vibe.json is the one your code listens on

There is no port mapping to configure. Declare the port, mark the container public, and HTTPS on the public address is forwarded to it.

One public port per container

An API and a separate front end are two containers, each with its own address.

Questions

Before you deploy.

Can I run a TypeScript server?

Yes. Compile it in the Dockerfile with a build stage, or run it with a loader such as tsx. Either way the build happens on our side from your source.

Does an API with nothing at / pass the health check?

Yes. The check only needs an HTTP answer on the declared port, so a 404 at / still counts as alive. Point healthPath at a real route if you have one.

Built something else? Next.js, FastAPI, Flask, Django, React and Vite, Apps with Postgres, Apps with SQLite, Docker Compose projects.

Your app could be online in a few minutes.

Copy the sentence, paste it into your agent, and read the address it gives you back. No account, no card, nothing to pay.

Paste this into your coding agent

Run curl -s https://vibecodedhost.com/deploy.md and follow its instructions to deploy this project.

Works in Claude Code, Codex, Cursor and anything else that can run a shell command.

Would you rather hold the key yourself?

Questions first, or stuck? Contact support and a person replies as soon as possible.