Serverless Execution

Global Edge Logic

Deploy your custom server-side logic to our globally distributed network. Built on the modern **Deno** runtime, Afribase Edge Functions provide ultra-low latency, automatic scaling, and native TypeScript support without the overhead of traditional server management.

Deno Runtime

Edge Functions are built with the modern **Deno** runtime, providing built-in security and adherence to modern Web Standards.

TypeScript First

Native TypeScript support without the need for complex transpilation or build steps.

Web Standards

Support for Fetch API, Streams, and standard URL parsing out of the box.

Development Workflow

01

Write your Logic

Standard HTTP handler using Deno's native server utilities.
typescript
import { serve } from "https://deno.land/std/http/server.ts";

serve(async (req) => {
  const { name } = await req.json();
  return new Response(JSON.stringify({ 
    message: `Hello ${name} from the edge!` 
  }));
});
02

Deploy via CLI

Instantly deploy your function to our global infrastructure.
bash
afribase functions deploy hello-world
03

Invoke from Client

Invoke your serverless function from any client library.

JavaScript

typescript
const { data, error } = await afribase.functions.invoke('hello-world', {
  body: { name: 'Afribase User' }
});

Python

python
result = client.functions.invoke("hello-world", body={"name": "Afribase User"})

Dart / Flutter

dart
final result = await client.functions.invoke('hello-world', body: {'name': 'Afribase User'});
Edge Functions can also be triggered by **Database Webhooks**, allowing you to execute logic automatically whenever data changes in your project.

Real-time Monitoring

Invocation Logs

Stream execution logs directly to your dashboard as they happen. Filter by status code, timestamp, or specific log level.

Performance Metrics

Track cold start times, execution duration, and memory usage to optimize your serverless functions.

© 2026 Afribase Cloud Infrastructure. Produced by Altris Product Systems.