faas-ch

Functions that sleep until they're called, and wake in a tenth of a second.

Deploy an HTTP server as a function. It uses nothing while idle, starts with your code already loaded, and runs every instance apart from all the others.

Start with the guideBrowse the API

run.faas.example/hello/greet?name=you
  1. The function is asleep. No instance is running.

An illustration of what the platform does with a request, not a live service.

From a folder to a URL in three steps

  1. Write an HTTP server

    The contract is one line: listen on the port you are given. Use the framework you already know.

    const http = require('node:http')
    
    http
      .createServer((req, res) => {
        res.end(JSON.stringify({ message: 'hello' }))
      })
      .listen(process.env.PORT)
  2. Send it

    One call uploads the folder. The function is live when the call returns, a few seconds later.

    tar -czf ../hello.tar.gz .
    
    curl -X PUT "$FAAS_API/v1/functions/$FUNCTION/code" \
      -H "Authorization: Bearer $FAAS_TOKEN" \
      -H 'Content-Type: application/gzip' \
      --data-binary @../hello.tar.gz
  3. Call it, or schedule it

    The function has its own address, and can run on a cron schedule in your time zone.

    curl "$FAAS_URL/$FUNCTION/greet"
    
    curl -X POST "$FAAS_API/v1/functions/$FUNCTION/triggers" \
      -H "Authorization: Bearer $FAAS_TOKEN" \
      -H 'Content-Type: application/json' \
      -d '{"schedule": "0 8 * * 1-5", "timezone": "Europe/Paris"}'

What teams run on it

What the platform takes care of

You write the server. Everything around it is done for you, and stays under your control.

Warm starts
An instance starts from your function as it was once loaded and listening, so the first request doesn't pay for start-up.
Scaling in both directions
Instances start as requests arrive and stop when traffic ends. You set the ceiling, the concurrency, and the memory.
Isolation by default
Every instance has its own sandbox and file system. Nothing is shared between tenants.
Schedules with a history
Cron triggers deliver standard CloudEvents, and each run is recorded with its time, duration, and result.
Tokens you can narrow yourself
Cut a token down to one function, a few operations, or fifteen minutes, without asking anyone.
Logs that tell which instance
Output is grouped by instance, from the deploy onwards, so a failure points at its cause.
Errors that say what to do
Every refusal names the field or the setting at fault. A failed deploy quotes your function's own output.
An API for everything
What you do by hand, a program can do: every route is described in an OpenAPI document.

Bring the code you have

There is no SDK to adopt and no handler format to rewrite your code into. A function is a web server, and it stays one if you move it elsewhere.

Runtime
Node.js 26, CommonJS or ES modules
Dependencies
Any npm package, shipped with your code
Interface
Plain HTTP in, plain HTTP out, bodies streamed
Events
CloudEvents 1.0 for schedules
Access
Biscuit tokens, per tenant, function, and operation

Deploy your first function in ten minutes

The guide goes from an empty folder to a scheduled function, one command at a time.

Start with the guideBrowse the API