Functions
Node (24 or 22) code that runs on Owbase, on an HTTP request, on a schedule or on a project event.
A function is your own code (Node 24 or 22) that runs on Owbase, close to the data. It is for what can’t live in the browser: business rules, integrations with other services, scheduled tasks and reactions to events (a user created, a row changed, a file uploaded).
Create
Section titled “Create”- In the console, under Functions → Create function, enter:
- Name;
- Entrypoint: the file that exports the function, relative to the code root (default
src/main.js); - Build command: runs on every deployment, before it goes live (default
npm install); - Who can execute: anyone, signed-in users or only with an API key.
- The runtime is Node 24 (the default) or Node 22. You can change it later in Settings; the change applies from the next deploy.
- When created, the function gets the domain
https://<id>.fn.owbase.dev(under Settings → Domain).
Next: package and upload the code, configure variables, write the code and execute.
Limits
Section titled “Limits”| What | Limit |
|---|---|
| Runtime | Node 24 or Node 22 |
| CPU and memory per execution | up to 1 vCPU and 512 MB (Settings → Specification) |
| Code package | up to 30 MB |
| Build | up to 15 minutes per deployment, with at least 1 GB of memory |
| Synchronous call | up to 30 s through the SDK or the API and up to 60 s through the <id>.fn.owbase.dev domain; the time includes cold start and never exceeds the function’s timeout |
| Execution timeout | the one in Settings → Timeout (default 15 s, up to 900 s) |
| Scheduling | five-field cron expression, in UTC |
Tasks longer than that run in asynchronous execution, within the function’s timeout. To go beyond the default 15 s, raise the Timeout in Settings (up to 900 s).
Was this page helpful?Thanks for your feedback.