The Distributed Compute Protocol

Welcome to the official documentation for the Distributed Compute Protocol (DCP)!

DCP is a powerful JavaScript framework for parallel computing projects. Using its client, anyone can harness the power of a supercomputer with just a couple lines of code and without any kind of orchestration.

If you have any questions or would like a clarification at any time while you’re reading this documentation, the core developers are just a note away on the Slack channel, on Stack Overflow, or by good old-fashioned email at info@distributed.computer.

Introduction

If you are coming here for the first time and new to DCP, you should to read the Getting setup and Getting started documents.

Node.js

All modules (other than dcp-client) become available after completion of one of the dcp-client initialization functions.

require('dcp-client').initSync();
const compute = require('dcp/compute');

Web Browser

All modules are available in the global dcp object after importing the dcp-client script.

<script src="https://scheduler.distributed.computer/dcp-client/dcp-client.js"></script>
<script>
  const { compute } = dcp;
</script>

Support

Indices and tables

Full DCP Specifications