r/appwrite • • 3d ago

Appwrite Functions now support native requests and responses

Post image

Hey everyone!

We've added native request and response support to Appwrite Functions, making it easier to use libraries and frameworks you're already familiar with.

You can now access your runtime's native request object through context.req.raw. If you're using Node.js 18+, Bun, Deno, Python, or Dart, you can also return native responses directly from your functions.

A few things you can do with this update:

  • Parse forms and multipart uploads using standard JavaScript body parsers.
  • Return responses directly from libraries like the Vercel AI SDK.
  • Run a Hono app inside an Appwrite Function without having to write an adapter.

If you're already using Appwrite Functions, there's nothing you need to change. The existing request and response methods continue to work as before, and you can use both approaches within the same function.

This is available on Appwrite Cloud today.

We've put together some code examples and covered the runtime-specific details in the announcement: https://appwrite.io/blog/post/announcing-native-request-response

Let us know if you have any questions or run into anything while trying it out!

2 Upvotes

0 comments sorted by