Skip to content

Code Execution Sandbox #6

@Drago-03

Description

@Drago-03

Is your feature request related to a problem? Please describe.
Developers often need a way to quickly test and run code within Discord, but existing solutions require external tools like Replit, JSFiddle, or online compilers. This disrupts workflow and makes collaborative coding less efficient. Additionally, manually copying and pasting code between Discord and external platforms is cumbersom

Describe the solution you'd like
A Code Execution Sandbox within IndieGo that allows users to run code directly in Discord. Features include:

  • Multi-language Support: Execute Python, JavaScript, C++, and more.
  • Secure Execution: Runs code in an isolated environment (Docker, Firecracker).
  • Real-time Output: Displays results inside Discord in an easy-to-read format.
  • Resource Constraints: Limits execution time, memory, and prevents security risks.
  • Syntax Highlighting: Formats code output with proper syntax.
  • Error Handling: Returns clear error messages for debugging.
  • Collaboration: Works seamlessly with IndieGo’s In-Discord Collaborative IDE.

Describe alternatives you've considered

  • Replit & CodeSandbox – Great for execution but requires users to leave Discord.
  • GitHub Actions – Good for CI/CD but not designed for real-time execution.
  • Self-hosted Jupyter Kernels – Provides interactive execution but requires complex setup.
  • Eval Commands in Bots – Limited to specific languages and pose security risks.

Additional context

  • Security Concerns: Must sandbox execution to prevent abuse.
  • Performance: Requires optimized resource management for multiple requests.
  • Scalability: Needs queueing to handle multiple users efficiently.
  • Potential Enhancements: AI-based debugging, code execution history, and integration with GitHub for seamless workflow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions