SDK
Wrap code with fluxFunc. Capture writes events to the ingest URL from the app. Exact APIs follow your fluxrun version — read the package README in your repo.
How to use fluxFunc
You pass an async function and a stable name for that entry point. The wrapper records what runs so you can open it in the dashboard.
How capture works
The SDK reports execution and capability events to your project ingest. Sensitive payload handling follows the fluxrun model (encryption, redaction) — see the README.
Example
import { fluxFunc } from 'fluxrun';
export const doWork = fluxFunc(
async (input: { id: string }) => {
// Your server logic: fetch, env, I/O, etc.
return { ok: true, id: input.id };
},
'myapp.doWork',
);