raisindb-functions-triggers
Installation
SKILL.md
Functions and Triggers
Functions are JavaScript handlers stored as nodes inside a RAP package. Triggers watch for events (node changes, schedules, webhooks) and invoke functions when conditions match. Together they form the server-side logic layer of RaisinDB.
BEFORE writing any server-side function code:
- Run
npm installin the project root — this installs@raisindb/functions-typeswhich containsraisin.d.ts, the COMPLETE TypeScript API for the function runtime. Read it before writing any code. - ONLY use methods defined in
raisin.d.ts— this is NOT Node.js (noBuffer,fs, no npm modules).fetch()IS available. ES module imports with relative paths ARE supported (import { foo } from './utils.js').
MANDATORY: After creating or modifying ANY .yaml, .node.yaml, or .js file in package/, immediately run:
npm run validate