Sphere Engine Compilers

Compile and run source code inside your application.

Send the source, the language, and optional input. Get the output, errors, time, and memory back from a safe runtime. Use the REST API or a JavaScript widget. More than 80 languages, managed by Sphere Engine.

See the full list

Sphere Engine Compilers

A submission goes in. Streams and measurements come back.

A submission is the source code, a compiler, and optional input. The program is queued, compiled when the language needs it, and executed. There is no conversation with the running process.

When the run finishes you can read:

  • execution time, in seconds
  • memory, in kilobytes
  • the signal the program raised
  • the output stream
  • the error stream
  • compilation warnings and errors

Output, errors, and compilation info come back as streams. Binary output is a link to the stream, not a string pasted into the JSON.

The program runs with no network access. Languages come from the list Sphere Engine maintains.

Compilers submission result

More than 80 programming languages

From C and Python to niche compilers your curriculum still needs. Sphere Engine maintains the runtimes — versions, libraries, and the language ids you send in the API.

C++
C++
C#
C#
Java
Java
JavaScript
JavaScript
Python
Python
PHP
PHP
Node.js
Node.js

See the full list of languages and versions

Two ways to put the run in your product

Drop in the widget

The widget is a coding playground for your end users. They write a program, provide input, run it, and see the output. You embed the component. Sphere Engine provides that UI and the compute behind it.

The quickstart is two steps: load the widget script, then place the widget element where the playground should appear.

Quickstart

Call the API and keep the UI

Create a submission with the source and a compiler id. Input is optional. A successful create returns the submission id. A webhook tells your app when the run has finished. You can also read the submission; the docs ask you not to poll with no gap between requests.

{
  "compilerId": 11,
  "source": "<source code>"
}

POST https://<endpoint>/api/v4/submissions?access_token=<access_token>

A successful response is HTTP 201 with the submission id. Compiler ids come from the compiler list in the API. In the documentation, 11 is C.

The API accepts a multi-file submission for compilers that support it. The widget remains a playground for a program and its input.

Explore API

Where teams put Compilers

Recruitment platforms

Candidates run code inside a flow you already own. You are not hosting the compilers.

Courses and executable examples

A lesson snippet runs from the course page. The reader sees the output without leaving your product.

Docs and shared source

Readers try a sample in your documentation, or you share a program that can be executed. The editor, if you have one, stays yours. Compilers is the run behind it.

Get started

Run a submission in the trial

14-day, fully-functional trial. The trial includes help with the API integration. When volume needs a custom plan, talk to us.

No credit card required. Quickstart · Explore API · Pricing