← Developer Hub
Platform SDK (
Custom Functions (FaaS)
Overview
Custom Functions are user-defined JavaScript functions running in an isolated sandbox (isolated-vm) within aYOUne. No separate server needed.
Platform SDK (ay.*)
const consumers = await ay.db.find('Consumers', { status: 'active' });
await ay.db.create('Tasks', { title: 'Follow-up' });
const response = await ay.http.get('https://api.example.com/data');
ay.log('Processed:', consumers.length);
Trigger types
- Manual, Scheduled (cron), Webhook, Event, Before/After Hook