Skip to content

REST API for running unreliable code in a sandboxed environment.

Notifications You must be signed in to change notification settings

sanstzu/pocket-watch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pocket Watch

REST + gRPC API for running unreliable code in a sandboxed environment. Everyone can make their very own Leetcode without compromising server security and health.

The service is still under development. Please ⭐ this project to motivate the coding monkeys ❤️!

Usage

Running Source Code (C++ Example)

Currently, only C/C++ source codes are supported. Add support for other languages in the future.

POST /run

Request

{
	Code     string   `json:"code"`
	Language string   `json:"language"` // just use "cpp"; other languages not yet supported
	Stdin    []string `json:"stdin"`
}

Response

{
	Verdict []string `json:"verdict"` // OK, RE, TLE, CE
	Stdout  []string `json:"stdout"`
	Stderr  []string `json:"stderr"`
	Time    []string `json:"time"`
	Memory  []string `json:"memory"`
}

Contributing

TBD - For more information, contact me in Discord joshjms.

References

People

About

REST API for running unreliable code in a sandboxed environment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%