Inquir Compute
Browse sections

Inquir Compute documentation

This hub covers serverless functions, the HTTP API gateway, pipelines, and Node.js, Python, and Go runtimes—jump into a topic from the left or follow the quick start below.

Get a function running in under a minute:

  1. Go to Functions and click + New Function.
  2. Give it a name (e.g. hello-world) and click Create.
  3. The editor opens with a default handler. Edit the code or leave the default.
  4. Press Ctrl+Enter or click Run to invoke the function.
  5. 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.