BASE

Judge0

Judge0

App testing · Free + paid

An API for executing code in an isolated environment: languages, time limits, and memory limits for playgrounds, programming tasks, and AI-generated code.

Resource illustration: Judge0

Open resource ↗

What you can use for free

The open source component used locally or self-hosted for the stated workflow, within its license terms.

Paid features and costs

Your own server, external APIs, and compute; managed cloud hosting, support, and additional commercial features if selected.

Access and limitations

Code licensing and hosting costs are separate matters. Check the conditions for the specific version and edition.

Use cases

  • Embed limited code execution in an app
  • Submit a successful program, an error, and an infinite loop through the API

Example workflow

A possible workflow; this is not a report of hands-on testing.

Embed limited code execution in an app

Before you start

  • Test programs and CPU, memory, and time limits.
  • A test project and completion criteria for the task: Embed limited code execution in an app.

Steps

  1. Set up Judge0 to test: Test programs and CPU, memory, and time limits.
  2. Submit a successful program, an error, and an infinite loop through the API.
  3. Integrate the checked version into your project; document its configuration, limitations, and recovery method.

Check your result

  • Check limits with reference programs; assess isolation and server permissions before production.
  • Check the result against a reference example; separately confirm the terms of any assets and external services used.

Choosing Judge0

Embed limited code execution in an app

Choose this when

  • Embed limited code execution in an app
  • Submit a successful program, an error, and an infinite loop through the API

Requirements

  • Get the language list from your instance and use its language_id; explicitly set limits for reference programs.

Things to consider

  • Costs and limits of free use: Your own server, external APIs, and computing resources; managed cloud hosting, support, and additional commercial features if selected.
  • Terms of use: GPL-3.0
  • CE and Extra CE have different languages; language_id cannot be moved between arbitrary instances without verification.

Frequently asked questions

What can you use for free in Judge0?

The openly available portion, used locally or self-hosted for the stated use case within its license terms.

What additional costs might arise with Judge0?

Your own server, external APIs, and computing resources; managed cloud hosting, support, and additional commercial features if selected.

What terms of use matter for Judge0?

GPL-3.0

How do you get started with Judge0?

Set up Judge0 to test: Test programs and CPU, memory, and time limits. Submit a successful program, an error, and an infinite loop through the API. Integrate the checked version into your project; document its configuration, limitations, and recovery method.

Why might a Judge0 Extra CE language example fail in CE?

The README separates CE in master from Extra CE in another branch with a different language set. Query languages from your specific server and choose its identifier. Compiler options and execution limits are configured for the submitted program.

License

GPL-3.0

GPL 3.0 — open-source code with copyleft

You can run, modify, and sell the program. When distributing a GPL program or a derivative product based on it, recipients must receive the corresponding source code and GPL rights; GPL-covered code cannot be made closed-source. Ordinary use of a tool does not make your project or the independent outputs it creates subject to GPL.

License terms

Technologies and topics

  • Judge0
  • Application testing

Sources

Other resources