rayfin-functions
Installation
SKILL.md
Rayfin Functions
Server-side user-defined functions (UDFs) that run in the Fabric runtime and are invocable from your frontend via RayfinClient. Write trusted backend logic once; get a type-safe client call on the frontend.
The full reference lives in the Rayfin guide. Read the doc for the task you're doing before writing code — don't guess API shapes, endpoints, or CLI flags. Read a doc off disk from node_modules/@microsoft/rayfin-guide/assets/docs/<path>, or fetch it with rayfin docs get --module guide --path '<path>' — or get_doc with module: "guide" via MCP.
Where to read
| Task | Doc path |
|---|---|
| Overview, auth configuration and identities, project structure, first function | functions/index.md |
udf.func() API, RayfinContext, data access, importing entities |
functions/writing-functions.md |
How types.ts is generated and kept in sync |
functions/typegen.md |
| Reading secrets inside a function | functions/secrets.md |
Calling functions from the frontend (client.functions.*.invoke) |
functions/invoking-from-frontend.md |
| Connecting to external resources — audiences, recipe chooser, per-resource walkthroughs | functions/connections/index.md |
| CLI: scaffold, local host, deploy | cli/functions/index.md, init.md, dev-apply.md, deploy.md |