Runtimes: Node.js, Bun, Python & Go
Project layout requirements, version pinning, dependency installs, and starter examples for every supported runtime.
Runtime auto-detection
Blip Host supports Node.js, Bun, Python, and Go. On every build, Blip Host inspects the top level of your repository or ZIP archive in this order:
| Runtime | Detected by | Install & build step |
|---|---|---|
| Bun | package.json + bun.lock / bun.lockb / bunfig.toml | Runs bun install
(with --frozen-lockfile
if locked) and bun run build
if defined. |
| Node.js | package.json | Runs npm ci
(with package-lock.json
) or npm install
— or pnpm install
automatically when pnpm-lock.yaml
is present — runs the build
script if defined, then prunes dev dependencies. |
| Python | requirements.txt or pyproject.toml | Creates an isolated virtualenv (.venv
) and installs packages from requirements.txt
or pyproject.toml
. |
| Go | go.mod | Downloads Go modules and compiles your package main
binary into ./bin/
. |
If your project has files from multiple languages (for example a Go bot that also keeps frontend tooling in package.json
), pick the runtime manually under Builds → Runtime override.
Java/JVM runtimes (such as JDA or Lavalink) are not supported.
Node.js (default 24, optional 22)
Node.js bots run on Node.js 24 by default, with Node.js 22 available side by side if your dependencies need it. You can pick Node.js 22 either from Builds → Node.js version or automatically via .nvmrc
, .node-version
, or engines.node
in package.json
.
Projects that include pnpm-lock.yaml
, pnpm-workspace.yaml
, or a "packageManager": "pnpm@..."
field in package.json
automatically install and build with pnpm (using --frozen-lockfile
when a lockfile is present).
For start commands, Blip Host checks scripts.start
, then main
, then common files (index.js
, bot.js
, main.js
, app.js
, src/index.js
, dist/index.js
).
package.json
start script is a plain node index.js
command, Blip Host automatically invokes node
directly instead of keeping an extra npm
wrapper process alive. If you use a complex start script, setting Start command override to node dist/index.js
gives you the same savings.
{
"name": "my-discord-bot",
"type": "module",
"scripts": {
"start": "node index.js"
},
"dependencies": {
"discord.js": "^14.16.3"
}
}
import { Client, Events, GatewayIntentBits } from 'discord.js';
const client = new Client({
intents: [GatewayIntentBits.Guilds],
});
client.once(Events.ClientReady, (readyClient) => {
console.log(`Logged in as ${readyClient.user.tag}`);
});
client.login(process.env.DISCORD_TOKEN);
Bun (TypeScript & JavaScript)
Include a bun.lock
, bun.lockb
, or bunfig.toml
alongside package.json
(or choose Bun in Runtime override).
Bun runs TypeScript (.ts
) files directly without a separate compile step. If you don't specify a scripts.start
or main
entry, Blip Host checks index.ts
, src/index.ts
, index.js
, and src/index.js
.
Python (discord.py, hikari & more)
Put a requirements.txt
or pyproject.toml
at the top of your project. Blip Host builds a clean virtual environment and auto-detects main.py
, bot.py
, app.py
, run.py
, src/main.py
, or src/bot.py
.
If your bot requires Python 3.11 (for example older libraries that require <3.12
), add a .python-version
file containing 3.11
or declare requires-python = "<3.12"
in pyproject.toml
.
discord.py>=2.4.0
import os
import discord
intents = discord.Intents.default()
client = discord.Client(intents=intents)
@client.event
async def on_ready():
print(f"Logged in as {client.user}")
client.run(os.environ["DISCORD_TOKEN"])
Go (compiled automatically)
Add a go.mod
file at the root of your repo. During builds, Blip Host runs go mod download
and compiles every package main
binary statically (CGO_ENABLED=0
) into ./bin/
:
- A root
main.gocompiles to./bin/botand runs automatically. - Each
cmd/<name>package compiles to./bin/<name>(up to 8 binaries per repository). If your repo has multiple binaries and none is namedbot, set your Start command override to./bin/<name>.
Start command rules
When setting a custom Start command override (under Builds), enter a plain command and arguments — for example node src/bot.js
, python -m mybot
, or ./bin/discordbot
.
Shell operators such as quotes, pipes (|
), variable expansion ($VAR
), or chaining (&&
) are not allowed in the start command field. If your bot needs multiple startup steps, put them in a small script inside your repository and start that script instead.