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.
Product/Functions
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.
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.
Every deploy is a new version. The newest twenty are kept, and you can go back to any of them.
How each run ended, how long it took and what it printed, kept for seven days, with the values of its secrets blanked out.
What you would not get by default elsewhere.
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.
What a plan includes each month is on the pricing page. These are the numbers that matter for this part.
| Functions in a project | 20 |
|---|---|
| Time for one run | 10 seconds unless you set it; 60 at most |
| Memory for one run | 128 MB |
| Runs for a project | 120 a minute, 4 at once |
| Function runs a month | 500,000 on Free; 2 million on paid plans, then per million |
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.