Functions_

Serverless functions done your way

Deploy and scale serverless functions with seamless integration, multi-language support, and zero server management.

Phone screen with example function running on an e-commerce site.

Run in your preferred
languages

Appwrite Functions support a variety of
languages, ensuring flexibility and
compatibility in your projects.

Learn more
Web
import { Client } from 'node-appwrite';

// This is your Appwrite function
// It's executed each time we get a request
export default async ({ req, res, log, error }) => {
  // Why not try the Appwrite SDK?
  //
  // Set project and set API key
  // const client = new Client()
  //    .setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID)
  //    .setKey(req.headers['x-appwrite-key']);

  // You can log messages to the console
  log('Hello, Logs!');

  // If something goes wrong, log an error
  error('Hello, Errors!');

  // The 'req' object contains the request data
  if (req.method === 'GET') {
    // Send a response with the res object helpers
    // 'res.text()' dispatches a string back to the client
    return res.text('Hello, World!');
  }

  // 'res.json()' is a handy helper for sending JSON
  return res.json({
    motto: 'Build like a team of hundreds_',
    learn: 'https://appwrite.io/docs',
    connect: 'https://appwrite.io/discord',
    getInspired: 'https://builtwith.appwrite.io',
  });
};
DenoPythonDartPHPRuby.NETJavaNode.jsBunSwiftKotlinC++
Checkout window

Develop your functions locally

Code and test your functions locally with Appwrite Functions, ensuring full control over your development.

Learn more

Deploy seamlessly
with no effort

Appwrite offers to deploy functions directly from Git repositories to track changes within your development workflow seamlessly.

Learn more
Checkout window

Execute functions
with ease

Execute your functions effortlessly through the Appwrite console, SDKs, or API.

Learn more
5
Minute
*
Hour
*
Day
(month)
Month
*
Day
(week)
Scheduled functions

Appwrite supports scheduled function executions using cron expressions.

  • buckets.*.files.*.delete
  • databases.*.collections.*.create
  • functions.*.executions.*.delete
  • teams.*.memberships.*.create
Events

Configure Functions to be executed in response to events.

Function 637a40ba7
NameVerification Status
appwrite.io
Verified
Custom domains

Set up custom domains to integrate Appwrite functions with your infrastructure.

Request
Response
HTTP requests

Allow external applications to trigger Appwrite functions via web requests.

December 2024
Sun Mon Tue Wed Thu Fri Sat
Delayed execution

Appwrite let you postpone function runs until a specified future time.

TimestampFunctionStatus
2024-07-17 10:05:23 SendEmail Success
2024-07-17 10:10:45 UpdateProfile Failed
2024-07-17 10:15:00 GenerateReport Success
2024-07-17 10:20:12 DeleteAccount Success
2024-07-17 10:25:30 CreateInvoice Failed
2024-07-17 10:30:45 SyncData Failed
Logging

Monitor function execution with detailed logging from Appwrite.

Getting Started_

Add functionality within seconds

Appwrite offers a wide variety of ready-to-use templates to speed up development.

Templates console

Explore templates

View all templates
Prompt ChatGPT
  • node
  • python
  • +1

Ask questions and let OpenAI GPT-3.5-turbo answer.

Subscriptions with Stripe
  • node

Receive recurring card payments and grant subscribers extra permissions.

Sync with Algolia
  • node
  • python

Intuitive search bar for any data in Appwrite Databases.

Query upstash vector
  • node

Vector database that stores text embeddings and context.

View all templates

The switch to using Appwrite brought infinite value that I'm still discovering today, but a major impact that it made was the amount of time and stress that it saved me as it simply just works.

K-Collect Logo
Ryan O’Conner Founder // K-Collect

We really loved working with Appwrite for launching our bootstrapped "Open Mind" App. I am still surprised how easy the implementation into Flutter was.

Open Mind Logo
David Forster Founder // Open Mind

The integrated user authentication and the ease of creating data structures have undoubtedly saved us several weeks' worth of time.

mySHOEFITTER Logo
Marius Bolik CTO // mySHOEFITTER

Just go for it, don’t think twice. Try Appwrite, and you will love it!

Smart Bee Logo
Sergio Ponguta Founder // Smart Bee

Just like a Swiss Army Knife, you can choose and use the tools that you need with Appwrite.

Majik Kids Logo
Phil McClusky Developer // Majik Kids

Open source alternative to
Auth0

Appwrite is a 100% open source project, giving you the flexibility and support you need to get your project started.

Community collaboration

Community collaboration

Share knowledge and learn from others' experiences.

Transparency and security

Transparency and security

The source code is openly accessible for anyone to inspect.

Customization and flexibility

Customization and flexibility

The freedom to customize and adapt products to your needs.

Start building today

Get started

Our plans

  • Free

    $0

    For personal hobby projects and students.

    Get started
  • Pro

    $15
    per member/month

    For pro developers and teams that need to scale their products.

    Start building
  • Scale

    $599
    per org/month

    For pro developers and production projects that need the ability to scale.

  • Enterprise

    Custom
    per org/month

    For enterprises that need more power and premium support.

    Contact us