Library for creating custom integrations and protocols with CodeSandbox, version 0.0.32 (stable, low release cadence). Provides APIs to communicate between sandbox frames and the editor, including protocol definitions, event handling, and utilities for building sandbox-level features. Differentiates from direct postMessage by offering typed abstractions and conventions. Ships TypeScript type definitions. Active development within the CodeSandbox monorepo.
npm install codesandbox-apiVerified import paths — ran on the pinned version, not inferred.
Shows how to use the sandboxUrl function to create a CodeSandbox link from a GitHub repository.
Pin to exact version and test upgrades; prefer latest 0.x patch.
Refer to source code or CodeSandbox client for usage examples; consider using source map.
Use dynamic import() in Node or configure bundler for ESM.
Import from specific subpath like 'codesandbox-api/dist/actions'.
Run: npm install codesandbox-api
Add "type": "module" to package.json, or use a bundler like webpack/rollup.
No dependency data recorded yet.