Functions

Turn your handler into an endpoint

Deploy Node.js, Python or Ruby from source and call it over HTTPS, with verified user context for signed-in callers.

volcano.dev/dashboard/edge-function
The Functions page in the Volcano dashboard, listing deployed functions with their runtime and visibility

What it does

Deploy from source

You don’t build an image or run a cluster. Volcano detects the runtime and serves one HTTPS endpoint.

  • Runtimes

    Node.js, Python and Ruby, deployed from source.

  • User identity

    Your handler gets the verified identity of signed-in callers.

  • Schedules

    Attach a cron expression to run on a timer.

volcano.dev/dashboard/edge-function
Deployed functions with their runtime and visibility in the Volcano dashboard

What you need

  • A Volcano account

    Sign up, then connect the CLI.

  • Volcano CLI

    Deploys and invokes functions.

  • A function folder

    volcano/functions/<name>/.

Try it

Three steps from zero.

  1. Write a handler

    One folder per function. The runtime is detected from the files.

    volcano/functions/hello/index.js

    JavaScript
    exports.handler = async (event) => { const auth = event.__volcano_auth; return { statusCode: 200, body: JSON.stringify({ hello: auth?.email ?? "world" }) }; };
  2. Deploy it

    Terminal

    Shell
    volcano cloud functions deploy -f hello volcano cloud functions update hello --visibility authenticated
  3. Call it from your app

    The SDK sends the signed-in user's token for you.

    client.ts

    TypeScript
    const { data, error } = await volcano.functions.invoke("hello", { id: noteId, });

Check it works

  • Run volcano cloud functions invoke hello and read the JSON back.
  • Follow volcano cloud functions logs hello --type runtime --follow while you call it.
  • Call it signed out. A private or authenticated function rejects the call.

Works with

Questions

Which languages can I use for serverless functions?

Node.js 22 and 24, Python 3.10–3.14 and Ruby 3.3, 3.4 and 4.0. Run volcano cloud functions runtimes for the current list.

What is the function timeout on Volcano?

30 seconds per call on Hobby and 180 on Superagent. Use a durable function for longer work.

Can a serverless function receive webhooks?

Yes. Set visibility to public, invocation_mode to http and http_auth_mode to none, then verify the sender’s signature in your handler.

More answers in the docs

It will blow your mind!

Pun intended. Build, deploy & scale on the Volcano platform for free.

Start building