Code to API

Your Code, an API.

Instantly deploy any function as a secure, scalable, and on-demand API. No servers, no config, just code.

Join waitlist

function.do

import { Do } from '@do-sdk/core';

const doer = new Do(process.env.DO_API_KEY);

// Define your function logic
const greetFunction = (name: string) => `Hello, ${name}!`;

// Deploy the function as a service
const { endpoint } = await doer.function.deploy({
  name: 'greeter',
  handler: greetFunction,
  runtime: 'nodejs',
});

console.log(`Function available at: ${endpoint}`);

Deliver economically valuable work

Frequently Asked Questions

Do Work. With AI.