examples/dynamic-actors/README.md
Example showing a user-editable actor source workflow with dynamicActor.
cd examples/dynamic-actors
pnpm install
pnpm dev
dynamicActor from rivetkit/dynamicdynamicWorkflow loads code from sourceCodesandboxed-node in your Secure Exec checkout and make it resolvable by this projectRIVETKIT_DYNAMIC_SECURE_EXEC_SPECIFIER to a file URL for sandboxed-node/dist/index.jsThe actor definitions are in src/actors.ts.
sourceCode stores editable source and revision in actor statedynamicWorkflow loads current source from sourceCode in its loader context, then evaluates and runs itThe server wiring is in src/server.ts.
The UI is in frontend/App.tsx and provides save + execute controls.
Read more about AI and user-generated Rivet Actors, actions, and communicating between actors.
MIT