Get a function running in under a minute:
- Go to Functions and click + New Function.
- Give it a name (e.g.
hello-world) and click Create. - The editor opens with a default handler. Edit the code or leave the default.
- Press Ctrl+Enter or click Run to invoke the function.
- See the result and logs in the right panel. Open the Traces tab there for recent runs, or use the Executions page in the sidebar for all functions.
index.js
// Gateway HTTP: POST JSON is in event.body (string). Editor Run: the JSON you type is the whole event root. const payload = typeof event.body === 'string' ? JSON.parse(event.body || '{}') : (event || {}); exports.handler = async (event, context) => { // Example: const { name } = payload; return { statusCode: 200, body: JSON.stringify({ message: "Hello from Inquir Compute!" }), }; };
For faster subsequent invocations, click Deploy in the sidebar footer to warm up a hot container (~5 ms instead of ~500 ms cold start). Hot containers automatically stop after 10 minutes of inactivity to free resources.