The fastest code execution on the planet

Send code, get results. Cold starts under 10ms, pay only for milliseconds used.

The best build on Freestyle
Onlook Logo
Wordware Logo
Anything Logo
HeroUI Logo
Vly Logovly.ai
A0 Logo
Rork
Vibeflow LogoVibeflow
Stack Logo
Onlook Logo
Wordware Logo
Anything Logo
HeroUI Logo
Vly Logovly.ai
A0 Logo
Rork
Vibeflow LogoVibeflow
Stack Logo

Serverless TypeScript execution for multi-tenant apps

Send TypeScript in an API call, get the result back in milliseconds. Cold starts under 10ms, median execution of 84ms, and you only pay for the exact milliseconds used. No deployment step, no infrastructure, complete isolation between every run.

Execution Timeline6 concurrent runs
math
84ms
zod validation
62ms
date format
47ms
csv parse
120ms
html sanitize
31ms
image resize
96ms
Sandbox Cold Start
500ms

Serverless Runs finish before sandboxes finish starting

Cold starts under 10ms with median execution of 84ms.

Every run executes in its own isolated V8 sandbox.

$

Billed only for actual milliseconds of execution.

Execute code without deploying

Send code in the request, get the result in the response. Perfect for AI-generated code, user scripts, data transformations, and one-shot tasks.

  • No deployment step—code runs immediately
  • Use any npm package with automatic caching
  • Pass environment variables at runtime
  • TypeScript and JSX work out of the box
run.ts
import { freestyle } from "freestyle";

const { result, logs } = await freestyle.serverless.runs.create({
  code: `
    import { z } from 'zod';
    import { format } from 'date-fns';
    
    const UserSchema = z.object({
      name: z.string(),
      email: z.string().email(),
      createdAt: z.string().transform(s => new Date(s))
    });
    
    export default () => {
      const user = UserSchema.parse({
        name: "Alice",
        email: "alice@example.com",
        createdAt: "2024-01-15"
      });
      
      return {
        ...user,
        formatted: format(user.createdAt, "MMMM do, yyyy")
      };
    };
  `,
  config: {
    nodeModules: {
      zod: "3.22.4",
      "date-fns": "3.0.0"
    },
    timeout: 5000
  }
});

console.log(result);
// { name: "Alice", email: "...", formatted: "January 15th, 2024" }

Built for high-volume execution

Whether you're running AI-generated code, processing webhooks, or executing user scripts, Serverless Runs handle the load.

Sub-10ms Cold Starts

Start executing in under 10ms. Our median total execution time is 84ms—faster than most platforms' cold starts alone.

Pay Per Millisecond

Billed only for actual execution time. An 84ms run costs 84ms. No minimum charges, no idle time billing.

Cached Dependencies

Specify npm packages and we cache them. Subsequent runs with the same dependencies start even faster.

Network Controls

Allow or deny specific domains. Route traffic through your proxy. Block users from calling unauthorized APIs.

TypeScript Native

Write TypeScript directly—no compile step, no tsconfig. JSX/TSX works out of the box.

Secure Isolation

Each run executes in its own V8 isolate. Complete isolation between executions with no shared state.

Faster and cheaper than alternatives

Serverless Runs are optimized for single-use code execution. For an 84ms execution, sandbox platforms charge for 60,000ms.

MetricFreestyle RunsAWS LambdaSandbox Platforms
Cold Start<10ms100-500ms90-500ms
Min Billing1ms1ms60,000ms
Concurrency Limit10,000+1,00010-100
Deploy RequiredNoYesNo

Control what your code can access

Allow or deny network requests to specific domains. Route all traffic through your proxy for logging and monitoring. Keep user code sandboxed.

Domain Allow/Deny Lists
Restrict which APIs user code can call
Proxy Support
Route all requests through your infrastructure
V8 Isolation
Each run is completely isolated from others
network-controls.ts
import { freestyle } from "freestyle";

// Only allow specific domains
freestyle.serverless.runs.create({
  code: `...`,
  config: {
    networkPermissions: [
      { action: "allow", domain: "api.example.com", behavior: "exact" },
      { action: "allow", domain: "*.trusted.com", behavior: "wildcard" },
    ]
  }
});

// Block specific domains
freestyle.serverless.runs.create({
  code: `...`,
  config: {
    networkPermissions: [
      { action: "deny", domain: "malicious.com", behavior: "exact" },
    ]
  }
});

// Route through your proxy
freestyle.serverless.runs.create({
  code: `...`,
  config: {
    proxy: "http://your-proxy.com",
    headers: {
      "Proxy-Authorization": "Basic ..."
    }
  }
});

Start building with Freestyle Runs

Execute code in milliseconds. No credit card required.

AI Code Execution

Execute code generated by LLMs. Validate outputs, run calculations, process data.

Workflow Automation

Run custom code steps in your workflows. Transform data, call APIs, generate reports.

User Scripts

Let users write custom logic. Safely execute their code in isolated environments.

Floodgate logoY Combinator logoHustle Fund logoTwo Sigma Ventures logo
© 2026 Freestyle