Runr is a powerful online code execution platform integrated with SnapTools, providing a secure and efficient environment for writing, running, and testing code in multiple programming languages.
- Multi-Language Support: Execute code in Python, JavaScript, Java, and more with instant compilation and execution
- Real-time Execution: Lightning-fast code execution with real-time output streaming
- Secure Sandbox: Isolated environment with robust security measures:
- Containerized execution
- No network access
- Limited file system access
- Memory and CPU usage restrictions
- Cross-Platform: Cloud-based environment accessible from any device
- RESTful API: Simple HTTP endpoints for code execution
- SnapTools Integration: Seamlessly integrated with the SnapTools suite
- Rate Limiting: 30 requests per minute per API key
- Execution Timeouts:
- Execution: 3 seconds
- Compilation: 10 seconds
- Secure Authentication: API key-based access
- Comprehensive Response: Includes output, errors, execution time, and exit code
- Install dependencies:
npm install- Start the development server:
npm run dev- Build for production:
npm run buildPOST https://api.coderunner.dev/v1/run
// Request Body
{
"language": "python",
"code": "print('Hello, World!')",
"input": ""
}
// Response
{
"output": "Hello, World!\n",
"errors": "",
"executionTime": 125,
"exitCode": 0
}- Frontend: React with TypeScript
- Styling: Tailwind CSS
- API Integration: RESTful endpoints
- Code Execution: Secure sandbox environment
Runr prioritizes security with:
- Isolated execution environments
- Rate limiting
- API key authentication
- Resource usage restrictions
MIT License