Skip to content

iam-sandipmaity/Runr

Repository files navigation

Runr - Online Code Execution Platform

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.

Features

  • 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

API Features

  • 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

Getting Started

  1. Install dependencies:
npm install
  1. Start the development server:
npm run dev
  1. Build for production:
npm run build

API Usage

POST 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
}

Tech Stack

  • Frontend: React with TypeScript
  • Styling: Tailwind CSS
  • API Integration: RESTful endpoints
  • Code Execution: Secure sandbox environment

Links

Security

Runr prioritizes security with:

  • Isolated execution environments
  • Rate limiting
  • API key authentication
  • Resource usage restrictions

License

MIT License

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published