@playrunner/openai
v0.1.4
Published
OpenAI integration package for Playrunner.
Readme
@playrunner/openai
OpenAI model execution and structured output for Playrunner workflows.
Install
npm install @playrunner/openaiAdd the package as a direct production dependency of the Playrunner frontend, API, and orchestrator. Each build discovers the contribution declared for its surface.
Package surfaces
@playrunner/openaiexports the OpenAI integration, theme-adaptive icon, configuration panel, and settings UI.@playrunner/openai/apiexports the API contribution mounted at/api/openai.@playrunner/openai/orchestratorexports the OpenAI Responses API executor.@playrunner/openai/e2eexports the package-owned E2E contribution.@playrunner/openai/assets/openai.svgexports the package-owned icon asset.
import openaiIntegration, {
OpenAIConfigPanel,
OpenAIIcon,
OpenAISettingsModal,
} from '@playrunner/openai';
import openaiApiContribution from '@playrunner/openai/api';
import openaiOrchestratorContribution from '@playrunner/openai/orchestrator';Testing
Run the package checks and unit tests from the repository root:
npm run format:check --prefix packages/openai
npm run lint --prefix packages/openai
npm run typecheck --prefix packages/openai
npm test --prefix packages/openai
npm run test:e2e:mock -- --grep @openaiThe E2E scenario connects, reloads, and disconnects an OpenAI API key. It runs in deterministic mock mode through the shared Playrunner browser harness, which uses the real frontend, API, authentication, and dedicated E2E database. No OpenAI credentials or live API requests are required.
Documentation
See the OpenAI integration documentation for API-key setup, node configuration, outputs, exports, and Playrunner build integration.
License
Licensed under the Playrunner Sustainable Use License.
