
I am trying to create a single repository claymemoirs-functions
to hold all my Appwrite Serverless functions.
Basically, I want all my functions to share the same bun.lockb
, prettier
and eslint
configurations, as well as a @common
and @services
folder.
The functions themselves would be inside @functions
, e.g.: @functions/processs-new-user/index.ts
Is it possible to do something like this? Even if some adjustments are required?
See screenshot for visual aid.

Answering myself here. I was initially thinking of going with a bun
mono-repository, but documentation is scarse. Turbo
and Nx
mono-repositories are also a bit cumbersome. So... I ended up just creating a single folder
, as outlined in the screenshot. Creating path aliases is as necessary and then, in Appwrite function definitions I added this Configuration
:
Build Settings
bun install --production && bun build ./functions/process-new-user/main.ts --outdir ./dist/process-new-user
Entrypoint
dist/process-new-user/main.js
The deploy was succesful on Appwrite, and I was able to execute it and see the logs and all that. So I assume this works. Not entirely sure it's the best way to do it tho. It's good enough for me, until anyone ellaborates or teaches me better.

Sure you can use 1 folder/repo for all your functions
Recommended threads
- Connecting server functions to GitHub re...
The project I am working in has recently moved organizations on Appwrite. The same is true for the repo on GitHub, which as moved from a private user to a organ...
- Missing C++ libstdc library in Python fu...
I have a function running Python 3.12 which suddenly started dumping errors (as of today; it worked yesterday). I hadn't changed any code so I found this odd, b...
- Checkout error: Error: Request body is e...
Im absolutely stumped here. ```Initializing Stripe functionality... stripe.ts:74 Calling Appwrite function with payload: {price_id: 'price_1RdZzoDCvcSnLsdCCu8z3...
