Skip to main content
Composio TypeScript SDK supports multiple JavaScript runtimes with varying levels of compatibility.

Supported Platforms

Node.js ✅

Fully Supported - All features work out of the box.
Features:
  • ✅ All API methods
  • ✅ File operations
  • ✅ Triggers (Pusher)
  • ✅ MCP servers
  • ✅ Tool Router
  • ✅ Custom tools

Bun ✅

Fully Supported - Optimized for Bun runtime.
Features:
  • ✅ All API methods
  • ✅ File operations (Bun.file)
  • ✅ Triggers
  • ✅ Faster performance than Node.js

Deno ⚠️

Partially Supported - Requires permissions.
Required Permissions:
Features:
  • ✅ All API methods
  • ⚠️ File operations (with —allow-read/—allow-write)
  • ✅ Triggers
  • ⚠️ May require additional permissions

Cloudflare Workers ⚠️

Partially Supported - No filesystem access.
Features:
  • ✅ Tool execution
  • ✅ Connected accounts
  • ✅ Auth configs
  • ❌ File operations (no fs)
  • ⚠️ Triggers (requires Durable Objects)
  • ⚠️ Must call flush() before termination
Limitations:
  • No filesystem access
  • No persistent storage
  • Must manually flush telemetry
  • Limited to 50ms CPU time

Browser ⚠️

Limited Support - Use for client-side auth flows only.
Features:
  • ⚠️ Limited to public APIs
  • ✅ Connection flows
  • ❌ Tool execution (use backend)
  • ❌ File operations
  • ❌ Triggers
Security Warning:
Never expose your Composio API key in browser code. Use a backend proxy for sensitive operations.

Feature Compatibility Matrix

Platform-Specific Code

Cloudflare Workers

Deno

Testing

Run platform-specific tests:

Best Practices

  1. Platform Detection: Check runtime before using platform-specific features
  2. Graceful Degradation: Disable unsupported features
  3. Error Handling: Handle platform-specific errors
  4. Testing: Test on target platform
  5. Documentation: Document platform requirements

Troubleshooting

”fs module not found” in Cloudflare Workers

”Telemetry not flushing” in Workers

Permission errors in Deno

Next Steps

Installation

Get started

Files API

File operations

Composio Class

Main SDK reference

Examples

View examples