Functions
Functions run TypeScript on Deno 2.5 in a container per function. Trigger them through HTTP, cron or a queue.
What it is
Functions run TypeScript on Deno 2.5 in a container per function. Trigger them through HTTP, cron or a queue.
Quick start and CLI
infaris-guard hosting functions create --name hello --auth-project <projectId>
infaris-guard hosting functions deploy hello functions/hello
infaris-guard hosting functions invoke <functionId> --method GET
infaris-guard hosting functions lintWhen something goes wrong, hosting functions errors hello groups the failed invocations of the last 7 days on their error message: how often, since which version, and whether the error only occurs in the live version (then the last deploy probably caused it). --days 30 looks further back.
SDK and code
// functions/hello/index.ts, Deno runtime. No separate SDK needed.
Deno.serve((_request: Request) => Response.json({ hello: 'Infaris' }));Secure defaults
Functions are private: an Auth token, function key or signed platform request is required. The gateway checks access before your handler. Egress to private networks is restricted. Keep secrets in function secrets, not source code.
Limits
Default 256 MiB memory, 60 second timeout and 25 concurrent requests. Maximum 1,024 MiB, 300 seconds and 100 concurrent requests. Source maximum 10 MiB and 500 files; 25 functions per organisation. Cold starts can occur.
FAQ
Move a Node server? A Deno handler is not a full Node server. Test imports, file access and networking. Public webhook? Expose the function explicitly and verify the sender’s signature. Background task? Use a queue; do not rely on work after the HTTP response.