# VRPC documentation

VRPC makes the classes and functions of one program callable from others,
over MQTT, in JavaScript, C++, Python and on Arduino, with React hooks for the
browser. This folder documents
VRPC for JavaScript (Node.js and the browser) and the protocol every VRPC
implementation speaks.

## Start here

- **[Getting started](https://vrpc.io/docs/getting-started.md)** - offer a class from one program
  and use it from another, in ten minutes.

## Understand

- [How VRPC works](https://vrpc.io/docs/concepts/overview.md) - agents, clients, the broker, and
  how a call travels.
- [Instances](https://vrpc.io/docs/concepts/instances.md) - shared and isolated instances, how
  long they live, and how they release what they run.
- [Calls, callbacks and errors](https://vrpc.io/docs/concepts/calls.md) - what can be called, how
  values travel, what a caller sees when something fails.
- [Events](https://vrpc.io/docs/concepts/events.md) - event functions, registrations and
  subscriptions, greeting, ends and losses.
- [Glossary](https://vrpc.io/docs/concepts/glossary.md) - every term in one meaning.

## Do

- [Offering classes from an agent](https://vrpc.io/docs/guides/expose-classes.md)
- [Writing event functions](https://vrpc.io/docs/guides/event-functions.md)
- [VRPC in the browser](https://vrpc.io/docs/guides/browser-and-react.md)
- [Persisting instances](https://vrpc.io/docs/guides/persistence.md)
- [Calling C++ from Node.js](https://vrpc.io/docs/guides/native-code.md)
- [Securing a deployment](https://vrpc.io/docs/guides/security.md)
- [Running in production](https://vrpc.io/docs/guides/production.md)
- [Troubleshooting](https://vrpc.io/docs/guides/troubleshooting.md)

## Look up

- [API reference](https://vrpc.io/docs/reference.md) - every class, function and option of vrpc-js.
- [Protocol specification](https://vrpc.io/docs/spec/protocol.md) - exactly what travels on the
  wire, for every VRPC implementation.
- [Implementing VRPC](https://vrpc.io/docs/spec/porting.md) - building an agent or a client in
  another language.
- [Changelog](https://github.com/heisenware/vrpc-js/blob/master/CHANGELOG.md) - what changed in each version.

## Other languages

Each implementation documents its own API and examples and refers here for
the protocol:

- [vrpc-hpp](https://github.com/heisenware/vrpc-hpp) (C++)
- [vrpc-py](https://github.com/heisenware/vrpc-py) (Python)
- [vrpc-arduino](https://github.com/heisenware/vrpc-arduino) (Arduino, ESP32)
- [vrpc-react](https://github.com/heisenware/vrpc-react) (React hooks)
