wesz / javascript-sandbox

JavaScript sandbox environment with minimal code editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JavaScript Sandbox

Introduction

Sandbox for running unsafe, user-entered code. No access to global scope/window/document/other stuff, just API specified by the host.

Sample API

	console.log(...) // for printing and debugging
	draw_rect(x, y, w, h) // just a test function to test interaction with host
	get_foo() // another test function that returns instance of Foo

Demo

http://labs.onether.com/javascript-sandbox/

About

JavaScript sandbox environment with minimal code editor


Languages

Language:JavaScript 92.2%Language:HTML 7.8%