Supported Platforms
Node.js ✅
Fully Supported - All features work out of the box.- ✅ All API methods
- ✅ File operations
- ✅ Triggers (Pusher)
- ✅ MCP servers
- ✅ Tool Router
- ✅ Custom tools
Bun ✅
Fully Supported - Optimized for Bun runtime.- ✅ All API methods
- ✅ File operations (Bun.file)
- ✅ Triggers
- ✅ Faster performance than Node.js
Deno ⚠️
Partially Supported - Requires permissions.- ✅ All API methods
- ⚠️ File operations (with —allow-read/—allow-write)
- ✅ Triggers
- ⚠️ May require additional permissions
Cloudflare Workers ⚠️
Partially Supported - No filesystem access.- ✅ Tool execution
- ✅ Connected accounts
- ✅ Auth configs
- ❌ File operations (no fs)
- ⚠️ Triggers (requires Durable Objects)
- ⚠️ Must call
flush()before termination
- 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.- ⚠️ Limited to public APIs
- ✅ Connection flows
- ❌ Tool execution (use backend)
- ❌ File operations
- ❌ Triggers
Feature Compatibility Matrix
Platform-Specific Code
Cloudflare Workers
Deno
Testing
Run platform-specific tests:Best Practices
- Platform Detection: Check runtime before using platform-specific features
- Graceful Degradation: Disable unsupported features
- Error Handling: Handle platform-specific errors
- Testing: Test on target platform
- 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