Skip to content
Functions & On-demand servers · Firecracker

VPSnet Functions: run code on demand in Firecracker microVMs

Run sandboxed webhooks and short jobs from the panel, API, or webhook. When work needs a complete Linux machine with SSH, use an on-demand server.

From about €0.20 per 1,000,000 short runs (usage-billed, no idle VPS).

Built for jobs you already have

A focused code layer for small automated reactions next to the services you already host at VPSnet.

PythonNode.jsPHPBash

Reliable webhooks

Receive form submissions, payment callbacks, or partner events. Verify signatures, transform JSON, and forward the result to another API without an always-on server.

PythonNode.jsPHPBash

Controlled automation and CI scripts

Run reviewed automation code in an isolated Firecracker microVM. Invoke it from the panel, REST API, MCP, or a webhook and review logs, duration, and cost.

PythonNode.jsPHPBash

Hosting-adjacent automation

Run health checks, DNS reports, domain-expiry reactions, and other short jobs beside your VPS and domains instead of maintaining a separate cloud account.

Start from a working example

After signing in, open a reviewed example in the editor, inspect its inputs and code, then save it to your account.

Node.js

Echo JSON input

The simplest example: read stdin and return a clean JSON response.

Node.js

Webhook receiver and normalizer

Accept a POST body, detect webhook metadata, and return a compact normalized event.

Node.js

Contact form intake

Accept form data, validate the main fields, and optionally forward the request to another system.

Python

URL health check

Check a public URL and return its status code, response time, and content type.

Node.js

Signed webhook verifier

Verify an HMAC signature from request headers before trusting the incoming data.

Node.js

Telegram bot webhook

Receive Telegram updates by webhook and respond to /start, /help, /weather, /uv, and /id commands.

See all examples in the panel

From example to first invocation

Review the example, save it, copy the generated request, and run it.

  1. 1

    Open Functions in the panel or choose an example.

  2. 2

    Choose Python, Node.js, PHP, or Bash and review the code.

  3. 3

    Save the function and copy its webhook URL or cURL example.

  4. 4

    Invoke it from your integration, CI job, scheduler, or MCP client.

Webhook cURL
# URL + secret: shown in the function editor after you save
# (endpoint shape: POST /fn/<webhook-uuid>/hook)
curl -X POST \
  -H "Content-Type: application/json" \
  -H "X-Function-Webhook-Token: $WEBHOOK_SECRET" \
  -d '{"event":"ping","payload":{"hello":"world"}}' \
  "$WEBHOOK_URL"

# 200 OK — the function's stdout is the response body
{
  "ok": true,
  "type": "webhook_event",
  "metadata": {
    "method": "POST",
    "query": null,
    "contentType": "application/json",
    "ip": "203.0.113.10"
  },
  "normalized": { "event": "ping", "payload": { "hello": "world" } }
}

Usage-based pricing

Three simple meters — runs, vCPU-seconds, and GB RAM-seconds. When nothing is running, nothing is charged.

Base price per 1,000,000 invocations€0.20
Per vCPU-second€0.00000400
Per GB RAM-second€0.00000200

Prices exclude VAT. Idle functions are not charged. Account balance, usage access, and spend limits still apply.

Frequently asked questions

01

What are VPSnet Functions?

Short-lived jobs executed in isolated Firecracker microVMs. Save code, choose a runtime, invoke it from the panel, API, MCP, or a webhook, and inspect output, duration, logs, and usage cost without maintaining an always-on service.

02

How are Functions different from Managed Applications?

Managed Applications are long-running Docker services with managed lifecycle and access. Functions execute short on-demand code for webhooks, transforms, and automation. Choose an application for a continuously running service and a function for a bounded reaction or job.

03

How am I billed?

Each invocation has a small base charge plus the vCPU time and memory time used while it runs. Idle functions are not charged. The current public rates are loaded from the VPSnet pricing API and shown above when available.

04

Can I run a function on a schedule?

The platform currently accepts invocations from the panel, REST API, MCP, or an HTTP webhook. Use an external scheduler or a cron job on your VPS to call the webhook URL. Example tags that mention cron describe this integration pattern, not a built-in scheduler.

05

Which runtimes are supported?

Python, Node.js, PHP, and Bash runtimes are available. Review the runtime details and example requirements in the control panel before relying on a specific package or system utility.

06

How should I handle security?

Each invocation runs in a Firecracker microVM with VM-level isolation. Review function code, inputs, secrets, outputs, and external side effects before connecting it to production systems; isolation does not make unreviewed code trustworthy.

07

What about on-demand servers?

VPSnet is preparing a new Firecracker service. Customer ordering is not available yet; this page previews the planned service while we validate its operation and reliability.