Rezin Core Rezin Core

Product/Functions

Your own server-side code, run shut in.

Deploy a JavaScript function and call it over HTTPS, on a timetable, or when a table changes. Each run happens in a process that can reach nothing but what you gave it.

What it does

One file, three ways to run it

A function is one module that takes a standard Request and returns a Response. Call it with your project's key, run it every so often, or run it when rows change.

Versions and a way back

Every deploy is a new version. The newest twenty are kept, and you can go back to any of them.

A record of every run

How each run ended, how long it took and what it printed, kept for seven days, with the values of its secrets blanked out.

How it is different here

What you would not get by default elsewhere.

  • Nothing by defaultA run cannot read the disk, write anywhere, start a program or open a network connection of its own. It is started with none of the server's settings. If the sandbox cannot be confirmed, nothing runs at all.
  • The server fetches for itOutgoing requests are carried out by the server, which refuses private and internal addresses and checks every redirect again.
  • Only the secrets you assignA function is given the secrets you chose for it and no others, and reaches your data through the same API and keys as any other caller.

In practice

A function
export default async (request, context) => {
  const { name = 'world' } = await request.json().catch(() => ({}));
  console.log('called with', name);
  return Response.json({ hello: name });
};

Node's built-in modules can be imported. Packages cannot: a function is one module of up to 256 KB.

Limits

What a plan includes each month is on the pricing page. These are the numbers that matter for this part.

Functions in a project20
Time for one run10 seconds unless you set it; 60 at most
Memory for one run128 MB
Runs for a project120 a minute, 4 at once
Function runs a month500,000 on Free; 2 million on paid plans, then per million

Try it

Rezin Core is in development and available by invitation. With an invite code you can create an account and a first project in a few minutes.