Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT: Run Example Snippets Live #16

Open
jrTilak opened this issue Apr 9, 2024 · 0 comments
Open

FEAT: Run Example Snippets Live #16

jrTilak opened this issue Apr 9, 2024 · 0 comments
Labels
enhancement New feature or request top-priority

Comments

@jrTilak
Copy link
Owner

jrTilak commented Apr 9, 2024

image

  • Make these given examples executable like a run button that runs the example and prints a logs below
  • Also user should be able to edit the example code snippets for better convenience, if possible.
  • You can create a popup window for showing logs and editing code
  • Use some library for easy code editing experience

Idea

  • The idea is to create a api where we can pass the example snippet with it's parent function that it is importing
  • Execute the code in backend with package like isolated-vm for security reasons
  • Limit the runtime to 4-5 or some ideal seconds to prevent user form inserting malicious/infinite loop code.
  • Can also limit the usage of memory
  • Consider the security deeply in this context as running some malicious code can bring securing threat.

If you know some better approach with or without implementation of api you can suggest/contribute.

@jrTilak jrTilak added enhancement New feature or request top-priority labels Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request top-priority
Projects
None yet
Development

No branches or pull requests

1 participant